/* ==========================================================================
   Little Alpine Berners — Mini Bernese
   Design system: forest, ivory & a single rust accent drawn from the
   Bernese tricolor. Editorial serif + friendly sans. Arch-top portraits.
   ========================================================================== */

:root {
  --forest: #23302a;
  --forest-2: #2f3f37;
  --moss: #56684f;
  --sage: #a8b4a0;
  --sage-soft: #e6ebe1;
  --cream: #f4ecdf;
  --ivory: #fbf8f2;
  --paper: #fffdf9;
  --bark: #6b4f3a;
  --rust: #9e4f27;
  --rust-soft: #f3e3d6;
  --ink: #26261f;
  --muted: #62625a;
  --line: #e3dbcc;
  --line-dark: rgba(255, 255, 255, .14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(.84rem, .82rem + .1vw, .9rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + .35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + .7vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.6vw, 4rem);
  --step-5: clamp(2.7rem, 2rem + 3.6vw, 5.1rem);

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-s: clamp(1rem, 2vw, 1.5rem);
  --space-m: clamp(2rem, 4vw, 3rem);
  --space-l: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 18px;
  --radius-s: 10px;
  --arch: 999px 999px var(--radius) var(--radius);
  --shadow: 0 1px 2px rgba(35, 48, 42, .05), 0 12px 32px -18px rgba(35, 48, 42, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 var(--step-0)/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--rust); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.012em; color: var(--forest); margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--rust-soft); }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--forest); color: #fff; padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding-block: var(--space-l); }
.section--tight { padding-block: var(--space-m); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest); color: #e9ece6; }
.section--forest h2, .section--forest h3 { color: #fff; }
.section--forest a:hover { color: #f0c3a4; }

/* Eyebrow with the tricolor mark */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font: 600 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.eyebrow::before { content: ""; width: 26px; height: 8px; flex: none; background:
  radial-gradient(circle at 4px 4px, var(--forest) 3.2px, transparent 3.6px),
  radial-gradient(circle at 13px 4px, var(--rust) 3.2px, transparent 3.6px),
  radial-gradient(circle at 22px 4px, #fff 2.4px, var(--forest) 2.6px, var(--forest) 3.4px, transparent 3.8px); }
.section--forest .eyebrow { color: var(--sage); }
.section--forest .eyebrow::before { background:
  radial-gradient(circle at 4px 4px, #0e1411 3.2px, transparent 3.6px),
  radial-gradient(circle at 13px 4px, #c77247 3.2px, transparent 3.6px),
  radial-gradient(circle at 22px 4px, #fff 3.2px, transparent 3.6px); }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--muted); max-width: 42rem; }
.section--forest .lede { color: #c8cfc4; }
.hook { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--bark); }
.chapter { display: block; font: italic 400 var(--step-1)/1 var(--serif); color: var(--rust); margin-bottom: .6rem; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn { --bg: var(--forest); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--bg); background: var(--bg); color: var(--fg); font: 600 var(--step--1)/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn:hover { --bg: var(--forest-2); color: #fff; transform: translateY(-1px); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--forest); border-color: color-mix(in srgb, var(--forest) 30%, transparent); }
.btn--ghost:hover { --bg: var(--forest); color: #fff; }
.btn--light { --bg: var(--ivory); --fg: var(--forest); }
.btn--light:hover { --bg: #fff; color: var(--forest); }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { --bg: rgba(255,255,255,.1); border-color: #fff; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--forest); text-decoration: none; border-bottom: 1.5px solid color-mix(in srgb, var(--rust) 55%, transparent); padding-bottom: 2px; }
.link:hover { color: var(--rust); border-color: var(--rust); }
.link .icon { transition: transform .2s var(--ease); }
.link:hover .icon { transform: translateX(3px); }
.section--forest .link { color: #fff; border-color: #c77247; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(35, 48, 42, .4); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--forest); margin-right: auto; }
.brand:hover { color: var(--forest); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 500 1.45rem/1 var(--serif); letter-spacing: -.01em; }
.brand__sub { font: 600 .62rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--moss); margin-top: .35rem; }
.custom-logo { max-height: 56px; width: auto; }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.primary-nav a { display: block; padding: .55rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); }
.primary-nav a:hover { color: var(--forest); background: var(--sage-soft); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_item > a { color: var(--forest); box-shadow: inset 0 -2px 0 var(--rust); border-radius: 0; }
.primary-nav .menu-item-has-children { position: relative; display: flex; align-items: center; }
.submenu-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -.5rem; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink); }
.submenu-toggle .icon { transition: transform .2s; }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + .4rem); left: 0; min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.primary-nav .menu-item-has-children.is-open > .sub-menu,
.primary-nav .menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { border-radius: 8px; padding: .55rem .8rem; }
.primary-nav .sub-menu .current-menu-item > a { box-shadow: none; background: var(--sage-soft); border-radius: 8px; }
.header-cta { flex: none; }
.nav-toggle { display: none; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--forest); font: 600 .9rem var(--sans); cursor: pointer; }
.nav-panel__head, .nav-panel__foot { display: none; }

@media (max-width: 1080px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav-panel { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--forest); color: #fff; z-index: 100; display: flex; flex-direction: column; padding: 1.25rem 1.5rem 1.5rem; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; overflow-y: auto; }
  .nav-panel.is-open { transform: none; visibility: visible; }
  .nav-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
  .nav-panel__head .brand { color: #fff; }
  .nav-panel__head .brand__sub { color: var(--sage); }
  .nav-close { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; color: #fff; cursor: pointer; }
  .primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav .menu > li { border-bottom: 1px solid var(--line-dark); flex-wrap: wrap; }
  .primary-nav a { color: #fff; font: 400 1.5rem/1.2 var(--serif); padding: 1rem 0; border-radius: 0; flex: 1; }
  .primary-nav a:hover { background: none; color: #f0c3a4; }
  .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { box-shadow: none; color: #f0c3a4; }
  .submenu-toggle { width: 48px; height: 48px; color: #fff; margin: 0; }
  .primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0 0 .8rem .2rem; min-width: 0; width: 100%; display: none; }
  .primary-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
  .primary-nav .menu-item-has-children:hover > .sub-menu { display: none; }
  .primary-nav .menu-item-has-children.is-open:hover > .sub-menu { display: block; }
  .primary-nav .sub-menu a { font: 500 1.05rem var(--sans); padding: .6rem 0; color: #d9ded5; }
  .primary-nav .sub-menu .current-menu-item > a { background: none; color: #f0c3a4; }
  .nav-panel__foot { display: grid; gap: .75rem; margin-top: auto; padding-top: 2rem; }
  .nav-panel__foot p { color: var(--sage); font-size: .9rem; margin: 0; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(20, 26, 22, .45); z-index: 90; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Photo frames ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--arch { border-radius: var(--arch); }
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--square { aspect-ratio: 1; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--tall { aspect-ratio: 3 / 4; }
.ph { position: relative; width: 100%; height: 100%; min-height: 100%; display: grid; place-items: center; background:
  radial-gradient(120% 80% at 50% 110%, color-mix(in srgb, var(--sage) 45%, transparent), transparent 60%),
  linear-gradient(180deg, var(--cream), color-mix(in srgb, var(--cream) 70%, var(--sage-soft))); color: color-mix(in srgb, var(--moss) 60%, transparent); }
.frame .ph { position: absolute; inset: 0; }
.ph__art { width: 38%; max-width: 160px; }
.ph__label { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); width: 80%; text-align: center; font-size: .78rem; color: var(--moss); }
.ph__edit { position: absolute; top: 12px; right: 12px; background: var(--forest); color: #fff; font-size: .78rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; text-decoration: none; }

/* ---------- Editor prompt (logged-in only) ---------- */
.hw-prompt { margin: 1rem 0; padding: .8rem 1rem; border: 1.5px dashed var(--rust); border-radius: 12px; background: var(--rust-soft); color: #5e2f16; font-size: .9rem; line-height: 1.5; }
.hw-prompt a { color: #5e2f16; font-weight: 600; }
.section--forest .hw-prompt { background: #3a2a20; color: #f4d9c6; border-color: #c77247; }
.section--forest .hw-prompt a { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) var(--space-l); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.hero__title { font-size: var(--step-5); font-weight: 400; line-height: 1.02; letter-spacing: -.025em; margin-bottom: 1.4rem; }
.hero__title em { font-style: italic; color: var(--rust); }
.hero__lede { font-size: var(--step-1); color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero__media { position: relative; }
.hero__media .frame { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.hero__note { position: absolute; left: -2.2rem; bottom: 2.4rem; max-width: 230px; background: var(--paper); border-radius: 14px; padding: .95rem 1.1rem; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.45; }
.hero__note strong { display: block; font: 500 1.05rem/1.2 var(--serif); color: var(--forest); margin-bottom: .2rem; }
.hero__note { color: var(--rust); text-decoration: none; font-weight: 600; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hero__note:hover { transform: translateY(-2px); color: var(--rust); }
.hero__note:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.hero__ring { position: absolute; right: -3rem; top: -2.5rem; width: 180px; height: 180px; border-radius: 50%; border: 1px solid var(--line); z-index: -1; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.2rem; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.hero__facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__facts .icon { color: var(--moss); }

/* ---------- Split / editorial ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media .frame { aspect-ratio: 4 / 5; }
.split__media--offset .frame + .frame { position: absolute; width: 44%; right: -6%; bottom: -8%; aspect-ratio: 1; border: 6px solid var(--ivory); border-radius: 50%; }
.signature { margin-top: 1.5rem; font: italic 400 1.3rem var(--serif); color: var(--bark); }
.note-card { background: var(--paper); border-left: 3px solid var(--rust); border-radius: 0 12px 12px 0; padding: 1.1rem 1.3rem; margin: 1.5rem 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; color: var(--forest); }

/* ---------- Trait tiles ---------- */
.traits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: var(--space-m); }
.trait { background: var(--ivory); padding: clamp(1.4rem, 3vw, 2rem); }
.trait__word { font: italic 400 var(--step-2)/1 var(--serif); color: var(--forest); margin-bottom: .6rem; }
.trait p { font-size: .95rem; color: var(--muted); margin: 0; }
.trait .trait__word { font: italic 400 var(--step-2)/1 var(--serif); color: var(--forest); margin-bottom: .6rem; }
.section--cream .trait { background: var(--cream); }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: var(--space-m); }
.section-head > div { max-width: 40rem; }
.section-head h2 { margin-bottom: .3rem; }
.section-head .lede { margin: 0; }

/* ---------- Puppy cards ---------- */
.pups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(1.25rem, 3vw, 2.2rem); }
.pup { position: relative; display: flex; flex-direction: column; }
.pup__media { position: relative; display: block; border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream); }
.pup__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pup:hover .pup__media img { transform: scale(1.035); }
.pup__status { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font: 600 .74rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; background: var(--paper); color: var(--forest); box-shadow: 0 4px 14px -8px rgba(0,0,0,.35); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--available { color: #2f6b45; }
.status--coming_soon { color: #3c6389; }
.status--reserved { color: var(--rust); }
.status--adopted { color: var(--muted); }
.pup__body { padding: 1.1rem .25rem 0; display: flex; flex-direction: column; flex: 1; }
.pup__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pup__name { font-size: var(--step-2); margin: 0; }
.pup__name a { text-decoration: none; }
.pup__name a::after { content: ""; position: absolute; inset: 0; }
.pup__price { font-weight: 600; color: var(--forest); white-space: nowrap; }
.pup__nick { font: italic 400 1.05rem/1.4 var(--serif); color: var(--bark); margin: .25rem 0 .6rem; }
.pup__facts { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0; padding: 0; list-style: none; font-size: .88rem; color: var(--muted); }
.pup__facts li + li::before { content: "·"; margin-right: .9rem; color: var(--sage); }
.pup--reserved .pup__media img, .pup--adopted .pup__media img { filter: saturate(.85); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-m); }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--ink); }
.chip span { color: var(--muted); font-size: .82rem; }
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip[aria-current="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip[aria-current="true"] span { color: var(--sage); }

.empty-state { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-m); align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); }
.empty-state h3 { font-size: var(--step-2); }

/* ---------- Journey (raising) ---------- */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: j; position: relative; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-dark); }
.journey li { position: relative; padding: 0 1.25rem 1.8rem 0; }
.journey__dot { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); border: 1px solid rgba(255,255,255,.3); font: italic 400 1rem var(--serif); color: #f0c3a4; margin-bottom: 1rem; }
.journey h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.journey p { font-size: .92rem; color: #c8cfc4; margin: 0; }
.journey__when { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: .3rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline > li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1.5rem; padding-bottom: var(--space-m); }
.timeline__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: #f0c3a4; font: italic 400 1rem var(--serif); position: relative; }
.timeline__when { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); font-weight: 600; }
.timeline h3 { font-size: var(--step-2); margin: .2rem 0 .5rem; }
.practice { margin-top: 1rem; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.practice__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); font-weight: 600; margin-bottom: .35rem; }
.practice p:last-child { margin: 0; }

/* ---------- Pillars / lists ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.pillar { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.section--forest .pillar { border-color: var(--line-dark); }
.pillar__icon { color: var(--rust); margin-bottom: .8rem; }
.section--forest .pillar__icon { color: #e19a73; }
.pillar h3 { margin-bottom: .4rem; }
.pillar p { color: var(--muted); font-size: .96rem; margin: 0; }
.section--forest .pillar p { color: #c8cfc4; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks .icon { flex: none; margin-top: .25rem; color: var(--moss); }
.ask-list { counter-reset: q; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.ask-list li { counter-increment: q; display: grid; grid-template-columns: 2.4rem minmax(0,1fr); gap: .6rem; }
.ask-list li::before { content: counter(q, decimal-leading-zero); font: italic 400 1.2rem var(--serif); color: var(--rust); }

/* ---------- Facts table (breed) ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--paper); padding: 1.25rem 1.4rem; }
.fact dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); font-weight: 600; margin-bottom: .35rem; }
.fact dd { margin: 0; font: 400 1.15rem/1.35 var(--serif); color: var(--forest); }
.fact small { display: block; font: 400 .85rem/1.5 var(--sans); color: var(--muted); margin-top: .3rem; }
.meter { display: flex; gap: 4px; margin-top: .5rem; }
.meter i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.meter i.on { background: var(--moss); }
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.callout { background: var(--sage-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.callout strong { color: var(--forest); }
.toc { position: sticky; top: 110px; font-size: .92rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.toc a { display: block; padding: .35rem 0 .35rem .9rem; border-left: 2px solid var(--line); text-decoration: none; color: var(--muted); }
.toc a:hover, .toc a.is-active { color: var(--forest); border-color: var(--rust); }
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.anchor { scroll-margin-top: 110px; }

/* ---------- Parents ---------- */
.parents { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.parent { position: relative; display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 1.25rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.parent:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.parent .frame { aspect-ratio: 4 / 5; border-radius: var(--arch); }
.parent__role { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); font-weight: 600; }
.parent h3 { font-size: var(--step-2); margin: .2rem 0 .3rem; }
.parent h3 a { text-decoration: none; }
.parent h3 a::after { content: ""; position: absolute; inset: 0; }
.parent p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }

/* ---------- Stories ---------- */
.stories { columns: 3 300px; column-gap: clamp(1.25rem, 3vw, 2rem); }
.story { break-inside: avoid; margin: 0 0 clamp(1.25rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.section--forest .story { background: var(--forest-2); border-color: var(--line-dark); }
.story__photo { margin: -1.6rem -1.6rem 1.25rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 4 / 3; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__stars { display: flex; gap: 2px; color: #b8793f; margin-bottom: .6rem; }
.story__stars .icon { fill: currentColor; stroke: none; }
.story__quote { margin: 0 0 1rem; font: 400 1.12rem/1.6 var(--serif); color: var(--forest); }
.section--forest .story__quote { color: #fff; }
.story__quote p:last-child { margin: 0; }
.story__by strong { display: block; }
.story__by span { font-size: .88rem; color: var(--muted); }
.section--forest .story__by span { color: var(--sage); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem .2rem; cursor: pointer; font: 500 var(--step-1)/1.35 var(--serif); color: var(--forest); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { flex: none; transition: transform .25s var(--ease); color: var(--rust); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__a { padding: 0 .2rem 1.3rem; color: var(--muted); max-width: 46rem; }
.faq__a p:last-child { margin: 0; }
.faq-group + .faq-group { margin-top: var(--space-m); }
.faq-group h2 { font-size: var(--step-2); }

/* ---------- Steps (process) ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); counter-reset: s; }
.process li { counter-increment: s; position: relative; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); }
.process li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #c77247; color: #fff; font: 500 1rem var(--serif); margin-bottom: .9rem; }
.process h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.process p { margin: 0; font-size: .93rem; color: #c8cfc4; }
.process--light li { background: var(--paper); border-color: var(--line); }
.process--light li::before { background: var(--forest); }
.process--light p { color: var(--muted); }
.empty-state .process, .process--light { grid-template-columns: 1fr; gap: .75rem; }
.empty-state .process li, .process--light li { display: grid; grid-template-columns: 34px 1fr; column-gap: 1rem; padding: 1rem 1.2rem; }
.empty-state .process li::before, .process--light li::before { grid-row: span 2; margin: 0; }
.empty-state .process h3, .process--light h3 { margin: 0; }

/* ---------- Invitation (final CTA) ---------- */
.invite { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-m); align-items: center; }
.invite .frame { aspect-ratio: 1; border-radius: 50%; max-width: 440px; justify-self: end; width: 100%; }
.invite h2 { font-size: var(--step-4); font-weight: 400; }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); }
.page-head h1 { max-width: 16em; }
.page-head .lede { margin-top: 1rem; }
.page-head--split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--space-m); align-items: end; }
.page-head--split .frame { aspect-ratio: 4 / 5; border-radius: var(--arch); max-height: 460px; }
.crumbs ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--sage); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Puppy profile ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.gallery__main { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream); position: relative; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .9rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.gallery__thumb { flex: none; width: 76px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--cream); opacity: .7; transition: .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-pressed="true"], .gallery__thumb:hover { opacity: 1; border-color: var(--rust); }
.profile__intro { position: sticky; top: 104px; }
.profile__name { font-size: var(--step-5); font-weight: 400; margin: .5rem 0 .2rem; }
.profile__nick { font: italic 400 var(--step-2)/1.3 var(--serif); color: var(--bark); margin-bottom: 1.4rem; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.spec-list div { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.spec-list div:nth-child(odd) { padding-right: 1rem; }
.spec-list dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); font-weight: 600; }
.spec-list dd { margin: .15rem 0 0; font-weight: 500; }
.price-line { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.price-line strong { font: 500 var(--step-3)/1 var(--serif); color: var(--forest); }
.price-line span { color: var(--muted); font-size: .92rem; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0 0 1.5rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: var(--sage-soft); color: #33452f; font-size: .8rem; font-weight: 600; }
.badge .icon { color: var(--moss); }
.profile__cta { display: grid; gap: .6rem; }
.profile__assist { font-size: .88rem; color: var(--muted); margin-top: .8rem; }
.status-note { padding: .9rem 1.1rem; border-radius: 12px; background: var(--rust-soft); color: #5e2f16; margin-bottom: 1.25rem; font-size: .95rem; }
.status-note--coming_soon { background: #e6eef6; color: #23405d; }
.status-note--adopted { background: var(--sage-soft); color: #33452f; }
.profile-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.profile-sections > section { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.profile-sections h2 { font-size: var(--step-2); }
.parent-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.parent-mini a { display: flex; gap: .9rem; align-items: center; text-decoration: none; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.parent-mini a:hover { border-color: var(--forest); color: inherit; }
.parent-mini .frame { width: 64px; height: 64px; flex: none; border-radius: 50%; }
.parent-mini small { display: block; color: var(--rust); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.parent-mini strong { font: 500 1.15rem var(--serif); color: var(--forest); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.6rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.form legend { display: flex; align-items: baseline; gap: .7rem; font: 500 var(--step-2)/1.2 var(--serif); color: var(--forest); margin-bottom: .4rem; padding: 0; }
.form legend span { font: italic 400 1rem var(--serif); color: var(--rust); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field .help { font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .95rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--moss) 25%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #9b221b; font-size: .84rem; }
.options { display: flex; flex-wrap: wrap; gap: .5rem; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: .93rem; }
.option input:checked + span { background: var(--forest); color: #fff; border-color: var(--forest); }
.option input:focus-visible + span { outline: 3px solid var(--rust); outline-offset: 2px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.consent input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--forest); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.5rem; }
.notice--error { background: #fbeae8; color: #7a1c16; border: 1px solid #f0c4bf; }
.notice--success { background: var(--sage-soft); color: #25361f; border: 1px solid #cbd6c3; }
.success-panel { text-align: center; padding: clamp(2rem, 5vw, 3.5rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.success-panel h2 { font-size: var(--step-3); }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.75rem); }
.apply-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.apply-aside { position: sticky; top: 104px; display: grid; gap: 1.25rem; }
.aside-card { background: var(--cream); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.aside-card h2, .aside-card h3 { font-size: 1.3rem; }
.aside-card ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .6rem; }
.aside-card p:last-child { margin-bottom: 0; }
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.contact-lines li { display: flex; gap: .6rem; align-items: center; }
.contact-lines .icon { color: var(--moss); flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #c8cfc4; padding-top: var(--space-l); font-size: .95rem; }
.site-footer a { color: #e9ece6; text-decoration: none; }
.site-footer a:hover { color: #f0c3a4; text-decoration: underline; }
.site-footer a.btn { color: var(--fg); text-decoration: none; }
.site-footer a.btn--light:hover { color: var(--forest); }
.footer-invite { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: var(--space-m); border-bottom: 1px solid var(--line-dark); }
.footer-invite h2 { color: #fff; font-size: var(--step-3); font-weight: 400; margin: 0; max-width: 18em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-m); padding-block: var(--space-m); }
.footer-grid h3 { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-grid .menu { columns: 2; display: block; }
.footer-grid .menu li { margin-bottom: .45rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand__sub { color: var(--sage); }
.socials { display: flex; gap: .5rem; margin-top: 1.2rem; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); }
.socials a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem; border-top: 1px solid var(--line-dark); font-size: .84rem; }
.footer-legal nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-disclaimer { font-size: .8rem; color: #9aa596; max-width: 60rem; padding-bottom: 1.4rem; margin: 0; }

/* ---------- Mobile action bar ---------- */
.mobile-cta { display: none; }

/* ---------- Reveal (progressive, respects reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey::before { display: none; }
  .with-toc { grid-template-columns: 1fr; }
  .toc { display: none; }
  .apply-layout { grid-template-columns: 1fr; }
  .apply-aside { position: static; }
}

@media (max-width: 860px) {
  .hero__grid, .split, .invite, .profile, .empty-state, .page-head--split { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
  .hero__media .frame { aspect-ratio: 5 / 5.2; }
  .hero__note { left: .8rem; bottom: 1rem; max-width: 70%; }
  .hero__ring { display: none; }
  .split--rev .split__media { order: 0; }
  .split__media .frame { aspect-ratio: 4 / 3.6; }
  .split__media--offset .frame + .frame { display: none; }
  .pillars, .process { grid-template-columns: 1fr; }
  .profile__intro { position: static; }
  .profile-sections { grid-template-columns: 1fr; }
  .invite .frame { justify-self: center; max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .page-head--split .frame { max-height: 360px; aspect-ratio: 4 / 3.5; border-radius: var(--radius); }
  .mobile-cta { display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ivory) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { flex: 1; min-height: 48px; padding-inline: .8rem; }
  body.has-mobile-cta { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 66px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 1.25rem; }
  .nav-toggle .label { display: none; }
  .traits { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .form__row, .spec-list, .parent-mini { grid-template-columns: 1fr; }
  .spec-list div:nth-child(odd) { padding-right: 0; }
  .btn-row .btn { flex: 1 1 100%; }
  .parent { grid-template-columns: 38% minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .menu { columns: 2; }
  .timeline > li { grid-template-columns: 36px minmax(0, 1fr); gap: 1rem; }
  .timeline__num { width: 36px; height: 36px; }
  .timeline::before { left: 17px; }
  .section-head { align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .mobile-cta, .nav-panel { display: none !important; }
}
