/* Very Serious Dog: site styles. One system for every page. See site/design-system.md. */

:root {
  /* colour: clean white, ink black, one accent (the hot pink from the art) */
  --paper: #fdfdfb;
  --wash: #f3f3f0;
  --wash-2: #ebebe7;
  --ink: #131313;
  --ink-2: #464644;
  --ink-3: #6a6a67;
  --line: rgba(19, 19, 19, 0.09);
  --line-2: rgba(19, 19, 19, 0.16);
  --pink: #ff2e88;
  --pink-ink: #c4005f;   /* pink for text on white, 5.6:1 */
  --pink-wash: #ffe8f2;
  --ok: #0d7a4e;
  --warn-wash: #fff4e0;
  --warn-ink: #7a4a00;

  /* type */
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* shape: buttons are pills, cards 24px, inputs 16px */
  --r-card: 24px;
  --r-inner: 18px;
  --r-input: 16px;

  /* space */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;

  /* motion tokens */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --t-fast: 140ms;
  --t-base: 240ms;
  --t-slow: 520ms;
  --t-reveal: 800ms;

  /* depth: tinted, diffuse */
  --shadow-1: 0 1px 2px rgba(19, 19, 19, 0.04), 0 8px 24px -12px rgba(19, 19, 19, 0.10);
  --shadow-2: 0 2px 4px rgba(19, 19, 19, 0.04), 0 24px 60px -24px rgba(19, 19, 19, 0.18);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--pink); }
:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pink); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "wdth" 92;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); letter-spacing: -0.015em; line-height: 1.12; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36ch; line-height: 1.5; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.hl { color: var(--pink-ink); }
.ink-mark { position: relative; white-space: nowrap; }
.ink-mark::after {
  content: ""; position: absolute; left: -0.06em; right: -0.06em; bottom: 0.04em; height: 0.24em;
  background: var(--pink); z-index: -1; border-radius: 2px; transform: skewX(-12deg) rotate(-1deg);
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--wash); color: var(--ink-2);
}

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; padding: 14px var(--gutter) 0; pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 8px 0 20px;
  border-radius: 999px;
  background: rgba(253, 253, 251, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.12rem; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(2.1); transform-origin: 50% 20%; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; font-size: 0.95rem; padding: 10px 14px; border-radius: 999px; color: var(--ink-2); transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.nav-links a:hover { background: var(--wash); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; background: var(--ink); padding: 5px 5px 5px 18px; }
.lbl-sm { display: none; }
@media (max-width: 760px) {
  .nav-links a.hide-sm { display: none; }
  .nav { padding-left: 14px; }
}
@media (max-width: 480px) {
  .lbl-lg { display: none; }
  .lbl-sm { display: inline; }
  .brand { font-size: 1.02rem; }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 6px 6px 6px 24px;
  border: 0; border-radius: 999px; background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { box-shadow: 0 10px 30px -12px rgba(19, 19, 19, 0.45); }
.btn:active { transform: scale(0.97); }
.btn .ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, 0.14);
  transition: transform var(--t-base) var(--ease-spring), background var(--t-base) var(--ease-out);
}
.btn:hover .ico { transform: translate(3px, -1px) scale(1.05); background: var(--pink); }
.btn.no-ico { padding: 0 26px; }
.btn.sm { min-height: 44px; font-size: 0.92rem; padding-left: 18px; }
.btn.sm .ico { width: 34px; height: 34px; }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost .ico { background: var(--wash); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover .ico { background: var(--ink); color: #fff; }
.btn.pink { --bg: var(--pink); --fg: #fff; }
.btn[disabled] { opacity: 0.35; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 10px 2px; font: 500 0.95rem var(--body); color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--line-2); }
.link-btn:hover { color: var(--ink); text-decoration-color: var(--pink); }
svg.i { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- bezel cards ---------- */
.bezel { padding: 6px; border-radius: var(--r-card); background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.bezel > .core { border-radius: var(--r-inner); background: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, var(--shadow-1); height: 100%; }
.art-frame { padding: 8px; border-radius: 30px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
.art-frame img { border-radius: 23px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.art-slot {
  border-radius: 23px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 24px;
  background: repeating-linear-gradient(-45deg, var(--wash) 0 12px, var(--paper) 12px 24px);
  color: var(--ink-3); font-size: 0.85rem; box-shadow: inset 0 0 0 1.5px var(--line-2);
}
body:not([data-dev="1"]) .art-slot-wrap { display: none; }
body[data-dev="1"] .dev-hide { display: none; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out), filter var(--t-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .reveal.in { opacity: 1; transform: none; filter: none; }
}

/* ---------- home ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero .lede { margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-art { position: relative; }
.hero-art .art-frame { transform: rotate(2.2deg); transition: transform var(--t-slow) var(--ease-spring); }
.hero-art:hover .art-frame { transform: rotate(0.6deg) scale(1.01); }
.hero-art .badge {
  position: absolute; left: -18px; bottom: 28px; transform: rotate(-4deg);
  background: var(--ink); color: #fff; padding: 12px 16px 12px 14px; border-radius: 16px;
  font-size: 0.86rem; line-height: 1.3; box-shadow: var(--shadow-2); max-width: 220px;
}
.hero-art .badge b { display: block; font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.01em; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; margin: 0 auto; width: 100%; order: -1; }
  .hero-art .art-frame { transform: rotate(1.4deg); }
  .hero-art .badge { left: 8px; bottom: 18px; }
  .hero h1 { margin-top: 18px; }
}

.section { padding: clamp(72px, 10vw, 144px) 0; }
.section.tight { padding: clamp(48px, 7vw, 96px) 0; }
.section-head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: 1.12rem; max-width: 56ch; }

.steps { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.step .core { padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.step .core p { color: var(--ink-2); }
.step-first .core { background: var(--ink); color: #fff; }
.step-first .core p { color: rgba(255, 255, 255, 0.74); }
.step-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--wash); }
.step-first .step-icon { background: var(--pink); color: #fff; }
.step-icon svg { width: 22px; height: 22px; }
.step-list { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.step-list li { font-size: 0.82rem; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.86); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.indie { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.indie-facts { display: grid; gap: 0; }
.fact { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact-n { font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; }
.fact h3 { margin-bottom: 6px; }
.fact p { color: var(--ink-2); }
@media (max-width: 860px) { .indie { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: end; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 14px; padding: 0 6px; }
.gallery figcaption b { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.015em; display: block; }
.gallery figcaption span { color: var(--ink-3); font-size: 0.92rem; }
.g1 { grid-column: span 5; }
.g2 { grid-column: span 4; transform: translateY(-40px); }
.g3 { grid-column: span 3; }
.g4 { grid-column: 3 / span 4; }
.g5 { grid-column: span 4; }
.gallery .art-frame { transition: transform var(--t-slow) var(--ease-spring); }
.gallery figure:nth-child(odd) .art-frame { transform: rotate(-1.4deg); }
.gallery figure:nth-child(even) .art-frame { transform: rotate(1.2deg); }
.gallery figure:hover .art-frame { transform: rotate(0deg) translateY(-4px); }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery > * { grid-column: auto !important; transform: none !important; }
  .gallery figure .art-frame { transform: none !important; }
}

.cta-band { border-radius: 36px; background: var(--ink); color: #fff; padding: clamp(40px, 7vw, 88px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.74); margin-top: 16px; max-width: 44ch; }
.cta-band .art-frame { background: #1f1f1f; box-shadow: none; transform: rotate(-3deg); max-width: 300px; justify-self: end; }
.cta-band .btn { --bg: #fff; --fg: var(--ink); margin-top: 30px; }
.cta-band .btn .ico { background: var(--wash); }
.cta-band .btn:hover .ico { background: var(--pink); color: #fff; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .art-frame { justify-self: start; max-width: 200px; } }

.breed-links { display: flex; flex-wrap: wrap; gap: 10px; }
.breed-links a { text-decoration: none; padding: 12px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 500; transition: box-shadow var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.breed-links a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.breed-links a:active { transform: scale(0.98); }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(56px, 8vw, 120px); padding: 48px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4, .foot-grid .foot-h { margin: 0 0 12px; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-honest { color: var(--ink-2); max-width: 46ch; font-size: 0.95rem; margin-top: 14px; }
.foot-base { margin-top: 36px; color: var(--ink-3); font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- dev banner ---------- */
.dev-banner { display: none; }
body[data-dev="1"] .dev-banner {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60;
  background: #fff8c5; color: #4d3d00; border-radius: 999px; padding: 8px 16px;
  font: 500 0.8rem/1.3 var(--mono); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), var(--shadow-2);
  max-width: calc(100vw - 24px);
}
.dev-banner b { font-weight: 700; }
@media (max-width: 600px) { body[data-dev="1"] .dev-banner { left: 12px; right: 12px; transform: none; bottom: 10px; border-radius: 12px; font-size: 0.7rem; flex-wrap: nowrap; } .dev-banner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* ---------- notices ---------- */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: var(--r-inner); background: var(--wash); color: var(--ink-2); font-size: 0.95rem; }
.notice svg { margin-top: 2px; color: var(--ink); }
.notice b { color: var(--ink); }
.notice.warn { background: var(--warn-wash); color: var(--warn-ink); }
.notice.warn svg, .notice.warn b { color: var(--warn-ink); }
.ad-tag { display: inline-flex; align-items: center; font: 700 0.68rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--ink); color: #fff; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field label, .label { font-weight: 600; font-size: 0.95rem; }
.input {
  width: 100%; min-height: 58px; padding: 14px 18px; border-radius: var(--r-input);
  border: 0; background: var(--wash); color: var(--ink); font: 500 1.12rem var(--body);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #8a8a86; }
.input:hover { background: var(--wash-2); }
.input:focus { outline: none; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.help { color: var(--ink-3); font-size: 0.88rem; }
.err { color: #b00020; font-size: 0.9rem; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.95rem; color: var(--ink-2); }
.check input { width: 22px; height: 22px; accent-color: var(--ink); margin: 1px 0 0; flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-size: 1.02rem; }
.brand-by { font-family: var(--body); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.01em; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 480px) { .brand-name { font-size: 0.95rem; } .brand-by { font-size: 0.66rem; } }
.name-note { margin-top: 18px; font-size: 0.98rem; color: var(--ink-3); max-width: 40ch; }
@media (max-width: 400px) { .brand-name { font-size: 0.9rem; } .brand-mark { width: 26px; height: 26px; } }
@media (max-width: 400px) {
  .nav { gap: 8px; padding-left: 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 0.86rem; }
  .nav-links a.btn { padding: 4px 4px 4px 14px; min-height: 42px; gap: 8px; }
  .nav-links a.btn .ico { width: 32px; height: 32px; }
}
