:root {
  color-scheme: light;
  --ink: #1c382d;
  --ink-soft: #4b6255;
  --forest: #173d31;
  --forest-dark: #102f27;
  --cream: #f8f5e9;
  --paper: #f1efe4;
  --leaf: #738a5d;
  --line: #bdc9b3;
  --rust: #a35337;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 20; top: -80px; left: 1rem; padding: .75rem 1rem; color: white; background: var(--forest); }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid #d5ddce; background: #f9f7ef; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 1300px; margin: auto; padding: 1.25rem clamp(1.25rem, 5vw, 4.25rem); }
.wordmark { display: inline-flex; flex-direction: column; flex: 0 0 auto; text-decoration: none; }
.wordmark-main { font: 1.65rem/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; }
.wordmark-main em, .footer-brand em { color: var(--rust); font-weight: normal; }
.wordmark-sub { margin-top: .35rem; font-size: .71rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 2.1rem); }
.main-nav a { padding: .4rem 0; font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: .3rem; }
.main-nav .nav-foster { border-bottom: 2px solid var(--rust); }

.hero { --hero-photo: url('plant-poppies.webp'); position: relative; min-height: 630px; overflow: hidden; background: #f8f5e9; }
.hero::before { position: absolute; inset: 0 0 0 31%; content: ''; background: var(--hero-photo) center / cover no-repeat; }
.hero::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, #f8f5e9 0%, rgba(248,245,233,.98) 24%, rgba(248,245,233,.75) 42%, rgba(248,245,233,.05) 72%), linear-gradient(0deg, rgba(17,49,39,.22), transparent 35%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; max-width: 1300px; min-height: 630px; margin: auto; padding: 4.5rem clamp(1.25rem, 5vw, 4.25rem); }
.hero-copy { position: relative; z-index: 1; width: min(100%, 35rem); }
.eyebrow { margin: 0 0 1.25rem; color: var(--rust); font-size: .76rem; font-weight: 800; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { margin-bottom: 1.6rem; font-size: clamp(3.4rem, 6.5vw, 5.8rem); line-height: .99; letter-spacing: -.06em; }
h1 em { color: var(--forest); font-weight: 400; }
h2 { margin-bottom: 1.35rem; font-size: clamp(2.45rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.045em; }
h3 { margin-bottom: .8rem; font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.18; letter-spacing: -.025em; }
p { font-size: 1rem; line-height: 1.7; }
.hero-intro { max-width: 27rem; margin-bottom: 0; font-size: 1.12rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .85rem 1.2rem; border: 1px solid var(--forest); border-radius: 3px; font-size: .92rem; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--forest); }
.button-primary:hover { background: var(--forest-dark); }
.button-outline { color: var(--forest); background: rgba(251, 250, 243, .88); }
.button-outline:hover { background: white; }

.announcement { display: flex; justify-content: center; align-items: center; gap: 1.5rem; padding: 1rem 1.25rem; color: #f7f3de; background: var(--forest); text-align: center; }
.announcement p { margin: 0; font-size: .9rem; font-weight: 700; line-height: 1.45; }
.announcement-mark { color: #bacda9; font-size: 1rem; }
.photo-section { padding: .9rem clamp(1.25rem, 5vw, 4.25rem) 1rem; background: #e8ecdf; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, clamp(150px, 14vw, 215px)); grid-template-areas: 'a a b c' 'a a b d' 'e e f f'; gap: .8rem; max-width: 1300px; margin: auto; }
.photo-tile { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #d5dfcb; }
.photo-tile:nth-child(1) { grid-area: a; }
.photo-tile:nth-child(2) { grid-area: b; }
.photo-tile:nth-child(3) { grid-area: c; }
.photo-tile:nth-child(4) { grid-area: d; }
.photo-tile:nth-child(5) { grid-area: e; }
.photo-tile:nth-child(6) { grid-area: f; }
.photo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.section { max-width: 1300px; margin: auto; padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 6vw, 5rem); }
.section-heading > p:last-child { max-width: 31rem; margin-bottom: 0; color: var(--ink-soft); }
.section-heading.narrow > p:last-child { max-width: 38rem; }
.meet-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 8vw, 7rem); min-height: 420px; }
.empty-card { position: relative; padding: clamp(1.7rem, 3vw, 2.7rem); border: 1px solid var(--line); background: #fffef9; box-shadow: 12px 12px 0 #e7ecd9; }
.empty-card-top { display: flex; align-items: center; gap: .65rem; margin-bottom: 2rem; color: #667c59; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tiny-leaf { font-size: 1.2rem; line-height: 1; }
.empty-card p { max-width: 26rem; margin-bottom: .7rem; }
.small-note { color: var(--ink-soft); font-size: .86rem; line-height: 1.55; }
.empty-card .small-note { margin: 1.5rem 0 0; }
.garden-divider { position: relative; height: 280px; margin: 0; overflow: hidden; background: #d9e1c4; }
.garden-divider img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }

.adoption-section { max-width: none; padding-left: max(1.25rem, calc((100vw - 1140px) / 2)); padding-right: max(1.25rem, calc((100vw - 1140px) / 2)); background: #e8eddf; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); margin: 3rem 0 0; padding: 0; list-style: none; }
.steps li { padding-top: 1.3rem; border-top: 1px solid #91a184; }
.step-number { display: block; margin-bottom: 1.4rem; color: #718562; font: italic 2.7rem/1 Georgia, 'Times New Roman', serif; }
.steps h3 { font-size: 1.55rem; }
.steps p { max-width: 21rem; margin: 0; }

.care-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .87fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.care-intro p:not(.eyebrow) { max-width: 31rem; }
.care-key { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.care-key span { padding: .45rem .7rem; border: 1px solid #a9b79b; border-radius: 999px; color: var(--ink-soft); background: #f3f5eb; font-size: .78rem; font-weight: 700; }
.care-key span:nth-child(2) { border-color: #d7c490; background: #f4ecd2; }
.donation-card { padding: clamp(1.8rem, 3.5vw, 3rem); border-top: 4px solid var(--rust); background: #eee8d8; }
.donation-card .eyebrow { margin-bottom: .2rem; }
.donation-amount { margin-bottom: .75rem; color: var(--forest); font: 5.5rem/.95 Georgia, 'Times New Roman', serif; letter-spacing: -.07em; }
.donation-amount span { margin-right: .1rem; font-size: 3rem; vertical-align: .7rem; }
.donation-card p:not(.eyebrow):not(.donation-amount) { margin-bottom: 0; }
.donation-card .small-note { margin-top: 1.25rem; }

.support-section { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; max-width: none; padding-left: max(1.25rem, calc((100vw - 1140px) / 2)); padding-right: max(1.25rem, calc((100vw - 1140px) / 2)); color: #f5f3df; background: linear-gradient(90deg, rgba(23,61,49,.98), rgba(23,61,49,.89)), url('plant-lavender.webp') center / cover; }
.support-section .eyebrow { color: #d9bc92; }
.support-section h2 { color: #f5f3df; }
.support-section p:last-child { max-width: 39rem; margin-bottom: 0; color: #dce6d8; }
.support-status { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 2rem; border: 1px solid #93ad8e; background: rgba(255, 255, 255, .055); }
.status-symbol { margin-bottom: .45rem; color: #dbd7a8; font-size: 1.7rem; }
.support-status strong { font: 1.55rem/1.25 Georgia, 'Times New Roman', serif; }
.support-status span:last-child { color: #d9e2d6; font-size: .9rem; }

.foster-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); min-height: 480px; background: #f7f5eb; }
.foster-art { position: relative; min-height: 480px; margin: 0; overflow: hidden; background: #d6dfc2; }
.foster-art img { display: block; width: 100%; height: 100%; min-height: 480px; object-fit: cover; object-position: center; }
.foster-copy { align-self: center; max-width: 42rem; padding: clamp(3rem, 6vw, 6rem); }
.foster-copy > p:not(.eyebrow):not(.foster-note) { max-width: 32rem; }
.button-light { margin-top: .7rem; color: white; background: var(--forest); }
.button-light:hover { background: var(--forest-dark); }
.foster-note { max-width: 32rem; margin: 1.15rem 0 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.55; }
.site-footer { border-top: 1px solid #c7d2bd; background: #e9ede2; }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 2rem; max-width: 1300px; margin: auto; padding: 2.5rem clamp(1.25rem, 5vw, 4.25rem); }
.footer-brand { margin-bottom: .5rem; font: 1.3rem Georgia, 'Times New Roman', serif; }
.site-footer p:not(.footer-brand) { max-width: 34rem; margin-bottom: 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.5; }
.footer-status { text-align: right; }
.site-footer .photo-credit { max-width: 1300px; margin: -1rem auto 0; padding: 0 clamp(1.25rem, 5vw, 4.25rem) 2.5rem; font-size: .8rem; line-height: 1.5; }
.photo-credit summary { width: fit-content; color: var(--forest); font-weight: 700; cursor: pointer; }
.photo-credit ul { columns: 2; column-gap: 2rem; padding-left: 1rem; }
.photo-credit li { break-inside: avoid; margin: .4rem 0; }
.photo-credit a { text-decoration-thickness: 1px; text-underline-offset: .15rem; }

.foster-page-hero { position: relative; overflow: hidden; background: #e7eddf; }
.foster-page-hero::before { position: absolute; inset: 0 0 0 47%; content: ''; background: url('plant-catnip.webp') center 48% / cover no-repeat; }
.foster-page-hero::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, #e7eddf 0%, rgba(231,237,223,.97) 36%, rgba(231,237,223,.55) 57%, rgba(231,237,223,.04) 85%); pointer-events: none; }
.foster-page-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; max-width: 1300px; min-height: 420px; margin: auto; padding: 4rem clamp(1.25rem, 5vw, 4.25rem); }
.foster-page-hero-inner > div { max-width: 38rem; }
.foster-page-hero h1 { margin-bottom: 1.25rem; font-size: clamp(3.2rem, 6vw, 5rem); }
.foster-page-hero p:last-child { max-width: 31rem; margin-bottom: 0; }
.foster-form-section { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 6rem); max-width: 1300px; margin: auto; padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 5vw, 4.25rem); }
.foster-form-intro p:not(.eyebrow) { color: var(--ink-soft); }
.form-availability { margin-top: 2rem; padding: 1rem 1.15rem; border-left: 4px solid var(--rust); background: #eee8d8; font-size: .9rem; }
.form-availability.is-open { border-left-color: var(--leaf); background: #e8eddf; }
.test-mode-note { margin: 1.2rem 0; padding: 1rem 1.15rem; border-left: 4px solid var(--rust); background: #fff1df; }
.foster-form { padding: clamp(1.4rem, 3vw, 2.75rem); border: 1px solid var(--line); background: #fffef9; box-shadow: 12px 12px 0 #e7ecd9; }
.foster-form fieldset { margin: 0 0 2rem; padding: 0; border: 0; }
.foster-form legend { width: 100%; margin-bottom: 1.25rem; padding: 0 0 .6rem; border-bottom: 1px solid var(--line); font: 1.55rem/1.2 Georgia, 'Times New Roman', serif; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.care-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; margin-bottom: 1.15rem; }
#review-code-field[hidden] { display: none; }
.form-field label { font-size: .88rem; font-weight: 700; line-height: 1.35; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 2.8rem; padding: .7rem .8rem; border: 1px solid #aab9a2; border-radius: 2px; color: var(--ink); background: white; font: inherit; }
.form-field textarea { min-height: 7rem; resize: vertical; line-height: 1.45; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--forest); }
.field-hint { display: block; margin: -.15rem 0 .3rem; color: var(--ink-soft); font-size: .82rem; line-height: 1.5; }
.optional { color: var(--ink-soft); font-size: .75rem; font-weight: 400; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.5rem; font-size: .9rem; line-height: 1.5; }
.form-consent input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; accent-color: var(--forest); }
.turnstile-widget { min-height: 4.25rem; margin: 0 0 1.35rem; }
.turnstile-widget[hidden] { display: none; }
.form-submit { min-width: 13rem; font-family: inherit; cursor: pointer; }
.form-submit:disabled { border-color: #819386; background: #819386; cursor: not-allowed; transform: none; }
.form-message { margin: 1rem 0 0; padding: .8rem 1rem; border-left: 4px solid var(--rust); background: #f4ecd2; font-size: .9rem; }
.form-message:empty { display: none; }
.form-message.is-success { border-left-color: var(--leaf); background: #e8eddf; }
.foster-photo-credit { max-width: 1300px; margin: -1rem auto 0; padding: 0 clamp(1.25rem, 5vw, 4.25rem) 2.5rem; color: var(--ink-soft); font-size: .8rem; }

@media (max-width: 900px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .main-nav { flex-wrap: wrap; row-gap: .5rem; }
  .hero, .hero-inner { min-height: 590px; }
  .hero-copy { width: min(60%, 33rem); }
  .meet-section, .care-section { gap: 2.5rem; }
  .foster-form-section { gap: 2.5rem; }
}

@media (max-width: 640px) {
  .header-inner { padding-top: 1rem; padding-bottom: 1rem; }
  .wordmark-main { font-size: 1.45rem; }
  .main-nav { gap: .75rem 1.1rem; }
  .main-nav a { font-size: .79rem; }
  .hero { min-height: 760px; }
  .hero::before { inset: 35% 0 0; }
  .hero::after { background: linear-gradient(180deg, #f8f5e9 0%, rgba(248,245,233,.98) 37%, rgba(248,245,233,.12) 68%, rgba(17,49,39,.2) 100%); }
  .hero-inner { align-items: flex-start; min-height: 760px; padding-top: 3rem; padding-bottom: 9rem; }
  .hero-copy { width: 100%; }
  .hero-intro { max-width: 29rem; font-size: 1rem; }
  h1 { font-size: clamp(3.2rem, 14vw, 4.5rem); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, 190px); grid-template-areas: 'a a' 'a a' 'b c' 'd e' 'f f'; gap: .55rem; }
  .photo-credit ul { columns: 1; }
  .announcement { gap: .6rem; }
  .announcement-mark { display: none; }
  .meet-section, .care-section, .support-section, .foster-section { grid-template-columns: 1fr; }
  .foster-page-hero::before { inset: 30% 0 0; }
  .foster-page-hero::after { background: linear-gradient(180deg, #e7eddf 0%, rgba(231,237,223,.96) 42%, rgba(231,237,223,.22) 75%); }
  .foster-page-hero-inner { align-items: flex-start; min-height: 580px; padding-top: 3rem; }
  .foster-page-hero-inner > div { max-width: 31rem; }
  .foster-form-section, .form-row, .care-fields { grid-template-columns: 1fr; }
  .foster-form { margin-right: .7rem; }
  .meet-section { gap: 2rem; }
  .empty-card { margin-right: .7rem; }
  .garden-divider { height: 210px; }
  .garden-divider img { object-position: 50% 58%; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
  .step-number { margin: 0; font-size: 2.2rem; }
  .care-section, .support-section { gap: 2rem; }
  .foster-art, .foster-art img { min-height: 260px; max-height: 360px; }
  .foster-art img { object-position: center 45%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-status { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
