:root {
  color-scheme: dark;
  --bg: #171610;
  --panel: #242219;
  --paper: #f6efd9;
  --muted: #c4b9a0;
  --accent: #efcb72;
  --line: #4c4534;
  font: 1rem/1.6 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--paper); }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--paper); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100% - 2rem, 56rem); margin-inline: auto; }
.site-bar { border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.topbar nav, .site-footer div { display: flex; flex-wrap: wrap; gap: .45rem 1.35rem; }
.topbar a, .site-footer a { text-decoration: none; }
.topbar nav a[aria-current] { text-decoration: underline; }
.brand { font-weight: 900; letter-spacing: .17em; color: var(--paper); }
.skip { position: fixed; top: 0; left: 1rem; padding: .6rem; background: var(--bg); transform: translateY(-110%); z-index: 1; }
.skip:focus { transform: translateY(0); }
.intro { padding: clamp(2.75rem, 8vw, 6rem) 0 clamp(1.8rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.section-label { color: var(--accent); text-transform: uppercase; font-size: .78rem; font-weight: 750; letter-spacing: .15em; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; letter-spacing: -.04em; line-height: 1.02; }
h1 { font-size: clamp(3rem, 9vw, 7rem); margin: .15em 0 .22em; }
h1 span { color: var(--accent); }
.intro > p:last-child { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 34rem; color: var(--muted); }
.demo-list { display: grid; gap: 2rem; margin: 2rem 0 4rem; }
.demo { border: 1px solid var(--line); background: var(--panel); border-radius: 1rem; overflow: hidden; }
.demo-copy, .discussion { padding: clamp(1rem, 4vw, 2.5rem); }
.demo-copy { background: radial-gradient(ellipse at top right, #51472a 0%, transparent 68%); }
h2 { font-size: clamp(2.4rem, 7vw, 4rem); margin: .12em 0 .26em; }
h3 { font-size: 1.4rem; line-height: 1.2; margin: 0 0 .6rem; }
.demo-copy > p:not(.section-label) { max-width: 48rem; }
.demo-art { display: block; width: 100%; max-height: 24rem; object-fit: cover; }
.meta, .muted { color: var(--muted); }
.button {
  display: inline-block; border: 1px solid var(--accent); border-radius: .35rem; padding: .65rem 1rem;
  background: var(--accent); color: #201807; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--paper); color: #201807; }
.button.secondary { border-color: var(--line); background: transparent; color: var(--paper); }
.button.secondary:hover { background: var(--line); }
.discussion { border-top: 1px solid var(--line); background: #1d1b14; }
.comment-form { display: grid; gap: .55rem; max-width: 39rem; margin-top: 1.25rem; }
.comment-form > button { justify-self: start; }
.comment-form label { font-weight: 650; }
.comment-form small { color: var(--muted); font-weight: 400; }
input, textarea { border-radius: .3rem; border: 1px solid #7c7159; background: var(--bg); color: var(--paper); font: inherit; padding: .5rem .65rem; width: 100%; }
input::placeholder { color: var(--muted); }
textarea { resize: vertical; }
.form-note { font-size: .88rem; max-width: 46em; margin: .2rem 0 .65rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.comment-list { display: grid; gap: .7rem; list-style: none; margin: 1rem 0; padding: 0; }
.comment-list li { border: 1px solid var(--line); padding: .9rem; border-radius: .35rem; overflow-wrap: anywhere; }
.comment-list li p { white-space: pre-wrap; margin: .35rem 0 0; }
.comment-meta, .moderation-actions, .site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.comment-meta time, .comment-meta span { color: var(--muted); }
.moderation-actions { justify-content: start; margin-top: .8rem; }
.notice { background: #30291a; border-left: 3px solid var(--accent); padding: .65rem .8rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.4rem 2.2rem; }
.compact { max-width: 45rem; padding-block: 2rem 4rem; }
.compact h1 { font-size: clamp(2.3rem, 7vw, 4.5rem); }
@media (max-width: 30rem) { .topbar nav { gap: .5rem; } }
