:root {
  color-scheme: light;
  --bg: #f4efe4;
  --card: #fbf8f1;
  --sunk: #ebe4d5;
  --ink: #1c1d1a;
  --ink-2: #4a4a43;
  --muted: #77746a;
  --line: #ddd5c4;
  --season: #4d6a2c;
  --season-soft: #e3e9d3;
  --good: #3d6b35; --warn: #8a5608; --bad: #a33a23;
  --serif: "Instrument Serif", Georgia, serif;
  --text: "Literata", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(28, 29, 26, 0.06), 0 10px 30px rgba(28, 29, 26, 0.08);
}
body[data-season="summer"] { --season: #8a5608; --season-soft: #f3e3c2; }
body[data-season="autumn"] { --season: #9a3d21; --season-soft: #efd8cc; }
body[data-season="winter"] { --season: #2f5169; --season-soft: #d6e1e9; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141512; --card: #1c1d19; --sunk: #25261f; --ink: #ece7da; --ink-2: #c7c1b2; --muted: #918c80; --line: #303129;
  --good: #8cc17d; --warn: #e2ad5c; --bad: #f08e74; --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
}
:root[data-theme="dark"] body { --season: #a3c272; --season-soft: #263020; }
:root[data-theme="dark"] body[data-season="summer"] { --season: #e2ad5c; --season-soft: #33280f; }
:root[data-theme="dark"] body[data-season="autumn"] { --season: #e9937a; --season-soft: #3a2119; }
:root[data-theme="dark"] body[data-season="winter"] { --season: #92b7d6; --season-soft: #1a2833; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #141512; --card: #1c1d19; --sunk: #25261f; --ink: #ece7da; --ink-2: #c7c1b2; --muted: #918c80; --line: #303129;
    --good: #8cc17d; --warn: #e2ad5c; --bad: #f08e74; --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
  :root:not([data-theme]) body { --season: #a3c272; --season-soft: #263020; }
  :root:not([data-theme]) body[data-season="summer"] { --season: #e2ad5c; --season-soft: #33280f; }
  :root:not([data-theme]) body[data-season="autumn"] { --season: #e9937a; --season-soft: #3a2119; }
  :root:not([data-theme]) body[data-season="winter"] { --season: #92b7d6; --season-soft: #1a2833; }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { padding: 0; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.4; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--season); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
code { font-family: var(--mono); font-size: 0.88em; }

/* ---------- shell ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.top-in { display: flex; align-items: center; gap: 18px; max-width: 1360px; min-height: 58px; margin: 0 auto; padding: 0 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font: 400 23px/1 var(--serif); text-decoration: none; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; color: var(--season); }
.logo i { font-family: var(--mono); font-size: 11px; font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); vertical-align: middle; margin-left: 4px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a, .issue-nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border-radius: 99px; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.main-nav a svg, .issue-nav a svg { width: 17px; height: 17px; }
.main-nav a:hover, .issue-nav a:hover { background: var(--sunk); color: var(--ink); }
.main-nav a[aria-current="page"], .issue-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.issue-nav { display: flex; align-items: center; gap: 4px; max-width: 1360px; margin: 0 auto; padding: 6px 24px 10px; overflow-x: auto; scrollbar-width: none; }
.in-issue { display: inline-flex; align-items: baseline; gap: 10px; margin-right: auto; padding-right: 16px; color: var(--muted); font: 12px var(--mono); letter-spacing: 0.04em; white-space: nowrap; }
.in-issue b { color: var(--season); font: italic 400 21px var(--serif); letter-spacing: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--ink-2); }
.icon-btn:hover:not(:disabled) { background: var(--sunk); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.small { width: 32px; height: 32px; }
.icon-btn.small svg { width: 16px; height: 16px; }
.main { max-width: 1360px; margin: 0 auto; padding: 30px 24px 80px; }
.main:focus { outline: 0; }

/* ---------- type, buttons, cards ---------- */
.kick { color: var(--season); font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 26px; }
.head h1 { margin-top: 6px; font: 400 clamp(36px, 4.5vw, 52px)/1.02 var(--serif); letter-spacing: -0.01em; }
.head p:not(.kick) { max-width: 68ch; margin-top: 8px; color: var(--ink-2); font: 17px/1.55 var(--text); }
.head-act, .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.btn svg { width: 17px; height: 17px; }
.btn:hover:not(:disabled) { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); }
.btn.warn { border-color: var(--bad); color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--sunk); border-color: transparent; }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 34px; padding: 0 13px; font-size: 13px; }
.card { min-width: 0; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h h2 { font: 400 25px/1.1 var(--serif); }
.hint { color: var(--muted); font-size: 13px; }
.stack { display: grid; gap: 18px; align-content: start; }
.in, .ta { width: 100%; min-height: 40px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.in.small { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.ta { resize: vertical; font: 15px/1.6 var(--text); }
.ta.body { min-height: 360px; font: 14px/1.65 var(--mono); }
.in:focus, .ta:focus { outline: 0; border-color: var(--season); box-shadow: 0 0 0 3px color-mix(in srgb, var(--season) 22%, transparent); }
.in.mono { font-family: var(--mono); font-size: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .field > legend, .field .lbl { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 0; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.field > legend { margin-bottom: 6px; }
.field small { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 11.5px; }
.field small.over { color: var(--bad); }
.field.end { align-content: end; justify-items: end; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.status { display: inline-flex; padding: 2px 10px; border-radius: 99px; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.status.published { background: var(--ink); color: var(--bg); }
.status.draft { border: 1px dashed var(--muted); color: var(--ink-2); }
.banner { display: flex; gap: 10px; margin-bottom: 20px; padding: 12px 14px; background: var(--season-soft); border-radius: 12px; font-size: 14px; }
.banner svg { width: 18px; height: 18px; margin-top: 1px; color: var(--season); }
.empty { padding: 14px 4px; color: var(--muted); font-size: 14px; }
.warn-t { color: var(--bad); }
.crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 18px; color: var(--muted); font-size: 13.5px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.crumbs a svg { width: 16px; height: 16px; }
.crumbs a:hover { color: var(--ink); }

/* ---------- shelf ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 30px 26px; margin-bottom: 32px; }
.issue-card { display: grid; gap: 14px; align-content: start; }
.cover-link { display: block; aspect-ratio: 148 / 210; overflow: hidden; border-radius: 3px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08), 0 14px 30px rgba(28, 29, 26, 0.16); transition: transform 0.2s; }
.cover-link:hover { transform: translateY(-5px) rotate(-0.4deg); }
.cover-link svg, .cover-live svg, .w-cover svg, .mini-cover svg, .w-more svg { display: block; width: 100%; height: auto; }
.ic-meta .mono { color: var(--muted); font-size: 11.5px; }
.ic-meta h2 { margin-top: 2px; font: italic 400 26px/1.1 var(--serif); }
.ic-meta h2 a { text-decoration: none; }
.ic-sub { margin: 2px 0 8px; color: var(--ink-2); font-size: 13.5px; }
.issue-card.new button { display: grid; place-content: center; justify-items: center; gap: 6px; width: 100%; aspect-ratio: 148 / 210; border: 1.5px dashed var(--line); border-radius: 3px; color: var(--ink-2); text-align: center; transition: border-color 0.15s, background 0.15s; }
.issue-card.new button:hover { border-color: var(--ink); background: var(--card); }
.issue-card.new span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%; }
.issue-card.new svg { width: 22px; height: 22px; }
.issue-card.new b { font: italic 400 22px var(--serif); color: var(--ink); }
.issue-card.new small { font-size: 13px; }
.backup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.backup h2 { font: 400 23px var(--serif); }
.backup p { max-width: 58ch; color: var(--ink-2); font-size: 14px; }

/* ---------- desk ---------- */
.desk { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.cover-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.cover-live { position: sticky; top: 130px; overflow: hidden; border-radius: 3px; box-shadow: 0 12px 26px rgba(28, 29, 26, 0.16); }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: grid; gap: 5px; justify-items: center; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 600; }
.swatch span::before { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); content: ""; }
.swatch input:checked + span { border-color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--season); outline-offset: 2px; }
.arts { display: grid; }
.art { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.art:first-child { border-top: 0; }
.art-n { color: var(--season); }
.art-main .mono { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.art-main a { text-decoration: none; }
.art-main b { display: block; font: italic 400 21px/1.15 var(--serif); }
.art-main a:hover b { color: var(--season); }
.art-main small { color: var(--ink-2); font-size: 13px; }
.art-act { display: flex; gap: 2px; }
.adder { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.adder .mono { color: var(--muted); font-size: 11.5px; text-transform: uppercase; }
.adders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.adders button { display: grid; gap: 2px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.adders button:hover { border-color: var(--ink); }
.adders b { font: italic 400 18px var(--serif); }
.adders small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.pf { display: grid; gap: 4px; }
.pf li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pf li:first-child { border-top: 0; }
.pf-i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.pf-i svg { width: 16px; height: 16px; }
.pf .error .pf-i { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.pf .warn .pf-i { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pf .info .pf-i { background: var(--season-soft); color: var(--season); }
.pf .ok .pf-i { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.pf b { font-size: 13px; }
.pf p { color: var(--ink-2); }
.pf a { color: var(--season); font-size: 13px; font-weight: 600; }

/* ---------- editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tpl { position: relative; cursor: pointer; }
.tpl input { position: absolute; opacity: 0; }
.tpl span { display: grid; gap: 2px; height: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; }
.tpl b { font: italic 400 17px var(--serif); }
.tpl small { color: var(--muted); font: 11.5px/1.3 var(--sans); }
.tpl input:checked + span { border-color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.tpl input:focus-visible + span { outline: 2px solid var(--season); outline-offset: 2px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
.tool { padding: 5px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; font-weight: 600; }
.tool:hover { border-color: var(--ink); }
.cheat { font-size: 13px; color: var(--ink-2); }
.cheat summary { cursor: pointer; font-weight: 600; }
.cheat ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; margin-top: 8px; }
.imgs { display: grid; gap: 8px; }
.imgs li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.imgs img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.imgs div { display: grid; font-size: 12.5px; }
.imgs .good { color: var(--good); } .imgs .warn { color: var(--warn); } .imgs .bad { color: var(--bad); }
.imgs .empty { display: block; padding: 4px 0 8px; }
.ed-preview { position: sticky; top: 130px; display: grid; max-height: calc(100vh - 150px); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pv-bar a { display: inline-flex; align-items: center; gap: 4px; color: var(--season); font-size: 13px; font-weight: 600; text-decoration: none; }
.pv-bar a svg { width: 15px; height: 15px; }
.pv { padding: 28px 30px 40px; overflow-y: auto; }

/* ---------- web edition (also the editor preview) ---------- */
.web { max-width: 1060px; margin: 0 auto; }
.w-art { max-width: 680px; margin: 0 auto; }
.w-head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--season); }
.w-head h1 { margin: 10px 0 12px; font: 400 clamp(36px, 5vw, 56px)/1.02 var(--serif); letter-spacing: -0.01em; }
.w-sf { color: var(--ink-2); font: italic 400 20px/1.5 var(--text); }
.w-by { margin-top: 12px; color: var(--muted); text-transform: uppercase; }
.w-body { font: 18px/1.72 var(--text); }
.w-body p + p { margin-top: 0.9em; }
.w-body p.drop::first-letter { float: left; margin: 0.06em 0.08em 0 0; color: var(--season); font: 400 4.2em/0.8 var(--serif); }
.w-body h2 { margin: 1.6em 0 0.4em; color: var(--season); font: italic 400 28px/1.2 var(--serif); }
.w-body blockquote { margin: 1.4em 0; padding: 0.6em 0; border-block: 1px solid var(--season); font: italic 400 30px/1.25 var(--serif); }
.w-body .w-stamp { margin-top: 1.5em; color: var(--season); font: 500 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.w-body .w-stamp b { margin-right: 8px; padding: 2px 8px; background: var(--season-soft); border-radius: 4px; }
.w-body .w-stamp + p { margin-top: 0.4em; }
.w-body .w-q { margin-top: 1.6em; font-family: var(--sans); font-size: 17px; font-weight: 700; }
.w-body .w-q + p { margin-top: 0.4em; }
.w-fig, .w-plate { margin: 1.6em 0; }
.w-plate { margin: 0 0 1.8em; }
.w-fig svg, .w-plate svg, .w-fig img { display: block; width: 100%; height: auto; border-radius: 4px; }
.w-fig figcaption, .w-plate figcaption { margin-top: 8px; color: var(--muted); font: 12.5px/1.5 var(--mono); }
.fig-missing { display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1.5px dashed var(--bad); border-radius: 4px; color: var(--bad); font: 13px var(--mono); }
.w-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 680px; margin: 48px auto 0; padding-top: 22px; border-top: 1px solid var(--line); }
.w-pager a { display: grid; text-decoration: none; }
.w-pager a.r { text-align: right; }
.w-pager small { color: var(--muted); font: 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.w-pager b { font: italic 400 22px/1.2 var(--serif); }
.w-pager a:hover b { color: var(--season); }
.w-issue { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 40px; }
.w-cover { overflow: hidden; border-radius: 3px; box-shadow: 0 16px 36px rgba(28, 29, 26, 0.18); }
.w-issue h1 { margin: 8px 0; font: italic 400 clamp(52px, 8vw, 96px)/0.95 var(--serif); color: var(--season); }
.w-place { color: var(--muted); }
.w-note { max-width: 56ch; margin-top: 18px; font: 18px/1.65 var(--text); color: var(--ink-2); }
.w-toc { display: grid; border-top: 1px solid var(--ink); }
.w-toc a { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.w-toc a > .mono { color: var(--season); font-size: 14px; padding-top: 6px; }
.w-toc a > span:last-child { display: grid; gap: 4px; }
.w-toc b { font: 400 32px/1.1 var(--serif); }
.w-toc a:hover b { color: var(--season); }
.w-toc em { max-width: 64ch; color: var(--ink-2); font: italic 16px/1.5 var(--text); }
.w-toc small.mono { color: var(--muted); text-transform: uppercase; }
.w-more { margin-top: 48px; }
.w-more ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin-top: 12px; }
.w-more a { display: grid; gap: 6px; text-decoration: none; }
.w-more svg { border-radius: 2px; box-shadow: 0 8px 20px rgba(28, 29, 26, 0.14); }
.w-more b { font: italic 400 20px var(--serif); }
.w-more small { color: var(--muted); }

/* ---------- reading series ---------- */
.series { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: var(--sunk); border-radius: 99px; }
.seg button { padding: 6px 14px; border-radius: 99px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); color: var(--ink); }
.poster-stage { display: grid; place-items: center; padding: 18px; background: var(--sunk); border-radius: 12px; }
.poster-stage canvas { display: block; max-width: 100%; height: auto; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2); }
.poster-stage.fmt-poster canvas { max-height: 72vh; width: auto; }
.poster-stage.fmt-story canvas { max-height: 72vh; width: auto; }
.poster-stage.fmt-square canvas { max-height: 60vh; width: auto; }
.poster-card .hint { margin-top: 10px; }

/* ---------- identity ---------- */
.sys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sys-mark, .sys-rules, .sys-grid { grid-column: 1 / -1; }
.wm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.tile { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 160px; border-radius: 12px; }
.tile.paper { background: #f4efe4; color: #1c1d1a; border: 1px solid #ddd5c4; }
.tile.ink { background: #1c1d1a; color: #f4efe4; }
.wm-m svg { width: 56px; height: 56px; }
.wm-t { font: 400 clamp(36px, 5vw, 60px)/1 var(--serif); letter-spacing: -0.01em; }
.sys-mark p { color: var(--ink-2); font: 16px/1.6 var(--text); }
.seasons { display: grid; gap: 10px; }
.seasons li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; }
.sw-big { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 8px var(--st); }
.seasons b { font: italic 400 21px var(--serif); }
.seasons code { color: var(--muted); }
.seasons small { grid-column: 2 / -1; color: var(--ink-2); font-size: 13px; }
.types { display: grid; gap: 6px; }
.types dt { margin-top: 10px; color: var(--muted); font: 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.types .t-d { font: 400 44px/1 var(--serif); }
.types .t-b { font: 18px/1.5 var(--text); }
.types .t-m { font: 500 14px var(--mono); letter-spacing: 0.06em; }
.grid-demo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: center; }
.grid-demo ul { display: grid; gap: 10px; font: 16px/1.5 var(--text); color: var(--ink-2); }
.grid-demo li { padding-left: 18px; position: relative; }
.grid-demo li::before { position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--season); content: ""; }
.gd-page { position: relative; aspect-ratio: 148 / 210; background: #f4efe4; border: 1px solid #c9bfa9; box-shadow: var(--shadow); }
.gd-frame { position: absolute; top: calc(17 / 210 * 100%); bottom: calc(22 / 210 * 100%); left: calc(19 / 148 * 100%); right: calc(15 / 148 * 100%); background: repeating-linear-gradient(to bottom, transparent 0 7px, rgba(47, 81, 105, 0.35) 7px 8px); outline: 1px dashed #9a3d21; }
.gd-m { position: absolute; color: #9a3d21; font: 500 10px var(--mono); }
.gd-m.t { top: 2%; left: 50%; } .gd-m.b { bottom: 2%; left: 50%; } .gd-m.i { left: 3%; top: 50%; } .gd-m.o { right: 3%; top: 50%; }
.rules-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; align-items: start; }
.mini-cover { overflow: hidden; border-radius: 3px; box-shadow: var(--shadow); }
.sys-rules ol { display: grid; gap: 12px; counter-reset: r; }
.sys-rules li { position: relative; padding-left: 34px; font: 16px/1.55 var(--text); color: var(--ink-2); counter-increment: r; }
.sys-rules li::before { position: absolute; left: 0; top: 2px; color: var(--season); font: 500 13px var(--mono); content: counter(r, decimal-leading-zero); }
.sys-rules b { color: var(--ink); }

/* ---------- proof: the printed pages ---------- */
.proof-bar { position: sticky; top: 118px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 22px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.pb-l, .pb-r { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pb-r .mono { color: var(--muted); }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--ink); }
.proof-wrap { overflow: hidden; padding: 4px; }
.pages { --slug: 0mm; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 0 auto; }
.pages.spread { width: max-content; display: grid; grid-template-columns: repeat(2, max-content); column-gap: 0; row-gap: 26px; justify-content: center; }
.pages.spread .sheet:first-child { grid-column: 2; }
.sheet { position: relative; width: calc(var(--pw) + 2 * var(--slug)); height: calc(var(--ph) + 2 * var(--slug)); background: #f4efe4; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 26px rgba(0, 0, 0, 0.14); }
.pages.spread .sheet:nth-child(even) { box-shadow: -6px 0 14px -10px rgba(0, 0, 0, 0.35) inset, 0 10px 26px rgba(0, 0, 0, 0.14); }
.pages.marks .sheet { background: #fff; }
.pg { position: absolute; left: var(--slug); top: var(--slug); width: var(--pw); height: var(--ph); overflow: hidden; background: #f4efe4; color: #1c1d1a; font: 9.5pt/13.5pt "Literata", Georgia, serif; font-variant-numeric: oldstyle-nums; hyphens: auto; -webkit-hyphens: auto; }
.pages.marks .pg { overflow: visible; }
.pages.marks .pg > .frame, .pages.marks .pg > .rh, .pages.marks .pg > .folio { z-index: 1; }
.pg .bleed { position: absolute; inset: -3mm; z-index: 0; }
.pg .bleed svg { display: block; width: 100%; height: 100%; }
.cm { position: absolute; inset: 0; pointer-events: none; }
.cm::before, .cm::after { position: absolute; border-color: #000; border-style: solid; border-width: 0; content: ""; }
.cm.tl::before { left: 0; top: var(--slug); width: calc(var(--slug) - 4mm); border-top-width: 0.25pt; }
.cm.tl::after { top: 0; left: var(--slug); height: calc(var(--slug) - 4mm); border-left-width: 0.25pt; }
.cm.tr::before { right: 0; top: var(--slug); width: calc(var(--slug) - 4mm); border-top-width: 0.25pt; }
.cm.tr::after { top: 0; right: var(--slug); height: calc(var(--slug) - 4mm); border-left-width: 0.25pt; }
.cm.bl::before { left: 0; bottom: var(--slug); width: calc(var(--slug) - 4mm); border-top-width: 0.25pt; }
.cm.bl::after { bottom: 0; left: var(--slug); height: calc(var(--slug) - 4mm); border-left-width: 0.25pt; }
.cm.br::before { right: 0; bottom: var(--slug); width: calc(var(--slug) - 4mm); border-top-width: 0.25pt; }
.cm.br::after { bottom: 0; right: var(--slug); height: calc(var(--slug) - 4mm); border-left-width: 0.25pt; }
.slugline { position: absolute; left: var(--slug); bottom: 3mm; color: #555; font: 5.5pt "DM Mono", monospace; letter-spacing: 0.04em; white-space: nowrap; }
.pg .rh { position: absolute; top: 9mm; display: flex; justify-content: flex-start; color: var(--season); font: 500 6pt "DM Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; }
.pg.recto .rh { left: 19mm; right: 15mm; justify-content: flex-end; }
.pg.verso .rh { left: 15mm; right: 19mm; }
.pg .frame { position: absolute; top: 17mm; bottom: 22mm; overflow: hidden; }
.pg.recto .frame { left: 19mm; right: 15mm; }
.pg.verso .frame { left: 15mm; right: 19mm; }
.pg.opener .frame { top: 26mm; }
.pg .folio { position: absolute; bottom: 10mm; font: 500 7pt "DM Mono", monospace; letter-spacing: 0.06em; }
.pg.recto .folio { right: 15mm; }
.pg.verso .folio { left: 15mm; }
.pg .kick { color: var(--season); font: 500 6.5pt/1.2 "DM Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; }
.pg p { margin: 0; text-align: justify; text-indent: 1.1em; }
.pg p.first, .pg p.cont, .pg p.drop, .pg p.a { text-indent: 0; }
.pg p.split { text-align-last: justify; }
.pg p.drop::first-letter { float: left; margin: 1.2pt 2.4pt 0 0; color: var(--season); font: 400 37pt/30pt "Instrument Serif", Georgia, serif; }
.pg h3.sub { margin: 13.5pt 0 0; color: var(--season); font: italic 400 13pt/13.5pt "Instrument Serif", Georgia, serif; break-after: avoid; }
.pg blockquote { margin: 11pt 0; padding: 6pt 0; border-block: 0.5pt solid var(--season); font: italic 400 14pt/16pt "Instrument Serif", Georgia, serif; text-align: left; }
.pg .stamp { display: flex; align-items: baseline; gap: 6pt; margin-top: 9pt; }
.pg .stamp b { padding: 0.5pt 3pt; background: var(--season-tint); color: var(--season-deep); font: 500 6.5pt "DM Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.pg .stamp span { font: italic 400 11pt/13.5pt "Instrument Serif", Georgia, serif; }
.pg p.q { margin-top: 9pt; font-weight: 600; text-indent: 0; text-align: left; }
.pg figure { margin: 9pt 0; }
.pg figure img, .pg .fig-plate svg { display: block; width: 100%; height: auto; }
.pg figure.oversize img { max-height: 120mm; object-fit: contain; }
.pg figcaption { margin-top: 3pt; color: #4a4a43; font: 6.5pt/9pt "DM Mono", monospace; letter-spacing: 0.02em; }
.pg .fig-missing { aspect-ratio: 16 / 9; border: 0.75pt dashed #a33a23; color: #a33a23; font: 7pt "DM Mono", monospace; }
.pg .end { color: var(--season); font-size: 6pt; vertical-align: 1pt; }
.pg .op { margin-bottom: 11pt; padding-bottom: 10pt; border-bottom: 0.5pt solid var(--season); }
.pg .op-t { margin: 5pt 0 7pt; font: 400 25pt/26pt "Instrument Serif", Georgia, serif; letter-spacing: -0.005em; hyphens: none; }
.pg .op-s { font: italic 400 10.5pt/14pt "Literata", Georgia, serif; text-indent: 0; text-align: left; hyphens: none; }
.pg .op-b { margin-top: 7pt; font: 500 6.5pt "DM Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; text-indent: 0; }
.pg .plate-cap { position: absolute; left: 12mm; right: 12mm; bottom: 12mm; z-index: 1; padding: 3.5mm 4mm; background: #f4efe4; }
.pg .plate-cap p { margin-top: 2pt; font: italic 400 8.5pt/11.5pt "Literata", Georgia, serif; text-indent: 0; text-align: left; }
.pg .colophon { position: absolute; left: 15mm; right: 19mm; bottom: 22mm; font-size: 8pt; line-height: 11.5pt; }
.pg .colophon .wm { font: 400 20pt/1 "Instrument Serif", Georgia, serif; text-indent: 0; }
.pg .colophon p { text-indent: 0; text-align: left; margin-top: 3pt; }
.pg .colophon dl { display: grid; grid-template-columns: 16mm 1fr; gap: 2pt 4mm; margin-top: 8mm; padding-top: 3mm; border-top: 0.5pt solid #1c1d1a; }
.pg .colophon dt { font: 500 6pt/11.5pt "DM Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.pg .colophon .fine { margin-top: 6mm; color: #4a4a43; font-size: 7pt; }
.pg .contents { position: absolute; top: 26mm; left: 19mm; right: 15mm; bottom: 22mm; }
.pg .contents ol { margin-top: 5mm; border-top: 0.5pt solid #1c1d1a; }
.pg .contents li { display: grid; grid-template-columns: 9mm 1fr; padding: 2.6mm 0; border-bottom: 0.3pt solid #c9bfa9; }
.pg .c-n { color: var(--season); font: 500 7.5pt/13pt "DM Mono", monospace; }
.pg .c-t b { display: block; font: 400 14pt/15pt "Instrument Serif", Georgia, serif; }
.pg .c-t small { font: 500 6pt "DM Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; color: #4a4a43; }
.pg .ed { margin-top: 8mm; }
.pg .ed p:not(.kick) { margin-top: 2mm; font-style: italic; text-indent: 0; text-align: left; }
.pg .notes { position: absolute; top: 17mm; bottom: 22mm; }
.pg.recto .notes { left: 19mm; right: 15mm; }
.pg.verso .notes { left: 15mm; right: 19mm; }
.pg .notes i { display: block; height: 6.6mm; border-bottom: 0.3pt solid color-mix(in srgb, var(--season) 55%, transparent); }
.pg .back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 20mm 26mm; text-align: center; }
.pg .back-art { position: absolute; top: -3mm; left: -3mm; right: -3mm; height: 80mm; }
.pg .back-art svg { width: 100%; height: 100%; display: block; }
.pg .back .wm { font: 400 26pt/1 "Instrument Serif", Georgia, serif; text-indent: 0; text-align: center; }
.pg .back p { text-indent: 0; text-align: center; margin-top: 3mm; }
.pg .back .mono { font: 500 6.5pt/10pt "DM Mono", monospace; letter-spacing: 0.12em; }
.pages.grid .pg .frame { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(13.5pt - 0.4pt), rgba(47, 120, 190, 0.4) calc(13.5pt - 0.4pt), rgba(47, 120, 190, 0.4) 13.5pt); outline: 0.5pt dashed rgba(200, 30, 110, 0.7); }
.pages.grid .pg::after { position: absolute; inset: 0; border: 0.5pt solid rgba(200, 30, 110, 0.35); content: ""; pointer-events: none; }
#measure { position: fixed; left: -20000px; top: 0; visibility: hidden; pointer-events: none; }

/* ---------- dialog, toast ---------- */
.dlg { width: min(460px, calc(100vw - 24px)); padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); color: var(--ink); }
.dlg::backdrop { background: rgba(20, 21, 18, 0.55); }
.dlg form { padding: 22px; }
.dlg h2 { margin-bottom: 8px; font: 400 26px var(--serif); }
.dlg p { color: var(--ink-2); }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); padding: 11px 12px 11px 16px; background: #1c1d1a; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); color: #f4efe4; font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 0.2s, transform 0.2s; }
.toast.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast button { padding: 6px 12px; background: #f4efe4; border-radius: 99px; color: #1c1d1a; font-size: 13px; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .desk, .editor, .series { grid-template-columns: minmax(0, 1fr); }
  .ed-preview, .cover-live { position: static; max-height: none; }
  .ed-preview { max-height: 80vh; }
  .proof-bar { position: static; }
}
@media (max-width: 760px) {
  .top-in { padding: 0 14px; gap: 6px; }
  .logo span { font-size: 20px; }
  .logo i { display: none; }
  .main-nav a span { display: none; }
  .main-nav a { padding: 0 10px; }
  .issue-nav { padding: 4px 14px 8px; }
  .in-issue { display: none; }
  .issue-nav a { padding: 0 10px; font-size: 13px; }
  .main { padding: 22px 16px 80px; }
  .card { padding: 16px; border-radius: 16px; }
  .cover-card { grid-template-columns: minmax(0, 1fr); }
  .cover-live { max-width: 220px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .ic-meta h2 { font-size: 22px; }
  .tpls, .adders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cheat ul { grid-template-columns: minmax(0, 1fr); }
  .art { grid-template-columns: 24px minmax(0, 1fr); }
  .art-act { grid-column: 2; }
  .pv { padding: 20px 18px 30px; }
  .w-body { font-size: 17px; }
  .w-issue { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .w-cover { max-width: 220px; }
  .w-toc b { font-size: 26px; }
  .w-toc a { grid-template-columns: 34px minmax(0, 1fr); }
  .sys { grid-template-columns: minmax(0, 1fr); }
  .wm-row, .grid-demo, .rules-row { grid-template-columns: minmax(0, 1fr); }
  .gd-page, .mini-cover { max-width: 200px; }
  .tile { min-height: 120px; }
  .wm-m svg { width: 40px; height: 40px; }
}

/* ---------- print: only the pages ---------- */
@media print {
  html, body { background: #fff !important; }
  .top, .proof-bar, .toast, .dlg, .crumbs { display: none !important; }
  .main { max-width: none; margin: 0; padding: 0; }
  .proof-wrap { overflow: visible; padding: 0; }
  .pages, .pages.spread { display: block !important; zoom: 1 !important; width: auto; margin: 0; }
  .sheet { break-after: page; break-inside: avoid; box-shadow: none !important; margin: 0; }
  .sheet:last-child { break-after: auto; }
  .pages.grid .pg .frame { background-image: none; outline: 0; }
  .pages.grid .pg::after { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
