:root {
    color-scheme: light;
    --ink: #1d2730;
    --paper: #faf8f4;
    --line: #d8d0c5;
    --accent: #8e422b;
    --muted: #505b64;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.07rem/1.65 Georgia, serif; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #a34d32; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -6rem; background: white; padding: .5rem; }
.skip:focus { top: 1rem; z-index: 1; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.reading { width: min(100% - 2.5rem, 46rem); }
.masthead, footer { background: white; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.35rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 1.1rem system-ui, sans-serif; letter-spacing: .08em; text-decoration: none; }
.brand img { width: auto; max-width: 10rem; max-height: 3rem; }
nav, .editor-links, .actions { display: flex; gap: .65rem 1.35rem; align-items: center; flex-wrap: wrap; font: .9rem/1.45 system-ui, sans-serif; }
.hero { background: linear-gradient(110deg, #ece2d6, #faf8f4 80%); border-bottom: 1px solid var(--line); padding: clamp(4.5rem, 10vw, 8rem) 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.09; margin: 0 0 1rem; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.55rem, 7vw, 5.4rem); letter-spacing: -.035em; max-width: 17ch; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1rem; overflow-wrap: anywhere; }
.lead { font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--muted); margin-bottom: 1.6rem; }
.section { padding-block: clamp(2.75rem, 7vw, 5.25rem); }
main { min-height: 55vh; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.card { background: white; border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 1.65rem; }
.card p:last-child { margin-bottom: 0; }
.kicker { color: var(--accent); font: 700 .8rem/1.4 system-ui, sans-serif; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .8rem; }
.story-body { border-top: 1px solid var(--line); padding-top: 1.4rem; }
footer { border-top: 1px solid var(--line); font: .85rem/1.55 system-ui, sans-serif; }
footer p { margin: 0; }
.editor-bar { background: #242d36; color: white; padding-block: .6rem; }
.editor-bar a:hover { color: #f2d6c6; }
.editor-bar span { font-weight: 700; }
button, .button { display: inline-block; width: fit-content; border: 1px solid var(--ink); border-radius: 0; padding: .65rem 1rem; background: var(--ink); color: white; font: 600 .9rem/1.45 system-ui, sans-serif; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: var(--accent); border-color: var(--accent); color: white; }
.secondary { background: transparent; color: var(--ink); }
.link { background: transparent; border: 0; padding: 0; color: inherit; font-weight: 400; text-decoration: underline; text-underline-offset: .2em; }
.link:hover { background: transparent; color: #f2d6c6; }
.stack { display: grid; gap: 1rem; font: .95rem/1.5 system-ui, sans-serif; }
label { display: grid; gap: .35rem; font-weight: 650; }
input, select, textarea { width: 100%; padding: .55rem .65rem; border: 1px solid #867c70; background: white; color: var(--ink); border-radius: 0; font: 1rem/1.55 system-ui, sans-serif; }
textarea { resize: vertical; }
.checkbox { display: flex; align-items: center; }
.checkbox input { width: auto; }
small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.editor-grid { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr); gap: 2rem; }
.story-list { list-style: none; padding: 0; }
.story-list li { border-bottom: 1px solid var(--line); padding-block: .6rem; }
.story-list small { display: block; }
[aria-current="page"] { font-weight: bold; }
.status, .error { padding: .7rem 1rem; border-left: 3px solid var(--accent); background: #f4e9df; font: .95rem/1.5 system-ui, sans-serif; }
.error { color: #7e2525; }
@media (max-width: 650px) {
    .editor-grid { grid-template-columns: 1fr; gap: 1rem; }
    .masthead-inner, .footer-inner { align-items: flex-start; }
}

.brand { gap: 1rem; }
.brand span { border-left: 1px solid var(--line); padding-left: 1rem; }
@media (max-width: 380px) { .brand img { max-width: 8rem; } }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-grid h1 { font-size: clamp(2.7rem, 5.5vw, 4.7rem); }
figure { margin: 0; }
.hero-image { width: 100%; max-width: 25rem; justify-self: end; }
.hero-image img { width: 100%; height: auto; display: block; }
figcaption { padding-top: .65rem; color: var(--muted); font: .85rem/1.5 system-ui, sans-serif; }
.catalogue-nav { border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; margin-bottom: 2.5rem; }
.product-feature { display: grid; grid-template-columns: minmax(12rem, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.product-feature h1 { font-size: clamp(2.7rem, 5.5vw, 4.3rem); }
.book-cover { display: block; width: min(100%, 21rem); justify-self: start; }
.book-cover img { width: 100%; height: auto; display: block; box-shadow: .5rem 1rem 2rem #1d273025; }
.byline { color: var(--accent); font-size: 1.25rem; margin-bottom: 1.5rem; }
.book-details { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; font: .95rem/1.5 system-ui, sans-serif; margin-block: 1.5rem; }
.book-details dt { font-weight: 650; }
.book-details dd { margin: 0; }
.downloads { border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 2.25rem; scroll-margin-top: 1rem; }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--line); padding: 1.5rem; background: white; }
.download-row h3 { font-size: 1.5rem; }
.download-row p { margin: 0; color: var(--muted); }
.availability { font: .95rem/1.5 system-ui, sans-serif; color: var(--muted); }
.about-image { margin-block: 1.5rem 2rem; }
.about-image img { display: block; width: 100%; height: auto; }
.story-cover { width: min(100%, 17rem); margin-block: 1.5rem 2rem; }
.story-cover img { width: 100%; height: auto; display: block; }
.journal-cover { display: block; width: min(100%, 11rem); margin-bottom: 1.25rem; }
.journal-cover img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
    .hero-grid, .product-feature { grid-template-columns: 1fr; }
    .hero-image { justify-self: center; max-width: 20rem; }
    .product-feature .book-cover { max-width: 17rem; }
}
