:root {
  color-scheme: light;
  --paper: #f7f4eb;
  --ink: #23352b;
  --muted: #4e5b50;
  --green: #293e32;
  --pale: #e8ede1;
  --ochre: #e4ac75;
  --white: #fffdf7;
  --line: #d8dace;
  --heading: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 system-ui, sans-serif; }
h1, h2, h3 { margin: 0; font-family: var(--heading); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 6.2vw, 6.3rem); }
h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); }
h3 { font-size: 1.65rem; }
p { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #a04f26; outline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.shell { width: min(100% - 2 * clamp(1rem, 5vw, 4.5rem), 76rem); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 5; padding: .6rem 1rem; color: white; background: var(--green); transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 4.8rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.4rem; flex-wrap: wrap; padding-block: .75rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font: 700 1.25rem/1.1 var(--heading); text-decoration: none; }
.nav nav { display: flex; gap: .4rem clamp(.8rem, 2vw, 1.7rem); flex-wrap: wrap; }
.nav nav a, .header-link { font-size: .86rem; text-decoration: none; font-weight: 700; }
.nav a:hover { text-decoration: underline; }
.header-link { padding: .55rem .85rem; border: 1px solid var(--green); border-radius: .3rem; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.75rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.eyebrow { margin-bottom: .8rem; font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.eyebrow span { display: inline-block; width: .56rem; height: .56rem; background: #a04f26; border-radius: 50%; margin-right: .25rem; }
.hero h1 em { color: #526d4b; font-weight: 500; }
.lead { max-width: 39ch; margin-top: 1.3rem; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); }
.actions, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.2rem; margin-top: 1.6rem; }
.button { display: inline-flex; gap: .7rem; align-items: center; padding: .75rem 1rem; border: 1px solid transparent; border-radius: .35rem; background: var(--green); color: var(--white); font-size: .91rem; font-weight: 750; text-decoration: none; }
.button:hover { background: #3c5644; }
.inline-link { font-size: .93rem; font-weight: 720; }
.hero-photo { margin: 0; border-radius: 48% 48% .65rem .65rem / 18% 18% .65rem .65rem; overflow: hidden; background: #d9d7c6; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.11; object-fit: cover; }
.hero-photo figcaption { padding: .58rem .8rem; text-align: center; font: italic .92rem var(--heading); }
.wayfinding { background: var(--green); color: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem 1rem; padding-block: .9rem; }
.steps a { text-decoration: none; font-size: .88rem; font-weight: 650; }
.steps a:hover { text-decoration: underline; }
.steps span { color: var(--ochre); font-weight: 800; margin-right: .45rem; }
.section { padding-block: clamp(3.4rem, 7vw, 6rem); scroll-margin-top: 1rem; }
.section-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1rem 2.5rem; align-items: end; margin-bottom: 1.6rem; }
.section-head > p { max-width: 44ch; color: var(--muted); }
.pet-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; }
.pet-card, .story-card, .adopt-card { min-width: 0; border: 1px solid var(--line); background: var(--white); border-radius: .55rem; padding: clamp(.85rem, 1.8vw, 1.4rem); }
.pet-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: var(--pale); border-radius: 50%; margin-bottom: .65rem; }
.pet-card > p:not(.lifespan) { font-size: .9rem; }
.lifespan { margin: .6rem 0; font-weight: 750; font-size: .8rem; }
details { border-top: 1px solid var(--line); padding-top: .55rem; margin-top: .7rem; font-size: .85rem; }
summary { cursor: pointer; font-weight: 750; }
details p { margin-block: .45rem; }
.source-note { color: var(--muted); font-size: .84rem; margin-top: .8rem; }
.resource-strip { margin-top: 1.5rem; border-left: .25rem solid #526d4b; background: var(--pale); padding: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.6rem; }
.resource-strip p { margin-top: .35rem; }
.resource-links { display: grid; gap: .15rem; font-size: .88rem; font-weight: 750; }
.story-section { background: var(--pale); }
.story-grid, .adopt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.story-card h3, .adopt-card h3 { margin: .35rem 0 .75rem; }
.story-kind { color: #8a431e; font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.takeaway { border-left: .2rem solid var(--ochre); padding-left: .65rem; margin-block: .8rem; font-size: .9rem; }
.takeaway strong { display: block; }
.story-card > a, .adopt-card > a { font-size: .87rem; font-weight: 750; }
.budget-layout, .prep-grid { display: grid; grid-template-columns: 1.35fr .65fr; align-items: start; gap: 1rem; }
form, .estimate, .prep-note, .checklist { border: 1px solid var(--line); border-radius: .55rem; padding: clamp(1rem, 2.4vw, 1.65rem); background: var(--white); }
fieldset { min-inline-size: 0; margin: 0 0 .7rem; border: 0; padding: 0; }
legend { margin-bottom: .3rem; font-weight: 800; }
fieldset label { display: flex; align-items: center; justify-content: space-between; gap: .4rem 1rem; border-bottom: 1px solid var(--line); padding: .42rem 0; font-size: .92rem; }
.money { display: flex; align-items: center; gap: .25rem; }
.money input { width: clamp(5.5rem, 13vw, 8rem); border: 1px solid #a6afa0; border-radius: .3rem; padding: .32rem .4rem; color: var(--ink); background: #fff; }
.reset { border: 0; background: transparent; color: var(--ink); text-decoration: underline; }
.estimate { background: var(--green); color: var(--white); overflow-wrap: anywhere; }
.estimate .eyebrow { color: var(--ochre); }
.estimate .total { font: 500 clamp(2.25rem, 5.2vw, 4rem)/1.1 var(--heading); }
.estimate dl div { display: flex; justify-content: space-between; gap: .65rem; border-bottom: 1px solid #67796c; padding: .35rem 0; }
.estimate dd { margin: 0; font-weight: 720; }
.estimate > p:last-child { font-size: .87rem; }
.prep-section { background: #f0e4d4; }
.checklist label { display: flex; align-items: start; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.checklist label:last-child { border: 0; }
.checklist input { flex: none; width: 1.12rem; height: 1.12rem; margin-top: .2rem; accent-color: var(--green); }
.prep-note p { margin: .7rem 0 1rem; }
.adopt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adopt-card a { display: block; margin-top: .55rem; }
.site-footer { background: var(--green); color: var(--white); }
.footer { padding-block: 1.75rem; display: grid; grid-template-columns: 1fr .7fr 1fr; align-items: start; gap: 1rem 1.75rem; }
.footer p { font-size: .88rem; margin-top: .35rem; }
.footer .footer-note { color: #e3eadd; font-size: .82rem; }
@media (max-width: 1080px) { .pet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hero, .section-head, .budget-layout, .prep-grid { grid-template-columns: 1fr; }
  .nav nav { order: 3; flex-basis: 100%; }
  .hero-photo img { aspect-ratio: 1.42; }
  .adopt-grid, .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
  .pet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid, .adopt-grid, .footer, .steps { grid-template-columns: 1fr; }
  .steps { gap: .25rem; }
  .section { padding-block: 2.8rem; }
}
@media print {
  .site-header, .site-footer, .skip, .wayfinding, .hero, main > section:not(#checklist), #print-checklist { display: none; }
  #checklist, .checklist, .prep-note { background: white; border: 0; padding: 0; }
  .shell { width: 100%; }
}
