/* JNotes site: Mineral tokens (design/DIRECTION-C.md), shared by every page */
@font-face { font-family: "Inter"; src: url("fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --ground: #F2EFE8; --paper: #FBFAF6; --ink: #1B1E1C; --verdigris: #2A6E5E;
  --mist: #DCE8E2; --sand: #ECE3D2; --copper: #9A5228; --stone: #66625A;
  --line: #E2DDD3; --on-accent: #FBFAF6; --shadow: 0 24px 60px -24px rgba(27, 30, 28, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121412; --paper: #1C1F1D; --ink: #ECE8E0; --verdigris: #6BBDA5;
    --mist: #1E3530; --sand: #2A2620; --copper: #E3A47E; --stone: #A9A49A;
    --line: #2C302D; --on-accent: #121412; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 16px/1.6 "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--verdigris); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--verdigris); outline-offset: 3px; border-radius: 6px; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.accent { color: var(--verdigris); font-style: italic; }

/* Header */
.site-header {
  max-width: 1080px; margin: 0 auto; padding: 20px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.site-nav { display: flex; gap: 20px; font-size: 14px; }
.site-nav a { color: var(--stone); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; }
.site-footer .inner {
  max-width: 1080px; margin: 0 auto; padding: 28px 16px 40px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--stone);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--stone); }
.site-footer a:hover { color: var(--ink); }

/* Long-form pages (privacy, delete account) */
.doc { max-width: 720px; margin: 0 auto; padding: 16px 16px 24px; }
.doc h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(38px, 7vw, 52px); line-height: 1.05; margin: 16px 0 8px; letter-spacing: -.01em; }
.doc h2 { font-size: 19px; margin: 36px 0 8px; }
.doc .muted { color: var(--stone); margin-top: 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc strong { font-weight: 600; }
