@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,650&display=swap");

:root {
    --ink: #17211c;
    --muted: #516056;
    --paper: #e7eee9;
    --sheet: #f7faf8;
    --line: #c5d2ca;
    --pine: #16382c;
    --moss: #2f6a50;
    --foam: #d5e6da;
    --max: 1120px;
    --spine: 14px;
    --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
    --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.6;
    padding-left: var(--spine);
}
body::before {
    content: "";
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--spine);
    background: var(--pine);
    z-index: 40;
}
img { max-width: 100%; height: auto; }
a { color: var(--pine); }
a:hover { color: var(--moss); }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }
.skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--sheet);
    padding: 0.4rem 0.7rem;
}
.skip:focus { left: 1rem; z-index: 80; }

.flag {
    margin: 0;
    background: var(--pine);
    color: #e7f2eb;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 1.25rem;
}

.mast {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(100% - 2.4rem, var(--max));
    margin: 0 auto;
    padding: 1.15rem 0 0.9rem;
    border-bottom: 1px solid var(--line);
}
.word {
    font-family: var(--serif);
    font-size: 1.85rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--ink);
    line-height: 1;
}
.word small {
    display: block;
    margin-top: 0.2rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.nav a {
    font-size: 0.92rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.1rem;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--pine); }

.frame { width: min(100% - 2.4rem, var(--max)); margin: 0 auto; }

.opener {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    padding: 2.4rem 0 2rem;
    align-items: start;
}
.sheet {
    background: var(--sheet);
    border: 1px solid var(--pine);
    min-height: 320px;
    padding: 1.4rem 1.3rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sheet-kicker {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--moss);
}
.sheet-title, .opener h1 {
    font-family: var(--serif);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.sheet-title { font-size: clamp(2rem, 4vw, 2.7rem); margin: 1.2rem 0 0.6rem; }
.sheet p { margin: 0; color: var(--muted); }
.sheet-foot {
    margin-top: 1.6rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
}
.lede h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.15rem);
    margin: 0 0 0.8rem;
}
.lede .standfirst { font-size: 1.15rem; margin: 0 0 1rem; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--pine);
    background: transparent;
    color: var(--pine);
    cursor: pointer;
}
.btn-fill { background: var(--pine); color: #f4faf6; }
.btn-fill:hover { background: var(--moss); border-color: var(--moss); color: #fff; }
.btn-line:hover { background: var(--foam); }

.band {
    background: var(--pine);
    color: #e8f3ec;
    padding: 1rem 0;
}
.band .frame { display: grid; gap: 0.35rem; }
.band h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 650;
}
.band p { margin: 0; font-size: 0.95rem; }
.band a { color: #d7ecdf; }

.block { padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.block-head {
    display: grid;
    grid-template-columns: 4.2rem 1fr;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}
.index-no {
    font-family: var(--mono);
    color: var(--moss);
    font-size: 0.85rem;
    padding-top: 0.45rem;
}
.block h2 {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    margin: 0;
}
.block .intro { margin: 0.35rem 0 0; color: var(--muted); max-width: 42rem; }

.topics { display: grid; }
.topic {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 1rem;
    padding: 0.95rem 0;
    border-top: 1px solid var(--line);
}
.topic:last-child { border-bottom: 1px solid var(--line); }
.topic h3 { margin: 0 0 0.2rem; font-size: 1.08rem; font-family: var(--serif); font-weight: 650; }
.topic p { margin: 0; color: var(--muted); }
.topic span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--moss); padding-top: 0.3rem; }

.notice {
    margin-top: 1.2rem;
    padding: 0.9rem 1rem;
    background: var(--foam);
    border-left: 3px solid var(--pine);
}
.notice p { margin: 0; }
.notice strong { font-weight: 600; }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.spec { margin: 0; }
.spec div {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 0.8rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
}
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }

.buy {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: end;
}
.steps { margin: 0; padding: 0; list-style: none; }
.steps li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.6rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
}
.steps b { font-family: var(--mono); color: var(--moss); font-weight: 500; }
.price-box {
    background: var(--sheet);
    border: 1px solid var(--line);
    padding: 1rem 1.1rem;
}
.price-box .sum {
    font-family: var(--serif);
    font-size: 2.4rem;
    line-height: 1;
    margin: 0.2rem 0;
}
.price-box p { margin: 0.25rem 0; }
.price-box s { color: var(--muted); }

.ask details {
    border-top: 1px solid var(--line);
    padding: 0.75rem 0;
}
.ask details:last-child { border-bottom: 1px solid var(--line); }
.ask summary { cursor: pointer; font-weight: 600; }
.ask p { margin: 0.45rem 0 0.2rem; color: var(--muted); }

.foot {
    background: var(--pine);
    color: #d7e4dc;
    padding: 2rem 0 1.2rem;
}
.foot a { color: #e7f3eb; }
.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.5rem;
}
.foot h2, .foot h3 {
    font-family: var(--serif);
    color: #fff;
    font-weight: 650;
    margin: 0 0 0.45rem;
}
.foot h3 { font-size: 1.05rem; }
.foot p, .foot li { font-size: 0.92rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.foot-note {
    margin-top: 1.4rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.18);
    font-size: 0.88rem;
}
.legal-line { font-size: 0.8rem; margin: 0.8rem 0 0; color: #b7c9bf; }

.doc { padding: 1.6rem 0 3rem; }
.doc h1 {
    font-family: var(--serif);
    font-weight: 650;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0.4rem 0 0.6rem;
}
.doc h2 {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 650;
    margin: 1.6rem 0 0.4rem;
}
.doc h3 { font-size: 1.05rem; margin: 1rem 0 0.3rem; }
.doc p, .doc li { color: #24312b; }
.doc ul, .doc ol { padding-left: 1.15rem; }
.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}
.crumbs a { text-decoration: none; }
.crumbs a[aria-current="page"] { text-decoration: underline; font-weight: 600; }
.updated { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.8rem 0 1rem;
    font-size: 0.95rem;
}
.table th, .table td {
    text-align: left;
    vertical-align: top;
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid var(--line);
}
.table th { width: 34%; color: var(--muted); font-weight: 500; }
.table thead th { color: var(--ink); font-weight: 600; width: auto; }

.hero-photo { margin: 0; background: var(--pine); }
.hero-photo img {
    width: 100%;
    height: min(48vh, 440px);
    object-fit: cover;
    display: block;
}
.hero-photo figcaption,
.portrait figcaption,
.gallery figcaption,
.card .cap,
.feature figcaption {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero-photo figcaption {
    width: min(100% - 2.4rem, var(--max));
    margin: 0.45rem auto 0;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--sans);
    font-size: 0.82rem;
}

.book-cover { margin: 0; }
.book-cover img {
    width: min(100%, 340px);
    height: auto;
    object-fit: contain;
    display: block;
    background: #fff;
    border: 1px solid var(--pine);
}
.book-cover figcaption { margin-top: 0.45rem; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.doc .book-cover { margin: 1.2rem 0 0.4rem; }

.portrait { margin: 0; }
.portrait img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border: 1px solid var(--pine);
}
.portrait figcaption { margin-top: 0.45rem; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 0.82rem; }

.gallery {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.7rem;
}
.gallery figure { margin: 0; background: var(--sheet); }
.gallery img { width: 100%; height: 190px; object-fit: cover; display: block; }
.gallery figure:first-child { grid-row: 1 / span 2; }
.gallery figure:first-child img { height: 100%; min-height: 420px; }
.gallery figcaption { padding: 0.55rem 0.7rem 0.75rem; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 0.88rem; }
.gallery strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.05rem; font-weight: 650; margin-bottom: 0.15rem; }

.pantry {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    gap: 0.7rem;
    margin-top: 0.7rem;
}
.pantry figure { margin: 0; background: var(--sheet); }
.pantry img { width: 100%; height: 210px; object-fit: cover; display: block; }
.pantry figcaption {
    padding: 0.55rem 0.7rem 0.75rem;
    color: var(--muted);
    font-size: 0.88rem;
}
.pantry strong {
    display: block;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 650;
    margin-bottom: 0.15rem;
}

.trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}
.card { background: var(--sheet); border: 1px solid var(--line); }
.card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.card div { padding: 0.85rem 0.95rem 1rem; }
.card h3 { margin: 0 0 0.35rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 650; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.feature {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.4rem;
    align-items: center;
    margin-top: 1.4rem;
}
.feature h3 { margin: 0 0 0.4rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 650; }
.feature p { color: var(--muted); }
.feature img { width: 100%; height: 300px; object-fit: cover; display: block; }
.feature figcaption { margin-top: 0.4rem; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 0.82rem; }
.feature.reverse { grid-template-columns: 0.85fr 1.15fr; }
.feature.reverse figure { order: 2; }

.glossary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
}
.glossary article { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.glossary h3 { margin: 0 0 0.25rem; font-family: var(--serif); font-size: 1.15rem; font-weight: 650; }
.glossary p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.essay-photo { margin: 1rem 0 1.2rem; }
.essay-photo img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.essay-photo figcaption { margin-top: 0.4rem; color: var(--muted); font-size: 0.85rem; }

.consent {
    position: fixed;
    left: var(--spine);
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--sheet);
    border-top: 1px solid var(--pine);
    box-shadow: 0 -8px 24px rgba(22, 40, 32, 0.08);
}
.consent[hidden] { display: none !important; }
.consent-row {
    width: min(100% - 2.4rem, var(--max));
    margin: 0 auto;
    padding: 0.85rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.consent h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 650;
}
body.has-consent { padding-bottom: 8.5rem; }
.consent p { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--muted); max-width: 46rem; }
.consent-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.consent-actions .btn { min-width: 8.5rem; }

@media (max-width: 860px) {
    .opener, .split, .buy, .foot-grid, .topic, .block-head,
    .gallery, .trio, .feature, .feature.reverse, .glossary, .pantry { grid-template-columns: 1fr; }
    .gallery figure:first-child { grid-row: auto; }
    .gallery figure:first-child img, .portrait img, .feature img { height: 240px; min-height: 0; }
    .feature.reverse figure { order: 0; }
    .mast { flex-direction: column; align-items: flex-start; }
    .sheet { min-height: 0; }
    .spec div { grid-template-columns: 1fr; gap: 0.1rem; }
    body.has-consent { padding-bottom: 14rem; }
    .consent-row { flex-direction: column; align-items: stretch; }
    .consent-actions .btn { flex: 1; }
}

@media (max-width: 640px) {
    :root { --spine: 8px; }
    .frame, .mast { width: min(100% - 1.4rem, var(--max)); }
    .lede h1 { font-size: 2rem; }
    .actions, .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
