/* D2NA shop. Mobile first.
   Contrast, measured against #000: --text 21:1, --muted #c9c9c9 13.1:1, --accent #bad532 13.3:1,
   black on --accent 13.3:1, --field-line #8c8c8c 6.3:1 (UI boundary, needs 3:1).
   --nico and --naos are decorative only (glows, rules, dots). Never use them for text. */

@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Display face: Audiowide (SIL Open Font License), chosen 2026-11-03 in place of Ethnocentric, which needs a paid web licence. */
@font-face { font-family: "Display"; src: url("/fonts/audiowide-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #000;
  --surface: #0f0f0f;
  --surface-2: #171717;
  --text: #fff;
  --muted: #c9c9c9;
  --accent: #bad532;
  --accent-hover: #cde34f;
  --on-accent: #000;
  --nico: #e63462;
  --naos: #7fd3d8;
  --field-line: #8c8c8c;
  --rule: #262626;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-display: "Display", "Figtree", system-ui, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --wrap: 1240px;
  --radius: 4px;
  --header-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + var(--s4)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }

h1, h2, h3 { margin: 0 0 var(--s4); line-height: 1.12; overflow-wrap: anywhere; }
.display, h1, h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em;
}
h1 { font-size: clamp(1.9rem, 7vw, 4rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 2.4rem); }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 var(--s4); max-width: 62ch; }
.lead { font-size: 1.125rem; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2); margin-bottom: var(--s4);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 2px; height: 1.1em; background: currentColor; }
.muted { color: var(--muted); }

.wrap { width: min(100% - 2 * var(--s4), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--s8); }
.section-tight { padding-block: var(--s6); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s4); margin-bottom: var(--s6); }
.row-head h2 { margin: 0; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: var(--s3) var(--s4); font-weight: 600; }
.skip:focus { top: var(--s4); }
.skip:focus-visible { outline-color: var(--text); }

/* Brand textures, drawn in CSS: halftone dots (from the illustrations) and a starfield. */
.halftone { position: relative; isolation: isolate; }
.halftone::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--dot, var(--accent)) 1.3px, transparent 1.8px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  opacity: .55;
}
.glow { position: relative; isolation: isolate; }
.glow::after {
  content: ""; position: absolute; inset: 10%; z-index: -2; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--dot, var(--accent)) 45%, transparent), transparent);
  filter: blur(30px);
}
.stars { position: relative; isolation: isolate; overflow: clip; }
.stars::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, #ddd, transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, #fff, transparent),
    radial-gradient(1px 1px at 280px 40px, #bbb, transparent),
    radial-gradient(1px 1px at 60px 200px, #ccc, transparent),
    radial-gradient(1.5px 1.5px at 330px 220px, #fff, transparent);
  background-size: 360px 260px; opacity: .7;
}

/* Placeholders: obvious, legible (passes contrast), never mistaken for final copy. */
.ph {
  position: relative; border: 1px dashed var(--accent); color: var(--muted); padding: var(--s4);
  display: grid; place-items: center; text-align: center; font-size: .875rem; line-height: 1.4;
  background:
    radial-gradient(circle, #1f1f1f 1px, transparent 1.6px) 0 0 / 10px 10px,
    var(--surface);
  overflow-wrap: anywhere;
}
.ph-img { aspect-ratio: 4 / 5; width: 100%; }
.ph-square { aspect-ratio: 1; width: 100%; }
.ph-text {
  border: 1px dashed var(--accent); padding: 0 var(--s2); color: var(--muted);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere;
}
.staging { background: #fff; color: #000; text-align: center; font-size: .8rem; padding: var(--s1) var(--s4); }

/* Announcement and header */
.announce {
  background: var(--accent); color: var(--on-accent); text-align: center;
  font: 400 .7rem/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  padding: var(--s3) var(--s4);
}
@media (min-width: 640px) { .announce { font-size: .95rem; letter-spacing: .14em; padding-block: 14px; } }
.announce .ph-text { color: var(--on-accent); border-color: var(--on-accent); }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgb(0 0 0 / .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.logo { display: block; text-decoration: none; flex: none; }
.logo .ph-text { display: inline-block; padding: var(--s2) var(--s3); font-size: .8rem; }
.cart-link {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding-inline: var(--s2);
  text-decoration: none; font-weight: 600;
}
.cart-link svg { width: 24px; height: 24px; }
.cart-count {
  min-width: 1.5em; padding: 0 .4em; border-radius: 1em; background: var(--accent); color: var(--on-accent);
  font-size: .8rem; text-align: center; line-height: 1.5;
}
.cart-count:empty { display: none; }
.main-nav ul { list-style: none; margin: 0 calc(-1 * var(--s3)); padding: 0 0 var(--s2); display: flex; flex-wrap: wrap; gap: 0 var(--s1); white-space: nowrap; }
.main-nav a { display: inline-block; padding: var(--s2) var(--s3); text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s5); border: 2px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font: 600 .95rem/1.2 var(--font-body);
  text-transform: uppercase; letter-spacing: .08em; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn:focus-visible { outline-color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn[disabled] { background: #333; border-color: #333; color: #e6e6e6; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.link-btn { background: none; border: 0; padding: var(--s2); color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.link-btn:hover { color: var(--accent); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-block: var(--s1); display: inline-block; }

/* Home: hero */
.hero { padding-block: var(--s7) var(--s8); overflow: clip; }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 8vw, 4.6rem); }
.hero-art { max-width: 520px; width: 100%; margin-inline: auto; }

/* Trust strip */
.trust { border-block: 1px solid var(--rule); }
.trust ul { list-style: none; margin: 0; padding: var(--s4) 0; display: grid; gap: var(--s3); }
.trust li { display: flex; align-items: center; gap: var(--s3); font-size: .95rem; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* Product grid and cards */
.grid { display: grid; gap: var(--s6) var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; }
.card-media { position: relative; overflow: clip; border-radius: var(--radius); }
.card-media > * { transition: transform .4s ease; }
.card:hover .card-media > .ph { transform: scale(1.03); }
.card h3 { margin: var(--s3) 0 var(--s1); font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.card a { text-decoration: none; }
.card a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.card .ph-img { font-size: .8rem; padding: var(--s3); }
.price { font-weight: 600; margin: 0; }
.price s { color: var(--muted); font-weight: 400; margin-right: var(--s2); }
.badge {
  position: absolute; top: var(--s2); left: var(--s2); z-index: 1;
  background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 2px var(--s2); border-radius: 1em;
}
.badge-inline { position: static; display: inline-block; margin-bottom: var(--s3); }

/* Shop filter chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s6); padding: 0; list-style: none; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: var(--s2) var(--s4);
  border: 1px solid var(--field-line); border-radius: 2em; text-decoration: none; font-weight: 600;
}
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.collection { padding-block: var(--s5) var(--s7); border-top: 1px solid var(--rule); }
.collection h2 { font-size: clamp(1.2rem, 3.5vw, 1.8rem); }

/* Lore teaser */
.lore { padding-block: var(--s9); text-align: center; }
.lore p { margin-inline: auto; }

/* The brothers */
.brothers { display: grid; gap: var(--s6); }
.brother {
  position: relative; display: grid; gap: var(--s5); padding: var(--s5); border-radius: 8px;
  background: var(--surface); border-top: 3px solid var(--dot);
}
.brother .ph-square { max-width: 360px; margin-inline: auto; }
/* Keep both cards on the same lines: art, heading, text, then the button pinned to the bottom */
.brother { grid-template-rows: auto 1fr; }
.brother > div:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.brother > div:last-child p { flex: 1 0 auto; }
.brother > div:last-child .btn { margin-top: var(--s4); }
.brother .tag {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 2px var(--s3); border: 1px solid var(--dot); border-radius: 1em; margin-bottom: var(--s3);
}
.nico { --dot: var(--nico); }
.naos { --dot: var(--naos); }

/* Footer */
.site-footer { padding-block: var(--s8) var(--s5); color: var(--muted); border-top: 1px solid var(--rule); }
.footer-grid { display: grid; gap: var(--s6); margin-bottom: var(--s7); }
.footer-grid h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--text); margin-bottom: var(--s3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li a { display: inline-block; padding-block: var(--s1); text-decoration: none; }
.footer-grid li a:hover { text-decoration: underline; }
.colophon {
  max-width: none; margin: 0; padding-top: var(--s5); border-top: 1px solid var(--rule); font-size: .85rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s4);
}
.colophon a { display: inline-block; padding-block: var(--s1); }

/* Product page */
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: var(--s5); }
.crumbs a { display: inline-block; padding-block: var(--s1); }
.product { display: grid; gap: var(--s6); }
.gallery {
  display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2);
  margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); scrollbar-width: thin;
}
.gallery > * { flex: 0 0 82%; scroll-snap-align: center; }
.buy h1 { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: .01em; text-transform: uppercase; margin-bottom: var(--s2); }
.buy .price { font-size: 1.25rem; margin-bottom: var(--s4); }
.buy fieldset { border: 0; padding: 0; margin: 0 0 var(--s5); }
.buy legend { font-weight: 600; margin-bottom: var(--s2); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--s2); }
.swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatches label {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center;
  padding: var(--s2) var(--s4); border: 1px solid var(--field-line); border-radius: var(--radius); cursor: pointer;
}
.swatches label:hover { border-color: var(--text); }
.swatches input:checked + label { background: var(--text); color: var(--bg); border-color: var(--text); }
.swatches input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.swatches label.is-soldout { text-decoration: line-through; color: var(--muted); border-style: dashed; }
.buy-row { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s3); align-items: end; }
.qty label { display: block; font-weight: 600; margin-bottom: var(--s2); }
input[type="number"], input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; min-height: 48px; padding: var(--s3); font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--field-line); border-radius: var(--radius);
}
textarea { min-height: 140px; resize: vertical; }
.status { min-height: 1.6em; margin-top: var(--s3); }
.status a { color: var(--accent); font-weight: 600; }
.notes { list-style: none; padding: var(--s4) 0 0; margin: var(--s5) 0 0; border-top: 1px solid var(--rule); display: grid; gap: var(--s2); font-size: .95rem; }
.notes li::before { content: "✓"; color: var(--accent); margin-right: var(--s2); }
details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; padding: var(--s4) 0; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details > div { padding-bottom: var(--s4); }
.details { margin-top: var(--s6); }

/* Cart */
.cart-layout { display: grid; gap: var(--s6); align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-weight: 600; color: var(--muted); padding: var(--s3) var(--s2); border-bottom: 1px solid var(--rule); font-size: .875rem; }
.cart-table td { padding: var(--s4) var(--s2); border-bottom: 1px solid var(--rule); vertical-align: middle; }
.cart-table td a { font-weight: 600; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table input[type="number"] { width: 5rem; }
.summary-box { background: var(--surface); border-radius: 8px; padding: var(--s5); display: grid; gap: var(--s3); }
.summary-box p { margin: 0; display: flex; justify-content: space-between; gap: var(--s3); }
.summary-box .total { font-size: 1.2rem; font-weight: 600; }

/* Forms and prose */
.form { display: grid; gap: var(--s4); max-width: 560px; }
.form label { font-weight: 600; display: block; margin-bottom: var(--s1); }
.hp { display: none; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.25rem; margin-top: var(--s6); }
.page-head { padding-block: var(--s7) var(--s5); }
.about-grid { display: grid; gap: var(--s6); align-items: start; }

@media (min-width: 640px) {
  .trust ul { grid-template-columns: repeat(3, 1fr); }
  .brothers { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .grid { gap: var(--s7) var(--s5); }
}
@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .header-row { min-height: 72px; }
  .site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .site-header .header-row { display: contents; }
  .logo { grid-column: 1; }
  .main-nav { grid-column: 2; grid-row: 1; }
  .main-nav ul { padding: 0; margin: 0; }
  .cart-link { grid-column: 3; justify-self: end; }
  .hero { padding-block: var(--s8) var(--s9); }
  .hero-grid { grid-template-columns: 6fr 5fr; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product { grid-template-columns: 7fr 5fr; gap: var(--s7); align-items: start; }
  .gallery { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; }
  .gallery > * { flex: none; }
  .gallery > :first-child { grid-column: 1 / -1; }
  .buy { position: sticky; top: calc(var(--header-h) + var(--s5)); }
  .cart-layout { grid-template-columns: 2fr 1fr; }
  .about-grid { grid-template-columns: 5fr 7fr; gap: var(--s8); }
}
@media (max-width: 639px) {
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: var(--s2); padding-block: var(--s4); border-bottom: 1px solid var(--rule); }
  .cart-table td { border: 0; padding: 0; }
  .cart-table td:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.product > *, .about-grid > *, .hero-grid > *, .brothers > *, .cart-layout > *, .footer-grid > * { min-width: 0; }

/* Real images */
picture { display: block; }
.logo img { display: block; height: 44px; width: auto; }
.card-media img, .gallery img, .wear-photos img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #e6e6e6; border-radius: var(--radius);
}
.card-media .alt-img { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.card-media .alt-img img { height: 100%; }
@media (hover: hover) {
  .card:hover .has-alt .alt-img { opacity: 1; }
  .card:hover .card-media > picture:not(.alt-img) { transform: scale(1.03); }
}
.art img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgb(0 0 0 / .6)); }
.hero-art img { width: 100%; height: auto; }
.brother .art { max-width: 380px; margin-inline: auto; }
.comic-cover img { width: 100%; max-width: 380px; height: auto; margin-inline: auto; border-radius: 6px; box-shadow: 0 20px 60px rgb(186 213 50 / .18); }
.wear-grid { display: grid; gap: var(--s6); align-items: center; }
.wear-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.wear-photos picture:last-child { margin-top: var(--s7); }
.nebula { position: relative; isolation: isolate; overflow: clip; }
.nebula-bg, .nebula-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Scrim: lightest nebula pixel (#dcdc60) under 72% black gives white text 11:1 and --muted 6.7:1. */
.nebula::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgb(0 0 0 / .72), rgb(0 0 0 / .88)); }
@media (min-width: 960px) {
  .logo img { height: 52px; }
  .wear-grid { grid-template-columns: 7fr 5fr; gap: var(--s8); }
}

/* Story and quotes */
.verse p { margin-inline: auto; margin-bottom: var(--s5); font-size: 1.125rem; line-height: 1.8; }
.verse-end { font-size: 1.25rem; }
.verse-end .display { display: inline-block; margin-top: var(--s3); color: var(--accent); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 400; }
blockquote { margin: var(--s6) 0; padding: var(--s2) 0 var(--s2) var(--s5); border-left: 3px solid var(--accent); }
blockquote p { font-size: 1.15rem; font-style: italic; margin-bottom: var(--s2); }
blockquote cite { color: var(--muted); font-style: normal; }
blockquote cite::before { content: "– "; }
.type-img { display: block; }
.type-img svg { display: block; height: 11px; width: auto; max-width: 100%; margin-inline: auto; }
@media (min-width: 640px) { .type-img svg { height: 15px; } }

/* The Brothers story: centre the block and every verse on the same line as the heading */
.story { margin-inline: auto; }
.story p { margin-inline: auto; }
