:root {
  color-scheme: dark;
  --edition-bg: #071317;
  --edition-panel: #0c1c21;
  --edition-text: #edf5f6;
  --edition-muted: #a8bdc4;
  --edition-line: #294249;
  --edition-link: #65e9cb;
  font: 17px/1.65 Inter, system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --edition-bg: #f5f8f8;
  --edition-panel: #fff;
  --edition-text: #15232a;
  --edition-muted: #455c64;
  --edition-line: #dbe4e4;
  --edition-link: #006451;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--edition-text); background: var(--edition-bg); }
a { color: var(--edition-link); }
:focus-visible { outline: 2px solid var(--edition-link); outline-offset: 3px; }
.edition-shell { width: min(100%, 48rem); margin: auto; padding: 1.5rem clamp(1rem, 4vw, 2rem) 3rem; }
.edition-shell > nav, .edition-shell > footer { font-size: .9rem; padding-block: 1rem; }
.edition-shell article { background: var(--edition-panel); border: 1px solid var(--edition-line); border-radius: 12px; padding: clamp(1rem, 4vw, 2.5rem); }
.edition-shell h1 { font-size: clamp(1.85rem, 5vw, 3rem); line-height: 1.12; margin: .45rem 0 1.5rem; }
.edition-shell h2, .edition-shell h3 { line-height: 1.25; margin-top: 2rem; }
.edition-shell img { max-width: 100%; height: auto; }
.edition-shell figure { margin: 1.5rem 0; }
.edition-shell figcaption, .edition-shell article header p, .edition-shell footer { color: var(--edition-muted); }
.edition-shell .table-wrap { overflow-x: auto; margin: 1.5rem 0; padding-bottom: .25rem; }
.edition-shell table { border-collapse: collapse; font-size: .9rem; min-width: max-content; }
.edition-shell article > table { display: block; min-width: 0; overflow-x: auto; }
.edition-shell th, .edition-shell td { padding: .45rem .6rem; border-bottom: 1px solid var(--edition-line); }
