@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: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #5a5a5a;
  --border: rgba(0, 0, 0, .16);
  --hover: rgba(0, 0, 0, .05);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #000; color: #fff; }

a { color: inherit; text-decoration: none; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 40px 160px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
}

.site-brand img { width: 28px; height: 28px; display: block; }

.site-nav {
  display: inline-flex;
  gap: 26px;
  font-size: 17px;
  line-height: 1;
}

.site-nav a { color: var(--muted); transition: color .15s ease; }
.site-nav a:hover { color: var(--text); }

/* Body copy */

main p { margin: 0 0 28px; }

ul.bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

ul.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

ul.bullets li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
}

.inline-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: text-decoration-color .15s ease;
}

.inline-link:hover { text-decoration-color: var(--text); }

/* Contact selector */

hr.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0 32px;
}

.prompt {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 16px !important;
}

.opts {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  outline: none;
}

.opts:focus-visible { box-shadow: 0 0 0 2px var(--text); }

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease, color .15s ease;
}

.opt:not(.active):hover { background: var(--hover); }
.opt.active { background: var(--text); color: var(--bg); }
.opt .marker { font-family: var(--mono); font-size: 13px; min-width: 3ch; }

.contact-form { margin-top: 30px; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.field { min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field-label { display: block; color: var(--muted); font-size: 14px; }

.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  transition: border-color .15s ease;
}

.input-row:focus-within { border-color: var(--text); }
.input-row .caret { font-family: var(--mono); font-size: 14px; font-weight: 700; }

.input-row input,
.input-row textarea {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font: inherit;
  padding: 4px 0;
  resize: none;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.btn {
  background: var(--text);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.input-row textarea { field-sizing: content; min-height: 1.6em; max-height: 12em; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn:disabled { opacity: .5; cursor: default; transform: none; }

.form-note { color: var(--muted); font-size: 14px; }
.form-note.error { color: #b3261e; }

/* Footer */

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 56px;
  color: var(--muted);
  font-size: 16px;
}

.legal-footer a { transition: color .15s ease; }
.legal-footer a:hover,
.legal-footer a[aria-current="page"] { color: var(--text); }

.copy {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* Legal pages */

.doc h1 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin: 0 0 8px;
}

.doc .updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 40px;
}

.doc h2 {
  font-size: 21px;
  font-weight: 500;
  margin: 40px 0 12px;
}

.doc p, .doc ul.bullets { margin-bottom: 18px; }
.doc ul.bullets li { margin-bottom: 6px; }

.doc .callout {
  border-left: 2px solid var(--text);
  padding: 2px 0 2px 18px;
  margin: 0 0 28px;
}

/* Typewriter reveal (only when JS is running) */

.tw main > .reveal { visibility: hidden; }
.tw main > .reveal.tw-on { visibility: visible; }
.tw .tail { opacity: 0; transition: opacity .5s ease; }
.tw .tail.show { opacity: 1; }

.tw-cursor {
  display: inline-block;
  width: .5ch;
  height: 1em;
  background: currentColor;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: tw-blink 1s steps(2, end) infinite;
}

@keyframes tw-blink { 50% { opacity: 0; } }

@media (max-width: 600px) {
  html, body { font-size: 17px; }
  main { padding: 24px 22px 100px; }
  .site-header { margin-bottom: 44px; }
  .site-nav { gap: 16px; font-size: 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .doc h1 { font-size: 28px; }
}
