/* Momo's website. One quiet column of large serif prose on white, in the
   spirit of a well-set letter: no cards, no colored buttons, actions are
   underlined words. Everything is served from this site. */

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

:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #1f2322;
  --mut: #6b6f6e;
  --line: #d9dbda;
  --mark: #f6e9e2;   /* the soft smear under a main action */
  --ok: #2f6b3a;
  --bad: #a3321f;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--sans);
  letter-spacing: -0.005em;
  font-feature-settings: "kern";
}

header.site {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 20px 0;
}
header.site .wordmark {
  font: 500 22px/1 var(--serif);
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}
header.site nav { display: flex; gap: 20px; font-size: 13px; letter-spacing: -0.01em; }
header.site nav a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

main {
  max-width: 696px;
  padding: 72px 20px 48px;
  margin: 0;
}
main.narrow { max-width: 560px; }

h1, h2, p.lede, .prose, label, input, select, button, .step p {
  font-family: var(--serif);
}
h1 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
p.lede, .prose p {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--fg);
}
p.lede em { font-style: italic; }
.prose a, p.lede a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: #9a9d9c;
}

/* A step: a serif heading like a sentence, a short note, then plain fields. */
section.step {
  margin: 48px 0 0;
  padding: 0;
  border: 0;
  background: none;
}
section.step h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
section.step h2 .num { color: var(--mut); font-weight: 400; margin-right: 10px; }
section.step p, p.note {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--mut);
  margin: 0 0 14px;
}
p.note a, section.step p a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
p.note b, section.step p b { color: var(--fg); font-weight: 600; }

label {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mut);
  margin: 18px 0 4px;
}
input, select {
  width: 100%;
  padding: 10px 0;
  font: 400 20px/1.3 var(--serif);
  letter-spacing: -0.01em;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder { color: #b5b8b7; }
input:focus, select:focus { border-bottom-color: var(--fg); }
select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231f2322' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; padding-right: 28px; }

/* Actions are words. The main one carries a soft smear, like a highlighter. */
button {
  display: inline-block;
  width: auto;
  margin: 18px 0 0;
  padding: 0 2px;
  font: 400 24px/1.3 var(--serif);
  letter-spacing: -0.01em;
  color: var(--fg);
  background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: #9a9d9c;
}
button::after { content: " ›"; color: var(--fg); }
button.quiet { background: none; font-size: 17px; }
button.quiet::after { content: ""; }
button:disabled { color: var(--mut); cursor: default; text-decoration-color: var(--line); }
button + button { margin-left: 18px; }

p.note.ok, .ok { color: var(--ok); }
p.note.bad, .bad { color: var(--bad); }
p[role=status]:empty { display: none; }

pre {
  white-space: pre-wrap;
  word-break: break-all;
  background: #f7f7f6;
  border: 0;
  border-radius: 0;
  padding: 14px 16px;
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--fg);
  margin: 12px 0 0;
}
.tabs { display: flex; gap: 18px; margin-top: 14px; }
.tabs button { margin: 0; font-size: 17px; background: none; }
.tabs button::after { content: ""; }
.tabs button[aria-pressed=true] { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); }
.tabs button[aria-pressed=false] { text-decoration-color: var(--line); color: var(--mut); }

footer.legal {
  padding: 48px 20px 32px;
  font-size: 13px;
  color: var(--mut);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
footer.legal a { color: var(--mut); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

@media (max-width: 480px) {
  main { padding-top: 48px; }
  h1, p.lede, .prose p, section.step h2, button { font-size: 22px; }
}

/* Things most people never need to touch. */
details.options { margin-top: 1.25rem; }
details.options summary { cursor: pointer; color: var(--mut); font-size: 0.95rem; }
details.options[open] summary { margin-bottom: 0.75rem; }
