:root {
    --ground: #091f1c;
    --panel: #102e29;
    --ink: #f8edd2;
    --muted: #d2dac4;
    --gold: #f1ca7b;
    --edge: #666043;
    background: var(--ground);
    color: var(--ink);
    font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: var(--gold); text-underline-offset: .21em; }
a:focus-visible,button:focus-visible { outline: 3px solid #ffd88e; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3,.brand { font-family: Georgia,'Times New Roman',serif; line-height: 1.12; font-weight: 500; }
h2 { font-size: clamp(2.2rem,5.1vw,4.9rem); margin-bottom: .3em; letter-spacing: -.035em; }
.top {
    padding: .85rem max(5vw,calc((100vw - 1350px)/2));
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    border-bottom: 1px solid var(--edge);
    background: #071b18;
}
.top a { color: var(--ink); }
.brand { font-size: clamp(1.35rem,3vw,1.95rem); text-decoration: none; }
.brand small { margin-left: .65rem; font: 740 .68rem system-ui; letter-spacing: .12em; color: var(--gold); }
nav { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; font-size: .93rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { z-index: 3; left: .6rem; top: .6rem; background: var(--ground); padding: .5rem; }
.hero { position: relative; isolation: isolate; min-height: clamp(590px,82vh,900px); display: grid; align-items: center; border-bottom: 1px solid var(--edge); }
.hero picture,.hero::after { position: absolute; inset: 0; }
.hero picture { z-index: -2; }
.hero img { height: 100%; width: 100%; object-fit: cover; object-position: 63% 36%; }
.hero::after { z-index: -1; content: ''; background: linear-gradient(90deg,#061c18ef 0%,#061c18a0 30%,transparent 76%); }
.hero-copy { margin-inline: max(5vw,calc((100vw - 1350px)/2)); }
.hero h1 { font-size: clamp(3.65rem,9vw,10rem); letter-spacing: -.058em; }
.hero p { margin: 1.05rem 0 1.45rem; max-width: 32ch; font-size: clamp(1rem,1.9vw,1.35rem); color: var(--ink); }
.cta,button { display: inline-block; border: 1px solid var(--gold); background: var(--gold); color: #132a24; padding: .69rem 1.04rem; font: 710 1rem/1.3 system-ui; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .53; cursor: default; }
.section,footer,#daily-editorial { width: min(90%,1350px); margin-inline: auto; }
.section { padding-block: clamp(2.7rem,7vw,6.5rem); border-bottom: 1px solid var(--edge); }
.section > p,footer p { color: var(--muted); }
.chapter-nav { margin-block: 1.35rem; gap: .6rem; }
.chapter-nav a { padding: .55rem .94rem; border: 1px solid var(--edge); text-decoration: none; }
.chapter-nav a[aria-current="true"] { border-color: var(--gold); background: var(--gold); color: var(--ground); }
.chapter { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); background: var(--panel); border: 1px solid var(--edge); }
.chapter:not([hidden]) + .chapter { margin-top: 1rem; }
.chapter img { width: 100%; height: 100%; min-height: 320px; max-height: 470px; object-fit: cover; }
.chapter-copy { padding: clamp(1.1rem,4vw,4rem); align-self: center; }
.chapter-number { color: var(--gold); font-size: .92rem; }
.chapter h3 { font-size: clamp(2.1rem,4vw,4.1rem); margin: .3em 0; }
.chapter-copy a { display: inline-block; margin-top: 1rem; }
.chapter-controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-top: 1rem; }
.chapter-controls button,.answers button,#reset { background: transparent; color: var(--gold); }
.questions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-block: 1.3rem; }
.question { border-top: 3px solid var(--edge); padding: 1rem; background: var(--panel); }
.question-text { font-weight: 650; }
.answers { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: .8rem; }
.answers button[aria-pressed="true"] { background: var(--gold); color: var(--ground); }
.feedback { color: var(--gold); font-weight: 700; }
.explanation { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.2rem; margin-top: 1.55rem; }
.card { min-width: 0; padding: .45rem .45rem .95rem; border: 1px solid var(--edge); }
.card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.card h3 { font-size: 1.3rem; margin: .7rem .5rem .32rem; }
.card p { margin-inline: .5rem; color: var(--muted); font-size: .94rem; }
.library { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin-top: 1.4rem; }
.library section { padding: 1rem; background: var(--panel); border-top: 3px solid var(--edge); }
.library h3 { font-size: 1.32rem; }
.library ul { padding-left: 1.16rem; margin-bottom: 0; }
.library li + li { margin-top: .53rem; }
.entry { width: min(90%,810px); margin: clamp(2rem,8vw,6rem) auto; }
.entry h1 { font-size: clamp(2.55rem,8vw,5.65rem); margin-block: .55em; }
.entry h2 { font-size: clamp(1.55rem,3vw,2.3rem); margin-top: .8em; }
.entry p { margin-block: .72em; }
.entry img { width: min(100%,690px); height: auto; }
#daily-editorial,footer { padding-block: 2rem; }
footer { border-top: 1px solid var(--edge); }

@media (max-width: 900px) {
    .gallery,.library { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 670px) {
    .hero { min-height: 580px; align-items: end; padding-bottom: 2.2rem; }
    .hero img { object-position: 69% 37%; }
    .hero::after { background: linear-gradient(0deg,#061c18 0%,#061c18aa 36%,transparent 73%); }
    .chapter, .questions { grid-template-columns: 1fr; }
    .chapter img { height: auto; min-height: 0; max-height: none; }
}
@media (max-width: 460px) {
    .gallery,.library { grid-template-columns: 1fr; }
    .chapter-controls { justify-content: start; }
    #chapter-status { order: -1; width: 100%; }
}
