/* Solum marketing site.
   Thin on purpose: the promise, the three things that make up the offer,
   what the box holds, the open source line, a few questions, the waitlist.
   Tokens first, then base, then sections in page order. */

@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --paper: #F3F3F0;
  --ink: #131516;
  --accent: #B8601C;
  --accent-bright: #E08A2E;

  /* Page */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #55595B;
  --line: rgba(19, 21, 22, 0.14);
  --field-bg: #FFFFFF;
  --field-line: rgba(19, 21, 22, 0.3);
  --button-bg: var(--ink);
  --button-fg: var(--paper);
  --focus: var(--accent);

  /* Inverted band */
  --band-bg: var(--ink);
  --band-fg: var(--paper);
  --band-muted: #A9ADAB;
  --band-line: rgba(243, 243, 240, 0.18);

  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(64px, 9vw, 128px);
  --measure: 34em;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--ink);
    --fg: var(--paper);
    --muted: #A9ADAB;
    --line: rgba(243, 243, 240, 0.16);
    --field-bg: #1D2021;
    --field-line: rgba(243, 243, 240, 0.34);
    --button-bg: var(--accent-bright);
    --button-fg: var(--ink);
    --focus: var(--accent-bright);
    --band-bg: #0B0C0D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: #A9ADAB;
  --line: rgba(243, 243, 240, 0.16);
  --field-bg: #1D2021;
  --field-line: rgba(243, 243, 240, 0.34);
  --button-bg: var(--accent-bright);
  --button-fg: var(--ink);
  --focus: var(--accent-bright);
  --band-bg: #0B0C0D;
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 1.1875rem;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-size: 0.95rem; border-radius: 8px;
}
.skip:focus { top: 12px; }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */

.nav { padding-block: 22px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; }
.logo .mark { width: 30px; height: 30px; }
.logo .wordmark { height: 15px; width: auto; }
.nav-cta {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 500;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { border-color: var(--fg); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(32px, 6vw, 88px) var(--section); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.hero h1 { font-size: clamp(2.75rem, 1.5rem + 5.2vw, 5.5rem); letter-spacing: -0.045em; }
.lede { margin-top: 28px; max-width: var(--measure); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5625rem); line-height: 1.46; }
.lede-quiet { margin-top: 14px; color: var(--muted); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
.hero-mark { display: flex; justify-content: center; }
.hero-mark .mark { width: 100%; max-width: 420px; height: auto; color: var(--fg); }

/* ---------- Waitlist form ---------- */

.waitlist { margin-top: clamp(28px, 3.4vw, 44px); max-width: 34rem; }
.waitlist-row {
  display: flex; gap: 8px; padding: 6px;
  background: var(--field-bg); border: 1px solid var(--field-line); border-radius: 999px;
}
.waitlist-row:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; padding: 12px 18px; border: 0; background: transparent;
  color: var(--fg); font-family: var(--font-display); font-size: 1rem; outline: none;
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist button {
  padding: 12px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--button-bg); color: var(--button-fg);
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; white-space: nowrap;
}
.waitlist button:hover { filter: brightness(1.08); }
.waitlist button:disabled { opacity: 0.6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-status { margin-top: 12px; min-height: 1.4em; font-family: var(--font-display); font-size: 0.95rem; }
.waitlist-status[data-kind="error"] { color: #B23B2B; }
.waitlist-status[data-kind="ok"] { color: var(--fg); }
.waitlist-follow { margin: 14px 0 0; padding: 0; border: 0; }
.waitlist-follow legend { padding: 0; margin-bottom: 10px; font-family: var(--font-display); font-size: 0.95rem; color: var(--muted); }
.waitlist-follow button {
  margin: 0 8px 8px 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--fg); font-family: var(--font-display); font-size: 0.92rem; cursor: pointer;
}
.waitlist-follow button:hover { border-color: var(--fg); }
.waitlist-note { margin-top: 10px; font-family: var(--font-display); font-size: 0.82rem; color: var(--muted); }
.waitlist[data-state="joined"] .waitlist-row { display: none; }

/* ---------- The offer: three things ---------- */

.offer { padding-block: var(--section); border-top: 1px solid var(--line); }
.offer h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); max-width: 16ch; }
.offer-grid {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.offer-item { padding-top: 22px; border-top: 2px solid var(--fg); }
.offer-item h3 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); letter-spacing: -0.025em; }
.offer-item p { margin-top: 14px; font-size: 1.15rem; line-height: 1.5; }

/* ---------- What the box holds ---------- */

.holds { padding-block: 0 var(--section); }
.holds h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); letter-spacing: -0.03em; }
.holds-list {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; border-top: 1px solid var(--line);
}
.holds-list li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; align-items: start;
  padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line);
}
.holds-list .glyph { width: 26px; height: 26px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.holds-list h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.holds-list p { margin-top: 6px; font-size: 1.05rem; line-height: 1.45; color: var(--muted); }

/* ---------- Open source band ---------- */

.open { background: var(--band-bg); color: var(--band-fg); padding-block: var(--section); }
.open-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.open h2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.75rem); }
.open p { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem); line-height: 1.5; color: var(--band-muted); max-width: var(--measure); }
.open p + p { margin-top: 1em; }
.open p strong { color: var(--band-fg); font-weight: 500; }

/* ---------- Questions ---------- */

.faq { padding-block: var(--section); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
.faq h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 20px 0; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; max-width: 36em; color: var(--muted); }

/* ---------- End ---------- */

.end { padding-block: 0 var(--section); }
.end-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: var(--section); border-top: 1px solid var(--line); }
.end h2 { font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4.25rem); letter-spacing: -0.04em; }
.end .waitlist { margin-top: 0; }

/* ---------- Footer ---------- */

.foot { padding-block: 28px 40px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 0.9rem; color: var(--muted); }
.foot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; }
.foot .mark { width: 24px; height: 24px; color: var(--fg); }
.foot-links { margin-left: auto; display: flex; gap: 24px; }

/* ---------- Plain pages (privacy, thanks, 404) ---------- */

.plain { min-height: 100svh; display: flex; flex-direction: column; }
.plain main { flex: 1; padding-block: clamp(40px, 7vw, 96px) var(--section); }
.plain-copy { max-width: 40rem; }
.plain h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.25rem); letter-spacing: -0.04em; }
.plain h2 { margin-top: 2.2em; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
.plain p, .plain ul { margin-top: 0.9em; }
.plain ul { padding-left: 1.1em; list-style: disc; }
.plain li + li { margin-top: 0.35em; }
.plain .lede { margin-top: 24px; }
.plain .plain-back { display: inline-block; margin-top: 2.4em; font-family: var(--font-display); font-size: 1rem; font-weight: 500; }

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .hero-grid, .open-grid, .faq-grid, .end-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 40px; }
  .hero-mark { order: -1; }
  .hero-mark .mark { max-width: min(46vw, 220px); }
  .offer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .holds-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq details p { padding-right: 0; }
  .foot-links { margin-left: 0; width: 100%; justify-content: space-between; }
}

@media (max-width: 560px) {
  .holds-list { grid-template-columns: minmax(0, 1fr); }
  .holds-list li { padding-right: 0; }
}

@media (max-width: 460px) {
  .waitlist-row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .waitlist input[type="email"] { padding: 12px 14px; }
  .waitlist button { width: 100%; }
  .logo .wordmark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after { transition: none; }
}
