@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: #000;
  --text: #f2f2f2;
  --muted: #a0a0a0;
  --border: rgba(255, 255, 255, .22);
  --hover: rgba(255, 255, 255, .08);
  --error: #ff927f;
  color-scheme: dark;
}
html[data-mode="light"] {
  --bg: #fff;
  --text: #000;
  --muted: #555;
  --border: rgba(0, 0, 0, .18);
  --hover: rgba(128, 128, 128, .1);
  --error: #b32b18;
  color-scheme: light;
}
* { 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 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; }
.contact h2 { margin: 0 0 12px; font-size: 2rem; line-height: 1.2; font-weight: 400; letter-spacing: -.015em; }
.contact-intro { margin: 0; color: var(--muted); }
.email-block { margin-top: 28px; font-family: inherit; }
.contact-fields { display: grid; grid-template-columns: 1fr; gap: 24px; }
.contact-field { min-width: 0; }
.contact-field label, .topic-fieldset legend { display: block; margin-bottom: 9px; padding: 0; font-size: 1rem; }
.contact-field input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; }
.contact-field input::placeholder { color: var(--muted); opacity: 1; }
.contact-field [aria-invalid="true"] { border-color: var(--error); }
.topic-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.topic-options { overflow: hidden; border: 1px solid var(--border); border-radius: 4px; }
.topic-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; cursor: pointer; font-weight: 400; }
.topic-choice + .topic-choice { border-top: 1px solid var(--border); }
.topic-choice:hover, .topic-choice:has(input:checked) { background: var(--hover); }
.topic-choice input { appearance: none; -webkit-appearance: none; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; border: 1px solid var(--muted); border-radius: 50%; background: var(--bg); cursor: pointer; }
.topic-choice input:checked { border-color: var(--text); background: var(--text); box-shadow: inset 0 0 0 4px var(--bg); }
.topic-fieldset[aria-invalid="true"] .topic-options { border-color: var(--error); }
.email-block :focus-visible { outline-width: 1px; outline-offset: 3px; }
.submit { min-height: 48px; margin-top: 22px; padding: 10px 24px; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--text); font-size: 1rem; font-weight: 400; transition: background-color .15s ease, border-color .15s ease; }
.submit:hover { background: var(--hover); border-color: var(--muted); }
.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; }
.headline-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.headline-text { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .headline-text { animation: headline-reveal 1000ms cubic-bezier(.16, 1, .3, 1) both; }
  .headline-line:nth-child(2) .headline-text { animation-delay: 140ms; }
  .reveal-pending { opacity: 0; transform: translateY(12px); }
  .reveal-pending.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 720ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms), transform 720ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
  }
}
@keyframes headline-reveal {
  from { opacity: 0; transform: translateY(105%); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(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; }
  .contact-fields { grid-template-columns: 1fr; gap: 18px; }
  .submit { width: 100%; }
  .toggle { right: 16px; bottom: 16px; }
}
@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; }
}
