/* Modular Crate. Direction: a shipping-yard drawing. Container blue and hi-vis yellow on a cool paper,
   one wide heavy display weight, real dimensions as the main graphic. */
:root {
  --bg: #F2F5F5;
  --surface: #E4EBED;
  --fg: #13222D;
  --muted: #475C69;
  --line: #BCC8CE;
  --blue: #1B5A8E;
  --blue-ink: #FFFFFF;
  --signal: #FFC20E;
  --signal-ink: #13222D;
  --focus: #1B5A8E;
  --danger: #A32020;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1A22; --surface: #15252F; --fg: #E7EEF1; --muted: #9FB2BD; --line: #2D424E;
    --blue: #74B3E6; --blue-ink: #0E1A22; --signal: #FFC20E; --signal-ink: #13222D;
    --focus: #FFC20E; --danger: #FF8D8D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1A22; --surface: #15252F; --fg: #E7EEF1; --muted: #9FB2BD; --line: #2D424E;
  --blue: #74B3E6; --blue-ink: #0E1A22; --signal: #FFC20E; --signal-ink: #13222D;
  --focus: #FFC20E; --danger: #FF8D8D; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band-surface { background: var(--surface); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 {
  font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.4rem);
  font-weight: 800; font-stretch: 125%; line-height: 1.02; letter-spacing: -0.012em;
}
h2 {
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.7rem);
  font-weight: 750; font-stretch: 115%; line-height: 1.08; letter-spacing: -0.008em;
}
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 54ch; }
.small { font-size: 0.9rem; color: var(--muted); }
.section-head { display: grid; gap: 0.9rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head p { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -4rem; background: var(--signal); color: var(--signal-ink);
  padding: 0.6rem 1rem; font-weight: 700; z-index: 20;
}
.skip:focus { top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.55rem 1.3rem; border: 2px solid transparent; border-radius: 3px;
  font: inherit; font-weight: 700; font-stretch: 112%; text-decoration: none; cursor: pointer;
  line-height: 1.1;
}
.btn-signal { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn-signal:hover { filter: brightness(0.95); }
.btn-line { background: transparent; color: var(--fg); border-color: var(--fg); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; padding-block: 0.9rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fg); text-decoration: none;
  font-weight: 800; font-stretch: 125%; font-size: 1.15rem; letter-spacing: -0.005em;
}
.brand svg { display: block; flex: none; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--fg); text-decoration: none; font-weight: 600; padding-block: 0.4rem; display: inline-block; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.head-row .btn { min-height: 2.5rem; }

/* Hero */
.hero { padding-block: clamp(2.2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-copy .lead { margin: 0; }
.hero-figure { margin: 0; min-width: 0; }
.hero-figure figcaption { margin-top: 0.8rem; max-width: 60ch; }
.draw { display: block; width: 100%; height: auto; }
.draw .ink { stroke: var(--fg); fill: none; stroke-width: 2.5; }
.draw .rib { stroke: var(--blue-ink); stroke-opacity: 0.28; stroke-width: 1.5; }
.draw .panel { fill: var(--bg); stroke: var(--fg); stroke-width: 2.5; }
.draw .glass { fill: var(--surface); stroke: var(--fg); stroke-width: 2.5; }
.draw .body { fill: var(--blue); }
.draw .cast { fill: var(--fg); }
.draw .dim { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.draw .dim-label { fill: var(--fg); font-family: var(--font); font-size: 17px; font-weight: 700; font-stretch: 112%; }
.draw .unit { fill: var(--signal); stroke: var(--fg); stroke-width: 2.5; }
@media (prefers-reduced-motion: no-preference) {
  .draw .dim { stroke-dasharray: 900; animation: draw-in 1.4s 0.2s ease-out both; }
}
@keyframes draw-in { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }

/* Forms */
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .field .legend { font-weight: 700; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 2.9rem; padding: 0.6rem 0.8rem; font: inherit; font-stretch: 100%;
  color: var(--fg); background: var(--bg); border: 2px solid var(--muted); border-radius: 3px;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.error { color: var(--danger); font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.quote-mini { display: grid; gap: 1rem; max-width: 32rem; }
.quote-mini .fields { display: grid; gap: 1rem; }
.checks { display: grid; gap: 0.55rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); border: 0; padding: 0; margin: 0; }
.checks label { display: flex; gap: 0.6rem; align-items: center; font-weight: 500; }
.checks input { width: 1.2rem; height: 1.2rem; accent-color: var(--blue); }
.quote-form { display: grid; gap: 1.3rem; }
.quote-form .cols { display: grid; gap: 1.3rem; }
.form-note { padding: 0.9rem 1rem; border-left: 5px solid var(--signal); background: var(--bg); font-weight: 600; max-width: 62ch; }
.form-note[hidden] { display: none; }

/* Sizes: bars drawn to scale */
.sizes { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.size-row { display: grid; gap: 0.6rem 1.5rem; align-items: center; }
.size-name { font-weight: 800; font-stretch: 120%; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.bar-track { height: 2.2rem; }
.bar {
  height: 100%; width: calc(var(--len) * 100%); background: var(--blue); border-radius: 2px;
  background-image: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255,255,255,0.28) 9px 11px);
}
.size-meta { display: grid; gap: 0.1rem; }
.size-meta strong { font-variant-numeric: tabular-nums; }

/* Product rows */
.rows { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--fg); }
.row { display: grid; gap: 0.5rem 2rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); align-items: start; }
.row p { margin: 0; }
.row .sizes-line { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Delivery */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.5rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  background: var(--signal); color: var(--signal-ink); font-weight: 800; font-stretch: 120%; border-radius: 3px;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; }
.checklist { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--fg); }
.checklist div { display: grid; gap: 0.2rem 1.5rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.checklist dt { font-weight: 700; }
.checklist dd { margin: 0; color: var(--muted); }
.two-col { display: grid; gap: clamp(2rem, 5vw, 4rem); }

/* FAQ */
.faq { border-top: 2px solid var(--fg); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding-block: 1.1rem; font-weight: 700; font-stretch: 105%; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; margin: 0; color: var(--muted); }

/* Spec table */
.table-scroll { overflow-x: auto; max-width: 100%; }
.spec { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec th, .spec td { text-align: left; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 700; width: 45%; }
.spec caption { text-align: left; font-weight: 700; padding-bottom: 0.6rem; }
.option-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; max-width: 62ch; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 2.2rem; }
.foot-row { display: grid; gap: 1rem; }
.foot-row p { margin: 0; }

@media (min-width: 700px) {
  .quote-mini .fields { grid-template-columns: 1fr 1fr; }
  .quote-form .cols { grid-template-columns: 1fr 1fr; }
  .size-row { grid-template-columns: 7rem 1fr 14rem; }
  .row { grid-template-columns: 14rem 1fr 11rem; }
  .checklist div { grid-template-columns: 11rem 1fr; }
  .foot-row { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.site-foot nav a { color: inherit; }

.quiz { display: grid; gap: 1.5rem; max-width: 52rem; }
.quiz-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz-q legend { font-weight: 700; margin-bottom: .75rem; padding: 0; }
.opts { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.opt { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--line); background: var(--bg); padding: .75rem 1rem; border-radius: 2px; cursor: pointer; min-height: 2.75rem; }
.opt input { accent-color: var(--blue); width: 1.1rem; height: 1.1rem; flex: none; }
.opt:has(input:checked) { border-color: var(--blue); outline: 2px solid var(--blue); }
.opt:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.quiz-result { border-left: 6px solid var(--signal); padding: 1rem 1.25rem; background: var(--bg); display: grid; gap: .75rem; }
.quiz-result h3 { margin: 0; }
.quiz-result p { margin: 0; }
.quiz-result .actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.h3-style { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }

.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface); }
.price-line { margin: 0 0 1.25rem; font-size: 1.25rem; }
.gallery figcaption { margin-top: .3rem; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; background: var(--surface); }
