@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #fff;
  --text: #000;
  --muted: #555;
  --border: rgba(0, 0, 0, .18);
  --hover: rgba(128, 128, 128, .1);
  --error: #b32b18;
  color-scheme: light;
}
html[data-mode="dark"] {
  --bg: #000;
  --text: #f2f2f2;
  --muted: #a0a0a0;
  --border: rgba(255, 255, 255, .22);
  --hover: rgba(255, 255, 255, .08);
  --error: #ff927f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.6;
  transition: background-color .4s ease, color .4s ease;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
::selection { color: var(--bg); background: var(--text); }
main { width: 100%; max-width: 760px; min-height: 100vh; margin: 0 auto; padding: 60px 40px 120px; }
.header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 60px; }
.brand { display: block; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.logo { display: block; width: 44px; height: 44px; object-fit: contain; margin-bottom: 24px; mix-blend-mode: multiply; }
[data-mode="dark"] .logo { filter: invert(1); mix-blend-mode: screen; }
.wordmark { display: inline-block; font-size: 1.375rem; font-weight: 400; letter-spacing: .12em; }
.nav { display: inline-flex; gap: 26px; padding-top: 4px; color: var(--muted); }
.nav a { transition: color .15s ease; }
.nav a:hover { color: var(--text); }
.letter p { margin: 0 0 32px; }
.letter > p:first-child { font-style: italic; font-size: 1.125rem; }
.letter h1 { margin: 0 0 32px; font-size: 2rem; font-weight: 400; line-height: 1.25; letter-spacing: -.015em; }
.letter h2 { margin: 0 0 16px; font-size: 1.5rem; font-weight: 400; line-height: 1.3; letter-spacing: -.015em; }
#focus, #contact { scroll-margin-top: 30px; }
.bullets { list-style: none; padding: 0; margin: 0 0 42px; }
.bullets li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.bullets li::before { content: "•"; position: absolute; left: 6px; top: 0; }
.rule { border: 0; border-top: 1px solid var(--border); margin: 60px 0 32px; }
.prompt { margin: 0 0 16px; color: var(--muted); }
.options { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.option { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 13px 18px; cursor: pointer; user-select: none; transition: background-color .15s ease, color .15s ease; }
.option:hover { background: var(--hover); }
.option.active { background: var(--text); color: var(--bg); font-weight: 700; }
.marker { display: inline-block; min-width: 3ch; white-space: pre; }
.email-block { max-width: 560px; margin-top: 30px; }
.email-label { display: block; color: var(--muted); margin-bottom: 16px; }
.email-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); padding: 6px 0; }
.email-row:focus-within { border-color: var(--text); }
.caret { font-weight: 700; }
.email-row input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; border-radius: 0; color: var(--text); padding: 4px 0; outline: none; }
.submit { padding: 6px 0 6px 12px; border: 0; background: transparent; color: var(--muted); }
.submit:hover { color: var(--text); }
.form-note { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.submit:disabled { opacity: .55; cursor: wait; }
.form-status { margin: 14px 0 0; overflow-wrap: anywhere; }
.form-status:empty { display: none; }
.form-status.error { color: var(--error); }
.footer { margin-top: 64px; color: var(--muted); font-size: .75rem; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }
.toggle { position: fixed; bottom: 24px; right: 24px; z-index: 10; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .8125rem; transition: background-color .4s ease, color .4s ease, transform .15s ease; }
.toggle:hover { transform: translateY(-1px); }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; padding: 8px 12px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.typing [data-type] { position: relative; }
.typing .type-source { visibility: hidden; }
.type-ink { position: absolute; top: 0; left: 0; right: 0; }
.bullets .type-ink { left: 22px; }
.type-ink.typing-current::after { content: ""; display: inline-block; width: .55ch; height: 1em; margin-left: 2px; background: currentColor; vertical-align: text-bottom; animation: blink 1s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 600px) {
  main { padding: 22px 22px 110px; }
  .header { margin-bottom: 40px; gap: 16px; }
  .nav { gap: 16px; padding-top: 2px; }
  .nav a { white-space: nowrap; }
  .prompt span { display: block; }
  .toggle { right: 16px; bottom: 16px; }
  .email-row input { font-size: 1rem; }
}
@media (max-width: 350px) {
  main { padding-right: 18px; padding-left: 18px; }
  .nav { gap: 12px; }
  .wordmark { letter-spacing: .1em; }
  .nav { flex-direction: column; align-items: flex-end; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
