/* Search Party. One family, three weights, one accent (the button). Five type sizes. */

:root {
  --ground: #f7f6f3;
  --block: #edebe6;
  --rule: #dedbd4;
  --ink: #141311;
  --ink-2: rgba(20, 19, 17, 0.68);
  --ink-3: rgba(20, 19, 17, 0.44);
  --accent: #e8451c;
  --accent-hover: #d23d17;
  --accent-ink: #ffffff;
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 34rem;
  --gap: clamp(72px, 12vh, 128px);
  /* type scale */
  --t-small: 15px;
  --t-body: 17px;
  --t-large: clamp(19px, 1.6vw, 22px);
  --t-h2: clamp(30px, 3.4vw, 44px);
  --t-h1: clamp(40px, 5.8vw, 80px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-inline: var(--gutter);
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; }
.mark { font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
.top .quiet { color: var(--ink-2); text-decoration: none; font-size: var(--t-small); }
.top .quiet:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(48px, 10vh, 120px) 0; }
h1 {
  margin: 0;
  max-width: 17ch;
  font-size: var(--t-h1);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 .l { display: block; }
h1 .l:nth-child(2) { min-height: 1.02em; } /* the word has its own line, so nothing around it moves */
.spin { color: var(--accent); white-space: nowrap; transition: opacity 420ms ease; }
.spin.out { opacity: 0; }
.lede { margin: 28px 0 0; max-width: var(--measure); font-size: var(--t-large); line-height: 1.35; letter-spacing: -0.012em; color: var(--ink-2); }

/* Waitlist form */
.join { margin-top: 56px; max-width: 560px; }
.join form { display: flex; gap: 8px; flex-wrap: wrap; }
.join input {
  flex: 1 1 260px; min-width: 0;
  font: inherit; font-size: var(--t-body);
  padding: 16px 20px;
  border: 1px solid var(--rule); border-radius: 6px;
  background: #fff; color: var(--ink);
}
.join input::placeholder { color: var(--ink-3); }
.join input:focus { border-color: var(--ink); }
.join input:focus:not(:focus-visible) { outline: none; }
.button {
  font: inherit; font-size: var(--t-body); font-weight: 500;
  padding: 16px 22px;
  border: 0; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  cursor: pointer; white-space: nowrap;
}
.button:hover { background: var(--accent-hover); }
.button:disabled { opacity: 0.6; cursor: default; }
.note { margin: 14px 0 0; font-size: var(--t-small); color: var(--ink-3); }
.done, .error { display: none; margin: 14px 0 0; }
.error { color: var(--ink); }
.join.is-done form, .join.is-done .note { display: none; }
.join.is-done .done { display: block; }
.join.has-error .error { display: block; }

/* Sections: one rhythm, no rules. Two columns from 900px: heading left, content right. */
.section { margin-top: var(--gap); display: grid; grid-template-columns: 1fr; gap: 32px 64px; }
@media (min-width: 900px) { .section { grid-template-columns: 5fr 7fr; } }
h2 { margin: 0; font-size: var(--t-h2); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; max-width: 18ch; }
.section p { margin: 0 0 16px; max-width: var(--measure); color: var(--ink-2); }
.section p:last-of-type { margin-bottom: 0; }

/* Row lists: steps and sources are the same object */
.section .after { margin: 40px 0 0; color: var(--ink); font-size: var(--t-large); letter-spacing: -0.012em; }
.rows { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; }
.rows li, .rows div {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--rule);
  font-size: var(--t-large);
  line-height: 1.35;
  letter-spacing: -0.012em;
}
.rows > :last-child { border-bottom: 1px solid var(--rule); }
.rows li { counter-increment: step; }
.rows li::before { content: counter(step); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rows strong { font-weight: 600; }
.sources div { grid-template-columns: 1fr; gap: 6px; }
.sources .who { font-size: var(--t-body); color: var(--ink-2); }
.sources .n { white-space: nowrap; }
.sw { display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.35em; background: var(--rule); vertical-align: 0.02em; }
.sw.now { background: var(--accent); }
.section .key { margin: 16px 0 0; font-size: var(--t-small); color: var(--ink-2); }
.key .sw + .sw, .key span + span { margin-left: 0; }
.key .sw:not(:first-child) { margin-left: 16px; }

/* FAQ: accordion, no JavaScript. A plus that turns into a minus. */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 1.5rem; align-items: center; gap: 16px;
  padding-block: 18px;
  font-size: var(--t-large); font-weight: 500; letter-spacing: -0.012em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; justify-self: end; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ink-2); }
.faq details > div { padding: 0 2.5rem 22px 0; }
.faq p { margin: 0 0 12px; }
.faq p:last-child { margin-bottom: 0; }
.faq strong { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Footer */
footer { margin-top: var(--gap); padding-block: 32px 56px; border-top: 1px solid var(--rule); font-size: var(--t-small); color: var(--ink-2); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Long-form pages */
.prose { max-width: var(--measure); padding-block: clamp(40px, 8vh, 96px) 0; }
.prose h1 { font-size: var(--t-h2); max-width: none; min-height: 0; }
.prose h2 { font-size: var(--t-large); font-weight: 600; letter-spacing: -0.012em; margin: 56px 0 12px; max-width: none; }
.prose p, .prose li { color: var(--ink-2); margin: 0 0 14px; text-wrap: pretty; }
.prose li { margin-bottom: 6px; }
@media (min-width: 900px) { .prose { margin-inline-start: calc((100% - 64px) * 5 / 12 + 64px); } }
.prose > p:first-of-type { font-size: var(--t-large); line-height: 1.35; margin-top: 20px; }
.prose ul { list-style: none; padding: 0; margin: 0 0 14px; }
.prose li { padding-left: 1.1em; text-indent: -1.1em; }
.prose li::before { content: "–"; display: inline-block; width: 1.1em; text-indent: 0; color: var(--ink-3); }
.prose h3 { font-size: var(--t-body); font-weight: 600; margin: 28px 0 8px; color: var(--ink); }
.prose h2 + h3 { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
/* Key facts: a definition list, one row per fact */
.prose dl { margin: 0 0 14px; }
.prose dl div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding-block: 10px; border-top: 1px solid var(--rule); }
.prose dl div:last-child { border-bottom: 1px solid var(--rule); }
.prose dt { color: var(--ink-3); font-size: var(--t-small); line-height: 1.5; padding-top: 1px; }
.prose dd { margin: 0; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 480px) { .prose dl div { grid-template-columns: 1fr; gap: 2px; } }

@media (max-width: 640px) {
}
@media (prefers-reduced-motion: reduce) { .spin { transition: none; } }
