/* Why It Fits — site styles. Mobile-first, no framework.
   Brand inks: #1a1a1a (near-black) and #f5f5f0 (off-white).
   Accent (SUGGESTION, not a decided brand color): "Groan Orange" #e8613c. */

@font-face { font-family: "Archivo Black"; src: url("../fonts/archivo-black-400.woff2") format("woff2"), url("../fonts/archivo-black-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-700.woff2") format("woff2"), url("../fonts/space-mono-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #1a1a1a;
  --paper: #f5f5f0;
  --accent: #e8613c;          /* suggestion — swap here to change site-wide */
  --white: #ffffff;
  --muted: #55554f;
  --line: rgba(26, 26, 26, 0.14);
  --font-head: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1180px;
  --pad: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 7vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.mono, .eyebrow { font-family: var(--font-mono); font-weight: 700; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 1rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 0.5rem; top: -3rem; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 100; border-radius: 8px; }
.skip-link:focus { top: 0.5rem; }

/* Announcement bar */
.announce { background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem; text-align: center; padding: 0.55rem var(--pad); }

/* Header */
.site-header { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 0.02em; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 10px; padding: 0.45rem 0.7rem; font: 700 0.85rem var(--font-mono); color: var(--ink); cursor: pointer; }
.nav-toggle .bars { display: inline-block; width: 18px; height: 2px; background: var(--ink); position: relative; vertical-align: middle; margin-right: 0.45rem; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.site-nav a { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; text-decoration: none; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
/* With JS: collapse nav on small screens */
.js .nav-toggle { display: inline-block; }
.js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 0.5rem var(--pad) 1rem; }
.js .site-nav.open { display: block; }
.js .site-nav ul { flex-direction: column; gap: 0; }
.js .site-nav li a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
/* No JS + small screens: nav wraps under the logo */
html:not(.js) .header-inner { flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font: 700 0.95rem/1.2 var(--font-mono); text-decoration: none; padding: 0.9rem 1.3rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; text-align: center; transition: transform 0.12s ease, background 0.12s ease; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn[aria-disabled="true"], .btn.is-placeholder { background: repeating-linear-gradient(-45deg, var(--paper), var(--paper) 8px, #e9e9e2 8px, #e9e9e2 16px); color: var(--muted); border-style: dashed; border-color: var(--muted); cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0; border-bottom: 2px solid var(--ink); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .sub { font-size: 1.15rem; max-width: 46ch; }
.hero-badge { width: min(220px, 60vw); justify-self: center; transform: rotate(-6deg); }
.hero-shirts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.hero-shirts img { border-radius: var(--radius); border: 2px solid var(--ink); background: var(--white); }
.hero-art { display: grid; gap: 1.25rem; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 2px solid var(--ink); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.dark { background: var(--ink); color: var(--paper); }
.dark a { color: var(--paper); }

/* Trust strip */
.trust { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; }
.trust li { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--white); }
.trust strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.1rem; margin-bottom: 0.2rem; }

/* Product grid */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); overflow: hidden; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--white); border-bottom: 2px solid var(--ink); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease; }
.card-media .alt-img { opacity: 0; }
.card:hover .card-media .alt-img, .card:focus-visible .card-media .alt-img { opacity: 1; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-title { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.15; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.card-wrap { display: flex; flex-direction: column; gap: 0.45rem; }
.card-wrap > .card { flex: 1; }
.card-buy { font-size: 0.85rem; margin: 0; text-align: center; }
.buy-links { margin-top: 0.25rem; }
.price { font-family: var(--font-mono); font-weight: 700; }
.swatches { display: inline-flex; gap: 0.3rem; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.sw-white { background: var(--white); } .sw-heather { background: #b8b8b4; } .sw-black { background: var(--ink); } .sw-navy { background: #232a3e; } .sw-darkgrey { background: #4e4e50; }
/* Shop filter chips: hidden without JS (everything shows); main.js filters the grid. */
.filters { display: none; }
.js .filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.chip { font: 700 0.8rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; padding: 0.55rem 0.9rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; line-height: 1.2; }
.chip:hover { background: var(--paper); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip-n { opacity: 0.6; font-size: 0.72rem; margin-left: 0.15rem; }
.card-wrap[hidden] { display: none; }
.tag { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; font: 700 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; background: var(--accent); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 0.2rem 0.6rem; }

/* Blurb / quote */
.blurb { font-family: var(--font-head); font-size: clamp(1.35rem, 3.6vw, 2.1rem); line-height: 1.25; max-width: 30ch; }
.split { display: grid; gap: 2rem; align-items: center; }
.review-box { border: 2px dashed currentColor; border-radius: var(--radius); padding: 1.5rem; }

/* Signup */
.signup { display: grid; gap: 0.6rem; max-width: 520px; }
.signup-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.signup input[type="email"] { flex: 1 1 220px; }
input, textarea, select { font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 0.8rem 0.9rem; width: 100%; }
.signup-row input { width: auto; }
textarea { min-height: 150px; resize: vertical; }
label { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; display: block; margin-bottom: 0.35rem; }
.form-note { font-size: 0.85rem; }
.form-success { font-family: var(--font-mono); font-weight: 700; }

/* Product page */
.crumbs { font: 700 0.8rem var(--font-mono); margin: 1.25rem 0 0; }
.crumbs a { text-decoration: none; }
.product { display: grid; gap: 2rem; padding-top: 1.5rem; padding-bottom: 3rem; }
.gallery-main { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--white); aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 0.75rem; }
.thumbs a { border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); aspect-ratio: 1 / 1; display: block; }
.thumbs a[aria-current="true"] { border-color: var(--ink); box-shadow: 3px 3px 0 var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.product-price { font: 700 1.5rem var(--font-mono); margin: 0 0 0.25rem; }
fieldset { border: 0; padding: 0; margin: 1.25rem 0 0; }
legend { font: 700 0.85rem var(--font-mono); margin-bottom: 0.5rem; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.options label { margin: 0; cursor: pointer; border: 2px solid var(--ink); border-radius: 10px; padding: 0.55rem 0.85rem; background: var(--white); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.45rem; }
.options input:checked + label { background: var(--ink); color: var(--paper); }
.options input:checked + label .swatch { border-color: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.options input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.buy-box { margin: 1.5rem 0; padding: 1.25rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); display: grid; gap: 0.75rem; }
.buy-box .btn { width: 100%; display: block; text-align: center; } /* block, so "· Light/Dark" wraps as text instead of a separate flex item */
.trust-line { font-size: 0.92rem; }
.details { margin: 0; padding-left: 1.2rem; }
.details li { margin-bottom: 0.4rem; }
.size-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--white); }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 0.55rem 0.6rem; text-align: left; }
.size-table th { font: 700 0.8rem var(--font-mono); background: var(--paper); }
.table-scroll { overflow-x: auto; }
details.acc { border-top: 2px solid var(--ink); padding: 0.9rem 0; }
details.acc:last-of-type { border-bottom: 2px solid var(--ink); }
details.acc summary { cursor: pointer; font-family: var(--font-head); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-family: var(--font-mono); }
details.acc[open] summary::after { content: "–"; }
details.acc > div { padding-top: 0.75rem; }
.notice { border-left: 6px solid var(--accent); background: var(--white); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5rem; }

/* Prose pages */
.page-head { padding: clamp(2rem, 6vw, 3.5rem) 0 1.5rem; border-bottom: 2px solid var(--ink); }
.prose { padding-top: 2rem; padding-bottom: 3.5rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 3rem 0 2rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.footer-grid { display: grid; gap: 2rem; }
.footer-badge img { width: 150px; height: 150px; }
.footer-tag { font-family: var(--font-mono); font-weight: 700; margin-top: 0.8rem; }
.footer-col h2 { font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-signup input[type="email"] { background: var(--paper); }
.footer-signup .btn { border-color: var(--paper); }
.small-print { border-top: 1px solid rgba(245, 245, 240, 0.25); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.85rem; opacity: 0.85; }

/* Email popup */
.popup { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: rgba(26, 26, 26, 0.6); }
.popup[hidden] { display: none; }
.popup-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--accent); padding: 2rem 1.5rem 1.5rem; text-align: center; }
.popup-card img { width: 150px; height: 150px; margin: 0 auto 1rem; }
.popup-card h2 { font-size: 1.6rem; }
.popup-close { position: absolute; top: 0.6rem; right: 0.6rem; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); font: 700 1.2rem var(--font-mono); cursor: pointer; color: var(--ink); }
.popup .signup { margin: 0 auto; text-align: left; }
.link-btn { background: none; border: 0; padding: 0.4rem; font: inherit; font-size: 0.85rem; text-decoration: underline; cursor: pointer; color: var(--muted); }

/* 404 */
.notfound { text-align: center; padding: clamp(3rem, 10vw, 6rem) 0; }
.notfound img { width: 180px; margin: 0 auto 1.5rem; transform: rotate(12deg); }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .js .nav-toggle { display: none; }
  .js .site-nav { display: block; position: static; border: 0; padding: 0; background: none; }
  .js .site-nav ul { flex-direction: row; gap: 1.4rem; }
  .js .site-nav li a { display: inline; padding: 0.3rem 0; border-bottom: 2px solid transparent; font-size: 0.85rem; }
  .js .site-nav li a:hover, .js .site-nav li a[aria-current="page"] { border-bottom-color: var(--accent); }
  html:not(.js) .header-inner { flex-wrap: nowrap; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero-badge { width: 300px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .gallery { position: sticky; top: 90px; }
  .split { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Fixes after screenshot review */
.dark .btn-light { color: var(--ink); }
.dark .btn-light:hover { text-decoration: none; }
/* Flat-art previews are 5:6 — show them whole on a matching background */
.thumbs a[data-color^="art"] img { object-fit: contain; }
.thumbs a[data-color="art-light"] { background: #d6d6d6; }
.thumbs a[data-color="art-dark"] { background: #0c0c0c; }

/* Shop with 20 designs: on phones, a scrollable chip row and a 2-up grid so the page isn't 20 screens long. */
@media (max-width: 599px) {
  .js .filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); padding: 0.15rem var(--pad) 0.35rem; }
  .js .filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .shop-grid-section .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .shop-grid-section .card-body { padding: 0.6rem 0.65rem 0.75rem; gap: 0.25rem; }
  .shop-grid-section .card-title { font-size: 0.92rem; }
  .shop-grid-section .card-body .muted { display: none; }
  .shop-grid-section .card-meta { flex-wrap: wrap; gap: 0.3rem; }
  .shop-grid-section .price { font-size: 0.8rem; }
  .shop-grid-section .swatch { width: 12px; height: 12px; }
  .shop-grid-section .tag { top: 0.4rem; left: 0.4rem; font-size: 0.6rem; }
  .shop-grid-section .card-buy { font-size: 0.75rem; line-height: 1.5; }
}
#gifts .split { align-items: start; }

/* "New ink colors, coming soon" previews on product pages (not buyable, not part of the color picker) */
.coming-soon { margin: 0 0 1.5rem; padding: 1.1rem; border: 2px dashed var(--ink); border-radius: var(--radius); }
.coming-soon h2 { font-size: 1.15rem; margin: 0 0 0.35rem; }
.cs-grid { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.cs-item figure { margin: 0; }
.cs-media { position: relative; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cs-media img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.cs-tag { position: absolute; top: 0.35rem; left: 0.35rem; font: 700 0.6rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.1rem 0.45rem; }
.cs-item figcaption { font-size: 0.82rem; margin-top: 0.35rem; line-height: 1.3; }
.cs-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink); margin-right: 0.3rem; vertical-align: -1px; }
.cs-ask { font-size: 0.78rem; }
.cs-note { margin-top: 0.5rem; font-size: 0.95rem; }
@media (max-width: 599px) { .cs-grid { grid-template-columns: repeat(2, 1fr); } }

/* Halloween 2026 limited edition (build.py HALLOWEEN_ENABLED) */
.sw-orange { background: radial-gradient(circle, #e8613c 0 38%, var(--ink) 40%); }
.btn-soon[disabled] { background: #d8d8d2; color: #55554f; border-color: #8a8a84; border-style: dashed; cursor: not-allowed; }
.tag-inline { position: static; display: inline-block; margin-right: 0.4rem; }
.hw-limited { font: 700 0.85rem var(--font-mono); margin: 0 0 0.5rem; }
.hw-ship { font-size: 0.92rem; }
.hw-banner { background: var(--ink); color: var(--paper); }
.hw-banner .eyebrow { color: #e8613c; }
.hw-banner-grid { display: grid; gap: 1.5rem; align-items: center; }
.hw-banner-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.hw-banner-art a { display: block; border: 2px solid var(--paper); border-radius: var(--radius); overflow: hidden; background: #fff; }
.hw-banner-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.chip-hw { text-decoration: none; background: #e8613c; }
@media (min-width: 900px) { .hw-banner-grid { grid-template-columns: 1fr 1.1fr; } }
