/* Fonts: self-hosted, OFL-1.1 (Fraunces, IBM Plex) */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f2ede3;
  --paper-2: #e9e2d4;
  --ink: #1a1916;
  --ink-2: #3a372f;
  --muted: #6b655b;
  --rule: #cdc3b1;
  --amber: #b4561a;     /* Winston's throat glow, darkened for text on paper */
  --amber-soft: #e8932f;
  --teal: #1f6f78;      /* his particles */
  --night: #131313;     /* the app's own background */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.label {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.muted { color: var(--muted); }

/* Masthead */
.strip { border-bottom: 1px solid var(--ink); }
.strip .wrap {
  display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.strip .live::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber-soft); margin-right: 8px; vertical-align: 1px;
}
nav { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 10; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.logo img { display: none; }
.logo span { color: var(--amber); font-style: italic; font-weight: 400; }
nav ul { display: flex; align-items: center; gap: 28px; list-style: none; font-size: 0.95rem; }
nav ul a { text-decoration: none; color: var(--ink-2); }
nav ul a:hover { color: var(--amber); }

/* Buttons: plain, squared, ink */
.btns { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 13px 22px; font-weight: 500; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 2px; transition: background .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--amber); border-color: var(--amber); }
nav ul a.btn-primary { color: var(--paper); }
nav .btn { padding: 8px 16px; font-size: 0.9rem; }
.textlink { text-decoration: none; border-bottom: 1.5px solid var(--amber); padding-bottom: 2px; font-weight: 500; }
.textlink:hover { color: var(--amber); }

/* Hero */
.hero { padding: 72px 0 0; border-bottom: 1px solid var(--ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 72px; align-items: center; }
.hero .label { margin-bottom: 28px; }
.quote {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 5.2vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.025em; font-variation-settings: "opsz" 144, "SOFT" 50;
}
.quote::before { content: "\201C"; color: var(--amber); margin-left: -0.42em; }
.quote::after { content: "\201D"; color: var(--amber); }
.quote em { font-style: italic; color: var(--teal); }
.attrib { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin: 22px 0 44px; }
.attrib b { color: var(--ink); font-weight: 500; }
.hero h1 {
  font-family: var(--sans); font-weight: 400; font-size: 1.25rem; line-height: 1.55;
  max-width: 560px; color: var(--ink-2); margin-bottom: 30px;
}
.hero h1 strong { font-weight: 600; color: var(--ink); }
.platforms { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin: 34px 0 56px; letter-spacing: 0.04em; }
.platforms span { color: var(--ink); }
.hero-phone { align-self: end; justify-self: end; width: 100%; max-width: 290px; margin-bottom: -2px; }
.hero-phone img { max-height: 620px; object-fit: cover; object-position: top; }
.hero-phone img {
  display: block; width: 100%; border-radius: 34px 34px 0 0; border: 10px solid var(--ink); border-bottom: 0;
}

/* Sections */
section { padding: 104px 0; border-bottom: 1px solid var(--rule); }
.head { display: grid; grid-template-columns: 0.4fr 1fr; gap: 48px; margin-bottom: 60px; align-items: baseline; }
.head h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.02em;
}
.head h2 em { font-style: italic; color: var(--amber); }
.head p { color: var(--ink-2); font-size: 1.12rem; max-width: 620px; margin-top: 16px; }
.head .label { font-size: 0.74rem; margin-top: 0; padding-top: 14px; color: var(--muted); }
.rules .head .label { color: #a39c8e; }

/* Problem: three short essays */
.essays { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.essays div { padding: 26px 30px 0 0; }
.essays div + div { padding-left: 30px; border-left: 1px solid var(--rule); }
.essays h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.essays p { color: var(--ink-2); }

/* Features: ruled two-column index */
.index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.index div { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--rule); }
.index h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.index p { color: var(--ink-2); }

/* House rules ledger */
.rules { background: var(--ink); color: var(--paper); border-bottom: 0; }
.rules .head p { color: #cfc8b9; }
.rules .head h2 em { color: var(--amber-soft); }
.rules .label { color: #a39c8e; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ledger caption { text-align: left; font-family: var(--serif); font-size: 1.5rem; margin-bottom: 14px; }
.ledger caption small { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a39c8e; margin-top: 4px; }
.ledger td { padding: 13px 0; border-top: 1px solid #3b3830; vertical-align: top; }
.ledger td:last-child { text-align: right; font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; padding-left: 16px; }
.ask { color: var(--amber-soft); }
.go { color: #7cc4cc; }
.fine { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid #3b3830; padding-top: 32px; }
.fine b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; margin-bottom: 6px; }
.fine span { color: #cfc8b9; font-size: 0.95rem; }

/* Transcript */
.transcript { border: 1px solid var(--ink); background: #fbf8f2; }
.transcript .bar { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--ink); }
.exchange { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 20px; border-bottom: 1px solid var(--rule); }
.exchange:last-child { border-bottom: 0; }
.exchange .who { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.exchange .said { font-size: 1.05rem; }
.exchange .reply { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; margin-top: 8px; }
.exchange .tool { display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--teal); margin-top: 10px; }
.exchange .tool.held { color: var(--amber); }
.note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

/* Screens */
.screens { background: var(--paper-2); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.shots figure:nth-child(2) { margin-top: 64px; }
.spec { margin-top: 128px; border-top: 1px solid var(--ink); }
.spec dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); padding-top: 16px; }
.spec dd { padding: 4px 0 16px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.shots img { display: block; width: 100%; height: auto; border-radius: 30px; border: 9px solid var(--ink); background: var(--night); }
.shots figcaption { margin-top: 16px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.shots figcaption b { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--ink); margin-bottom: 2px; }

/* How it works: one ruled line */
.route { display: grid; grid-template-columns: 1fr auto 1.3fr auto 1fr; align-items: stretch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.route .stop { padding: 26px 24px 26px 0; }
.route .arrow + .stop { padding-left: 24px; }
.route .arrow { font-family: var(--serif); font-size: 2rem; color: var(--amber); display: flex; align-items: center; padding: 0 8px; }
.route b { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin-bottom: 4px; }
.route .core b { color: var(--teal); }
.route span { color: var(--ink-2); font-size: 0.98rem; }
.models { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.models h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin-bottom: 8px; }
.models p { color: var(--ink-2); }

/* Roadmap table */
.plan { width: 100%; border-collapse: collapse; }
.plan th { text-align: left; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; padding: 0 24px 14px 0; border-bottom: 1px solid var(--ink); }
.plan th:first-child { color: var(--teal); }
.plan th:nth-child(2) { color: var(--amber); }
.plan th:nth-child(3) { color: var(--muted); }
.plan td { vertical-align: top; padding: 8px 24px 0 0; width: 33.3%; }
.plan ul { list-style: none; }
.plan li { padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }

/* Company */
.company .wrap { display: grid; grid-template-columns: 0.4fr 1fr; gap: 48px; }
.company .lede { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.35; letter-spacing: -0.01em; }
.company .also { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-top: 1px solid var(--rule); padding-top: 24px; }
.company .also h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin-bottom: 6px; }
.company .also p { color: var(--ink-2); }

/* Invitation */
.invite { border-bottom: 0; }
.invite .card { border: 1.5px solid var(--ink); padding: 64px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; background: #fbf8f2; }
.invite h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; }
.invite h2 em { color: var(--amber); }
.invite p { color: var(--ink-2); margin-top: 18px; max-width: 520px; }
.invite .mail { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; border-bottom: 1.5px solid var(--amber); }
.invite .mail:hover { color: var(--amber); }
.invite .side { display: grid; gap: 18px; justify-items: start; }

/* Footer */
footer { border-top: 1px solid var(--ink); padding: 28px 0 40px; font-size: 0.9rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--amber); }

/* Legal pages */
.legal { padding: 72px 0 104px; border-bottom: 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0 20px; display: grid; gap: 6px; }
.legal a { color: var(--amber); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .head, .ledger, .models, .company .wrap, .invite .card { grid-template-columns: 1fr; }
  .hero .wrap { gap: 8px; }
  .hero-phone { max-width: 280px; justify-self: center; margin-top: 40px; }
  .index { grid-template-columns: 1fr; }
  .fine { grid-template-columns: 1fr 1fr; }
  .route { grid-template-columns: 1fr; }
  .route .arrow { transform: rotate(90deg); justify-content: center; padding: 4px 0; }
  .route .stop, .route .arrow + .stop { padding: 18px 0; }
  .head { margin-bottom: 40px; gap: 14px; }
  .invite .card { padding: 40px 28px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .strip .wrap span:nth-child(2) { display: none; }
  nav ul li:not(:last-child) { display: none; }
  section { padding: 72px 0; }
  .hero { padding-top: 48px; }
  .quote::before { margin-left: 0; }
  .essays { grid-template-columns: 1fr; }
  .essays div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 26px; }
  .index div { grid-template-columns: 1fr; gap: 6px; }
  .fine { grid-template-columns: 1fr; }
  .exchange { grid-template-columns: 1fr; gap: 6px; }
  .transcript .bar { flex-direction: column; gap: 4px; }
  .shots { grid-template-columns: 1fr 1fr; gap: 16px; }
  .shots figure { margin-top: 0 !important; }
  .shots img { border-width: 6px; border-radius: 20px; }
  .spec { grid-column: 1 / -1; margin-top: 24px; }
  .plan, .plan tbody, .plan tr, .plan td { display: block; width: 100%; }
  .plan thead { display: none; }
  .plan td { padding: 0 0 28px; }
  .plan td::before { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
  .plan td:nth-child(1)::before { content: "Working now"; color: var(--teal); }
  .plan td:nth-child(2)::before { content: "Next"; color: var(--amber); }
  .plan td:nth-child(3)::before { content: "Later"; color: var(--muted); }
}
