/* Palette and type follow the app: src/lib/theme/tokens.css. Fonts are
   self-hosted so loading the page does not contact a third-party font host. */

@font-face {
  font-family: 'Cinzel';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cinzel-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}

:root {
  --bg:        #f5f3ef;
  --surface:   #ffffff;
  --text:      #1a1812;
  --text-2:    #5a5650;
  --muted:     #706c66;
  --accent:    #47744c;
  --rule:      #e4e0d8;
  --icon-filter: none;
  --font-ui:   'Inter', system-ui, sans-serif;
  --font-mark: 'Cinzel', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #13120f;
    --surface:   #1c1a16;
    --text:      #ede8df;
    --text-2:    #a39c90;
    --muted:     #817c75;
    --accent:    #7da882;
    --rule:      #2a271f;
    --icon-filter: brightness(1.9) contrast(0.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:        #13120f;
  --surface:   #1c1a16;
  --text:      #ede8df;
  --text-2:    #a39c90;
  --muted:     #817c75;
  --accent:    #7da882;
  --rule:      #2a271f;
  --icon-filter: brightness(1.9) contrast(0.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-underline-offset: 3px; }

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

/* ── Landing ─────────────────────────────────────────────── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 12vh;
}
.hero img {
  width: 98px;
  height: auto;
  filter: var(--icon-filter);
  margin-bottom: 28px;
}
.wordmark {
  font-family: var(--font-mark);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(36px, 8vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 18px;
}
.hero .lede {
  font-size: 19px;
  color: var(--text-2);
  max-width: 30em;
  margin: 0 0 28px;
}
.soon {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 9999px;
  padding: 6px 16px;
}

/* ── Text pages ──────────────────────────────────────────── */

.back {
  font-family: var(--font-mark);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
}
.page h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 36px 0 8px;
}
.page .lede { font-size: 19px; color: var(--text-2); margin: 0 0 32px; }
.page h2 { font-size: 19px; margin: 32px 0 6px; }
.page p, .page li { color: var(--text); }
.page ul { padding-left: 1.2em; }
.page li + li { margin-top: 8px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 40px; }

.not-found { text-align: center; }
.not-found .back { display: inline-block; }
.error-code {
  color: var(--accent);
  font-family: var(--font-mark);
  font-size: 18px;
  letter-spacing: 0.2em;
  margin: 72px 0 4px;
}
.not-found h1 { margin-top: 0; }
.home-link { display: inline-block; font-weight: 600; margin-top: 8px; }

.contact {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px;
  margin: 8px 0 8px;
}
.contact a { font-size: 20px; font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────── */

footer {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}
footer a { color: var(--muted); }
