/* The publication: a reading site. Light by default, dark when the reader prefers it. */
:root {
  --paper: #FFFFFF; --ink: #1A1A1A; --muted: #6B6B6B; --rule: #E6E6E6; --link: #1A4FD6; --soft: #F5F5F3;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif; --sans: 'Inter', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #121212; --ink: #ECECEC; --muted: #A3A3A3; --rule: #2A2A2A; --link: #8FB0FF; --soft: #1B1B1B; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--serif); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.mast { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.mast .name { font: 700 1.35rem/1 var(--serif); letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.mast nav { display: flex; gap: 1.25rem; }
.mast nav a { font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.mast nav a:hover { color: var(--ink); }

.page { width: 100%; max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font: 500 .82rem var(--sans); color: var(--muted); }
.meta .by { color: var(--ink); font-weight: 600; }

/* The front page. */
.intro { padding: 1rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.intro h1 { font: 700 clamp(1.9rem, 5vw, 2.7rem)/1.12 var(--serif); letter-spacing: -.02em; max-width: 20ch; }
.intro p { margin-top: 1rem; font-size: 1.15rem; color: var(--muted); max-width: 38ch; }
.entry { padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.entry a { color: inherit; text-decoration: none; display: block; }
.entry h2 { font: 600 1.45rem/1.25 var(--serif); letter-spacing: -.01em; }
.entry a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.entry .dek { margin-top: .35rem; font-size: 1.05rem; color: var(--muted); }
.entry .meta { margin-top: .7rem; }
.soon { padding: 2.5rem 0; color: var(--muted); font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
.about { padding: 2.5rem 0 0; }
.about h2 { font: 600 1.2rem/1.3 var(--serif); margin-bottom: .6rem; }
.about p { color: var(--muted); font-size: 1rem; margin-top: .7rem; }

/* A piece. */
.head { padding-bottom: 1.6rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--rule); }
.head h1 { font: 700 clamp(1.9rem, 5vw, 2.6rem)/1.12 var(--serif); letter-spacing: -.02em; }
.head .dek { margin-top: .8rem; font-size: 1.25rem; line-height: 1.4; color: var(--muted); }
.head .meta { margin-top: 1.1rem; }
.body { font-size: 1.2rem; line-height: 1.65; }
.body p { margin: 0 0 1.35rem; }
.body h2 { font: 600 1.5rem/1.25 var(--serif); margin: 2.2rem 0 .8rem; letter-spacing: -.01em; }
.body h3 { font: 600 1.2rem/1.3 var(--serif); margin: 1.8rem 0 .6rem; }
.body ul, .body ol { margin: 0 0 1.35rem 1.4rem; }
.body li { margin: .3rem 0; }
.body blockquote { margin: 0 0 1.35rem; padding: .2rem 0 .2rem 1.1rem; border-left: 3px solid var(--rule); color: var(--muted); font-style: italic; }
.body code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); padding: .1em .35em; border-radius: 4px; }
.body hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.sources { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.sources h2 { font: 600 .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.sources ol { margin-left: 1.3rem; font-size: .95rem; line-height: 1.5; }
.sources li { margin: .3rem 0; overflow-wrap: anywhere; }
.note { margin-top: 2rem; padding: 1rem 1.1rem; background: var(--soft); border-radius: 8px; font: 400 .9rem/1.5 var(--sans); color: var(--muted); }
.back { margin-top: 2rem; font: 500 .9rem var(--sans); }
.missing h1 { font: 700 2rem/1.15 var(--serif); margin-bottom: .6rem; }
.missing p { color: var(--muted); }

.foot { border-top: 1px solid var(--rule); padding: 1.6rem 1.25rem 2.2rem; font: 400 .85rem/1.55 var(--sans); color: var(--muted); }
.foot p { max-width: 44rem; margin: 0 auto; }
.foot a { color: inherit; }
