/* Board Builder — foundations. Light only, by design. */

:root {
  color-scheme: light;

  /* ─────────────────────────────────────────────────────────────
     Palette lifted from SkatePro's own stylesheet
     (cdn.skatepro.com/css/general.min.css). Their token names are
     noted on the right.
     ───────────────────────────────────────────────────────────── */

  --ink:       #202020;   /* --color-near-black */
  --ink-2:     #26262a;   /* --color-heading */
  --ink-3:     #333333;   /* --color-body-text */
  --ink-4:     #6e6e6e;   /* --color-muted */
  --ink-5:     #8e8e93;

  --paper:     #ffffff;   /* --color-surface */
  --surface:   #f7f7f7;
  --surface-2: #f1f1f1;   /* --color-surface-alt */
  --surface-3: #e2e2e2;   /* --color-surface-panel */
  --line:      #d4d4d8;   /* --color-border */
  --line-soft: #e4e4e7;   /* --color-border-card */

  --brand:       #b84a09; /* --color-brand */
  --brand-deep:  #8f3907;
  --brand-bright:#ff8c33; /* --color-brand-bright */
  --brand-tint:  #fdf1e8;
  --brand-edge:  #f5d9c4;

  --action:      #20825a; /* --color-action */
  --action-hover:#1a6e4c; /* --color-action-hover */
  --action-tint: #e8f4ee;

  --sale:      #da2127;   /* --color-sale */
  --star:      #ffc000;   /* --color-star */
  --stage:     #232326;   /* --color-stage */
  --note:      #fdfbe9;   /* --color-surface-note */

  --r-sm: 3px;
  --r:    6px;
  --r-lg: 12px;
  --r-xl: 20px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(32,32,32,.06), 0 1px 1px rgba(32,32,32,.04);
  --shadow:    0 2px 10px rgba(32,32,32,.08), 0 1px 3px rgba(32,32,32,.05);
  --shadow-lg: 0 18px 44px rgba(32,32,32,.13), 0 4px 12px rgba(32,32,32,.06);

  --wrap: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;   /* keeps the footer down on short steps */
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-3);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink-2); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.018em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }
a  { color: var(--brand); }

img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

/* ── Type helpers ─────────────────────────────────────────────── */
.eyebrow {
  font-size: .735rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 .75rem;
}
.lede { font-size: 1.125rem; color: var(--ink-4); max-width: 62ch; }
.muted { color: var(--ink-4); }
.num { font-variant-numeric: tabular-nums; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 650; line-height: 1;
  padding: .85rem 1.5rem; border-radius: var(--r);
  border: 1px solid transparent; background: var(--surface-2); color: var(--ink-2);
  cursor: pointer; text-decoration: none;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .06s ease;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }

.btn-action { background: var(--action); color: #fff; }
.btn-action:hover { background: var(--action-hover); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-3); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-5); }

.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; border-radius: var(--r); }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; }
.btn[disabled] { opacity: .38; pointer-events: none; }

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-sm);
}

/* ── Chips ────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: baseline; gap: .35rem;
  padding: .3rem .6rem; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  font-size: .8rem; color: var(--ink-3);
  white-space: nowrap; max-width: 100%; overflow-wrap: anywhere;
}
/* A long value (a grip sheet size, a list of riding styles) must wrap rather
   than push the page sideways once there is no room for it on one line. */
@media (max-width: 640px) { .chip { white-space: normal; } }
.chip b { color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.chip-key { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-5); }

/* ── Header ───────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.93); backdrop-filter: saturate(1.4) blur(9px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap { display: flex; align-items: center; gap: 1.25rem; height: 62px; }
.brand-mark {
  font-weight: 800; letter-spacing: -.03em; font-size: 1.2rem; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: .5rem;
}
.brand-mark span { color: var(--brand); }
.brand-sub {
  font-size: .82rem; color: var(--ink-4); padding-left: 1.25rem;
  border-left: 1px solid var(--line); align-self: center; line-height: 1.2;
}
.head-spacer { flex: 1; }

/* ── Progress ─────────────────────────────────────────────────── */
.progress { display: flex; align-items: center; gap: 6px; }
.progress i {
  display: block; width: 26px; height: 4px; border-radius: 2px;
  background: var(--surface-3); transition: background .25s ease;
}
.progress i.done { background: var(--brand-bright); }
.progress i.now  { background: var(--brand); }
.progress-label { font-size: .78rem; color: var(--ink-4); margin-left: .5rem; font-variant-numeric: tabular-nums; }

#app { flex: 1 0 auto; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-foot {
  margin-top: 5rem; flex: none; border-top: 1px solid var(--line-soft);
  background: var(--surface); padding-block: 2.5rem 3.5rem;
  font-size: .85rem; color: var(--ink-4);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.site-foot p { margin: 0; max-width: 58ch; }

@media (max-width: 720px) {
  .wrap { padding-inline: 18px; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
