:root {
  --ink: #17211f;
  --ink-soft: #52615c;
  --muted: #7b8883;
  --paper: #f6f4ef;
  --surface: #fffdf8;
  --soft: #ece7dd;
  --line: #d8d0c2;
  --green: #286653;
  --green-soft: #d9e8df;
  --blue: #315f7d;
  --blue-soft: #dce9ef;
  --clay: #b75f3b;
  --clay-soft: #f0d9cc;
  --gold: #9c7a2f;
  --gold-soft: #f1e4bc;
  --shadow: 0 18px 48px rgba(23, 33, 31, .12);
  --radius: 8px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.45;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green-soft);
  outline-offset: 3px;
}

.page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0 24px;
}

.site-masthead {
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: #0f5a46;
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.brand::before {
  width: 48px;
  height: 40px;
  flex: 0 0 auto;
  background: currentColor;
  clip-path: path("M26.1 18.2c5.7 0 11.3 5.3 12.4 10.4.8 3.9-1.7 6.6-5.7 5.9-2-.4-3.7-1.4-5.9-1.4-2.1 0-4.1 1.1-6.2 1.4-4 .6-6.3-2.2-5.4-6.1 1.2-5.2 5.5-10.2 10.8-10.2ZM12.9 16.7c2.6-.8 5.4 1.3 6.2 4.5.8 3.3-.7 6.4-3.3 7.1-2.7.7-5.5-1.3-6.3-4.6-.8-3.2.7-6.3 3.4-7ZM36.8 14.7c2.7.4 4.5 3.3 4 6.7-.5 3.3-3.1 5.7-5.8 5.3-2.7-.4-4.5-3.4-4-6.7.5-3.3 3.1-5.7 5.8-5.3ZM18.1 5.9c2.6-.4 5.1 2.1 5.7 5.5.5 3.4-1.1 6.5-3.8 6.9-2.6.4-5.1-2.1-5.7-5.5-.5-3.4 1.2-6.5 3.8-6.9ZM29.5 4.7c2.7.3 4.6 3.3 4.3 6.7-.4 3.4-2.9 5.9-5.6 5.6-2.7-.3-4.6-3.3-4.3-6.7.4-3.4 2.9-5.9 5.6-5.6Z");
  content: "";
}

.brand .dot {
  display: none;
}

.crumb {
  color: var(--muted);
  font-size: 13px;
}

.static-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.static-nav a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.static-nav a:hover,
.static-nav a[aria-current="page"] {
  background: var(--green-soft);
  color: var(--green);
}

.eyebrow {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
  letter-spacing: -.045em;
}

.lede {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.home-hero,
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: clamp(48px, 9vw, 112px) 0 clamp(42px, 7vw, 80px);
}

.home-hero h1,
.about-hero h1 {
  max-width: 820px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.home-callout {
  padding: 24px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: white;
  box-shadow: var(--shadow);
}

.home-callout .eyebrow {
  color: #c7e7d9;
}

.home-callout p {
  margin: 12px 0 0;
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.05;
}

.prototype-section {
  padding: clamp(32px, 6vw, 72px) 0 8px;
  border-top: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .74fr);
  gap: 24px;
  align-items: end;
}

.section-intro h2,
.about-copy h2,
.about-next h2 {
  margin: 8px 0 0;
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -.04em;
  line-height: 1;
}

.section-intro p {
  max-width: 500px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.about-page {
  padding-bottom: 4px;
}

.about-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  align-items: center;
  padding-top: clamp(42px, 7vw, 86px);
}

.about-hero-with-art {
  min-height: min(44vw, 500px);
}

.about-hero-art {
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(10px, 2vw, 22px) 0;
}

.about-hero-art svg {
  display: block;
  width: min(100%, 360px);
  height: auto;
}

.about-paw-mark { fill: var(--green); }

.about-hero-art figcaption {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.about-hero-media {
  margin: 0;
}

.about-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.12 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-hero-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.about-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(30px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}

.about-copy section {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.about-copy h2 {
  min-height: 2.1em;
  font-size: clamp(25px, 2.5vw, 34px);
}

.about-copy p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.about-next {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--green-soft);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }

.card, .panel, .phone, .desktop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 22px;
  text-decoration: none;
}

.card h2, .card h3, .panel h2, .panel h3 {
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.card p, .panel p {
  margin: 0;
  color: var(--ink-soft);
}

.stage {
  margin-top: 34px;
}

.phone {
  width: 390px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.desktop {
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf6;
}

.screen {
  padding: 18px;
}

.browser {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px 14px;
  background: #e9e4d9;
  border-bottom: 1px solid var(--line);
}

.browser span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b9b0a2;
}

.url {
  flex: 1;
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.btn.ghost {
  background: transparent;
}

.input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

label.chip {
  cursor: pointer;
  gap: 6px;
}

label.chip input[type="checkbox"] {
  margin: 0;
  accent-color: var(--green);
}

.chip.green { background: var(--green-soft); color: var(--green); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.clay { background: var(--clay-soft); color: var(--clay); }
.chip.gold { background: var(--gold-soft); color: var(--gold); }

button.chip {
  border: 1px dashed var(--line);
  cursor: pointer;
  font: inherit;
}

button.chip[aria-pressed="true"],
button.chip.green {
  border-style: solid;
  border-color: var(--green);
}

button.chip:focus-visible {
  outline: 3px solid var(--green-soft);
  outline-offset: 2px;
}

.filter-group {
  margin-bottom: 14px;
}

.filter-group legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin: 22px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }

.shelter-row, .approval-row, .note-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.shelter-row:last-child, .approval-row:last-child, .note-row:last-child { border-bottom: 0; }

.animal-card {
  overflow: hidden;
}

.media {
  position: relative;
  min-height: 220px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.55), transparent 24%),
    linear-gradient(135deg, #d8c5aa, #8ea79b 55%, #354f49);
}

.media.cat {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.55), transparent 24%),
    linear-gradient(135deg, #dcc7bd, #9c7a7e 55%, #53403f);
}

.media.other {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.55), transparent 24%),
    linear-gradient(135deg, #e2d8b8, #a3b783 55%, #4e6448);
}

.media::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 118px;
  height: 70px;
  transform: translateX(-50%);
  border-radius: 56px 58px 42px 42px;
  background: rgba(23,33,31,.82);
  box-shadow: -44px -18px 0 -24px rgba(23,33,31,.82), 44px -18px 0 -24px rgba(23,33,31,.82);
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
}

.dots span:first-child { background: white; }

.animal-body {
  padding: 14px;
}

.animal-body h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.heart {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clay);
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf6;
  overflow-x: auto;
}

.tab {
  padding: 13px 10px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.tab.on {
  color: var(--ink);
  border-bottom-color: var(--green);
}

.textarea {
  min-height: 150px;
  resize: vertical;
}

.suggestion {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #fbfaf6;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfaf6;
}

.metric .num {
  display: block;
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.note {
  padding: 14px;
  border-left: 3px solid var(--green);
  background: #fbfaf6;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .grid.two, .grid.three, .grid.sidebar, .split {
    grid-template-columns: 1fr;
  }

  .masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero,
  .about-hero,
  .section-intro,
  .about-copy {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .about-hero {
    padding-top: 44px;
  }

  .about-copy h2 {
    min-height: 0;
  }

  .about-next {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-row {
    grid-template-columns: 1fr;
  }
}
