/* ---------- tokens ---------- */
:root {
  --bg: #fdf7f5;
  --surface: #ffffff;
  --ink: #2a2226;
  --muted: #6f6169;
  --line: #f0e0e6;
  --accent: #cf3f7a;
  --accent-ink: #ffffff;
  --soft: #fbe9f0;
  --lilac: #8f6fc4;
  --lilac-soft: #efe8f8;
  --sky: #d9edf4;
  --sky-ink: #27596a;
  --danger: #d6453d;
  --danger-soft: #fdecea;
  --ok: #24693a;
  --ok-soft: #e4f3e6;

  --tier-bg: #1f181d;
  --tier-row: #2a2129;
  --tier-chip: #3b2f38;
  --tier-chip-ink: #f8eef3;
  --tier-note: #bfadb8;
  --top: #ff8fb1;
  --mid: #ffd97a;
  --dead: #9fb3c9;
  --banned: #ff6b6b;

  --paw-ink: rgba(207, 63, 122, .08);
  --radius: 14px;
  --display: "Fredoka", "Avenir Next Rounded", "Nunito", system-ui, sans-serif;
  --script: "Caveat", "Bradley Hand", "Segoe Script", cursive;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  /* Late-night lap dog: plum panels, cream text, candy-pink accent. */
  :root {
    color-scheme: dark;
    --bg: #221920;
    --surface: #2e232a;
    --ink: #f8eef3;
    --muted: #c3b1ba;
    --line: #45353d;
    --accent: #ff8fb8;
    --accent-ink: #2a1a22;
    --soft: #3b2a34;
    --lilac: #c0a8ea;
    --lilac-soft: #382d47;
    --sky: #26414c;
    --sky-ink: #cfe9f3;
    --danger: #ff7a8a;
    --danger-soft: #4a2437;
    --ok: #a6f0c2;
    --ok-soft: #274a3a;
    --tier-bg: #17111500;
    --tier-bg: #171115;
    --tier-row: #231a20;
    --tier-chip: #34282f;
    --paw-ink: rgba(255, 143, 184, .07);
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
.wrap { max-width: 900px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: 1.75rem; display: flex; align-items: center; gap: .5em; }
h3 { font-size: 1.2rem; margin-top: 1.5em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
ul { padding-left: 1.3em; }
strong { font-weight: 650; }
section { padding-block: 44px; }
section + section { border-top: 1px solid var(--line); }
.hint { color: var(--muted); font-size: .95rem; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.btn {
  display: inline-block; text-decoration: none; font-family: var(--display); font-weight: 600;
  background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 999px;
}
.btn:hover { filter: brightness(1.05); }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; background: #3b3538;
  min-height: clamp(360px, 56vw, 640px);
  display: grid; align-items: end;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 51% 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 35%, rgba(24,10,18,.78) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: 48px 40px; width: 100%; }
.eyebrow {
  font-family: var(--display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: .8rem; color: #ffb3cd; margin-bottom: .4em;
}
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 6.5rem); font-weight: 700; letter-spacing: .05em; line-height: .95;
  color: #ffc0d5; margin: 0 0 .1em; text-shadow: 0 4px 28px rgba(0,0,0,.45);
}
.hero .aka {
  display: block; font-family: var(--script); font-weight: 600; letter-spacing: 0; text-transform: none;
  font-size: clamp(1.4rem, 3.2vw, 2rem); color: #fff; margin-top: .25em; line-height: 1.1;
}
.lede { font-size: 1.2rem; max-width: 44ch; }
.hero .lede { color: #f9eef3; margin-bottom: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 500; font-size: .9rem;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .15s, color .15s, background .15s;
}
.nav a:hover { border-color: var(--accent); color: var(--accent); }
.nav a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nav .brand { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.nav .brand img { width: 1.5em; height: 1.5em; border-radius: 50%; object-fit: cover; }

/* ---------- section headings ---------- */
.badge {
  display: inline-grid; place-items: center; flex: none;
  width: 1.6em; height: 1.6em; border-radius: 12px; background: var(--soft); font-size: .8em;
}
h2 .anchor { margin-left: auto; font-size: .8em; font-weight: 500; color: var(--line); text-decoration: none; opacity: 0; transition: opacity .15s; }
h2:hover .anchor, h2 .anchor:focus-visible { opacity: 1; }
h2 .anchor:hover { color: var(--accent); }
section:target h2 { color: var(--accent); }

/* ---------- text + photo layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.split.flip { grid-template-columns: 300px minmax(0, 1fr); }
.split.flip > .photo { order: -1; }
.photo {
  display: block; margin: 8px 0 0; border-radius: 20px; overflow: hidden;
  border: 4px solid var(--surface); box-shadow: 0 18px 40px -18px rgba(0,0,0,.55);
  transform: rotate(1.5deg); transition: transform .2s; background: var(--surface);
}
.photo:nth-of-type(even), .flip .photo { transform: rotate(-1.5deg); }
.photo:hover { transform: rotate(0) scale(1.02); }
.photo img { display: block; width: 100%; height: auto; }
.photo.round { border-radius: 50%; aspect-ratio: 1; }
.photo.round img { height: 100%; object-fit: cover; }
.photo figcaption { padding: 8px 12px 10px; font-size: .85rem; color: var(--muted); font-family: var(--display); }
@media (max-width: 720px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > .photo { order: 0; }
  .photo { max-width: 340px; margin-inline: auto; }
}

/* ---------- cheat sheet ---------- */
.tldr { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .tldr { grid-template-columns: repeat(3, 1fr); } }
.tldr li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tldr .k { display: block; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.tldr .v { font-weight: 600; }
.tldr .s { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.tldr .s.danger { color: var(--danger); font-weight: 650; }

/* ---------- cards / rules ---------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cards li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.cards .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); font-size: 1.4rem; }
.cards p { margin: 0; }
.cards p + p { margin-top: .4em; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.steps li {
  counter-increment: step; position: relative; padding: 14px 16px 14px 60px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 700;
}

/* ---------- callouts ---------- */
.callout { background: var(--soft); border-left: 5px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin-block: 20px; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .3em; color: var(--accent); }
.callout.danger { background: var(--danger-soft); border-left-color: var(--danger); }
.callout.danger .callout-title { color: var(--danger); }
.callout.lilac { background: var(--lilac-soft); border-left-color: var(--lilac); }
.callout.lilac .callout-title { color: var(--lilac); }
.callout.sky { background: var(--sky); border-left-color: var(--sky-ink); }
.callout.sky .callout-title { color: var(--sky-ink); }
.callout .big { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }

/* ---------- schedule table ---------- */
.table-scroll { overflow-x: auto; }
.schedule {
  width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.schedule th, .schedule td { padding: 14px 16px; text-align: left; vertical-align: top; }
.schedule thead th {
  font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--soft);
}
.schedule tbody tr + tr td { border-top: 1px solid var(--line); }
.schedule .time { font-family: var(--display); font-weight: 700; color: var(--accent); white-space: nowrap; font-size: 1.05rem; }
.schedule .food { font-weight: 650; }
.schedule .sub { font-weight: 400; color: var(--muted); }
.tag {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.tag.you { background: var(--soft); color: var(--accent); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.opt { background: var(--lilac-soft); color: var(--lilac); }
@media (max-width: 640px) {
  .schedule { min-width: 0; }
  .schedule thead { display: none; }
  .schedule, .schedule tbody, .schedule tr, .schedule td { display: block; }
  .schedule tr { padding: 14px 16px; }
  .schedule tbody tr + tr { border-top: 1px solid var(--line); }
  .schedule tbody tr td, .schedule tbody tr + tr td { padding: 0; border-top: 0; }
  .schedule .time { display: inline; margin-right: 10px; }
  .schedule td:last-child { margin-top: 6px; color: var(--muted); }
}

/* ---------- tier lists ---------- */
.tierlist {
  background: var(--tier-bg); border-radius: var(--radius); padding: 6px; display: grid; gap: 6px;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); margin-top: 16px;
}
.tier { display: grid; grid-template-columns: 112px 1fr; background: var(--tier-row); border-radius: 10px; overflow: hidden; min-height: 108px; }
.tier-label {
  display: grid; place-items: center; text-align: center; padding: 8px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; color: #1a1a1a;
}
.tier-top .tier-label { background: var(--top); }
.tier-mid .tier-label { background: var(--mid); }
.tier-dead .tier-label { background: var(--dead); }
.tier-banned .tier-label { background: var(--banned); }
.tier-items { list-style: none; margin: 0; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.tier-items li {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 112px; min-height: 92px; padding: 8px 6px; border-radius: 10px;
  background: var(--tier-chip); color: var(--tier-chip-ink); text-align: center; font-size: .82rem; line-height: 1.2; font-weight: 600;
}
.tier-items .ico { font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.tier-items .note { display: block; margin-top: 4px; font-weight: 400; font-size: .72rem; color: var(--tier-note); }
.tier-items li.ghost { width: auto; min-height: 0; background: transparent; color: var(--tier-note); font-weight: 400; font-style: italic; align-self: center; padding-inline: 10px; }
@media (max-width: 560px) {
  .tier { grid-template-columns: 78px 1fr; min-height: 96px; }
  .tier-label { font-size: .9rem; letter-spacing: .02em; }
  .tier-items li { width: 94px; min-height: 84px; font-size: .76rem; }
  .tier-items .ico { font-size: 1.7rem; }
}

/* ---------- contacts ---------- */
.contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contacts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.contacts .who { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.contacts .num { font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; color: var(--ink); display: inline-block; }
.contacts .num:hover { color: var(--accent); }
.contacts .links { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.contacts .links a {
  text-decoration: none; font-family: var(--display); font-weight: 600; font-size: .85rem;
  padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--accent);
}
.contacts .links a:hover { background: var(--accent); color: var(--accent-ink); }
.contacts address { font-style: normal; color: var(--muted); }
.vet { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.vet .who { color: var(--danger); }

/* ---------- gallery ---------- */
.gallery { columns: 3 220px; column-gap: 12px; margin-top: 8px; }
.gallery figure { break-inside: avoid; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; cursor: zoom-in; background: #000; }
.gallery figcaption { padding: 10px 12px; font-size: .88rem; color: var(--muted); line-height: 1.35; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 960px); max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.86); }
.lightbox img { display: block; max-width: 96vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; border-radius: 12px; cursor: zoom-out; }
.lightbox p { margin: 10px 0 0; text-align: center; color: #eee; font-size: .95rem; }
.lb-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-size: 1.5rem; line-height: 1;
}

/* ---------- thank you ---------- */
.thanks .split { align-items: center; }
.blob {
  position: relative; display: grid; place-items: center; min-height: 280px; padding: 30px;
  background:
    radial-gradient(closest-side at 40% 45%, rgba(255,120,180,.55), transparent 90%),
    radial-gradient(closest-side at 65% 60%, rgba(180,120,230,.45), transparent 85%),
    radial-gradient(closest-side at 55% 35%, rgba(255,190,215,.9), transparent 80%);
  filter: saturate(1.05);
}
.blob h2 {
  font-family: var(--script); font-weight: 700; font-size: clamp(3rem, 8vw, 4.6rem); line-height: 1; margin: 0;
  color: var(--ink); transform: rotate(-4deg); display: block;
}
.thanks .from { text-align: center; color: var(--muted); font-family: var(--display); margin-top: 8px; }

/* ---------- footer ---------- */
footer { padding-block: 40px; color: var(--muted); text-align: center; font-size: .9rem; border-top: 1px solid var(--line); }
footer p { margin: 0 0 8px; }

/* ---------- paw prints ---------- */
.paws { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; fill: var(--paw-ink); }
.paws use { transform-box: fill-box; transform-origin: center; animation: paw-spin 90s linear infinite; }
.paws use.rev { animation-direction: reverse; }
@keyframes paw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .paws use { animation: none; }
  .photo, .photo:hover { transform: none; }
}

/* ---------- print ---------- */
@media print {
  .nav, .paws, footer, .lightbox, .gallery, .skip { display: none !important; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero-img, .hero::after { display: none; }
  .hero h1, .hero .aka, .hero .lede, .eyebrow { color: #000; text-shadow: none; }
  section { padding-block: 18px; break-inside: avoid; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .photo { display: none; }
  .cards li, .steps li, .tldr li, .contacts li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .tierlist { background: #fff; border: 1px solid #ccc; }
  .tier { background: #fff; }
  .tier-items li { background: #f2f2f2; color: #000; }
}
