/* Paper pages: same palette and type as the home page, one reading column. */
:root {
  --bg: #f5f6f7;
  --surface: #eceef1;
  --ink: #15191e;
  --quiet: #66707b;
  --rule: #d6dadf;
  --accent: #2f55d4;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111418; --surface: #1a1f25; --ink: #e9ecef; --quiet: #929ca7; --rule: #2a3038; --accent: #8fa8ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111418; --surface: #1a1f25; --ink: #e9ecef; --quiet: #929ca7; --rule: #2a3038; --accent: #8fa8ff;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-block: clamp(2rem, 8vh, 5rem) 4rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.page { max-width: 40rem; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.home { align-self: flex-start; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.home::before { content: "← "; color: var(--quiet); }
.home:hover { color: var(--accent); }

article { display: flex; flex-direction: column; gap: 1rem; }
.kind { margin: 0; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--quiet); }
h1 { margin: 0; font-weight: 500; font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.by { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--quiet); }
.by a { color: inherit; text-decoration: none; }
.by a:hover { color: var(--accent); }

.links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; margin-block: 0.5rem 1rem; font-size: 0.95rem; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
.links .pdf { padding: 0.5rem 0.95rem; border-radius: 6px; background: var(--accent); color: var(--bg); font-weight: 500; }
.links .pdf:hover { text-decoration: none; filter: brightness(1.08); }

section { border-top: 1px solid var(--rule); padding-top: 1rem; }
h2 { margin: 0 0 0.6rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--quiet); }
.abstract p { margin: 0 0 1em; }
.kw, .small { margin: 0; font-size: 0.85rem; color: var(--quiet); }
.cite { margin: 0 0 0.6rem; padding: 0.8rem 1rem; background: var(--surface); border-radius: 6px; font-size: 0.9rem; overflow-wrap: anywhere; }
