/* HandpickedRoles — pre-launch landing page.
   Palette and type lifted from the original design; no framework, no CDN. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/newsreader-normal-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/newsreader-normal-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/newsreader-italic-300.woff2') format('woff2');
}

:root {
  --bg:            oklch(0.185 0.008 65);
  --panel:         oklch(0.225 0.009 68);
  --inset:         oklch(0.215 0.008 65);

  --text:          oklch(0.93 0.008 80);
  --text-strong:   oklch(0.94 0.008 80);
  --text-lead:     oklch(0.86 0.008 80);
  --text-muted:    oklch(0.72 0.01 80);
  --text-dim:      oklch(0.7 0.01 80);
  --text-faint:    oklch(0.6 0.01 80);
  --text-fainter:  oklch(0.58 0.008 80);
  --text-footer:   oklch(0.55 0.008 80);

  --accent:        oklch(0.78 0.075 82);
  --accent-hover:  oklch(0.88 0.05 85);
  --accent-solid:  oklch(0.82 0.07 84);
  --accent-bright: oklch(0.89 0.055 86);
  --on-accent:     oklch(0.19 0.01 70);

  --rule:          oklch(0.32 0.006 70);
  --rule-soft:     oklch(0.27 0.006 70);
  --field-border:  oklch(0.34 0.006 70);

  --serif: Newsreader, Georgia, 'Times New Roman', serif;
  --sans:  'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 40px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible,
input:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shell {
  width: 100%;
  max-width: 1060px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: clamp(48px, 7vh, 88px);
}

/* ---- header ---- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--text);
}
.wordmark span { color: var(--accent); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---- hero ---- */

main { display: flex; flex-direction: column; gap: clamp(44px, 6vh, 72px); }

.hero { max-width: 780px; display: flex; flex-direction: column; gap: 22px; }

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 7.2vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.lead {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.callout {
  margin-top: 14px;
  width: 100%;
  padding: 30px 34px;
  background: var(--panel);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
}
.callout p {
  margin: 0;
  flex: 1 1 320px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(21px, 3vw, 33px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  text-wrap: pretty;
}

/* ---- three principles ---- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 3.5vw, 52px);
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.principle .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.principle h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.principle p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
  text-wrap: pretty;
}

.sample {
  margin-top: 6px;
  padding: 14px 16px;
  border-left: 1px solid var(--accent);
  background: var(--inset);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
}
.sample > div { display: flex; flex-direction: column; gap: 3px; }
.sample .label {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--text-fainter);
}
.sample .value { color: var(--text-muted); }
.sample .flagged { color: var(--accent); }

.closing {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--text-lead);
  text-wrap: pretty;
}

/* ---- signup ---- */

.signup { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }

.signup-prompt {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  color: var(--text-lead);
}

form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }

input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background: var(--inset);
  border: 1px solid var(--field-border);
  border-radius: 2px;
}
input[type="email"]::placeholder { color: oklch(0.55 0.008 80); }
input[type="email"]:focus { outline: none; border-color: var(--accent); }

button[type="submit"] {
  flex: 0 0 auto;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--on-accent);
  background: var(--accent-solid);
  border: 1px solid var(--accent-solid);
  border-radius: 2px;
  cursor: pointer;
}
button[type="submit"]:hover:not(:disabled) {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}
button[type="submit"]:disabled { opacity: 0.55; cursor: default; }

/* Turnstile renders a ~300x65 iframe. Give it the full row so it doesn't
   squeeze the email field, and collapse the slot when no widget is present. */
#turnstile-slot { flex: 1 0 100%; }
#turnstile-slot:empty { display: none; }

.status { margin: 0; font-size: 15px; line-height: 1.6; }
.status.pending { color: var(--text-muted); }
.status.ok      { color: var(--accent); }
.status.error   { color: oklch(0.72 0.13 32); }

.fine-print {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-fainter);
}

[hidden] { display: none !important; }

/* ---- footer ---- */

footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-footer);
}
footer .links { display: flex; gap: 18px; }

/* ---- legal pages ---- */

.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 20px; }
.prose h1 { font-size: clamp(30px, 4.4vw, 46px); }
.prose h2 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.prose p, .prose li {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose .updated { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-fainter); }

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