/* ==========================================================================
   Fuck Off, I'm Texan — site styles
   Palette (brand guide): Deep Navy #0B1F3B (base), Texas Red #B21F2D (one hit per
   view), Warm White #F7F3E9 (canvas), Burnt Orange #C25A1A (sparks only).
   Default theme is warm white (premium breathing room); the night toggle flips
   the canvas to navy. Contrast rule: navy-on-white or white-on-navy. Red is for
   impact, never decoration. No distressing, bevels, grunge or flag-waves.
   Type: Barlow Condensed (display), Inter (body/UI), IBM Plex Mono (spec labels).
   Mobile-first: base rules target a 360px phone; min-width layers at 641 / 901 / 961px.
   ========================================================================== */
:root {
  --navy: #0B1F3B;
  --navy-2: #122A4D;
  --navy-3: #1D3A63;
  --paper: #F7F3E9;
  --paper-2: #EFE9DA;
  --paper-3: #E4DCC8;
  --red: #B21F2D;
  --red-2: #C8313F;
  --rust: #C25A1A;
  --sand: #CDBE9E;
  --slate: #3C4A5C;
  --steel: #8A8F96;

  --bg: var(--paper);
  --bg-2: #FFFFFF;
  --bg-3: var(--paper-2);
  --fg: var(--navy);
  --fg-2: #2E3D55;
  --fg-3: #5B6778;
  --line: #D9D0BB;
  --card: #FFFFFF;
  --accent: var(--red);
  --link: var(--red);
  --on-dark: var(--paper);
  --shadow: 0 18px 40px -22px rgba(11, 31, 59, .35);
  --radius: 4px;
  --radius-sm: 3px;
  --wrap: 1180px;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-type: "IBM Plex Mono", "Courier New", monospace;
}
:root[data-theme="night"] {
  --bg: var(--navy); --bg-2: var(--navy-2); --bg-3: var(--navy-3); --fg: var(--paper); --fg-2: rgba(247, 243, 233, .78); --fg-3: rgba(247, 243, 233, .56);
  --line: rgba(247, 243, 233, .16); --card: var(--navy-2); --link: #E8B59A; --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: clamp(1rem, .94rem + .3vw, 1.0625rem); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1; margin: 0 0 .5em; letter-spacing: -.005em; font-weight: 800; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 700; }
h4, h5 { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--red); margin: 0 0 .6em; }
h1 em, h2 em { color: var(--red); font-style: normal; }
p { margin: 0 0 1em; }
kbd { font-family: var(--font-type); background: var(--bg-3); padding: 1px 6px; border-radius: 3px; font-size: .9em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.section { padding-block: clamp(44px, 4vw + 28px, 72px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--fg-3); }
.small { font-size: .88rem; }
.mt { margin-top: 1.4em; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.link-plain { color: var(--fg-2); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
/* Stretched links: the title link covers the whole card so the tap target is the card */
.card, .product-card { position: relative; }
.card-title a::after, .product-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-media, .product-media { position: relative; z-index: 2; }
.card .cat-link, .card-meta { position: relative; z-index: 2; }

/* Tones (hero / tile backgrounds): navy does the heavy lifting, red is the one hit */
.tone-navy { background: var(--navy); color: var(--paper); }
.tone-red { background: var(--red); color: var(--paper); }
.tone-rust { background: var(--rust); color: var(--paper); }
.tone-sand { background: var(--sand); color: var(--navy); }
.tone-slate { background: var(--slate); color: var(--paper); }

/* Eyebrows, badges, buttons ------------------------------------------------ */
.eyebrow { display: inline-block; font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.eyebrow-type { font-family: var(--font-type); font-weight: 500; letter-spacing: .22em; font-size: .72rem; }
.eyebrow-paper { color: var(--paper); }
.tone-red .eyebrow, .tone-rust .eyebrow, .tone-navy .eyebrow, .tone-slate .eyebrow { color: var(--paper); opacity: .85; }
.badge { display: inline-block; font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 4px 9px 3px; border-radius: 2px; background: var(--navy); color: var(--paper); }
.badge-dispatch { background: var(--red); color: var(--paper); }
.badge-culture { background: var(--slate); color: var(--paper); }
.badge-guide { background: var(--navy); color: var(--paper); }
.badge-shelf { background: var(--rust); color: var(--paper); }
.badge-shop { background: var(--red); color: var(--paper); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; min-height: 44px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease; text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--paper); }
.btn-red:hover { background: var(--red-2); }
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-sm { padding: 8px 14px; font-size: .92rem; }
.btn-lg { padding: 15px 28px; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-btn { background: none; border: 0; color: var(--link); font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--paper); border-bottom: 3px solid var(--red); }
.header-row { display: flex; align-items: center; gap: clamp(8px, 2vw, 20px); height: 66px; }
.brand { display: inline-flex; align-items: center; gap: clamp(6px, 1.5vw, 10px); min-height: 44px; color: inherit; text-decoration: none !important; min-width: 0; }
.brand-text { font-family: var(--font-display); font-size: clamp(1.15rem, .6rem + 2.4vw, 1.5rem); font-weight: 800; letter-spacing: .01em; white-space: nowrap; text-transform: uppercase; }
.brand-text em { font-style: normal; color: var(--paper); opacity: .8; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.site-header .logo-mark circle { fill: var(--paper); }
.site-header .logo-mark path { fill: var(--navy); }
.main-nav { display: none; align-items: center; gap: 2px; margin-left: 4px; }
.main-nav > a, .menu > summary { color: inherit; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none !important; cursor: pointer; list-style: none; }
.main-nav > a:hover, .main-nav > a[aria-current], .menu > summary:hover, .menu[open] > summary { background: rgba(247,243,233,.12); }
.menu { position: relative; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; font-size: .75em; opacity: .7; }
.menu-panel { position: absolute; top: 100%; left: 0; margin-top: 10px; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 14px; width: min(320px, calc(100vw - 32px)); z-index: 60; }
.menu-panel-wide { grid-template-columns: 1.1fr 1fr; width: min(640px, calc(100vw - 32px)); }
.menu-col h5 { margin: 4px 10px 6px; color: var(--fg-3); }
.menu-col > a { display: flex; flex-direction: column; padding: 8px 10px; border-radius: var(--radius-sm); color: inherit; text-decoration: none !important; }
.menu-col > a strong { font-weight: 700; font-size: .92rem; }
.menu-col > a span { font-size: .8rem; color: var(--fg-3); line-height: 1.35; }
.menu-col > a:hover { background: var(--bg-3); }
.menu-genres { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu-genres a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm); color: inherit; font-size: .88rem; text-decoration: none !important; }
.menu-genres a:hover { background: var(--bg-3); }
.menu-icon { width: 18px; height: 18px; flex: none; color: var(--red); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: clamp(0px, .8vw, 6px); }
.header-actions .btn { display: none; }
.icon-btn { background: none; border: 0; color: inherit; padding: 11px; min-width: 44px; min-height: 44px; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; position: relative; text-decoration: none !important; }
.icon-btn:hover { background: rgba(247,243,233,.12); }
.cart-count { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: var(--paper); font-size: .68rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cart-count[hidden] { display: none; }
#theme-toggle .mode-day { display: none; }
:root[data-theme="night"] #theme-toggle .mode-night { display: none; }
:root[data-theme="night"] #theme-toggle .mode-day { display: inline; }
.nav-toggle { display: inline-flex; }
.mobile-nav { display: none; border-top: 1px solid rgba(247,243,233,.16); padding: 10px 16px 22px; background: var(--navy-2); color: var(--paper); max-height: calc(100vh - 66px); overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-group { padding: 10px 0; border-bottom: 1px solid rgba(247,243,233,.14); }
.mobile-group:last-child { border-bottom: 0; }
.mobile-group h5 { margin: 6px 0 2px; color: rgba(247,243,233,.6); }
.mobile-group > a { display: flex; align-items: center; min-height: 44px; padding: 4px 2px; font-weight: 600; color: inherit; font-size: 1.02rem; }
.mobile-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mobile-cats a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 2px; color: inherit; font-size: .95rem; }
.mobile-nav .menu-icon { color: var(--paper); opacity: .8; }

/* Search overlay ---------------------------------------------------------- */
.search-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(11, 31, 59, .96); overflow-y: auto; padding-top: 8vh; color: var(--paper); }
.search-overlay[hidden] { display: none; }
.search-box form { display: flex; gap: 8px; align-items: center; }
.search-box input { flex: 1; min-width: 0; font-size: 1.25rem; padding: 14px 18px; border-radius: var(--radius-sm); border: 2px solid transparent; background: var(--paper); color: var(--navy); font-family: var(--font-body); }
.search-box input:focus { outline: 0; border-color: var(--red); }
.search-box .icon-btn { color: var(--paper); font-size: 1.2rem; }
.search-results { margin-top: 18px; display: grid; gap: 8px; }
.search-hit { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 10px; border-radius: var(--radius-sm); background: var(--card); color: var(--fg); text-decoration: none !important; align-items: center; border: 1px solid var(--line); }
.search-overlay .search-hit { background: var(--navy-2); color: var(--paper); border-color: rgba(247,243,233,.16); }
.search-hit .hit-motif { width: 56px; height: 48px; border-radius: 3px; display: grid; place-items: center; }
.search-hit .hit-motif svg { width: 30px; height: 30px; }
.search-hit strong { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; text-transform: uppercase; }
.search-hit small { color: var(--fg-3); font-size: .78rem; }
.search-overlay .search-hit small { color: rgba(247,243,233,.6); }
.search-hit:hover { outline: 2px solid var(--red); }
.search-empty { opacity: .8; padding: 20px 0; font-size: 1.05rem; }
.search-page-form { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.search-page-form input { flex: 1; font-size: 1.1rem; padding: 13px 16px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--card); color: inherit; font-family: var(--font-body); }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--paper); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(3.6rem, 12vw, 7.5rem); line-height: .9; margin: 0 0 22px; }
.hero h1 em { color: var(--red); }
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 540px; color: rgba(247,243,233,.82); margin: 0 0 30px; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { color: var(--paper); }
.hero .eyebrow { color: var(--paper); opacity: .7; }
.hero-scene { max-width: 520px; margin-inline: auto; width: 100%; }
.scene { width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* Ticker ------------------------------------------------------------------ */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 70s linear infinite; }
.ticker-track span { padding: 11px 26px; white-space: nowrap; }
.ticker-track span::after { content: "★"; margin-left: 26px; color: var(--red); font-size: .8em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Featured ---------------------------------------------------------------- */
.featured { padding-top: 32px; }
.featured-card { display: grid; grid-template-columns: 1fr; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none !important; border: 1px solid var(--line); }
.featured-media { position: relative; min-height: 260px; display: grid; place-items: center; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.featured-body p { color: var(--fg-2); font-size: 1.08rem; }
.read-more { color: var(--red); font-weight: 700; margin-top: 8px; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }

/* Section heads ----------------------------------------------------------- */
.section-head { margin-bottom: 30px; }
.section-head p { margin: 0; color: var(--fg-2); font-size: 1.05rem; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Category grid ----------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: clamp(10px, 2vw, 14px); }
.cat-tile { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); overflow: hidden; text-decoration: none !important; min-height: 44px; transition: transform .2s ease, box-shadow .2s ease; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile-motif { width: 72px; height: 72px; display: grid; place-items: center; opacity: .95; }
.cat-tile-motif svg { width: 60px; height: 60px; }
.cat-tile-body { display: grid; gap: 2px; min-width: 0; }
.cat-tile-name { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; text-transform: uppercase; line-height: 1; }
.cat-tile-blurb { font-size: .95rem; opacity: .85; line-height: 1.35; }
.cat-tile-count { font-family: var(--font-type); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-top: 4px; }

/* Post cards -------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card-media .badge { position: absolute; top: 12px; left: 12px; }
.card-motif { width: 38%; max-width: 120px; opacity: .95; }
.card-motif svg { width: 100%; height: auto; }
.card-motif-lg { width: 36%; max-width: 180px; }
.card-stamp { position: absolute; right: 14px; bottom: 10px; font-family: var(--font-type); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; opacity: .65; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-meta { font-size: .76rem; color: var(--fg-3); display: flex; gap: 6px; flex-wrap: wrap; }
.cat-link { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.card-title { font-size: 1.5rem; margin: 0; line-height: 1.02; }
.card-title a { color: inherit; display: block; padding-block: 10px; margin-block: -10px; } /* the stretched link covers the card; this keeps the anchor box itself >= 44px on short titles */
.card-excerpt { margin: 0; color: var(--fg-2); font-size: .98rem; line-height: 1.45; }

/* Bands ------------------------------------------------------------------- */
.band { position: relative; }
.band-navy { background: var(--navy); color: var(--paper); }
.band-red { background: var(--red); color: var(--paper); }
.band .section-head p { color: rgba(247,243,233,.8); }
.band .btn-ghost { color: var(--paper); }
.band .eyebrow { color: var(--paper); opacity: .75; }
.band-navy h2 em { color: var(--paper); opacity: .7; }
.band-red h2 em { color: var(--paper); opacity: .85; }
.story-list { display: grid; gap: 10px; }
.story-row { display: grid; grid-template-columns: 64px 1fr; gap: clamp(14px, 2vw, 20px); align-items: center; padding: 14px; border-radius: var(--radius); background: rgba(247,243,233,.05); border: 1px solid rgba(247,243,233,.12); color: var(--paper); text-decoration: none !important; transition: background .2s; }
.story-row:hover { background: rgba(247,243,233,.1); }
.story-motif { width: 64px; height: 64px; border-radius: var(--radius-sm); display: grid; place-items: center; }
.story-motif svg { width: 40px; height: 40px; }
.story-row h3 { margin: 2px 0 4px; font-size: 1.45rem; }
.story-row p { margin: 0; font-size: .98rem; opacity: .8; }
.story-cat { font-family: var(--font-type); font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; opacity: .75; }
.story-arrow { display: none; font-size: 1.5rem; color: var(--red); }
.band-navy .story-arrow { color: var(--paper); }

.two-up { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); }
.list-plain { display: grid; gap: 2px; }
.list-row { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.list-row strong { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.05; text-transform: uppercase; }
.list-row:hover strong { color: var(--red); }
.list-date { font-family: var(--font-type); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.list-plain .btn { justify-self: start; margin-top: 12px; }

/* The No Desk ------------------------------------------------------------- */
.no-band { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.no-band p { font-size: 1.05rem; opacity: .9; }
.no-box { background: var(--paper); color: var(--navy); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.no-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.05; margin: 0 0 20px; min-height: 2.2em; text-transform: uppercase; }
.no-text-lg { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.no-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.no-box .btn-ghost { color: var(--navy); }
.no-box .link-plain { color: var(--red); margin-left: auto; }
.no-box-page { max-width: 820px; margin: 0 auto 48px; border: 1px solid var(--line); }
.no-rules { max-width: 720px; margin-inline: auto; }

/* Subscribe band ---------------------------------------------------------- */
.subscribe-band { position: relative; margin-block: 56px 0; padding-block: 64px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.subscribe-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); align-items: center; }
.subscribe-copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.subscribe-copy p { margin: 0; font-size: 1.05rem; color: var(--fg-2); }
.subscribe-form { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; position: relative; z-index: 1; }
.subscribe-form input[type="email"] { padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--line); font-size: 1.05rem; font-family: var(--font-body); background: var(--card); color: var(--fg); min-width: 0; }
.subscribe-form input[type="email"]:focus { outline: 0; border-color: var(--red); }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: .9rem; }
.form-msg.ok { color: var(--navy); font-weight: 600; }
:root[data-theme="night"] .form-msg.ok { color: var(--paper); }
.form-msg.err { color: var(--red); font-weight: 600; }
:root[data-theme="night"] .form-msg.err { color: #F0A3AA; }
.subscribe-star { position: absolute; right: -20px; bottom: -40px; width: 220px; color: var(--fg); opacity: .05; pointer-events: none; }

/* Post page --------------------------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
#progress-bar { height: 100%; width: 0; background: var(--red); transition: width .1s linear; }
.post-hero, .listing-hero { position: relative; isolation: isolate; overflow: hidden; }
.post-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,31,59,.35) 0%, rgba(11,31,59,.6) 55%, rgba(11,31,59,.92) 100%); }
.hero-motif { position: absolute; right: -4%; bottom: -14%; width: clamp(200px, 32vw, 420px); z-index: -1; opacity: .12; pointer-events: none; }
.hero-motif svg { width: 100%; height: auto; }
.post-hero-inner { padding-block: 72px 48px; max-width: 860px; }
.post-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 14px 0 10px; }
.post-sub { font-size: 1.2rem; opacity: .9; margin: 0 0 14px; }
.post-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .88rem; opacity: .85; }
.crumbs { font-family: var(--font-type); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 8px; margin-bottom: 18px; opacity: .8; }
.crumbs a { color: inherit; }
.crumbs-dark { color: var(--fg-2); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 44px 24px; }
.page-layout { padding-block: 44px; max-width: 820px; }
.prose { max-width: 700px; min-width: 0; font-family: var(--font-body); font-size: clamp(1.05rem, 1rem + .3vw, 1.18rem); line-height: 1.65; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-block: 0 1.2em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius-sm); margin-block: 1.5em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--red); font-family: var(--font-display); font-size: 1.3em; font-weight: 700; line-height: 1.15; color: var(--fg-2); text-transform: uppercase; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.prose code { font-family: var(--font-type); background: var(--bg-3); padding: 2px 6px; border-radius: 3px; font-size: .85em; }
.prose table { border-collapse: collapse; display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 1.5em; font-size: .92em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-ui); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 50%, transparent); text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.disclosure-inline { font-family: var(--font-ui); font-size: .82rem; color: var(--fg-3); background: var(--bg-3); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 1.5em !important; }
.callout { margin: 1.75em 0; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--bg-3); border-left: 4px solid var(--navy); font-size: .96em; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 800; font-family: var(--font-display); font-size: 1.2em; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.callout-note { border-color: var(--navy); }
.callout-warn { border-color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--bg-3)); }
.callout-aside { border-color: var(--rust); }
.callout-proof { border-color: var(--navy); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--navy); }
.callout-proof .callout-title::before { content: "✓ "; color: var(--red); }
.callout-spec { font-family: var(--font-type); font-size: .82em; letter-spacing: .02em; border-color: var(--steel); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--steel); }
.callout-spec .callout-title { font-family: var(--font-type); font-size: .9em; letter-spacing: .16em; }
.build-warning { color: #ff6b6b; font-weight: 700; }

/* Gear cards -------------------------------------------------------------- */
.gear-card { display: grid; grid-template-columns: 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 1.75em 0; box-shadow: var(--shadow); font-family: var(--font-ui); }
.gear-tab { background: var(--navy); color: var(--paper); min-height: 48px; display: flex; align-items: center; padding: 12px 18px; }
.gear-tab span { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.gear-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.gear-spec { align-self: flex-start; font-family: var(--font-type); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.gear-title { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: inherit; line-height: 1.05; }
.gear-blurb { margin: 0; font-size: .98rem; color: var(--fg-2); line-height: 1.45; }
.gear-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.gear-price { font-family: var(--font-type); font-size: .82rem; color: var(--fg-3); margin-right: auto; }
.shelf-box { margin-top: 3em; padding-top: 2em; border-top: 2px solid var(--line); }
.shelf-box h2 { margin-top: 0 !important; }
.gear-grid .gear-card { margin: 0 0 16px; }

.post-footer { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); display: grid; gap: 16px; font-family: var(--font-ui); font-size: .95rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag, .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 44px; border-radius: var(--radius-sm); background: var(--bg-3); color: var(--fg-2); font-size: .85rem; font-weight: 600; text-decoration: none !important; font-family: var(--font-ui); }
.tag:hover, .chip:hover { background: var(--navy); color: var(--paper); }
.chip-icon { width: 18px; height: 18px; color: var(--red); }
.chip:hover .chip-icon { color: var(--paper); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; align-items: center; }
.post-side { display: grid; gap: 20px; align-content: start; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.side-box h4 { margin-bottom: 10px; }
.side-box p { margin: 0; font-size: .92rem; color: var(--fg-2); }
.side-link { display: flex; align-items: center; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 1.05rem; color: inherit; font-family: var(--font-display); font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.side-link:first-of-type { border-top: 0; }
.side-shop .product-card { border: 0; background: transparent; }
.side-shop .product-media { background: var(--bg-3); }
.toc ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.toc ul ul { padding-left: 14px; }
.toc li { padding: 0; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; color: var(--fg-2); }

/* Listing / status -------------------------------------------------------- */
.listing-hero-inner { padding-block: 64px 52px; max-width: 760px; }
.listing-hero p { font-size: 1.15rem; opacity: .88; margin: 0; }
.count { margin: 0 0 20px; font-size: .78rem; font-family: var(--font-type); letter-spacing: .14em; text-transform: uppercase; }
.empty { text-align: center; padding: 48px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { color: var(--fg-2); font-size: 1.05rem; }
.status-page { display: flex; justify-content: center; min-height: 60vh; align-items: center; }
.status-card { text-align: center; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 32px; box-shadow: var(--shadow); }
.status-card .logo-mark { width: 64px; height: 64px; margin: 0 auto 16px; }
.status-card p { color: var(--fg-2); margin-bottom: 24px; font-size: 1.08rem; }
.status-card .hero-cta { justify-content: center; }

/* Shop -------------------------------------------------------------------- */
.ribbon { background: var(--navy); color: var(--paper); font-size: .9rem; padding: 10px 0; }
:root[data-theme="night"] .ribbon { background: var(--paper); color: var(--navy); }
.ribbon a { color: inherit; text-decoration: underline; }
.coll-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.coll-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-sm); border: 2px solid var(--line); color: inherit; font-weight: 700; font-size: .9rem; text-decoration: none !important; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }
.coll-nav a small { color: var(--fg-3); font-family: var(--font-type); font-size: .7rem; }
.coll-nav a:hover, .coll-nav a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.coll-nav a[aria-current] small { color: rgba(247,243,233,.7); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { position: relative; display: block; background: var(--bg-3); padding: 10px; }
.product-media .badge { position: absolute; top: 12px; left: 12px; }
.tier-mark { position: absolute; right: 12px; bottom: 10px; font-family: var(--font-type); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.tier-mark-lg { font-size: .72rem; left: 16px; right: auto; bottom: 14px; }
.mockup { width: 100%; height: auto; display: block; }
.mockup .design text { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.mockup .design-type text { font-family: var(--font-type); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.mockup .design-small text { font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; }
.mockup .design-wide text { font-family: var(--font-ui); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.product-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 5px; }
.product-coll { font-family: var(--font-type); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.product-name { margin: 0; font-size: 1.35rem; line-height: 1.05; }
.product-name a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.product-price { font-weight: 700; }
.product-price s { color: var(--fg-3); font-weight: 400; margin-left: 4px; }
.product-swatches { display: inline-flex; gap: 5px; }
.product-swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
.product-embed { margin: 1.75em 0; max-width: 320px; font-family: var(--font-ui); font-size: 1rem; }
.shop-notes .note-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.shop-notes p { margin: 0; font-size: 1rem; color: var(--fg-2); }

.product-layout { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px); padding-block: 32px 24px; }
.product-stage { position: relative; background: var(--bg-3); border-radius: var(--radius); padding: clamp(12px, 3vw, 32px); border: 1px solid var(--line); align-self: start; }
.product-info h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin: 8px 0 6px; }
.product-kind { color: var(--fg-3); margin: 0 0 10px; font-size: .95rem; }
.product-price-lg { font-size: 1.6rem; font-weight: 700; margin: 0 0 22px; font-family: var(--font-display); }
.product-price-lg s { color: var(--fg-3); font-weight: 400; font-size: 1.1rem; margin-left: 6px; }
.buy-form { display: grid; gap: 18px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.opt-group { border: 0; padding: 0; margin: 0; }
.opt-group legend { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); padding: 0; margin-bottom: 10px; font-weight: 700; }
.swatch-row, .size-row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; min-width: 44px; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); display: block; }
.swatch input:checked + span { border-color: var(--red); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--red); }
.swatch small { font-size: .68rem; color: var(--fg-3); text-align: center; max-width: 80px; line-height: 1.2; }
.size { position: relative; display: inline-flex; cursor: pointer; }
.size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 2px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem; }
.size input:checked + span { background: var(--navy); color: var(--paper); border-color: var(--navy); }
:root[data-theme="night"] .size input:checked + span { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.qty input { width: 72px; height: 100%; min-height: 50px; padding: 0 12px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--bg); color: inherit; font: inherit; font-size: 1rem; font-weight: 600; text-align: center; }
.buy-row .btn { flex: 1; }
.product-desc { margin-top: 28px; font-size: 1.05rem; }
.product-specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 24px 0 0; font-size: .92rem; padding-top: 18px; border-top: 1px solid var(--line); }
.product-specs dt { color: var(--fg-3); font-family: var(--font-type); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.product-specs dd { margin: 0; color: var(--fg-2); }

.cart-layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cart-line .cart-thumb { background: var(--bg-3); border-radius: var(--radius-sm); padding: 4px; }
.cart-line .cart-thumb svg { width: 100%; height: auto; display: block; }
.cart-line strong { font-family: var(--font-display); font-size: 1.25rem; display: block; line-height: 1.05; text-transform: uppercase; }
.cart-line small { color: var(--fg-3); display: block; margin-top: 2px; }
.cart-line-ctl { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cart-line-ctl button { min-width: 44px; min-height: 44px; border: 2px solid var(--line); background: var(--bg); color: inherit; border-radius: var(--radius-sm); cursor: pointer; font: inherit; font-weight: 700; }
.cart-line-ctl .cart-q { min-width: 28px; text-align: center; font-weight: 700; }
.cart-line-ctl .cart-remove { margin-left: auto; border: 0; background: none; color: var(--fg-3); text-decoration: underline; min-height: 44px; }
.cart-line-price { font-weight: 700; grid-column: 2; justify-self: end; }
.cart-empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); font-size: 1.05rem; color: var(--fg-2); }
.cart-totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 14px; font-size: .95rem; }
.cart-totals dd { margin: 0; text-align: right; }
.cart-totals .total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 10px; }
.cart-summary .btn { margin: 14px 0 10px; }
.cart-summary .link-plain { display: inline-flex; align-items: center; min-height: 44px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { position: relative; background: var(--navy); color: var(--paper); padding-block: 64px 32px; margin-top: 0; overflow: hidden; border-top: 3px solid var(--red); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 32px); }
.footer-brand p { opacity: .8; max-width: 380px; font-size: .98rem; }
.footer-tag { font-family: var(--font-type) !important; font-size: .7rem !important; letter-spacing: .22em; text-transform: uppercase; opacity: .7 !important; margin: 10px 0 8px; }
.site-footer h4 { color: var(--paper); opacity: .7; }
.site-footer a { color: var(--paper); }
.site-footer .logo-mark circle { fill: var(--paper); }
.site-footer .logo-mark path { fill: var(--navy); }
.footer-grid > div > a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; font-size: .95rem; opacity: .9; }
.social { display: flex; gap: 14px; margin-top: 8px; }
.social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.footer-legal { position: relative; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(247,243,233,.14); font-size: .85rem; opacity: .85; }
.footer-legal p { margin: 0 0 8px; }
.disclosure { opacity: .7; max-width: 760px; }

/* Responsive: layered upward from the mobile base ---------------------------
   641px+ tablet portrait, 901px+ full header nav, 961px+ two-column layouts.
   Tested at 360 / 390 / 768 / 1024 / 1280 / 1440 / 1920 (BUILD_STANDARDS §4). */
@media (min-width: 641px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; padding-block: clamp(64px, 8vw, 110px) clamp(56px, 7vw, 96px); }
  .hero-scene { max-width: none; }
  .story-row { grid-template-columns: 72px 1fr auto; }
  .story-arrow { display: block; }
  .subscribe-form { grid-template-columns: 1fr auto; }
  .gear-card { grid-template-columns: 96px 1fr; }
  .gear-tab { writing-mode: vertical-rl; transform: rotate(180deg); justify-content: center; padding: 16px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-page-form { flex-direction: row; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-tile { grid-template-columns: 1fr; aspect-ratio: 1 / .9; align-content: space-between; padding: 22px; }
  .cat-tile-motif { width: 96px; height: 96px; }
  .cat-tile-motif svg { width: 88px; height: 88px; }
  .prose table { display: table; }
  .two-up { grid-template-columns: 1fr 1fr; }
  .no-band { grid-template-columns: 1fr 1.2fr; }
  .shop-notes .note-grid { grid-template-columns: 1fr 1fr; }
  .cart-line { grid-template-columns: 96px 1fr auto; }
  .cart-line-price { grid-column: auto; }
}
@media (min-width: 901px) {
  .main-nav { display: flex; }
  .header-actions .btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 961px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .post-side { position: sticky; top: 88px; }
  .featured-card { grid-template-columns: 1.2fr 1fr; }
  .featured-media { min-height: 360px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .subscribe-inner { grid-template-columns: 1.1fr 1fr; }
  .product-layout { grid-template-columns: 1.1fr 1fr; }
  .product-stage { position: sticky; top: 88px; }
  .cart-layout { grid-template-columns: 1fr 340px; }
  .shop-notes .note-grid { grid-template-columns: repeat(4, 1fr); }
}
/* Desktop keeps the compact chrome; phones and tablets get the 44px targets set in the base rules */
@media (min-width: 961px) {
  .tag, .chip, .side-link, .footer-grid > div > a, .toc a, .coll-nav a, .link-plain, .product-name a { min-height: 0; }
  .toc a { padding: 3px 0; }
  .social a { min-width: 0; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .ticker-track { flex-wrap: wrap; width: auto; }
}
