@font-face {
    font-family: PT;
    src: url(pt-serif-regular.woff) format("woff");
    font-display: swap;
}

@font-face {
    font-family: PT;
    src: url(pt-serif-italic.woff) format("woff");
    font-style: italic;
    font-display: swap;
}

:root {
    color-scheme: light;
    --navy: #142838;
    --paper: #faf6ed;
    --ink: #1d2730;
    --rule: #ad9983;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #dfdcd1;
    font: 18px/1.65 PT,Georgia,serif;
}

header,footer {
    background: var(--navy);
    color: #fff;
}

a {
    color: inherit;
    text-underline-offset: .18em;
}

a:hover {
    color: #a9211b;
}

header a:hover,footer a:hover {
    color: #ffd4a6;
}

a:focus-visible {
    outline: 3px solid #e94629;
    outline-offset: 4px;
}

.bar,footer {
    padding: 16px max(6vw,20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bar img {
    display: block;
    width: 154px;
    height: auto;
}

.bar nav,footer {
    display: flex;
    gap: clamp(14px,3vw,46px);
    font: 600 14px/1.45 Arial,sans-serif;
}

.bar a,footer a {
    text-decoration: none;
}

main {
    padding: clamp(18px,4vw,64px) 3vw;
}

.paper {
    max-width: 1140px;
    margin: auto;
    background: var(--paper);
    padding: clamp(19px,5vw,76px);
    box-shadow: 0 18px 48px #28374229,inset 0 0 42px #d6c7af26;
}

.edition {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    border-top: 4px double var(--ink);
    border-bottom: 1px solid var(--ink);
    padding: 8px 0;
    margin-bottom: clamp(28px,6vw,60px);
}

.edition a {
    font-weight: bold;
    text-decoration: none;
}

.edition span,.section,.back,.more {
    font: 600 12px/1.5 Arial,sans-serif;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.section {
    color: #87372c;
}

h1,h2,h3 {
    font-weight: 400;
    line-height: 1.12;
    margin: 0;
    text-wrap: balance;
}

h1 {
    font-size: clamp(38px,5.6vw,76px);
    max-width: 17em;
    margin: .18em 0 .34em;
}

.lead {
    font-size: clamp(20px,2.4vw,29px);
    font-style: italic;
    line-height: 1.4;
    max-width: 35em;
    margin: 0 0 1.4em;
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(0,.85fr);
    gap: clamp(26px,5vw,70px);
    border-top: 1px solid var(--rule);
    padding-top: 28px;
    align-items: start;
}

.story-layout p {
    margin: 0 0 1.25em;
}

.story-layout h2 {
    font-size: clamp(25px,3vw,38px);
    margin: .95em 0 .38em;
}

.story-layout figure {
    margin: 0;
    background: white;
    padding: 6px;
    box-shadow: 2px 6px 18px #32261b24;
    transform: rotate(1deg);
}

img {
    display: block;
    max-width: 100%;
}

.story-layout img {
    width: 100%;
    max-height: 470px;
    object-fit: cover;
}

.back {
    display: inline-block;
    margin-top: 26px;
}

.stories {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
    border-top: 3px double var(--ink);
    padding-top: 24px;
}

.stories article img {
    width: 100%;
    aspect-ratio: 1.35;
    object-fit: cover;
}

.stories h3 {
    font-size: clamp(26px,3vw,38px);
    margin: .3em 0;
}

.stories article img.illustration, .story-layout img.illustration {
    object-fit: contain;
    background: var(--paper);
}

.story-layout figcaption {
    padding: .3em .45em;
    line-height: 1.3;
}

.stories p {
    line-height: 1.5;
}

.stories a {
    text-decoration-thickness: 1px;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -120px;
    color: #111;
    background: white;
    padding: 9px;
    z-index: 1;
}

.skip:focus {
    top: 1rem;
}

@media(max-width:720px) {
    .story-layout,.stories {
        grid-template-columns: 1fr;
    }
    .story-layout figure {
        grid-row: 1;
        max-width: 460px;
    }
    .story-layout img {
        max-height: 260px;
    }
    .edition span {
        font-size: 10px;
    }
    .bar img {
        width: 125px;
    }
    .bar nav {
        gap: 14px;
    }
    .paper {
        padding: 22px 18px;
    }
    .stories article+article {
        border-top: 1px solid var(--rule);
        padding-top: 22px;
    }
    .stories article img {
        aspect-ratio: 1.75;
    }
    .bar,footer {
        padding: 15px;
    }
    .bar nav,footer {
        font-size: 13px;
    }
}

.sections-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.sections-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--rule);
    color: var(--navy);
    text-decoration: none;
    font: 600 15px/1.3 Arial,sans-serif;
}

.sections-nav a:hover {
    color: white;
    background: var(--navy);
}

.shelf + .shelf,.related {
    margin-top: 2.5rem;
}

.shelf > h2,.related h2 {
    margin: 0 0 .45em;
    font-size: clamp(30px,3.5vw,46px);
}

.related {
    border-top: 3px double var(--ink);
    padding-top: 1.2rem;
}

.related ul {
    margin: 0;
    padding-left: 1.25em;
}

.related a {
    display: inline-block;
    padding-block: .3em;
}
