
@font-face {
 font-family: 'Zuume';
 src: url('../assets/fonts/Zuume-Regular.ttf') format('truetype');
 font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
 font-family: 'Zuume';
 src: url('../assets/fonts/Zuume-Bold.ttf') format('truetype');
 font-weight: 700; font-style: normal; font-display: swap;
}
:root {
 --green: #446329; 
 --green-deep: #1d2c12;
 --green-bright: #7bb03f;
 --paper: #ebebeb;
 --ink: #14140f;
 --ink-soft: #4c4c44;
 --rule: rgba(20, 20, 15, 0.22);
 --display: zuume, 'Zuume', 'Haettenschweiler', 'Arial Narrow', system-ui, sans-serif;
 --grid-face: 'Times New Roman', Times, 'Tinos', 'Liberation Serif', serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
 margin: 0;
 padding: clamp(0.5rem, 3vw, 2rem);
 font-family: var(--grid-face);
 color: var(--paper);
 background:
 linear-gradient(rgba(18, 30, 12, 0.7), rgba(18, 30, 12, 0.78)),
 url('../assets/bg-newspaper.jpg') center / cover fixed no-repeat;
 background-color: var(--green-deep);
}
.gate {
 position: fixed; inset: 0; z-index: 20;
 display: grid; place-items: center;
 padding: 1.5rem;
 background:
 linear-gradient(rgba(18, 30, 12, 0.82), rgba(18, 30, 12, 0.9)),
 url('../assets/bg-newspaper.jpg') center / cover no-repeat;
}
.gate__card {
 width: min(28rem, 100%);
 padding: 2rem 1.75rem;
 text-align: center;
 color: var(--ink);
 background: url('../assets/paper.jpg') center / cover, var(--paper);
 border: 1px solid rgba(0, 0, 0, 0.35);
 box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.5);
}
.gate__logo { width: min(17rem, 80%); margin-bottom: 1.25rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.gate h1 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; margin: 0 0 .4rem; text-transform: uppercase; letter-spacing: .01em; }
.gate p { margin: 0 0 1.25rem; color: var(--ink-soft); font-size: .95rem; }
.gate__dob { display: flex; gap: .5rem; justify-content: center; }
.gate__dob label {
 display: flex; flex-direction: column; gap: .3rem;
 font-family: var(--display); font-size: .72rem; letter-spacing: .12em;
 text-transform: uppercase; color: var(--ink-soft);
}
.gate__dob input {
 width: 4rem; padding: .6rem .4rem; text-align: center;
 font-family: var(--grid-face); font-size: 1.15rem; color: var(--ink);
 background: rgba(255, 255, 255, .65);
 border: 1px solid var(--rule); border-radius: 2px;
}
.gate__dob label:last-child input { width: 6rem; }
.gate__error { min-height: 1.2rem; margin: .75rem 0 .25rem; color: #b3241f; font-size: .85rem; }
.gate__card--closed h1 { font-size: 1.6rem; }
#paper { max-width: 68rem; margin: 0 auto; }
.masthead { text-align: center; margin-bottom: clamp(.75rem, 2vw, 1.25rem); }
.masthead__logo {
 width: min(30rem, 88%);
 filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
}
.dateline {
 margin: .5rem auto 0; padding-top: .5rem;
 max-width: min(30rem, 88%);
 border-top: 1px solid rgba(255, 255, 255, .45);
 font-family: var(--display); font-weight: 700;
 font-size: clamp(.85rem, 3.1vw, 1.25rem);
 letter-spacing: .07em; text-transform: uppercase;
 color: rgba(255, 255, 255, .95);
}
.sheet {
 display: grid;
 grid-template-columns: 1fr;
 gap: clamp(1rem, 3vw, 2rem);
 padding: clamp(0.75rem, 3vw, 2rem);
 color: var(--ink);
 background: url('../assets/paper.jpg') center / cover, var(--paper);
 border: 1px solid rgba(0, 0, 0, .4);
 box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .45);
}
@media (min-width: 50rem) {
 .sheet {
 grid-template-columns: minmax(20rem, 34rem) minmax(15rem, 1fr);
 align-items: start;
 }
}
.sheet__board { display: flex; flex-direction: column; align-items: stretch; gap: .7rem; min-width: 0; }
@media (max-width: 26rem) {
 body { padding: .4rem; }
 .sheet { padding: .55rem; }
}
.board {
 width: 100%;
 max-width: 34rem;
 margin-inline: auto;
 container-type: inline-size;
}
.grid {
 display: grid;
 grid-template-columns: repeat(9, 1fr);
 outline: 3px solid var(--ink);
 background: rgba(255, 255, 255, .72);
 touch-action: manipulation;
 user-select: none; -webkit-user-select: none;
}
.grid__row { display: contents; }
.cell {
 position: relative;
 display: grid; place-items: center;
 aspect-ratio: 1;
 box-shadow: inset 0 0 0 1px var(--rule);
 font-family: var(--grid-face);
 font-size: calc(100cqw / 9 * 0.56);
 line-height: 1;
 color: var(--ink);
 cursor: pointer;
}
.cell--bandl { box-shadow: inset 0 0 0 1px var(--rule), inset 2px 0 0 0 var(--ink); }
.cell--bandt { box-shadow: inset 0 0 0 1px var(--rule), inset 0 2px 0 0 var(--ink); }
.cell--bandl.cell--bandt {
 box-shadow: inset 0 0 0 1px var(--rule), inset 2px 0 0 0 var(--ink), inset 0 2px 0 0 var(--ink);
}
.cell__digit { font-weight: 400; color: var(--ink-soft); }
.cell.is-given .cell__digit { font-weight: 700; color: var(--ink); }
.cell__marks {
 position: absolute; inset: 6%;
 display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
 font-family: var(--display); font-weight: 400;
 font-size: calc(100cqw / 9 * 0.24);
 line-height: 1; color: var(--ink-soft);
 pointer-events: none;
}
.cell__mark { display: grid; place-items: center; visibility: hidden; }
.cell__mark.is-on { visibility: visible; }
.cell.is-peer { background: rgba(20, 20, 15, .07); }
.cell.is-match { background: rgba(123, 176, 63, .3); }
.cell.is-cursor { background: rgba(123, 176, 63, .55); }
.cell.is-cursor, .cell:focus-visible {
 outline: 2px solid var(--green-deep); outline-offset: -2px; z-index: 1;
}
.cell.is-given { cursor: default; }
.cell.is-wrong::after {
 content: ''; position: absolute; left: 18%; right: 18%; bottom: 10%;
 border-bottom: 2px solid #b3241f;
}
.cell.is-flash { animation: inkin .6s ease-out; }
@keyframes inkin {
 0% { background: rgba(123, 176, 63, .8); }
 100% { background: transparent; }
}
.statusbar {
 display: flex; justify-content: space-between; align-items: baseline;
 width: 100%; max-width: 34rem; margin-inline: auto;
 font-family: var(--display); text-transform: uppercase; letter-spacing: .12em;
 font-size: .75rem; color: var(--ink-soft);
}
.statusbar__clock { font-size: 1.35rem; letter-spacing: .04em; color: var(--ink); font-weight: 700; }
.pad {
 display: flex; flex-direction: column; gap: .5rem;
 width: 100%; max-width: 22rem; margin-inline: auto;
}
.pad__digits { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.pad__tools { display: flex; gap: .35rem; }
.pad--nopencil .key--pencil { display: none; }
.key {
 position: relative;
 padding: .7rem .2rem; min-height: 3rem;
 font-family: var(--display); font-weight: 700; font-size: 1rem;
 letter-spacing: .04em; text-transform: uppercase;
 color: var(--ink); background: rgba(255, 255, 255, .62);
 border: 1px solid var(--rule); border-radius: 2px;
 cursor: pointer;
}
.key:hover { background: rgba(255, 255, 255, .85); }
.key:active { background: rgba(123, 176, 63, .55); }
.key--digit { font-family: var(--grid-face); font-size: 1.6rem; min-height: 3.4rem; }
.key--tool { flex: 1 1 0; font-size: .8rem; }
.key--digit.is-done { color: var(--rule); background: rgba(255, 255, 255, .3); }
.key__count {
 position: absolute; top: .2rem; right: .35rem;
 font-family: var(--display); font-size: .65rem; font-weight: 400; color: var(--ink-soft);
}
.key--pencil.is-on { background: var(--green); color: var(--paper); border-color: var(--green-deep); }
.sheet__side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.rules { font-size: .82rem; color: var(--ink-soft); line-height: 1.45; margin: .3rem 0 0; }
.sr-only {
 position: absolute; width: 1px; height: 1px; margin: -1px;
 padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.actions--centre { justify-content: center; }
button {
 font-family: var(--display); font-weight: 700; text-transform: uppercase;
 letter-spacing: .08em; font-size: .9rem;
 padding: .6rem 1.1rem; color: var(--paper); background: var(--green);
 border: none; border-radius: 2px; cursor: pointer;
}
button:hover { background: var(--green-deep); }
button.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
button.ghost:hover { background: rgba(0, 0, 0, .07); }
.sheet--front { display: block; }
.editions__head {
 margin: 0 0 1rem;
 font-family: var(--display); font-weight: 700; text-transform: uppercase;
 font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: .02em;
 border-bottom: 3px double var(--ink); padding-bottom: .4rem;
}
.editions {
 list-style: none; margin: 0; padding: 0;
 display: grid; gap: 1rem;
 grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .editions { grid-template-columns: repeat(3, 1fr); } }
.edition {
 display: flex; flex-direction: column; gap: .3rem; text-align: left;
 width: 100%; height: 100%; padding: 1.1rem 1rem 1.2rem;
 background: transparent; color: var(--ink);
 border: 1px solid var(--rule); border-top: 3px solid var(--ink);
 border-radius: 0; cursor: pointer;
 font-family: var(--grid-face); letter-spacing: normal; text-transform: none;
}
.edition:hover { background: rgba(0, 0, 0, .05); }
.edition__name {
 font-family: var(--display); font-weight: 700; text-transform: uppercase;
 font-size: 1.75rem; line-height: 1;
}
.edition__spec {
 font-family: var(--display); text-transform: uppercase; letter-spacing: .14em;
 font-size: .7rem; color: var(--ink-soft); margin-bottom: .35rem;
}
.edition__blurb { font-size: .95rem; line-height: 1.4; color: var(--ink); }
.edition__last {
 margin-top: .6rem; align-self: flex-start;
 font-family: var(--display); text-transform: uppercase; letter-spacing: .14em;
 font-size: .65rem; color: var(--paper); background: var(--green);
 padding: .18rem .5rem;
}
.stoppress {
 margin-top: clamp(1rem, 3vw, 1.5rem); padding: 1.75rem 1.5rem; text-align: center;
 color: var(--ink);
 background: url('../assets/paper.jpg') center / cover, var(--paper);
 border: 3px double var(--ink);
 box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .45);
}
.stoppress__kicker { margin: 0; font-family: var(--display); letter-spacing: .3em; text-transform: uppercase; font-size: .75rem; color: #b3241f; }
.stoppress h2 { margin: .2rem 0 .5rem; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.9rem, 7vw, 3rem); line-height: .95; }
.stoppress__time { margin: 0; font-family: var(--display); font-size: 2.6rem; font-weight: 700; }
.stoppress__status {
 min-height: 1.2em; margin: .6rem 0 0;
 font-family: var(--display); text-transform: uppercase; letter-spacing: .12em;
 font-size: .72rem; color: var(--ink-soft);
}
.stoppress .actions { margin-top: .5rem; }
.stoppress__meta { margin: .1rem 0 1.1rem; font-size: .9rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; font-family: var(--display); }
.fatal { padding: 2rem; color: #b3241f; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) {
 .cell, .key { transition: none; }
 .cell.is-flash { animation: none; }
}
.dispatch {
 width: 100%; max-width: 34rem; margin: .2rem auto 0;
 padding: .5rem .7rem;
 background: rgba(20, 20, 15, .05);
 border-left: 3px solid var(--green);
 font-size: .88rem; line-height: 1.4; color: var(--ink-soft); font-style: italic;
}
.whereline {
 width: 100%; max-width: 34rem; margin: .2rem auto 0;
 padding: .5rem .7rem;
 background: rgba(123, 176, 63, .22);
 border-left: 3px solid var(--green-deep);
 font-size: .95rem; line-height: 1.4; color: var(--ink);
}
