/* ==========================================================================
   Koolabrew — site styles
   No framework. Custom properties + grid. Light/dark aware.
   ========================================================================== */

/* ---------- fonts ----------
   Self-hosted latin subsets of Inter and Outfit (SIL Open Font License 1.1).
   Served from our own origin so no render-blocking round trip to Google.
   Both are variable fonts: one file covers the whole weight range.
   -------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --ink:            #0e1b24;
  --ink-2:          #3d515e;
  --ink-3:          #6a7f8c;
  --bg:             #ffffff;
  --bg-2:           #f4f7f9;
  --bg-3:           #e8eef2;
  --line:           #dbe4ea;
  --line-2:         #c5d3dc;

  --brand:          #0b3a52;
  --brand-2:        #12809f;
  --brand-ink:      #ffffff;
  --accent:         #ef6a3d;
  --accent-2:       #ffb03a;

  --ok:             #0f8a5f;

  --radius:         14px;
  --radius-sm:      9px;
  --radius-lg:      22px;
  --shadow-1:       0 1px 2px rgba(11,58,82,.06), 0 2px 8px rgba(11,58,82,.05);
  --shadow-2:       0 2px 6px rgba(11,58,82,.07), 0 12px 32px rgba(11,58,82,.10);
  --shadow-3:       0 8px 20px rgba(11,58,82,.10), 0 28px 60px rgba(11,58,82,.16);

  --wrap:           1200px;
  --gut:            clamp(1rem, 4vw, 2.5rem);
  --header-h:       68px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Outfit", var(--font);

  /* Stock art is black line work on a white field -- see ".art-tile". */
  --art-ground:     #ffffff;
  --art-ink:        none;
  --art-blend:      normal;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:      #e9f1f6;
    --ink-2:    #a9bdc9;
    --ink-3:    #7d95a3;
    --bg:       #0c1519;
    --bg-2:     #121f26;
    --bg-3:     #1a2c35;
    --line:     #233842;
    --line-2:   #33505d;
    --brand:    #0d2f42;
    --brand-2:  #3ab6d8;
    --brand-ink:#eaf6fb;
    --accent:   #ff8154;
    --accent-2: #ffc464;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 2px 6px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.45);
    --shadow-3: 0 8px 20px rgba(0,0,0,.4), 0 28px 60px rgba(0,0,0,.55);
    --art-ground: var(--bg-2);
    --art-ink:    invert(1);
    --art-blend:  screen;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink:      #e9f1f6;
  --ink-2:    #a9bdc9;
  --ink-3:    #7d95a3;
  --bg:       #0c1519;
  --bg-2:     #121f26;
  --bg-3:     #1a2c35;
  --line:     #233842;
  --line-2:   #33505d;
  --brand:    #0d2f42;
  --brand-2:  #3ab6d8;
  --brand-ink:#eaf6fb;
  --accent:   #ff8154;
  --accent-2: #ffc464;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 2px 6px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.45);
  --shadow-3: 0 8px 20px rgba(0,0,0,.4), 0 28px 60px rgba(0,0,0,.55);
  --art-ground: var(--bg-2);
  --art-ink:    invert(1);
  --art-blend:  screen;
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); }
p  { margin: 0 0 1em; }
a  { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

/* Grid and flex children default to min-width:auto, which lets a wide child (a product
   photo, a pricing table) push the whole page wider than the viewport on small screens. */
.pd > *, .hero-inner > *, .contact-grid > *, .cat-grid > *, .prod-grid > *,
.feat-grid > *, .steps > *, .cta-band > *, .ftr-grid > * { min-width: 0; }

.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - var(--gut) * 2); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip:focus { left: 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; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; line-height: 1;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: #d9552a; color: #fff; box-shadow: var(--shadow-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); border-color: var(--ink-3); }
.btn-on-dark { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.32); backdrop-filter: blur(6px); }
.btn-on-dark:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-bar { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
  display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--shadow-1);
}
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand-name span { color: var(--accent); }
.brand-tag { display: none; white-space: nowrap; font-size: .72rem; color: var(--ink-3); letter-spacing: .09em; text-transform: uppercase; font-weight: 600; }
@media (min-width: 1280px) { .brand-tag { display: block; border-left: 1px solid var(--line-2); padding-left: .6rem; margin-left: .2rem; } }

.nav { display: none; }
@media (min-width: 960px) { .nav { display: flex; align-items: center; gap: .15rem; } }
.nav > * { position: relative; }
.nav a, .nav button.navtop {
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: .55rem .8rem; border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem;
  white-space: nowrap;
}
.nav a:hover, .nav button.navtop:hover, .nav [aria-expanded="true"] { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); }
.navtop svg { transition: transform .2s ease; }
.navtop[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: max-content; max-width: min(900px, 92vw);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); padding: 1.25rem; opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.mega[data-open="true"] { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: .35rem 1.5rem; }
.mega a { display: block; padding: .6rem .7rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink); }
.mega a:hover { background: var(--bg-2); color: var(--accent); }
.mega a small { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-3); margin-top: .1rem; line-height: 1.35; }
.mega-foot { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; gap: .6rem; flex-wrap: wrap; }

.hdr-cta { display: none; }
@media (min-width: 1120px) { .hdr-cta { display: inline-flex; } }

.burger {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--ink);
}
@media (min-width: 960px) { .burger { display: none; } }

.theme-btn {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--ink-2);
}
.theme-btn:hover { color: var(--ink); background: var(--bg-2); }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
}

/* ---------- mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 150; display: none; }
.drawer[data-open="true"] { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(6,20,28,.55); backdrop-filter: blur(2px); animation: fade .2s ease; }
.drawer-panel {
  position: absolute; inset: 0 0 0 auto; width: min(400px, 88vw);
  background: var(--bg); box-shadow: var(--shadow-3); overflow-y: auto; overscroll-behavior: contain;
  animation: slide .24s cubic-bezier(.22,1,.36,1);
  padding-bottom: 3rem;
}
@keyframes fade { from { opacity: 0 } }
@keyframes slide { from { transform: translateX(100%) } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 1rem 0 1.25rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.drawer-x { width: 42px; height: 42px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--ink); }
.drawer-body { padding: 1rem 1.25rem; }
.drawer-body h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 1.6rem 0 .5rem; font-family: var(--font); font-weight: 700; }
.drawer-body h4:first-child { margin-top: .4rem; }
.drawer-link { display: block; padding: .7rem .8rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; }
.drawer-link small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-3); }
.drawer-link:hover { background: var(--bg-2); color: var(--ink); }
.drawer-cta { display: grid; gap: .6rem; margin-top: 1.75rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(255,176,58,.30), transparent 60%),
    radial-gradient(900px 620px at 8% 108%, rgba(58,182,216,.34), transparent 62%),
    linear-gradient(158deg, #0b3a52 0%, #0a2637 62%, #08202f 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 72%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 940px) { .hero-inner { grid-template-columns: 1.05fr .95fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #ffd9a6;
  margin-bottom: 1.25rem;
}
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero-sub { font-size: clamp(1.02rem, .96rem + .45vw, 1.25rem); color: #c9dde8; max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.hero-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem;
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.16);
}
@media (min-width: 520px) { .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact strong { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1; }
.fact span { font-size: .82rem; color: #a8c4d3; }

/* One white panel holding a fluid row of products. Earlier this was four rotated
   cards, which broke at in-between widths -- the rotation pushed corners past the
   viewport and the shots were squashed. A fixed 2x2 of fluid tracks scales at every
   width and never leaves an orphan tile the way auto-fit's 3-column step does. */
.hero-art { display: flex; justify-content: center; }
.hero-panel {
  width: 100%; background: rgba(255,255,255,.95); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); padding: clamp(1rem, 2.5vw, 1.75rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.5rem, 1.5vw, 1rem); align-items: end;
}
.hero-tile { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; }
.hero-tile img {
  max-height: 100%; max-width: 100%; width: auto; object-fit: contain;
  mix-blend-mode: multiply;
}
@media (max-width: 939px) { .hero-art { max-width: 520px; margin-inline: auto; } }

/* ---------- sections ---------- */
.sect { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sect-alt { background: var(--bg-2); }
.sect-head { max-width: 58ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.sect-head.center { margin-inline: auto; text-align: center; }
.sect-head p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 0; }
.kicker {
  font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem; display: block;
}

/* ---------- category cards ---------- */
.cat-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cat-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); color: var(--ink); }
.cat-card-img { aspect-ratio: 16 / 10; background: var(--bg-3); display: grid; place-items: center; overflow: hidden; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.cat-card-body h3 { margin: 0; font-size: 1.2rem; }
.cat-card-body p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.cat-card-more { margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .88rem; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; transition: gap .2s ease; }
.cat-card:hover .cat-card-more { gap: .6rem; }

/* ---------- product grid ---------- */
.prod-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.prod {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.prod:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); color: var(--ink); }
.prod-img {
  aspect-ratio: 4 / 3; background: var(--bg); display: grid; place-items: center; padding: .9rem;
  border-bottom: 1px solid var(--line);
}
.prod-img img { max-height: 100%; width: auto; object-fit: contain; }
.prod-ph { color: #b6c6cf; display: grid; place-items: center; gap: .3rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; text-align: center; }
.prod-body { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.prod-sku { font-size: .72rem; font-weight: 700; letter-spacing: .07em; color: var(--ink-3); }
.prod-name { font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.prod-desc { font-size: .8rem; color: var(--ink-3); line-height: 1.4; }
.prod-price { margin-top: auto; padding-top: .6rem; font-size: .85rem; color: var(--ink-2); }
.prod-price b { font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.prod-price .call { color: var(--brand-2); font-weight: 600; }
.badge {
  align-self: flex-start; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .2rem .5rem; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); margin-top: .3rem;
}
.badge-off { background: #fde8e0; color: #a03a12; }
:root[data-theme="dark"] .badge-off { background: #40200f; color: #ffb08c; }

/* ---------- filter bar ---------- */
.filters {
  position: sticky; top: var(--header-h); z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: .85rem 0;
  margin-bottom: 2rem;
}
.filters-inner { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.search { position: relative; flex: 1 1 240px; min-width: 200px; }
.search input {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: .62rem .9rem .62rem 2.35rem; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--bg); appearance: none;
}
.search input::placeholder { color: var(--ink-3); }
.search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink-2); white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--brand-2); border-color: var(--brand-2); color: #06202b; }
.result-count { font-size: .85rem; color: var(--ink-3); margin-left: auto; }
.empty { text-align: center; padding: 4rem 1rem; color: var(--ink-3); }

/* ---------- product detail ---------- */
.crumbs { font-size: .85rem; color: var(--ink-3); padding: 1.25rem 0 0; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs i { font-style: normal; margin: 0 .4rem; opacity: .5; }

.pd { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); padding: 1.5rem 0 clamp(3rem, 6vw, 5rem); }
@media (min-width: 860px) { .pd { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }
.pd-media {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem); display: grid; place-items: center; aspect-ratio: 4/3;
  box-shadow: var(--shadow-1);
}
.pd-media img { max-height: 100%; width: auto; object-fit: contain; }
@media (min-width: 860px) { .pd-info { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.pd-sku { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.pd h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); margin: .2rem 0 .6rem; }
.pd-lede { font-size: 1.08rem; color: var(--ink-2); }
.pd-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1.1rem 0 1.5rem; }
.tag {
  font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none;
}
a.tag:hover { border-color: var(--accent); color: var(--accent); }

.pricebox { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; background: var(--bg-2); }
.pricebox-head { padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pricebox-head h2 { font-size: 1rem; margin: 0; font-family: var(--font); font-weight: 700; }
.pricebox-head .from { font-size: .8rem; color: var(--ink-3); text-align: right; }
.pricebox-head .from b { font-family: var(--display); font-size: 1.5rem; color: var(--ink); display: block; line-height: 1.1; }
table.tiers { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--bg); }
table.tiers th, table.tiers td { padding: .7rem 1.15rem; text-align: left; }
table.tiers th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; border-bottom: 1px solid var(--line); }
table.tiers td { border-bottom: 1px solid var(--line); }
table.tiers tr:last-child td { border-bottom: 0; }
table.tiers td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
table.tiers tr:last-child td:last-child { color: var(--ok); }
.pricebox-note { padding: .8rem 1.15rem; font-size: .8rem; color: var(--ink-3); background: var(--bg-2); }

.order-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.pd-meta { font-size: .88rem; color: var(--ink-3); }
.pd-meta a { color: var(--brand-2); }

/* ---------- feature strip ---------- */
.feat-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feat h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.feat p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.feat-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: .85rem;
  background: color-mix(in srgb, var(--brand-2) 14%, transparent); color: var(--brand-2);
}

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-top: 3.1rem; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0;
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--display); font-weight: 800;
  display: grid; place-items: center; font-size: 1.1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { font-size: .92rem; color: var(--ink-2); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #0b3a52 0%, #0a2637 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: 1.5rem; align-items: center; box-shadow: var(--shadow-2);
}
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #b9d3e0; margin: 0; max-width: 52ch; }
.cta-band-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- colors & swatches ---------- */
.color-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.color {
  border-radius: var(--radius); aspect-ratio: 5/3; position: relative; overflow: hidden;
  box-shadow: var(--shadow-1); border: 1px solid rgba(0,0,0,.08);
  display: flex; align-items: flex-end; padding: .65rem .75rem;
  font-weight: 700; font-size: .86rem;
}
.color code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; opacity: .7; position: absolute; top: .6rem; left: .75rem; }
.swatch-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); background: var(--bg); }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.swatch span { display: block; padding: .5rem .6rem; font-size: .8rem; font-weight: 700; color: var(--ink-2); }

/* ---------- stock art ---------- */
/* Hub: one card per collection. Title and description lead, so you know what
   you are looking at before you look at it. */
.art-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.art-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg); box-shadow: var(--shadow-1); isolation: isolate;
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); color: var(--ink); }
.art-head { padding: 1rem 1.15rem 1.05rem; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; flex: 1; }
.art-head h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.art-head p { margin: 0; color: var(--ink-3); font-size: .88rem; line-height: 1.45; }
.art-more { margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .88rem; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; transition: gap .2s ease; }
.art-card:hover .art-more { gap: .6rem; }
/* The art is black line work on a white field, which is a white block in dark mode.
   Inverting turns the line work white and the field black, and screening then drops
   that black field into the surface behind it -- so the imprint is left floating on
   the card, which is closer to how it prints than a white patch is. The ground comes
   from the parent, not the image, so a tile that has not loaded yet looks the same as
   one that has. "isolation" keeps the blend inside the card. */
.art-card img {
  width: 100%; margin-top: auto;
  filter: var(--art-ink); mix-blend-mode: var(--art-blend);
}

/* Collection page: every design in the collection. */
.chips--art { margin: 1.5rem 0 .25rem; }
.chips--art .chip { text-decoration: none; }
.chips--art .chip small { font-weight: 600; opacity: .6; margin-left: .3rem; }
.chips--art .chip[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .chips--art .chip[aria-current="page"] { background: var(--brand-2); border-color: var(--brand-2); color: #06202b; }

.art-tiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.art-tile {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--art-ground); box-shadow: var(--shadow-1); isolation: isolate;
}
.art-tile img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: contain;
  filter: var(--art-ink); mix-blend-mode: var(--art-blend);
}
/* The design code is printed inside the art as well; repeating it as text makes it
   selectable, searchable and readable to a screen reader. */
.art-tile figcaption {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; text-align: center; padding: .4rem .3rem .5rem;
  color: var(--ink-2); background: var(--bg); border-top: 1px solid var(--line);
}
@media (max-width: 560px) { .art-tiles { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); } }
/* On paper the art is black on white again -- printing the dark-mode treatment would
   put white line work on a white page. */
@media print {
  .art-tile { background: #fff; }
  .art-tile img, .art-card img { filter: none; mix-blend-mode: normal; background: #fff; }
}

/* ---------- FAQ ---------- */
details.qa {
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .7rem; background: var(--bg);
  overflow: hidden; transition: border-color .2s ease, box-shadow .2s;
}
details.qa[open] { border-color: var(--line-2); box-shadow: var(--shadow-1); }
details.qa summary {
  cursor: pointer; list-style: none; padding: 1rem 1.25rem; font-weight: 700; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--display);
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
details.qa[open] summary::after { transform: rotate(225deg) translateY(-2px); }
details.qa summary:hover { color: var(--accent); }
/* The accordions run the full width of the page so their left edge lines up with
   the heading above them, but the answers are capped to a readable measure rather
   than stretched across 1200px. Same trick as ".sect-head". */
.qa-body { padding: 0 1.25rem 1.25rem; color: var(--ink-2); max-width: 78ch; }
.faq-group-intro { max-width: 62ch; }
.qa-body > :last-child { margin-bottom: 0; }
.qa-body strong { color: var(--ink); }

.callout {
  border-left: 3px solid var(--accent); background: var(--bg-2); padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; font-size: .95rem; color: var(--ink-2);
}
.callout > :last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.info-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--bg-2); }
.info-card dl { margin: 0; }
.info-row { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-row svg { flex: none; color: var(--brand-2); margin-top: .2rem; }
.info-row dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin-bottom: .1rem; }
.info-row dd { margin: 0; font-weight: 600; }
.info-row dd a { text-decoration: none; }
.info-row dd small { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-3); }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg);
  padding: .7rem .9rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* ---------- footer ---------- */
.ftr { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.ftr-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ftr-brand { max-width: 34ch; }
.ftr-brand p { font-size: .9rem; color: var(--ink-3); margin: .8rem 0 0; }
.ftr h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-family: var(--font); margin-bottom: .9rem; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ftr a { color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.ftr a:hover { color: var(--accent); }
.ftr-bot {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: var(--ink-3);
}

/* ---------- utilities ---------- */
.stack > * + * { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.tabular { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.scroll-x { overflow-x: auto; }

/* ---------- order builder ---------- */
.order-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 940px) { .order-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; } }
.order-layout > * { min-width: 0; }

.olabel { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .4rem; }
.ohint { font-size: .78rem; font-weight: 400; color: var(--ink-3); }
.ohint--block { display: block; margin: .5rem 0 0; line-height: 1.45; }
.ohint--pad { padding: 0 1.1rem 1.1rem; margin-top: 0; }

.order-add { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; background: var(--bg-2); }
.order-add-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.order-add-row select {
  flex: 1 1 260px; min-width: 0; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg); padding: .7rem .9rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}

.order-lines { display: grid; gap: 1rem; margin: 1.5rem 0; }
.oline { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-1); overflow: hidden; }
.oline-head { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.oline-media { flex: none; width: 62px; height: 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; overflow: hidden; }
.oline-media img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.oline-ph { font-size: .7rem; font-weight: 700; color: var(--ink-3); }
.oline-id { flex: 1; min-width: 0; }
.oline-sku { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .07em; color: var(--ink-3); }
.oline-name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.oline-desc { display: block; font-size: .78rem; color: var(--ink-3); }
.oline-x {
  flex: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-3); font-size: 1.2rem; line-height: 1;
}
.oline-x:hover { color: var(--accent); border-color: var(--accent); }

.oline-body { display: grid; gap: 1rem; padding: 1.1rem; }
@media (min-width: 620px) { .oline-body { grid-template-columns: 160px 1fr; } }
.ofield label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .35rem; }
.ofield input, .ofield select {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg);
  padding: .6rem .8rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
.ofield--full { padding: 0 1.1rem 1.1rem; }

.oswatches { padding: 0 1.1rem 1.1rem; }
.oswatch-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.oswatch-head .olabel { margin: 0; }
.oswatch-actions { display: flex; gap: .4rem; margin-left: auto; flex-wrap: wrap; }
.oswatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .4rem; }
.oswatch {
  display: flex; align-items: center; gap: .5rem; text-align: left;
  font: inherit; font-size: .82rem; cursor: pointer; color: var(--ink);
  padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  transition: border-color .15s, background-color .15s;
}
.oswatch:hover { border-color: var(--ink-3); }
.oswatch.is-on { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 10%, transparent); font-weight: 600; }
.oswatch-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }

.order-you { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--bg-2); }
.order-you h2 { font-size: 1.25rem; margin-bottom: 1rem; }

@media (min-width: 940px) { .order-side { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.order-summary { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; background: var(--bg); box-shadow: var(--shadow-1); }
.order-summary h2 { font-size: 1.1rem; margin-bottom: .9rem; }
.osum-rows { display: grid; gap: .1rem; }
.osum-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; font-weight: 600; margin-top: .7rem; }
.osum-row b { font-variant-numeric: tabular-nums; }
.osum-sub { font-size: .76rem; color: var(--ink-3); line-height: 1.4; }
.osum-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-2);
}
.osum-total b { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }
.osum-note { font-size: .74rem; color: var(--ink-3); margin: .7rem 0 0; line-height: 1.45; }
.osum-problems { margin: 1rem 0 0; padding-left: 1.1rem; font-size: .8rem; color: var(--warn, #a86a00); }
:root[data-theme="dark"] .osum-problems { color: var(--accent-2); }
.osum-problems li + li { margin-top: .25rem; }
.order-actions { display: grid; gap: .55rem; margin-top: 1.25rem; }
.order-actions .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.ostatic {
  margin: 0; font-size: .95rem; font-weight: 600; padding: .6rem .8rem;
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2);
}

/* count badge on the order link, and the product CTA once that item is in the draft */
.order-count {
  display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem;
  margin-left: .4rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.drawer-link .order-count { margin-left: .5rem; }
.ftr .order-count { background: var(--accent); }
.btn.is-in-order { border-color: var(--ok); color: var(--ok); }
.btn.is-in-order:hover { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); }
