/* The public pages (front, questions, sharing, docs, privacy, terms,
   sign-in), in brand B ("Plus") as the signed-in pages are: type only, ink
   on paper, the f+ mark in lime, and lime for where you are. No pictures,
   no footer. */
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  --paper: #F6F6F1; --ink: #0E0F0C; --muted: #55574E; --rule: #D6D7CE; --plus: #C6F432;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
body.public { margin: 0; color: var(--ink); font: 19px/1.55 var(--body); background: var(--paper); }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--muted); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
code { font: .85em var(--mono); background: rgb(14 15 12 / .07); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
pre { margin: 0; overflow-x: auto; }
pre code { display: block; padding: 12px 14px; }

main { max-width: 1180px; margin: 0 auto; padding: 28px max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); }

/* The top bar: the logo, then Home · Questions · Sign in. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .fplus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; background: var(--plus); color: var(--ink); font: 800 20px/1 var(--mono); letter-spacing: -.04em; }
.logo .word { font: 700 24px/1 var(--body); letter-spacing: -.03em; }
.teams { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 10px; font-weight: 700; }
.teams a { padding: 2px 10px; border-radius: 14px; text-decoration: none; }
.teams a:hover { text-decoration: underline; }
.teams a[aria-current] { background: var(--plus); }

/* The front page fits one screen: the headline takes what the window's
   width and height both leave it, three lines at .84 line height being
   about 2.6 times its size, beside about 400px of everything else. */
.hero { min-height: calc(100svh - 76px); display: flex; flex-direction: column; padding-bottom: 28px; box-sizing: border-box; }
.hero h1 { margin: auto 0 0; padding-top: 24px; font: 700 clamp(48px, min(12vw, calc((100svh - 400px) / 3.2)), 168px)/.84 var(--body); letter-spacing: -.06em; }
.hero h1 > span { display: block; }
.hero h1 > span:nth-child(2) { margin-left: min(4vw, 60px); }
.hero h1 > span:nth-child(3) { margin-left: min(8vw, 120px); }
.hero h1 .plus { color: var(--ink); background: var(--plus); border-radius: .12em; padding: 0 .06em; }
.tag { margin: 24px 0 0; font: 700 clamp(24px, 2.6vw, 34px)/1.2 var(--body); letter-spacing: -.02em; }
.rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; margin-top: 28px; padding-top: 16px; border-top: 2px solid var(--ink); }
.rule p { margin: 0; max-width: 44em; font: 15.5px/1.6 var(--mono); }
.rule .teams a { white-space: nowrap; }

/* The other pages: a big title, then ruled rows. */
.page-title { margin: 88px 0 36px; font: 700 clamp(60px, 10vw, 128px)/.9 var(--body); letter-spacing: -.06em; overflow-wrap: anywhere; }
.page-title.small { font-size: clamp(40px, 6vw, 72px); }
.page-title .to { display: block; font-size: .45em; letter-spacing: -.03em; color: var(--muted); }
.doc-meta { margin: -16px 0 24px; font: 14px var(--mono); }
.doc-meta time { white-space: nowrap; }
.doc { padding: 0 0 80px; border-top: 2px solid var(--ink); }
.signin { max-width: 44em; padding-bottom: 80px; }
.signin .go { font-weight: 700; font-size: 22px; }
.fine { font: 14px/1.6 var(--mono); }

/* Each question (or part) on the left, its answer open on the right. */
.qa { margin: 0; }
.qa > div { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px 40px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.qa dt { font: 700 21px/1.25 var(--body); letter-spacing: -.02em; }
.qa dd { margin: 0; font-size: 18px; line-height: 1.5; max-width: 42em; overflow-wrap: anywhere; min-width: 0; }

@media (max-width: 760px) {
  main { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .rule { grid-template-columns: minmax(0, 1fr); }
  .page-title { margin-top: 56px; }
  .qa > div { grid-template-columns: minmax(0, 1fr); }
  .logo .word { display: none; }
}

/* The front page's one link to the policies, as there is no footer. */
.legal { margin: 14px 0 0; font: 13px/1.5 var(--mono); }

.waitlist { max-width: 460px; }
.waitlist label { display: block; font-weight: 700; margin-bottom: 8px; }
.waitlist-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.waitlist input, .waitlist button { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 4px; }
.waitlist input { min-width: 0; flex: 1 1 190px; background: var(--paper); }
.waitlist button { background: var(--plus); color: var(--ink); cursor: pointer; font-weight: 700; }
.waitlist input:focus-visible, .waitlist button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.waitlist .fine { margin-top: 8px; font-size: 12px; }
