/* DOGGY DURAGS — design system v2
   Brick-mixtape energy × editorial minimalism × rap-star dog portraiture.
   Class vocabulary preserved from v1 — main.js/analytics.js selectors unchanged. */

:root {
  /* base — the suit (style guide §2) */
  --ink: #0A0A0B;
  --char: #141416;
  --panel: #141416;
  --line: rgba(232, 226, 214, 0.14);
  --bone: #E8E2D6;
  --bone-dim: #9A958A;
  --flash: #FFFFFF;
  /* drop colors — belong to the product */
  --drop-black: #1C1C1E;
  --ice: #4DD2F1;        /* customer-facing label: BLUE (DEC-009). internal commerce key stays "royal". */
  --durag-red: #C8102E;
  /* texture accents */
  --brick: #7A3B2E;
  --brick-mortar: #B8AFA0;
  /* legacy aliases (kept so nothing downstream breaks; not part of the visible system) */
  --gold: #E8E2D6;
  --cream: #141416;
  --royal: #4DD2F1;
  --midnight: #0A0A0B;
  --street-blue: #4DD2F1;
  --green: #3B8F4E;
  /* voices (style guide §3): poster / editor / label-maker */
  --font-display: "Anton", "Arial Narrow Bold", sans-serif;
  --font-marker: "Space Mono", monospace;
  --font-head: "Space Mono", monospace;
  --font-body: "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif;
  --maxw: 960px;
  --maxw-tight: 640px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--bone); text-decoration-color: var(--bone-dim); text-underline-offset: 3px; }
a:hover { color: var(--flash); text-decoration-color: var(--bone); }
:focus-visible { outline: 2px solid var(--flash); outline-offset: 2px; }
::selection { background: var(--bone); color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-tight { max-width: var(--maxw-tight); margin: 0 auto; padding: 0 24px; }

/* ---------- surfaces ---------- */
.night { background: var(--ink); color: var(--bone); }
.paper { background: var(--char); color: var(--bone); }
.paper a { color: var(--bone); }
.paper a:hover { color: var(--flash); }
/* brick: photographic-texture treatment (guide §6) — flash-lit, imperfect, never cartoon lines */
.brick {
  background-color: #3d211a;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='236' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='236' height='120' fill='%232a1712'/%3E%3Cg%3E%3Crect x='2' y='2' width='112' height='54' rx='2' fill='%237A3B2E'/%3E%3Crect x='120' y='2' width='114' height='54' rx='2' fill='%236b3226'/%3E%3Crect x='-56' y='62' width='112' height='54' rx='2' fill='%23713628'/%3E%3Crect x='62' y='62' width='112' height='54' rx='2' fill='%23824136'/%3E%3Crect x='180' y='62' width='112' height='54' rx='2' fill='%236e3428'/%3E%3C/g%3E%3Crect width='236' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 236px 120px;
  box-shadow: inset 0 0 140px rgba(0,0,0,.72);
  color: var(--bone);
}
.brick-seam { height: 64px; border-top: 1px solid rgba(0,0,0,.6); border-bottom: 1px solid rgba(0,0,0,.6); }
.halftone-edge { position: relative; }
.halftone-edge::after { content: none; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: inherit;
}
h1.display { font-size: clamp(4rem, 14vw, 12rem); line-height: .88; letter-spacing: -0.015em; }
h2.display { font-size: clamp(2.1rem, 7.5vw, 4.6rem); margin-bottom: .5em; letter-spacing: -0.01em; }
.display .accent { color: var(--bone); -webkit-text-stroke: 0; }
.display .ghost { -webkit-text-stroke: 1.5px var(--bone); color: transparent; }
.paper .display .ghost { -webkit-text-stroke: 1.5px var(--bone); }

.marker { font-family: var(--font-marker); }
.head { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .78rem; }
.sub {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(1rem, 3vw, 1.125rem); line-height: 1.5;
  color: var(--bone-dim); text-transform: none; letter-spacing: 0;
}
.paper .sub { color: var(--bone-dim); }

/* kicker — label-maker voice */
.tape {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 400; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .24em; color: var(--bone-dim);
}
.tape::before { content: ""; width: 22px; height: 1px; background: var(--bone-dim); flex-shrink: 0; }
.paper .tape { color: var(--bone-dim); }

/* sticker/starburst — rare, deliberate */
.burst {
  display: inline-block; background: var(--gold); color: var(--ink);
  font-family: var(--font-marker); font-size: .9rem; line-height: 1.2;
  text-align: center; padding: 1.8em 1.6em; max-width: 240px; transform: rotate(4deg);
  clip-path: polygon(50% 0%, 59% 12%, 74% 5%, 76% 21%, 92% 20%, 86% 34%, 100% 41%, 89% 50%, 100% 61%, 85% 66%, 91% 81%, 75% 79%, 73% 96%, 60% 87%, 50% 100%, 40% 87%, 27% 96%, 25% 79%, 9% 81%, 15% 66%, 0% 61%, 11% 50%, 0% 41%, 14% 34%, 8% 20%, 24% 21%, 26% 5%, 41% 12%);
}

.mono-note { font-family: var(--font-head); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-dim); }
.paper .mono-note { color: var(--bone-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .06em; font-size: 1.05rem;
  background: var(--bone); color: var(--ink);
  border: 1px solid var(--bone);
  padding: 16px 38px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--flash); border-color: var(--flash); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--bone); }
.btn-ghost:hover { background: var(--bone); color: var(--ink); }
.btn-block { display: block; width: 100%; }
.btn-red { background: var(--durag-red); border-color: var(--durag-red); color: var(--bone); }
.btn-red:hover { background: var(--brick); border-color: var(--brick); color: var(--bone); }
.paper .btn { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.paper .btn:hover { background: var(--flash); border-color: var(--flash); }

/* ---------- nav ---------- */
.topnav {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-block: 22px; gap: 18px;
  border-bottom: 1px solid var(--line);
}
.topnav .logo {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .14em;
  color: var(--bone); text-decoration: none; text-transform: uppercase;
}
.topnav .logo:hover { color: var(--flash); }
.topnav .navcta {
  flex-shrink: 0; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--bone-dim);
  text-decoration: none; border-bottom: 1px solid var(--bone-dim); padding-bottom: 2px;
}
.topnav .navcta:hover { color: var(--flash); border-bottom-color: var(--bone); }

/* ---------- layout ---------- */
section { padding: max(84px, 10vh) 0; position: relative; }
.section-kicker { margin-bottom: 26px; }
.hairline { border: 0; border-top: 1px solid var(--line); }
.paper .hairline { border-top-color: var(--line); }

/* ---------- hero ---------- */
.hero { padding-block: 9vh 80px; text-align: left; }
.hero .crown { display: none; }
.hero-sub { margin: 26px 0 34px; max-width: 34ch; }
.hero-note { margin-top: 18px; }
.hero-grid { display: grid; gap: 44px; align-items: end; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-img { border: 1px solid var(--line); background: #141414; margin: 0; }
.hero-img img, .hero-img svg { width: 100%; height: auto; display: block; }

/* portrait stage + colorway fits */
.portrait-stage svg { width: 100%; height: auto; display: block; }
.portrait-stage .durag-fill, .portrait-stage .durag-edge { transition: fill .6s ease, stroke .6s ease; }
.fit-black .durag-fill { fill: #111111; } .fit-black .durag-edge { stroke: #0a0a0a; }
.fit-royal .durag-fill { fill: var(--royal); } .fit-royal .durag-edge { stroke: #0f2a68; }
.fit-red .durag-fill { fill: var(--durag-red); } .fit-red .durag-edge { stroke: #741a20; }

.portrait-row { display: grid; gap: 22px; margin-top: 44px; }
@media (min-width: 720px) { .portrait-row { grid-template-columns: repeat(3, 1fr); } }
.portrait-card { border: 1px solid var(--line); background: #141414; margin: 0; }
.portrait-card figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 14px; border-top: 1px solid var(--line); gap: 10px;
}
.portrait-card .head { font-size: .95rem; }
.portrait-card .mono-note { font-size: .68rem; }

/* ---------- colorways (functional selector — contract preserved) ---------- */
.colorways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.colorway {
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  padding: 10px 10px 12px; text-align: left; font-family: var(--font-body);
  color: inherit; opacity: .55; transition: opacity .15s ease;
}
.colorway:hover { opacity: .85; }
.colorway[aria-pressed="true"] { opacity: 1; outline: 1px solid var(--bone); outline-offset: 2px; }
.night .colorway { border-color: var(--line); }
.night .colorway[aria-pressed="true"] { outline-color: var(--bone); }
.colorway .swatch {
  height: 96px; margin-bottom: 10px;
  background-image: linear-gradient(120deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.04) 30%, rgba(255,255,255,.2) 48%, rgba(0,0,0,.28) 100%);
}
.colorway .head { font-size: .88rem; letter-spacing: .1em; }
.colorway .marker { font-size: .72rem; opacity: .65; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .16em; }

/* ---------- sizes ---------- */
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 14px; }
.size-btn {
  border: 1px solid var(--line); background: transparent; color: var(--bone);
  font-family: var(--font-head); font-size: .95rem; letter-spacing: .1em; padding: 16px; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.size-btn[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.night .size-btn { border-color: var(--line); }
.night .size-btn[aria-pressed="true"] { background: var(--bone); color: var(--ink); }

/* ---------- cards ---------- */
.card { border: 1px solid var(--line); background: transparent; padding: 28px; }
.paper .card { border-color: var(--line); }
.card + .card { margin-top: 16px; }

/* buy module — raised ink panel (guide §2/§10) */
.buy-module { background: var(--char); color: var(--bone); padding: 36px 30px; border: 1px solid var(--line); }
.buy-module a { color: var(--bone); }
.buy-module a:hover { color: var(--flash); }
.buy-module .mono-note, .buy-module .form-note { color: var(--bone-dim); }
.buy-module .btn { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.buy-module .btn:hover { background: var(--flash); border-color: var(--flash); color: var(--ink); }
.buy-module .selected-colorway { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .01em; color: var(--bone); }
.offer-price { font-family: var(--font-head); font-size: 2rem; line-height: 1; letter-spacing: .02em; }
.offer-price .per { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.offer-row { display: grid; gap: 18px; margin-top: 26px; }
.strike { text-decoration: line-through; opacity: .5; font-size: 1.1rem; }

/* ---------- steps: editorial numbered rows ---------- */
.steps { margin-top: 34px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--line); position: relative;
}
.night .step { border-top-color: var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 2rem; opacity: .3; line-height: 1;
}
.step .head { font-size: 1.05rem; margin-bottom: 4px; }
.step p { max-width: 52ch; }

/* ---------- transparency ---------- */
.truth { border-left: 1px solid var(--bone); }
.truth ul { margin: 16px 0 0 0; list-style: none; }
.truth li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.truth li:first-child { border-top: 0; }
.status-pill {
  display: inline-block; background: var(--bone); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  padding: 5px 14px; text-transform: uppercase; letter-spacing: .22em;
}

/* ---------- FAQ: hairline rows ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.paper .faq details { border-color: var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 44px 20px 0; list-style: none; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  font-family: var(--font-head); font-size: 1rem; color: var(--bone-dim);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; max-width: 60ch; color: var(--bone-dim); }
.paper .faq .answer { color: rgba(13,13,13,.75); }

/* ---------- email capture ---------- */
.capture form { display: grid; gap: 14px; margin-top: 26px; max-width: 460px; }
.capture input[type=email] {
  font-family: var(--font-body); font-size: 1rem; padding: 16px;
  border: 1px solid var(--line); background: transparent; color: var(--bone); width: 100%;
}
.capture input[type=email]::placeholder { color: rgba(232,226,214,.35); }
.form-note { font-size: .8rem; color: var(--bone-dim); margin-top: 6px; }
.form-success { display: none; }
.form-success.show { display: block; }

/* ---------- sticky CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(13,13,13,.94); backdrop-filter: blur(8px);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 14px; justify-content: space-between;
  border-top: 1px solid var(--line);
}
.sticky-cta.show { display: flex; }
.sticky-cta .price { font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--bone-dim); }
.sticky-cta .btn { font-size: .8rem; padding: 12px 22px; flex-shrink: 0; }

/* ---------- footer ---------- */
footer { padding: 70px 0 130px; border-top: 1px solid var(--line); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0; }
footer .links a { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--bone-dim); }
footer .links a:hover { color: var(--flash); }
footer .fine { color: rgba(232,226,214,.4); font-size: .74rem; margin-top: 18px; max-width: 70ch; }

/* ---------- utility pages ---------- */
.page-head { padding-block: 60px 40px; }
.page-head h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); }
.prose { padding-block: 48px 80px; }
.prose h2 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; margin: 34px 0 12px; font-size: 1.1rem; }
.prose p, .prose ul { margin-bottom: 14px; max-width: 68ch; }
.prose ul { margin-left: 22px; }

/* headline settle (guide §8): fast heavy settle on load, nothing else */
html.js .hero h1.display { animation: settle .3s ease-out both; }
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.js .hero h1.display { animation: none; } }

/* ---------- motion: reveals (ui.js adds .in; hidden ONLY when JS present) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .portrait-stage .durag-fill, .portrait-stage .durag-edge { transition: none; }
}

/* ---------- v2.1 photography system (cast pass) ---------- */
.photo { display: block; width: 100%; height: auto; }
.hero-photo { border: 1px solid var(--line); background: #141414; margin: 0; overflow: hidden; }
.hero-photo img { display: block; width: 100%; height: auto; }

/* portrait interruption: oversized hard crop */
.interrupt { margin-top: 44px; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 4 / 3; }
.interrupt img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.12); }
@media (min-width: 880px) { .interrupt { aspect-ratio: 21 / 9; } .interrupt img { object-position: 50% 22%; } }

/* full-bleed editorial */
.fullbleed { width: 100vw; margin-left: 50%; transform: translateX(-50%); overflow: hidden; }
.fullbleed img { width: 100%; height: auto; display: block; max-height: 92vh; object-fit: cover; object-position: 50% 30%; }
.fullbleed-caption { display: flex; justify-content: space-between; padding: 12px 24px 0; }

/* crew: asymmetric grid — deterministic aspect ratios, no circular height chains */
.crew-grid { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 760px) {
  .crew-grid { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .crew-grid .crew-lead { grid-row: 1 / 3; }
}
.crew-card { border: 1px solid var(--line); background: #141414; margin: 0; overflow: hidden; }
.crew-card img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; object-position: 50% 15%; display: block; }
.crew-card.crew-lead img { aspect-ratio: 5 / 6; }
.crew-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.crew-card .head { font-size: .85rem; }

/* colorway swatches -> photo tiles */
.colorway .swatch { height: 150px; background-size: cover; background-position: 50% 12%; filter: saturate(.92) contrast(1.04); }

/* homepage entry backdrop */
.entry-stage { position: relative; overflow: hidden; border: 1px solid var(--line); max-width: 430px; margin: 0 auto; }
.entry-stage img { display: block; width: 100%; height: auto; }
