/* Pet Care Resource — static publication styles. No third-party assets. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

:root {
  --paper: #f6f1e7;
  --paper-deep: #efe6d6;
  --surface: #fffaf3;
  --ink: #211c17;
  --muted: #5e574e;
  --line: #e0d5c6;
  --line-strong: #c9bba8;
  --green: #1a4f3e;
  --green-deep: #12382d;
  --gold: #d4a85a;
  --gold-deep: #c09040;
  --green-soft: #e5f0eb;
  --clay: #9a4632;
  --focus: #211c17;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 68rem;
  --measure: 40rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 0 0, rgba(26, 79, 62, 0.05), transparent 46%),
    linear-gradient(180deg, rgba(255, 250, 243, 0.7), transparent 280px);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #d5e6df;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 20;
  transform: translateY(-140%);
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.measure {
  max-width: var(--measure);
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-deep);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  border-top: 4px solid var(--green);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 231, 0.92);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  color: var(--green);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.brand-tag {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav ul {
  justify-content: flex-end;
  gap: 0.35rem 0.45rem;
}

.nav li:not(:has(a.pill)) {
  margin-right: 0.55rem;
}

.nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover,
.footer-nav a:hover {
  color: var(--green);
  text-decoration: underline;
}

.nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.nav a.pill {
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.nav a.pill:hover,
.nav a.pill[aria-current="page"] {
  text-decoration: none;
}

.nav a.pill-sponsor {
  background: var(--gold);
  color: var(--ink);
}

.nav a.pill-sponsor:hover {
  background: var(--gold-deep);
  color: var(--ink);
}

.nav a.pill-subscribe {
  background: var(--green);
  color: #f6f1e7;
}

.nav a.pill-subscribe:hover {
  background: var(--green-deep);
  color: #f6f1e7;
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
  }

  .brand {
    flex: 1 0 auto;
  }

  .nav {
    flex: 1 1 100%;
  }

  .nav ul {
    justify-content: flex-start;
  }

  .nav li:not(:has(a.pill)) {
    margin-right: 0.2rem;
  }

  .nav a.pill {
    padding-inline: 0.9rem;
  }
}

main {
  flex: 1 0 auto;
  padding-block: 2rem 3.5rem;
}

.hero h1,
.page-intro h1 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.hero {
  max-width: none;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(8.25rem, 0.85fr);
  column-gap: 0.75rem;
  row-gap: 0.85rem;
  align-items: center;
}

.hero-copy {
  display: contents;
}

.hero h1,
.hero .lede {
  grid-column: 1;
}

.hero .support,
.hero .species,
.hero .signup {
  grid-column: 1 / -1;
}

.hero-art {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  aspect-ratio: 740 / 680;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fef5e8;
}

.hero-art img {
  position: absolute;
  width: 173%;
  max-width: none;
  height: auto;
  left: -71.6%;
  top: -4.4%;
  border: 0;
}

.hero h1 {
  font-size: clamp(1.45rem, 5.4vw, 1.85rem);
  max-width: none;
}

.hero .lede {
  margin-top: 0.45rem;
  font-size: 0.98rem;
}

.hero .support {
  margin-top: 0.9rem;
}

.hero .signup {
  margin-top: 0.9rem;
}

.page-intro h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  max-width: 16em;
}

.kicker {
  margin: 0 0 0.55rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.lede {
  margin: 0.9rem 0 0;
  max-width: 38rem;
  font-size: 1.2rem;
  line-height: 1.45;
}

.support {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: var(--muted);
}

.species {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
}

.species li:not(:last-child)::after {
  content: "·";
  margin: 0 0.45rem;
  color: var(--line-strong);
}

.signup {
  margin-top: 1.35rem;
  max-width: 38rem;
  padding: 1rem 1rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(33, 28, 23, 0.04);
}

.signup label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.signup input[type="email"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: #f6f1e7;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--green-deep);
  color: #f6f1e7;
}

.signup .btn {
  width: 100%;
}

.fineprint {
  margin: 0.75rem 0 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.signup-status:not([hidden]) {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.8rem;
  background: var(--green-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  border-radius: 4px;
}

.signup-status.is-error:not([hidden]) {
  background: #f8ebe6;
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.block {
  margin-top: 3rem;
}

.block h2,
.prose h2,
.later h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-lead {
  margin: 0 0 1rem;
  max-width: 38rem;
}

.points {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: 1rem 1.05rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.points h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.points p,
.issue p,
.prose p,
.later p {
  margin: 0;
}

.points p + p,
.prose p + p,
.later p + p,
.issue p + p {
  margin-top: 0.75rem;
}

.issue {
  max-width: 38rem;
  padding: 1.1rem 1.1rem 1.2rem;
  background: var(--paper-deep);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
}

.flag {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}

.issue-meta {
  margin: 0.2rem 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
}

.about-more {
  margin-top: 0.85rem;
  font-family: var(--sans);
}

.later {
  margin-top: 3.25rem;
  padding-top: 1.35rem;
  border-top: 1px dashed var(--line-strong);
}

.later h2 {
  font-size: 1.35rem;
  color: var(--ink);
}

.later p {
  max-width: 38rem;
  color: var(--muted);
}

.page-intro {
  margin-bottom: 1.5rem;
}

.prose {
  max-width: 40rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.contact-line {
  margin-top: 0.75rem;
  font-family: var(--sans);
}

.ledger {
  width: 100%;
  max-width: 40rem;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.98rem;
}

.ledger caption {
  caption-side: bottom;
  padding-top: 0.6rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
}

.ledger th,
.ledger td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ledger th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger td[colspan] {
  color: var(--ink);
  background: var(--paper-deep);
}

.back-link {
  margin: 1.25rem 0 0;
  font-family: var(--sans);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ebe4d6;
  padding: 1.6rem 0 2rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.5;
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}

address {
  margin: 0;
  font-style: normal;
}

address a {
  overflow-wrap: anywhere;
}

.footer-unsub {
  margin: 0.35rem 0 0;
  max-width: 40rem;
  color: var(--muted);
}

.footer-nav {
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .signup-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .signup input[type="email"] {
    width: auto;
    flex: 1 1 12rem;
  }

  .signup .btn {
    width: auto;
    flex: 1 1 auto;
  }

  .points {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 2rem;
  }

  .footer-nav {
    border-top: 0;
    padding-top: 0;
  }
}

@media (min-width: 1080px) {
  .hero-band {
    display: block;
    position: relative;
  }

  .hero-art {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: auto;
    overflow: visible;
    border: 0;
    background: none;
  }

  .hero-art img {
    position: static;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
    display: block;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fef5e8;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 38%;
    padding: 1.15rem 0.85rem 1.15rem 1.3rem;
  }

  .hero h1,
  .hero .lede,
  .hero .support,
  .hero .species,
  .hero .signup {
    grid-column: auto;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 2.2vw, 2.45rem);
  }

  .hero .lede,
  .hero .support,
  .hero .species {
    margin: 0;
  }

  .hero .lede {
    font-size: 1.02rem;
  }

  .hero .support {
    font-size: 0.98rem;
  }

  .hero .signup {
    margin-top: 0.25rem;
  }

  .hero .signup-row {
    flex-direction: column;
  }

  .hero .signup input[type="email"],
  .hero .signup .btn {
    width: 100%;
    flex: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body {
    background: #fff;
  }

  .skip,
  .signup,
  .site-header,
  .site-footer nav {
    display: none;
  }

  a {
    text-decoration: underline;
  }
}
