/* getcrewofone.com: the public site. Plain CSS, no build step, the app's own palette
   (web/src/app/globals.css) so the site and the app read as one product. Fonts are
   self-hosted: Geist and Newsreader, both SIL Open Font License. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --page: #faf6ee;
  --raised: #fffdf8;
  --ink: #1f2427;
  --muted: color-mix(in srgb, #1f2427 78%, #faf6ee);
  --faint: color-mix(in srgb, #1f2427 66%, #faf6ee);
  --line: color-mix(in srgb, #1f2427 12%, transparent);
  --brand: #1f2427;
  --on-brand: #f4e6c9;
  --action: oklch(47% 0.11 210);
  --on-action: #ffffff;
  --action-text: #16525f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #23292c;
    --raised: #292f33;
    --ink: #efe6d4;
    --muted: color-mix(in srgb, #efe6d4 74%, #23292c);
    --faint: color-mix(in srgb, #efe6d4 64%, #23292c);
    --line: color-mix(in srgb, #efe6d4 12%, transparent);
    --brand: #f4e6c9;
    --on-brand: #1f2427;
    --action: oklch(76% 0.1 205);
    --on-action: #10191c;
    --action-text: oklch(85% 0.08 205);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--action-text); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--raised); padding: 8px 12px; z-index: 10; }

.wrap { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 20px; }
.wide { max-width: 60rem; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mark span.tile {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px;
  background: var(--brand); color: var(--on-brand); font: 600 16px/1 "Newsreader", Georgia, serif;
}
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Type */
h1, h2 { font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0 0 20px; }
h2 { font-size: 1.7rem; margin: 56px 0 12px; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.small { font-size: 14px; color: var(--faint); }
.after { margin-top: 14px; }

/* Home */
.hero { padding: 72px 0 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 7px;
  font-weight: 500; text-decoration: none; border: 1px solid transparent;
}
.btn.primary { background: var(--action); color: var(--on-action); }
.btn.quiet { border-color: var(--line); color: var(--ink); background: var(--raised); }
.btn:hover { filter: brightness(1.05); text-decoration: none; }

.features { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.features li { margin: 0; padding: 20px 22px; background: var(--raised); }
.features h3 { margin: 0 0 4px; }
.features p { margin: 0; color: var(--muted); }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }

.note { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

/* Legal pages */
.doc { padding: 56px 0 24px; }
.doc h2 { font-size: 1.4rem; margin-top: 40px; }
.doc .updated { color: var(--faint); font-size: 15px; margin-bottom: 32px; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; font-size: 15px; color: var(--faint); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
