/* Reed Sporting
   Layout: left-aligned single column, max 1200px. The olive hero is a wall of
   safes drawn to one scale beside a person; products are compared in rows.
   Bold in one place (the hero line-up); everything else quiet. */
:root {
  --lichen: #ECEDE5;      /* page */
  --paper: #F6F6F1;       /* raised rows, panels */
  --peat: #2B231B;        /* text */
  --peat-soft: #5C5A4E;   /* secondary text, 6:1 on lichen */
  --muted: var(--peat-soft);
  --olive: #2F3A26;       /* hero, footer */
  --olive-ink: #E7EADF;   /* text on olive */
  --olive-soft: #AEB7A1;  /* secondary text on olive */
  --reed: #C99A2E;        /* the one accent: selected safe, primary button */
  --steel: #34383A;
  --steel-edge: #1A1C1D;
  --rule: #C9CCBF;
  --todo: #FBEA9C;
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Lexend", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--lichen); color: var(--peat);
  font: 400 16px/1.65 var(--font-body);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--reed); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }
.lede { font-size: 19px; line-height: 1.55; color: var(--peat-soft); max-width: 58ch; }
.small { font-size: 15px; color: var(--peat-soft); }
.todo { background: var(--todo); padding: 0 4px; }

/* Buttons */
.btn {
  min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1 var(--font-body); text-decoration: none; border-radius: 4px; cursor: pointer;
  border: 2px solid var(--peat); background: transparent; color: var(--peat);
}
.btn:hover { background: var(--paper); }
.btn-reed { background: var(--reed); border-color: var(--reed); color: var(--peat); }
.btn-reed:hover { background: #B88A22; border-color: #B88A22; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; background: var(--peat); border-color: var(--peat); color: var(--paper); }
.btn-small:hover { background: var(--olive); border-color: var(--olive); }
.btn[disabled] { background: transparent; border-color: var(--rule); color: var(--peat-soft); cursor: not-allowed; }
.state { font-size: 15px; color: var(--peat-soft); }

/* Header */
.announce { background: var(--olive); color: var(--olive-ink); font-size: 14px; }
.announce .wrap { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-block: 6px; }
.announce a { color: var(--olive-ink); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--lichen); z-index: 30; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--lichen); border-bottom: 1px solid var(--rule); }
.site-header .wrap { min-height: 72px; display: flex; align-items: center; gap: 40px; }
.wordmark { font: 400 26px/1 var(--font-display); color: var(--peat); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; gap: 24px; font-size: 15px; margin-right: auto; }
.nav a { color: var(--peat); text-decoration: none; padding-block: 8px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: none; border: 0; color: var(--peat); cursor: pointer; font: 700 16px/1 var(--font-body); padding: 0 8px; }
.icon-btn svg { width: 22px; height: 22px; }
.basket-count { font-variant-numeric: tabular-nums; }
.menu-btn { display: none; }
.mobile-nav { border-top: 1px solid var(--rule); }
.mobile-nav .wrap { display: grid; padding-block: 4px 12px; }
.mobile-nav a { min-height: 48px; display: flex; align-items: center; color: var(--peat); text-decoration: none; border-bottom: 1px solid var(--rule); }

/* Hero: the line-up */
.hero { background: var(--olive); color: var(--olive-ink); }
.hero .wrap { padding-block: 56px 40px; display: grid; gap: 32px; }
.hero h1 { max-width: 16ch; }
.hero .lede { color: var(--olive-soft); }
.hero a { color: var(--olive-ink); }
.picker-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.stepper { display: inline-flex; align-items: center; gap: 14px; font-size: 18px; }
.stepper-ctl { display: inline-flex; border: 2px solid var(--olive-ink); border-radius: 4px; }
.stepper-ctl button { width: 48px; height: 48px; background: none; border: 0; color: var(--olive-ink); font-size: 24px; cursor: pointer; }
.stepper-ctl button:hover { background: rgba(255,255,255,.08); }
.stepper-ctl output { min-width: 52px; display: inline-flex; align-items: center; justify-content: center; font: 400 28px/1 var(--font-display); font-variant-numeric: tabular-nums; border-inline: 2px solid var(--olive-ink); }
.pick { max-width: 62ch; display: grid; gap: 6px; color: var(--olive-soft); min-height: 3.2em; }
.pick .pick-title { color: var(--olive-ink); font-size: 19px; }
.lineup-scroll { overflow-x: auto; margin-inline: calc(var(--gl) * -1) calc(var(--gr) * -1); padding-inline: var(--gl) var(--gr); }
.lineup { display: block; width: 100%; min-width: 760px; height: auto; }
.lineup [data-safe] { cursor: pointer; transition: opacity .2s ease; }
.lineup [data-safe].too-small { opacity: .22; }
.lineup .hl { fill: none; stroke: var(--reed); stroke-width: 14; opacity: 0; }
.lineup .is-pick .hl { opacity: 1; }
.lineup .cap { fill: var(--olive-ink); }
.lineup .is-pick .cap { fill: var(--reed); }
.lineup-note { font-size: 14px; color: var(--olive-soft); }
@media (prefers-reduced-motion: reduce) { .lineup [data-safe] { transition: none; } }

/* Sections */
.section { padding-block: 80px; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head > div { display: grid; gap: 10px; max-width: 62ch; }
.section-head p { color: var(--peat-soft); }

/* Comparison rows */
.compare { border-top: 2px solid var(--peat); }
.compare-head, .row { display: grid; grid-template-columns: 96px minmax(0, 2.2fr) 0.8fr 1.4fr 0.7fr 0.9fr 150px; gap: 20px; align-items: center; }
.compare-head { padding: 10px 0; font-size: 14px; color: var(--peat-soft); border-bottom: 1px solid var(--rule); }
.row { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.row:hover { background: linear-gradient(var(--paper), var(--paper)) padding-box; }
.row-art { display: flex; align-items: flex-end; justify-content: center; height: 112px; }
.row-art svg { height: 100%; width: auto; }
.row-name h3 { font: 700 18px/1.3 var(--font-body); }
.row-name h3 a { color: var(--peat); text-decoration: none; }
.row-name h3 a:hover { text-decoration: underline; }
.row-sub { font-size: 15px; color: var(--peat-soft); }
.row-cap { font: 400 34px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.row-cap small { font: 400 14px/1 var(--font-body); color: var(--peat-soft); margin-left: 4px; }
.row-size, .row-weight { font-size: 16px; font-variant-numeric: tabular-nums; }
.row-price { font: 400 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.row-action { justify-self: end; }
.row-plain .row-art { background: var(--paper); }
.compare-note { margin-top: 16px; font-size: 15px; color: var(--peat-soft); }
.label-sm { display: none; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.steps li { display: grid; gap: 8px; align-content: start; counter-increment: step; }
.steps li::before { content: counter(step); font: 400 44px/1 var(--font-display); color: var(--olive); }
.steps p { color: var(--peat-soft); max-width: 36ch; }

/* Two columns */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.split > div { display: grid; gap: 16px; min-width: 0; }
.split p { max-width: 58ch; }
.aside { background: var(--paper); border-top: 2px solid var(--peat); padding: 28px; display: grid; gap: 12px; }
.aside h3 { font: 700 19px/1.3 var(--font-body); }
.aside p, .aside li { color: var(--peat-soft); }

/* Inner pages */
.page-head .wrap { padding-block: 56px 32px; display: grid; gap: 14px; }
.crumbs { font-size: 15px; color: var(--peat-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--peat-soft); }
.prose { max-width: 66ch; display: grid; gap: 16px; }
.prose h2 { font-size: 28px; margin-top: 28px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.guide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.sticky { position: sticky; top: 104px; }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-block: 24px 64px; }
.product-figure { background: var(--paper); padding: 28px 20px 16px; display: grid; gap: 10px; align-content: end; min-width: 0; }
.product-figure svg { width: 100%; height: auto; max-height: 560px; }
.product-figure figcaption { font-size: 14px; color: var(--peat-soft); text-align: center; }
.buy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.buy h1 { font-size: clamp(30px, 3.6vw, 42px); }
.buy .price { font: 400 34px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 2px solid var(--peat); border-radius: 4px; }
.qty button { width: 44px; min-height: 48px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--peat); }
.qty output { min-width: 36px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.buy-row .btn { flex: 1; min-width: 200px; }
.buy-row .btn:not([disabled]) { background: var(--reed); border-color: var(--reed); }
.buy-row .btn:not([disabled]):hover { background: #B88A22; border-color: #B88A22; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0; padding: 16px 0; border-block: 1px solid var(--rule); }
.facts dt { color: var(--peat-soft); }
.facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.desc { border-top: 1px solid var(--rule); padding-block: 48px 80px; }
.desc .inner { max-width: 760px; display: grid; gap: 16px; }
.desc h3 { font-size: 24px; margin-top: 16px; }
.desc ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.desc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.desc th, .desc td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.desc th { font-weight: 400; color: var(--peat-soft); width: 42%; padding-right: 16px; }
.desc td { font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* Basket */
.scrim { position: fixed; inset: 0; background: rgba(43, 35, 27, .45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 50; background: var(--lichen);
  display: grid; grid-template-rows: auto 1fr auto; border-left: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.drawer-head, .drawer-foot { padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-head { border-bottom: 1px solid var(--rule); }
.drawer-head h2 { font-size: 28px; }
.drawer-items { overflow-y: auto; padding: 0 24px; }
.drawer-foot { border-top: 2px solid var(--peat); flex-direction: column; align-items: stretch; }
.line-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.line-item a { color: var(--peat); font-weight: 700; text-decoration: none; }
.line-price { font-variant-numeric: tabular-nums; font-weight: 700; }
.line-qty { display: flex; align-items: center; gap: 4px; }
.line-qty button { width: 40px; height: 40px; border: 1px solid var(--rule); background: var(--paper); cursor: pointer; font-size: 18px; color: var(--peat); border-radius: 4px; }
.line-qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.line-remove { background: none; border: 0; color: var(--peat-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: 15px; justify-self: end; padding: 8px 0; }
.subtotal { display: flex; justify-content: space-between; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { padding: 32px 0; color: var(--peat-soft); display: grid; gap: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--peat); color: var(--paper); padding: 12px 18px; font-size: 15px; z-index: 60; max-width: calc(100% - 40px); border-radius: 4px; }

/* Footer */
.site-footer { background: var(--olive); color: var(--olive-soft); }
.site-footer .wrap { padding-block: 56px 36px; display: grid; gap: 36px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-cols div { display: grid; gap: 10px; align-content: start; font-size: 16px; }
.footer-cols h2 { font: 700 16px/1.3 var(--font-body); color: var(--olive-ink); }
.footer-cols .wordmark { color: var(--olive-ink); }
.site-footer a { color: var(--olive-ink); }
.legal { border-top: 1px solid rgba(231, 234, 223, .2); padding-top: 20px; font-size: 14px; display: grid; gap: 4px; }

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 940px) {
  .compare-head { display: none; }
  .row { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "art name cap" "art specs specs" "art price action"; gap: 6px 16px; align-items: start; }
  .row-art { grid-area: art; height: 96px; align-self: center; }
  .row-name { grid-area: name; }
  .row-cap { grid-area: cap; font-size: 28px; text-align: right; }
  .row-size { grid-area: specs; }
  .row-weight { display: none; }
  .row-price { grid-area: price; align-self: center; }
  .row-action { grid-area: action; }
  .label-sm { display: inline; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .split, .guide, .product { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sticky { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .section { padding-block: 56px; }
  .hero .wrap { padding-block: 40px 28px; }
}
@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .announce .wrap > span:last-child { display: none; }
  .site-header .wrap { gap: 12px; }
  .wordmark { font-size: 23px; }
  .row-cap { font-size: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .drawer:not([hidden]) { animation: slide-in .2s ease-out; }
  @keyframes slide-in { from { transform: translateX(20px); opacity: .6; } to { transform: none; opacity: 1; } }
}
