:root {
  color-scheme: light;
  --paper: #f9f7f0;
  --ink: #232720;
  --muted: #555d51;
  --accent: #315736;
  --line: #c9cdbf;
  --mono: ui-monospace, monospace;
  --serif: Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; border-top: 5px solid var(--accent); }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.frame { width: min(100% - 2.5rem, 49rem); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-weight: 700; text-decoration: none; }
.wordmark span { color: var(--accent); padding-inline: .2em; }
.intro { padding-block: clamp(2.5rem, 8vw, 5rem); }
.intro h1 { margin: .15em 0; font: 500 clamp(4.5rem, 13vw, 9.5rem)/.95 var(--serif); letter-spacing: -.075em; }
.article-head h1 { font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -.055em; }
.eyebrow, .count, time { color: var(--accent); font: 600 .78rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.lede { max-width: 34ch; color: var(--muted); font: 1.35rem/1.5 var(--serif); margin-bottom: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--accent); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: grid; grid-template-columns: 8rem 1fr; gap: .65rem 1rem; padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.post-list time { padding-top: .35rem; letter-spacing: 0; }
.post-list h3 { margin: 0; font: 500 clamp(1.35rem, 4vw, 1.75rem)/1.2 var(--serif); }
.post-list h3 a { text-decoration: none; color: var(--ink); }
.post-list h3 a:hover { text-decoration: underline; }
.post-list p { color: var(--muted); margin: .4rem 0 0; }
.site-footer { margin-top: 3rem; padding-block: 1rem; border-top: 1px solid var(--line); color: var(--muted); font: .8rem/1.6 var(--mono); }
.prose { max-width: 65ch; overflow-wrap: anywhere; }
.prose img { max-width: 100%; height: auto; }
.prose h2 { font: 500 1.9rem/1.2 var(--serif); }
pre { overflow: auto; padding: 1rem; background: #e8ebdf; border-radius: .25rem; }
form { max-width: 36rem; padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--line); background: #fffdf7; }
label { display: block; font-weight: 700; }
input + label { margin-top: 1.25rem; }
.optional { font-weight: 400; }
#drop-zone { border: 1px dashed var(--accent); padding: 1rem; text-align: center; }
#drop-zone.dragging { background: #e8ebdf; }
#drop-status { margin-block: .5rem 1rem; }
form label + p { color: var(--muted); margin-block: .25rem 1rem; }
input, button { font: inherit; }
input[type="file"] { display: block; width: 100%; min-height: 48px; border: 1px solid #767b71; border-radius: .3rem; }
::file-selector-button { font: inherit; min-height: 48px; background: #e8ebdf; color: var(--ink); border: 0; margin-inline-end: .65rem; padding-inline: .8rem; cursor: pointer; }
button { background: var(--accent); color: white; border: 0; border-radius: .3rem; margin-top: 1.3rem; padding: .65rem 1.05rem; min-height: 48px; cursor: pointer; }
button:hover { background: #254529; }
details { margin-top: 1.5rem; }
summary { color: var(--accent); cursor: pointer; }
.error { color: #962e1e; margin-top: 0; font-weight: 600; }
@media (max-width: 35rem) { .post-list li { grid-template-columns: 1fr; } }
