:root { --paper: #f2e9d4; --paper2: #e9dcbf; --ink: #231a12; --dim: #6a5a44; --red: #b8321f; --rule: rgba(35, 26, 18, .25);
    --display: "Fraunces", Georgia, serif; --mono: "IBM Plex Mono", ui-monospace, monospace; }
* { box-sizing: border-box; }
html { scroll-padding-top: 64px; }
body { margin: 0; background: #2a1d12; color: var(--ink); font: 500 15px/1.5 var(--mono); }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 8px max(12px, env(safe-area-inset-left)); background: #1a110a; color: #f3e9d4; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.brand { font: 900 20px var(--display); color: #f3e9d4; text-decoration: none; margin-right: auto; }
.brand i { font-weight: 500; color: #d4ab55; }
.ed { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.ed input { width: 58px; font: 700 15px var(--mono); padding: 4px 6px; border-radius: 6px; border: 1px solid #d4ab55; background: #2a1d12; color: #f3e9d4; }
#jump { font: 600 13px var(--mono); padding: 5px; border-radius: 6px; max-width: 42vw; background: #2a1d12; color: #f3e9d4; border: 1px solid #5a4430; }
main { max-width: 860px; margin: 0 auto; padding: 14px 10px 40px; }
.page, .cover { background: var(--paper); background-image: radial-gradient(ellipse at 20% 0, rgba(255, 255, 255, .5), transparent 60%), linear-gradient(var(--paper), var(--paper2));
    border-radius: 4px; padding: 22px clamp(14px, 4vw, 34px); margin: 0 0 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); position: relative; }
.cover { text-align: center; padding: 48px 20px; border-top: 10px solid var(--red); }
.cover h1 { font: 900 clamp(38px, 8vw, 64px)/1 var(--display); margin: 8px 0 14px; }
.cover h1 em { font-weight: 500; font-style: italic; color: var(--red); }
.kicker { letter-spacing: .3em; text-transform: uppercase; font-size: 11px; color: var(--red); margin: 0; }
.ed-big { font: 800 22px var(--display); }
.ed-big b { color: var(--red); font-size: 40px; vertical-align: -4px; }
.cover p { max-width: 560px; margin: 10px auto; }
.warn { border: 2px dashed var(--red); padding: 8px 12px; border-radius: 6px; color: var(--red); font-weight: 700; }
h2 { font: 900 28px/1.1 var(--display); margin: 0 0 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
h2 span { color: var(--red); font-weight: 500; margin-right: 6px; }
h2 small { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .15em; background: var(--red); color: #fff; padding: 2px 7px; border-radius: 99px; vertical-align: 6px; }
h4 { font: 800 17px var(--display); margin: 14px 0 6px; }
ol, ul { padding-left: 22px; margin: 6px 0; } li { margin: 3px 0; }
.mono { font-family: var(--mono); font-weight: 700; }
.lead { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.fig { width: 120px; height: 120px; border-radius: 6px; flex: none; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.look { margin: 0; color: var(--dim); font-style: italic; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 22px; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 26px; }
.t { border-collapse: collapse; margin: 8px 0; font-size: 13.5px; width: auto; max-width: 100%; }
.t th, .t td { border: 1px solid var(--rule); padding: 4px 8px; text-align: left; vertical-align: middle; }
.t th { background: rgba(35, 26, 18, .07); font-weight: 700; }
.t.small { font-size: 12.5px; }
.t td svg, .t th svg { vertical-align: -5px; }
.page { overflow-x: auto; }
.sw { display: inline-block; width: 13px; height: 13px; border-radius: 3px; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, .4); }
.lamp { display: inline-block; font: 700 12px var(--mono); background: #2a2420; color: #f3ecd8; padding: 0 6px; border-radius: 4px; }
.lamp.on { box-shadow: 0 0 0 2px #f3d65a; }
.sheet { margin-top: 12px; border: 1.5px solid var(--ink); border-radius: 6px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.sheet b { width: 100%; font-family: var(--display); font-size: 15px; }
.glyph-cols { display: flex; gap: 8px; flex-wrap: wrap; }
.gcol { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1.5px solid var(--ink); border-radius: 6px; padding: 6px 4px; background: rgba(255, 255, 255, .35); }
.gcol b { font-family: var(--display); color: var(--red); }
.glyph { color: var(--ink); }
.morse { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 2px 10px; font-size: 13px; margin: 8px 0; }
.mc b { display: inline-block; width: 16px; color: var(--red); }
.mazes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.mz { width: 100%; height: auto; }
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 4px 10px; font-size: 14px; }
.lpats, .vpats { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.lpats > div, .vpats > div { display: flex; gap: 8px; align-items: center; }
.lgrid { display: grid; grid-template-columns: repeat(3, 16px); gap: 3px; }
.vgrid { display: grid; grid-template-columns: repeat(4, 13px); gap: 3px; }
.lgrid i, .vgrid i { display: block; height: 16px; border-radius: 3px; border: 1.5px solid var(--ink); }
.vgrid i { height: 13px; border-radius: 50%; }
.lgrid i.on, .vgrid i.on { background: #f0a020; box-shadow: inset 0 0 0 2px #fff3c4; }
.tip { color: var(--dim); font-size: 13px; }
.needy { border-left: 6px solid var(--red); }
.foot { text-align: center; color: var(--dim); font-size: 13px; }
.foot a { color: var(--red); }
@media print {
    body { background: #fff; } .topbar { display: none; } main { max-width: none; padding: 0; }
    .page, .cover { box-shadow: none; background: #fff; break-inside: avoid; page-break-inside: avoid; border-radius: 0; }
    .mod { break-before: page; }
}
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 2px 14px; font-size: 13.5px; margin: 6px 0; }
.pairs span { border-bottom: 1px dotted var(--rule); padding: 2px 0; }
@media (max-width: 480px) { .brand { font-size: 16px; } .brand i { display: none; } #jump { max-width: 38vw; } .topbar { gap: 8px; } }
