/* keeproster.com — roster's palette (packages/app/src/theme/raw.ts), light-first.
   Bone + near-black carry everything; orange is a MARKER only (dots, edges),
   never text; attention WORDS are brown on the orange tint (D-H). */

@font-face { font-family: Roboto; font-weight: 400; font-display: swap; src: url(/fonts/roboto-400Regular.woff) format('woff'); }
@font-face { font-family: Roboto; font-weight: 500; font-display: swap; src: url(/fonts/roboto-500Medium.woff) format('woff'); }
@font-face { font-family: Roboto; font-weight: 700; font-display: swap; src: url(/fonts/roboto-700Bold.woff) format('woff'); }

:root {
  --bg: #EAEADD;        /* bone */
  --surface: #F7F6EE;
  --ink: #1C1C1C;       /* near-black */
  --ink2: #4A4740;
  --ink3: #635F54;
  --line: #D6D5C6;
  --orange: #FB5700;    /* marker only */
  --attn-tint: #EDD2BA; /* orange50 */
  --attn-ink: #3A1005;  /* brown */
  --inverse-bg: #131311;
  --inverse-ink: #EAEADD;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131311;
    --surface: #20201D;
    --ink: #EAEADD;
    --ink2: #B7B4A7;
    --ink3: #969382;
    --line: #3C3C3A;
    --attn-tint: #40190A;
    --attn-ink: #F2C6A4;
    --inverse-bg: #20201D;
    --inverse-ink: #EAEADD;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; color: var(--ink); }
.wm { height: 26px; width: auto; display: block; }
.top nav a { font-weight: 500; text-decoration: none; padding: 8px 0; }
.top nav a[aria-current] { text-decoration: underline; }

/* home */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(36px, 7vw, 60px); max-width: 14ch; }
.lede { font-size: 20px; color: var(--ink2); max-width: 36em; margin: 20px 0 28px; }
.badge {
  display: inline-block; padding: 12px 18px; border: 1.5px solid var(--ink); border-radius: 12px;
  font-weight: 500; font-size: 15px;
}
.split { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; border-left: 4px solid var(--orange); }
.card h2 { font-size: 20px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink2); }
.section-title { font-size: 26px; margin-bottom: 20px; }
.features { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: 1fr; gap: 0 32px; }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { padding: 16px 0 16px 22px; border-top: 1px solid var(--line); position: relative; }
.features li::before { content: ''; position: absolute; left: 0; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.features h3 { font-size: 17px; }
.features p { margin: 4px 0 0; color: var(--ink2); }
.contact { padding-bottom: 56px; }
.contact p { margin: 0; color: var(--ink2); }

/* legal + support */
.doc { max-width: 720px; padding-top: 40px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(30px, 6vw, 40px); margin-bottom: 20px; }
.notice { background: var(--attn-tint); color: var(--attn-ink); border-radius: 12px; padding: 14px 16px; border-left: 4px solid var(--orange); }
.notice strong { display: block; font-weight: 700; }
.notice p { margin: 4px 0 0; font-size: 15px; }
.updated { color: var(--ink3); font-size: 14px; margin: 20px 0 8px; }
.intro { color: var(--ink2); }
.doc-section { margin-top: 28px; }
.doc-section h2 { font-size: 20px; margin-bottom: 6px; }
.doc-section p { margin: 8px 0 0; color: var(--ink2); }
.doc a { color: var(--ink); overflow-wrap: anywhere; }

/* footer */
.foot { background: var(--inverse-bg); color: var(--inverse-ink); padding: 32px 0 40px; }
.foot a { color: var(--inverse-ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.foot p { margin: 4px 0; }
.fine { color: #B7B4A7; font-size: 14px; }

/* launch loader — home only (build.mjs launchLoader). Timings mirror the app:
   hold 180ms · unfurl 800ms · hold 400ms · fade 240ms. The SVG's own SMIL moves
   the letters; CSS only fades the overlay away and then takes it out of the way. */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  animation: loader-out 0.24s cubic-bezier(0.5, 1, 0.89, 1) 1.38s forwards;
}
.loader-wm { width: 224px; height: auto; overflow: visible; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }
