/* ── Trekr landing — shared design tokens, nav, footer.
   Imported by every page on the site (index, privacy, terms) so the
   brand stays consistent and updating a color happens in one place.
   Page-specific layout lives inline in each HTML file. ────────── */

/* Self-hosted fonts. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Design tokens — mirror src/theme/palettes.ts. */
:root {
  --cream: #f4efe6;
  --ink: #141414;
  --amber: #e8b23a;
  --rose: #c46b5a;
  --muted: #605b4e;
  --muted-light: #8b8472;
  --surface: #ffffff;
  --line: rgba(20, 20, 20, 0.08);
  --line-strong: rgba(20, 20, 20, 0.15);

  --font-body:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-card: 24px;
  --r-button: 14px;
  --r-pill: 999px;
}

/* Reset / base. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  border: none;
  cursor: pointer;
}

/* Container — 1180px max-width column used across the site. */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* Editorial small-caps eyebrow. */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.on-dark {
  color: rgba(244, 239, 230, 0.65);
}

/* Headings used on legal pages + section heads. */
.h2 {
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.04;
  font-size: clamp(32px, 4.5vw, 52px);
  color: var(--ink);
}
.h2.on-dark {
  color: var(--cream);
}

/* Nav. */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.6px;
  font-size: 23px;
}
.wordmark .mark {
  width: 36px;
  height: 36px;
}
.nav-links {
  display: none;
  gap: 28px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  transition: color 200ms ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.3, 1);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
@media (min-width: 768px) {
  .nav-links {
    display: inline-flex;
  }
}

/* Buttons. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 18px;
  border-radius: var(--r-button);
  background: var(--ink);
  color: var(--cream);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
  opacity: 0.9;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

/* Footer. */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 40px;
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: space-between;
}
@media (min-width: 720px) {
  .footer-row {
    flex-direction: row;
    align-items: flex-start;
  }
}
.footer-brand {
  max-width: 340px;
}
.footer-brand p {
  margin-top: 12px;
  color: rgba(244, 239, 230, 0.65);
  font-size: 14px;
  line-height: 1.55;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
  margin-bottom: 4px;
}
.footer-col a {
  color: rgba(244, 239, 230, 0.85);
  font-size: 14.5px;
  transition: color 180ms ease;
}
.footer-col a:hover {
  color: var(--cream);
}
.footer-meta {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(244, 239, 230, 0.5);
}
.footer-meta a {
  color: rgba(244, 239, 230, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}
.footer-meta a:hover {
  color: var(--cream);
}
.footer-meta .mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
