@font-face { font-family: "DM Serif Display"; src: url("/fonts/DMSerifDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-Regular.woff2") format("woff2"); font-weight: 400; 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; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #F4EBD9;
  --paper-deep: #ECE0C9;
  --ink: #2B2218;
  --ink-soft: #5A4D3A;
  --rule: #D9CBB0;
  --sienna: #BD5A2A;
  --link: #9A3A2C;
  --mark-disc: transparent;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1E1608;
    --paper-deep: #2A1F10;
    --ink: #F4EBD9;
    --ink-soft: #CDBFA3;
    --rule: #4A3C26;
    --sienna: #D9784A;
    --link: #E8A27A;
    --mark-disc: #F4EBD9;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.1875rem;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--sienna); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--sienna); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 0.75rem; z-index: 1; }

.masthead, main, .colophon { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--mark-disc); }
.brand span { font-family: "DM Serif Display", Georgia, serif; font-size: 1.6rem; line-height: 1; }
.masthead nav { display: flex; gap: 1.1rem; font-size: 1rem; }
.masthead nav a { color: var(--ink-soft); text-decoration: none; }
.masthead nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--sienna); }

main { padding-top: 2.5rem; padding-bottom: 3rem; }
h1 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 2.75rem; line-height: 1.1; margin: 0 0 0.75rem; }
.lede { font-size: 1.3rem; color: var(--ink-soft); margin: 0 0 1.5rem; }

.contact { background: var(--paper-deep); border: 1px solid var(--rule); border-radius: 10px; padding: 1.1rem 1.25rem; margin: 0 0 2.75rem; }
.contact p { margin: 0; }
.contact .address { font-family: "DM Serif Display", Georgia, serif; font-size: 1.5rem; }

h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 1.6rem; margin: 2.5rem 0 0.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule); }

details { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 0.85rem 2rem 0.85rem 0; position: relative; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.7rem; color: var(--sienna); font-size: 1.3rem; line-height: 1.3; }
details[open] summary::after { content: "\2013"; }
details > div { padding: 0 0 1rem; }
details p { margin: 0 0 0.75rem; }
details ol, details ul { margin: 0 0 0.75rem; padding-left: 1.4rem; }
.where { font-style: italic; color: var(--ink-soft); }

.colophon { border-top: 1px solid var(--rule); padding-top: 1.25rem; padding-bottom: 2.5rem; font-size: 0.95rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
.colophon nav { display: flex; gap: 1rem; }
.colophon a { color: var(--ink-soft); }

@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 2.25rem; }
  .masthead nav { gap: 0.8rem; font-size: 0.95rem; }
}

/* Legal pages (/terms, /privacy) */
.legal h2 { margin-top: 2.25rem; }
.legal h3 { font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }
.legal p, .legal li { line-height: 1.6; }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal li { margin: 0 0 0.4rem; }
.legal mark { padding: 0 0.15em; border-radius: 2px; }
.legal mark.open { background: #F2D7A6; color: #2B2218; }
.legal mark.stale { background: #E8B4A6; color: #2B2218; }
.draft-banner { position: sticky; top: 0; z-index: 2; background: #9A3A2C; color: #FBF6EC; text-align: center; padding: 0.5rem 1rem; font-size: 0.95rem; }
