/* Meld Mail · plain pages (waitlist privacy, unsubscribe).
   Same ground, type and tokens as the coming-soon page, none of the motion. */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --ink: #f4f4f5;
  --ink-body: #b8b8be;
  --ink-soft: #8d8d93;
  --label: #e4e4e7;
  --hair: rgba(244, 244, 245, 0.14);
  --hair-strong: rgba(244, 244, 245, 0.3);
  --field: rgba(244, 244, 245, 0.035);
  --field-focus: rgba(244, 244, 245, 0.055);
  --field-line: rgba(244, 244, 245, 0.14);
  --field-line-hover: rgba(244, 244, 245, 0.24);
  --field-line-focus: rgba(244, 244, 245, 0.56);
  --placeholder: #939399; /* at least 4.5:1 on the field */
  --quiet-btn: rgba(244, 244, 245, 0.1);
  --quiet-btn-hover: rgba(244, 244, 245, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink-body);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* One still pool of light behind the top of the page. */
.doc-light {
  position: fixed;
  z-index: 0;
  left: 50%;
  top: 0;
  width: 1400px;
  height: 1400px;
  margin: -760px 0 0 -700px;
  pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(255, 255, 255, 0.060) 0%,
    rgba(255, 255, 255, 0.030) 34%,
    rgba(255, 255, 255, 0.010) 64%,
    rgba(255, 255, 255, 0) 100%);
}

.doc-main {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: clamp(40px, 9vh, 96px) 16px clamp(56px, 10vh, 112px);
}

.doc-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
}
.doc-mark svg {
  display: block;
  width: 34px;
  height: 32px;
}
.doc-mark span {
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: lowercase;
}
.doc-mark .w2 { color: var(--ink-soft); }
.doc-mark:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }

.doc-kicker {
  margin: clamp(40px, 7vh, 64px) 0 0;
  font-family: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.doc-title {
  margin: 18px 0 0;
  font-weight: 700;
  font-size: clamp(32px, 2.2vw + 22px, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.doc-lede {
  margin: 20px 0 0;
  font-size: clamp(16px, 0.3vw + 14.5px, 18px);
  line-height: 1.6;
  color: var(--ink-body);
  text-wrap: pretty;
}

.doc-section {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
}
.doc-section h2 {
  margin: 0 0 14px;
  font-family: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--label);
}
.doc-section p { margin: 0 0 12px; text-wrap: pretty; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-section li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
  text-wrap: pretty;
}
.doc-section li:last-child { margin-bottom: 0; }
.doc-section li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.82em;
  width: 9px;
  height: 1px;
  background: var(--hair-strong);
}
.doc-section strong { color: var(--ink); font-weight: 500; }
.doc-quote {
  display: block;
  margin: 6px 0 2px;
  padding-left: 14px;
  border-left: 1px solid var(--hair-strong);
  color: var(--label);
}
.doc-mono {
  font-family: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.88em;
  letter-spacing: 0;
  color: var(--label);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hair-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: 3px;
  transition: text-decoration-color 0.2s ease;
}
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.doc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 56px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.doc-foot a { color: var(--label); }
.doc-foot span[aria-hidden] { color: var(--ink-soft); }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Remove my email: the coming-soon page's field, with a quieter button. */
.rm-wrap[hidden] { display: none; }
.rm { margin: 16px 0 22px; }
.rm-row {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 460px;
  padding: 5px;
  border: 1px solid var(--field-line);
  border-radius: 14px;
  background: var(--field);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.rm-row:hover { border-color: var(--field-line-hover); }
.rm-row:focus-within { border-color: var(--field-line-focus); background: var(--field-focus); }
.rm-row:has(.rm-btn:focus-visible) { border-color: var(--field-line-hover); background: var(--field); }
.rm-row:has(.rm-input[aria-invalid="true"]) { border-color: var(--field-line-focus); }
.rm-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 8px 0 12px;
  border: 0;
  border-radius: 9px;
  outline: none;
  background: transparent;
  color: var(--ink);
  caret-color: var(--ink);
  font: 400 16px/1.2 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
  -webkit-appearance: none;
  appearance: none;
}
.rm-input::placeholder { color: var(--placeholder); opacity: 1; }
.rm-input:-webkit-autofill,
.rm-input:-webkit-autofill:hover,
.rm-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 600000s 0s;
}
.rm-btn {
  flex: none;
  display: grid;
  height: 40px;
  margin: 0;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: var(--quiet-btn);
  color: var(--ink);
  font: 500 14px/1 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}
.rm-btn > span { grid-area: 1 / 1; align-self: center; transition: opacity 0.2s ease; }
.rm-btn-busy { opacity: 0; }
.rm-btn:hover { background: var(--quiet-btn-hover); }
.rm-btn:active { transform: scale(0.97); }
.rm-btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink);
}
.is-busy .rm-btn { cursor: progress; }
.is-busy .rm-btn:active { transform: none; }
.is-busy .rm-btn-idle { opacity: 0; }
.is-busy .rm-btn-busy { opacity: 1; }
.is-busy .rm-input { color: var(--ink-soft); }
.rm-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.doc-section .rm-msg {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--label);
  text-wrap: pretty;
}
.rm-msg:empty { display: none; }
.rm[data-state="busy"] .rm-msg {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 379px) {
  .rm-row { flex-direction: column; align-items: stretch; }
  .rm-input { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-row, .rm-btn, .rm-btn > span { transition: none; }
}

/* The unsubscribe page: one short message in the middle of the screen. */
.doc-short .doc-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 32px;
  padding-bottom: calc(32px + 4vh);
  text-align: center;
}
.doc-short .doc-mark svg { width: 56px; height: 53px; }
.doc-short .doc-title { margin-top: 34px; font-size: clamp(30px, 1.6vw + 22px, 40px); }
.doc-short .doc-lede { max-width: 30em; margin-top: 16px; color: var(--ink-soft); }
.doc-short .doc-foot {
  justify-content: center;
  margin-top: 36px;
  padding-top: 0;
  border-top: 0;
}
