/* The Half — brand tokens. Duplicated from portal/src/styles/tokens.css
   (no shared package yet; keep values identical across app/portal/site). */
:root {
  --ink: #0b0d16;
  --lavender: #8b85f0;

  --panel: #131627;
  --border: #262b45;

  --text: #e9e8f2;
  --text-muted: #9a97b3;
  --on-lavender: #0b0d16;

  --focus: color-mix(in srgb, var(--lavender) 70%, transparent);

  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-sans:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius-md: 10px;
  --radius-pill: 999px;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
}

/* Cormorant Garamond variable italic (400-500), self-hosted, SIL OFL.
   Loaded ONLY for the wordmark, whose SVG uses live <text>. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h2,
h3 {
  font-family: var(--font-serif);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin: 0;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 18px;
  letter-spacing: 0.04em;
}

p {
  margin: 0;
}

a {
  color: var(--lavender);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---- pre-launch password gate --------------------------------------------
   TEMPORARY — remove at launch. Delete this whole block along with the
   #gate-overlay markup and #gate-script in index.html; unwrap #site-content's
   children (the div itself can go too) once the gate is removed. */

#site-content {
  display: none;
}

#gate-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--s4);
}

#gate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  width: min(320px, 100%);
  padding: var(--s6) var(--s5);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

#gate-form h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 600;
  color: var(--lavender);
  margin: 0;
}

#gate-form > p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

#gate-form label {
  align-self: flex-start;
  font-size: 13px;
  color: var(--text-muted);
}

#gate-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--ink);
  color: var(--text);
  font-size: 15px;
}

#gate-form button {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--lavender);
  color: var(--on-lavender);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

#gate-error {
  color: #f0857a;
  font-size: 13px;
  margin: 0;
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s3);
  padding: var(--s7) var(--s4) var(--s6);
}

.hero__icon {
  display: block;
  margin-bottom: var(--s2);
}

.hero__mark {
  color: var(--lavender);
  width: min(560px, 100%);
}

.hero__mark svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero__sub {
  font-family: var(--font-serif);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-size: 16px;
  margin-top: calc(-1 * var(--s3));
}

.hero__lede {
  max-width: 480px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  margin-top: var(--s2);
}

.hero__nav {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s4);
}

.pill {
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.pill:hover {
  border-color: var(--lavender);
  color: var(--lavender);
  text-decoration: none;
}

/* ---- sections ------------------------------------------------------------ */

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--s4) var(--s6);
}

.section {
  padding: var(--s6) 0;
}

.section__intro {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-bottom: var(--s5);
}

.section__intro p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.feature {
  border-left: 3px solid var(--lavender);
  background: var(--panel);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s3);
}

.feature h3 {
  color: var(--text);
  margin-bottom: var(--s2);
}

.feature p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.bridge {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--s5) var(--s4);
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text);
}

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

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  padding: var(--s6) var(--s4) var(--s7);
  opacity: 0.6;
}

.site-footer p {
  font-family: var(--font-serif);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- responsive ----------------------------------------------------------- */

@media (max-width: 560px) {
  .hero {
    padding: var(--s6) var(--s4) var(--s5);
  }

  .hero__lede {
    font-size: 16px;
  }

  h2 {
    font-size: 22px;
  }

  .feature {
    padding: var(--s4);
  }
}
