/* =========================================================
   BOM Shelter — 01 Base: tokens, reset, type, controls
   ========================================================= */

:root {
  --font-display: "Space Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Refined, high-clarity daylight palette */
  --paper: #f4f6f9;
  --paper-2: #eaeff4;
  --raised: #ffffff;
  --ink: #0d2538;
  --ink-2: #344c5d;
  --ink-3: #647f92;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --blue: #0b6cb0;
  --cyan: #0284c7;
  --orange: #e8590c;
  --green: #15803d;
  --red: #b91c1c;
  --on-accent: #ffffff;

  --grid: rgba(11, 108, 176, 0.05);
  --grid-2: rgba(11, 108, 176, 0.1);
  --board: rgba(11, 108, 176, 0.08);

  --shadow: 0 20px 40px -20px rgba(13, 37, 56, 0.25);
  --shadow-sm: 0 4px 16px -4px rgba(13, 37, 56, 0.12);

  --foot-bg: #091f2e;
  --foot-ink: #e2edf3;
  --foot-line: rgba(226, 237, 243, 0.15);

  --wrap: 1240px;
  --head-h: 70px;
}


/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--line { border-top: 1px solid var(--line-2); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ---------- Type helpers ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.kicker::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--orange);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
}

.hl {
  color: var(--blue);
  background: linear-gradient(transparent 68%, rgba(232, 89, 12, 0.14) 68%, rgba(232, 89, 12, 0.14) 94%, transparent 94%);
  padding-bottom: 2px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line-2);
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}
.skip:focus { transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 108, 176, 0.25);
}

.btn .ico { width: 14px; height: 14px; flex: none; }

.btn--accent {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--on-accent);
}
.btn--accent:hover {
  background: #d04f0a;
  border-color: #d04f0a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 89, 12, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  background: var(--raised);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--sm {
  padding: 8px 12px;
  font-size: 11px;
}

.btn--lg {
  padding: 14px 24px;
  font-size: 12.5px;
}

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.linkish {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1.5px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease, gap 0.15s ease;
}
.textlink:hover {
  color: var(--orange);
  border-color: var(--orange);
  gap: 9px;
}
.textlink svg { width: 13px; height: 13px; }

/* ---------- Form controls ---------- */
.input,
.select,
.textarea {
  width: 100%;
  background: var(--raised);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--ink);
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder,
.textarea::placeholder { color: var(--ink-3); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}

.textarea { resize: vertical; line-height: 1.6; min-height: 200px; }

.select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--raised);
  position: relative;
  cursor: pointer;
}
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #ffffff;
  border-radius: 1px;
}
.check:hover { color: var(--ink); }


/* ---------- Tags, chips, stock ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--raised);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag--accent { border-color: color-mix(in srgb, var(--orange) 45%, transparent); color: var(--orange); }
.tag--blue { border-color: color-mix(in srgb, var(--blue) 45%, transparent); color: var(--blue); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--raised);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip svg { width: 11px; height: 11px; }

.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}
.stock::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.stock--low { color: var(--orange); }
.stock--out { color: var(--ink-3); }

.price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price small {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-left: 4px;
}
