:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --tile: #EEEEEA;
  --ink: #141414;
  --muted: #6B6B66;
  --line: #E2E2DD;
  --line-strong: #141414;
  --max: 1160px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.elastic { overscroll-behavior-y: none; } /* our own bounce replaces the browser's, so it feels the same everywhere */
body { will-change: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
#site-header, #site-footer { display: contents; }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; font-size: 18px; }
.brand-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.testing { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 18px; line-height: 1; color: #fff; background: #C62828; padding: 5px 8px 4px; white-space: nowrap; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); height: calc(100vh - 64px); overflow-y: auto; }
.mobile-menu .wrap { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 32px; }
.mobile-menu a { text-decoration: none; font-size: 22px; letter-spacing: -0.01em; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a[aria-current="page"] { font-weight: 500; }
.mobile-menu a.small { font-size: 14px; color: var(--muted); border-bottom: 0; padding-top: 20px; }
body.menu-open { overflow: hidden; }
.intl a { color: var(--ink); }
h2[id] { scroll-margin-top: 88px; }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: 22px; }
.prose { max-width: 640px; }
.prose h2 { margin: 40px 0 12px; font-size: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 4px; }

/* Hero */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero p.lede { font-size: 18px; color: var(--muted); max-width: 520px; margin: 20px 0 0; }

/* Grid */
.section { padding: 56px 0 80px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.card { text-decoration: none; display: block; }
.card .img { aspect-ratio: 1 / 1; background: var(--tile); overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .img img { transform: scale(1.03); }
.card .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.card .title { font-weight: 500; }
.card .sub { color: var(--muted); font-size: 14px; }
.card .price { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.card .price .price-note { display: block; }
.price-note { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.buybox .price .price-note { font-size: 14px; margin-left: 4px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; margin-top: 8px; }

/* Product */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; padding: 40px 0 72px; }
.product > *, .details > * { min-width: 0; }
.gallery .main { aspect-ratio: 1 / 1; background: var(--tile); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 1px solid transparent; background: var(--tile); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox { position: sticky; top: 96px; align-self: start; }
.buybox .sub { color: var(--muted); margin-top: 8px; }
.buybox .price { font-size: 22px; margin: 20px 0; font-variant-numeric: tabular-nums; }
.buybox .summary { margin: 0 0 24px; }
.field-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: block; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.options button { font: inherit; font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.options button[aria-pressed="true"] { border-color: var(--ink); }
.options button:disabled { color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 52px; background: var(--ink); color: #fff; text-decoration: none; font: inherit; font-weight: 500; border: 0; cursor: pointer; letter-spacing: 0.01em; }
.btn:hover { background: #333; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: not-allowed; pointer-events: none; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.details-sec { border-top: 1px solid var(--line); }
.details { padding-top: 48px; padding-bottom: 80px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); width: 40%; }
.crumb { padding-top: 24px; font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }

/* Pages */
.page { padding-top: 56px; padding-bottom: 96px; }
.page h1 { margin-bottom: 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 720px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Form */
.form { max-width: 560px; display: grid; gap: 18px; margin-top: 32px; }
.form label { display: grid; gap: 6px; font-size: 14px; }
.form input, .form textarea { font: inherit; padding: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 0; }
.form input:focus, .form textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.form .btn { width: auto; padding: 0 32px; justify-self: start; }

/* Sold out: restock date + notify */
.restock { margin: 14px 0 0; font-weight: 500; }
.notify { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.notify-row { display: flex; gap: 8px; }
.notify input { flex: 1; min-width: 0; font: inherit; padding: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 0; }
.notify button { font: inherit; font-weight: 500; padding: 0 20px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.notify button:hover { background: var(--ink); color: #fff; }
.notify input:focus, .notify button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.form select { font: inherit; padding: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 0; }
.form .opt { color: var(--muted); font-size: 13px; }
.form .check { display: flex; gap: 10px; align-items: center; }
.form .check input { width: 16px; height: 16px; accent-color: var(--ink); }
.form .hint { color: var(--muted); font-size: 13px; margin-top: -2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.empty { color: var(--muted); padding: 40px 0; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product, .details { grid-template-columns: 1fr; gap: 32px; }
  .buybox { position: static; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}
@media (min-width: 761px) { body:not(.has-testing) .mobile-menu { display: none; } }
/* With the red testing label the bar is wider, so switch to the menu icon earlier */
@media (min-width: 761px) and (max-width: 1040px) { body.has-testing .nav { display: none; } body.has-testing .menu-btn { display: block; } }
@media (min-width: 1041px) { .mobile-menu { display: none; } }
@media (max-width: 560px) {
  .brand-wrap { gap: 8px; }
  .brand { font-size: 15px; }
  .testing { font-size: 10px; padding: 4px 6px 3px; letter-spacing: 0.1em; }
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }

  /* Phones: page content 10% smaller (top bar unchanged) with roomier side margins */
  .site-header > .wrap, .mobile-menu .wrap { padding: 0 24px; }
  #main, .site-footer { zoom: 0.9; }
  #main .wrap, .site-footer .wrap { padding-left: 26.5px; padding-right: 26.5px; } /* = 24px after the 0.9 zoom */
  /* keep form text at 16px+ so iPhones don't auto-zoom when you tap a field */
  .form input, .form textarea, .form select, .notify input { font-size: 18px; }
}
.details-sec .details { padding-top: 48px; padding-bottom: 80px; }
