/* ==========================================================================
   CraftedCruise GearWorks — teaser page
   Single dark theme, brass accent. No external requests, no JavaScript:
   fonts are self-hosted (SIL OFL), the mark is inline SVG.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ------------------- */

@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens -------------------------------------------------------- */

:root {
  --bg: #0b0d12;
  --line: rgba(160, 172, 198, 0.14);
  --line-strong: rgba(160, 172, 198, 0.26);
  --text: #edeff4;
  --muted: #9ba3b4;
  --faint: #6b7386;
  --brass: #e8a33d;
  --brass-hi: #f6d488;
  --brass-grad: linear-gradient(135deg, #f6d488 0%, #e8a33d 55%, #c97f22 100%);
  --font-display: "Chakra Petch", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --shell: 1100px;
}

/* ---------- Base ---------------------------------------------------------- */

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; display: flex; }

h1 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brass-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(232, 163, 61, 0.35); }

.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brass);
  color: #14100a;
  font-family: var(--font-display);
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #14100a; }

.shell {
  width: min(var(--shell), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Type roles ----------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.4em;
}

.ink-brass {
  background: var(--brass-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn--sm { padding: 0.55em 1.15em; font-size: 0.88rem; }

.btn--primary {
  background: var(--brass-grad);
  color: #171107;
  box-shadow: 0 6px 22px -8px rgba(232, 163, 61, 0.55);
}
.btn--primary:hover {
  color: #171107;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px rgba(232, 163, 61, 0.7);
}

/* ---------- Header ----------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--line); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.brand-mark { width: 34px; height: 34px; flex: none; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  line-height: 1.05;
  display: inline-flex;
  flex-direction: column;
}
.brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.wip-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-hi);
  border: 1px dashed rgba(232, 163, 61, 0.55);
  border-radius: 999px;
  padding: 0.45em 0.95em;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .wip-pill { display: none; }
}

/* ---------- Hero --------------------------------------------------------------- */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  text-align: center;
  padding: clamp(72px, 12vh, 140px) 0;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(232, 163, 61, 0.09) 0%, rgba(232, 163, 61, 0) 100%),
    radial-gradient(45% 38% at 50% 108%, rgba(143, 164, 204, 0.07) 0%, rgba(143, 164, 204, 0) 100%);
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  margin-bottom: 0.4em;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 44ch;
  margin-inline: auto;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.contact-email { margin-top: 1.4rem; }
.contact-email a {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 2.8rem;
}

/* ---------- 404 ------------------------------------------------------------------ */

.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  text-align: center;
  padding: clamp(72px, 12vh, 140px) 0;
}
.error-page .section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
}
.error-page .section-lede { color: var(--muted); max-width: 44ch; margin-inline: auto; }
.error-page .hero-ctas { justify-content: center; }

/* ---------- Footer ----------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
}

.footer-legal {
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.7;
  text-align: center;
}
.footer-legal p { margin: 0 0 0.35em; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--brass-hi); }

/* ---------- Reduced motion ----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
