/* Editorial layouts for the homepage, archive and story reader. */
.mag { padding:clamp(18px,3vw,44px) 0 64px; }
body:has(.home-page) .breadcrumb-wrap { display:none; }
.mag h1 { font-size:clamp(36px,4.8vw,72px); line-height:1.12; font-weight:800; }
.mag .category { font-size:.8rem; font-weight:750; color:var(--accent); margin:0 0 8px; }
.standfirst { color:#49423b; line-height:1.78; font-size:clamp(16px,1.4vw,19px); }
.mag .art { overflow:hidden; min-width:0; }
.mag .art img { display:block; width:100%; height:100%; object-fit:cover; }
.mag .art.book { display:grid; place-items:center; padding:14px; background:#ece6dc; }
.mag .art.book img { width:auto; max-width:100%; height:auto; max-height:100%; object-fit:contain; box-shadow:1px 4px 9px #25190d24; }
.lead, .story-head { display:grid; grid-template-columns:1fr 1.12fr; align-items:stretch; background:#efe9dc; }
.lead .scene { position:relative; align-self:stretch; min-width:0; min-height:0; }
.lead .scene img { position:absolute; inset:0; object-position:54% center; }
.lead-copy, .story-copy { align-self:center; padding:clamp(22px,4vw,62px); min-width:0; }
.lead h1 { font-size:clamp(55px,7.5vw,106px); line-height:1; }
.lead h1 span { display:block; font-size:clamp(24px,2.8vw,42px); line-height:1.3; margin-top:12px; }
.lead .standfirst, .story-head .standfirst { margin:18px 0 0; }
.story-head .scene { min-height:260px; aspect-ratio:1.5; width:100%; align-self:center; }
.actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:24px; }
.mag .quiet, .section-heading a, .card-source a, .reader-nav a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:4px; font-weight:650; }
.mag-section, .home-reading { margin-top:clamp(38px,6vw,82px); }
.section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:15px; border-top:2px solid var(--ink); padding:15px 0 20px; }
.section-heading h2, .home-reading h2 { font-size:clamp(26px,3.2vw,40px); }
.section-heading a { flex:none; font-size:.88rem; }
.section-intro { max-width:76ch; margin:0 0 22px; color:var(--muted); }
.tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.tile { display:block; min-width:0; color:var(--ink); }
.tile h2, .tile h3 { font-weight:750; font-size:clamp(20px,2vw,27px); line-height:1.36; }
.tile:hover h2, .tile:hover h3 { color:var(--accent); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
.tile-copy { min-width:0; padding-top:14px; }
.tile .scene { aspect-ratio:1.65; }
.tease { line-height:1.65; color:#514b44; font-size:.94rem; margin:9px 0; }
.tile-date, .story-date { color:var(--muted); font-size:.8rem; font-variant-numeric:tabular-nums; }
.work-grid { row-gap:22px; }
.work { display:grid; grid-template-columns:minmax(84px,32%) 1fr; gap:15px; border-top:1px solid var(--line); padding-top:13px; }
.work .book { height:148px; }
.work h3 { font-size:1.05rem; line-height:1.45; }
.work .tile-copy { padding:0; }
.work .category { margin:0 0 5px; }
.work .tease { font-size:.88rem; }
.card-source { font-size:.78rem; color:var(--muted); margin-top:8px; }
.comparison-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; }
.comparison-pair h3 { font-size:1.15rem; margin:0 0 6px; }
.comparison-pair p { max-width:50ch; line-height:1.75; }
.comparison-detail { margin-top:20px; border-block:1px solid var(--line); }
.comparison-detail summary { cursor:pointer; padding:14px 0; color:var(--accent); font-weight:700; }
.comparison-detail[open] > .prose { padding-block:12px 20px; }
.home-page .sourced-work { display:flex; flex-direction:column; }
.home-page .card-source { margin-top:auto; padding-top:8px; }
.home-reading .prose { max-width:740px; margin:0 auto; }
.endlinks { max-width:740px; margin:28px auto 0; }
.mast { padding:4px 0 clamp(24px,3vw,42px); border-bottom:2px solid var(--ink); }
.mast .standfirst { margin-top:12px; }
.feature-spread { display:grid; grid-template-columns:1.25fr 1fr; gap:26px; margin-top:22px; }
.spotlight { background:#efe9dc; }
.spotlight .scene { aspect-ratio:1.95; }
.spotlight .tile-copy { padding:20px 24px; }
.spotlight h2 { font-size:clamp(26px,3vw,38px); }
.side-tiles { display:grid; align-content:start; gap:18px; }
.side { display:grid; grid-template-columns:43% 1fr; align-items:start; gap:16px; border-bottom:1px solid var(--line); padding-bottom:20px; }
.side .scene { aspect-ratio:1.2; }
.side .tile-copy { padding:0; }
.side h2 { font-size:clamp(19px,1.9vw,25px); }
/* Real book covers keep their full proportions, including the landscape edition. */
.story-head { grid-template-columns:1.08fr 1fr; border-top:2px solid var(--ink); }
.story-head:has(.book) { grid-template-columns:1.4fr .75fr; }
.story-head h1 { font-size:clamp(30px,3.6vw,52px); line-height:1.27; }
.story-head .book { min-height:260px; height:100%; background:#e4ddd1; padding:20px; }
.story-head .art.book img { max-height:246px; max-width:min(100%,360px); }
.story-head .category { margin-bottom:10px; }
.story-date { margin-top:15px; }
.tags { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:16px; color:var(--accent); font-size:.82rem; }
.reader { display:grid; grid-template-columns:minmax(155px,220px) minmax(0,var(--reading-width)); gap:clamp(30px,6vw,96px); align-items:start; margin:clamp(32px,5vw,68px) auto 0; }
.reader-nav { position:sticky; top:24px; border-top:2px solid var(--ink); padding:12px 0; font-size:.87rem; }
.reader-nav p { font-weight:700; }
.reader-nav ol { list-style:none; margin-top:8px; }
.reader-nav a { display:block; padding:7px 0; color:var(--muted); line-height:1.5; }
.prose { min-width:0; font-size:clamp(16px,1.4vw,18px); line-height:1.88; color:#302c27; overflow-wrap:anywhere; }
.prose p, .prose .content-text { font-size:inherit; line-height:inherit; color:inherit; margin:0 0 1em; }
.prose h2, .prose .section-title { font-size:clamp(24px,2.5vw,32px); line-height:1.38; margin:1.65em 0 .6em; scroll-margin-top:28px; }
.prose > h2:first-child, .prose > section:first-child > h2:first-child, .home-reading .prose > h2:first-child { margin-top:0; }
.prose h3, .prose .two-col-title { font-size:1.2em; margin:1.4em 0 .5em; }
.prose a { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.prose ul, .prose ol { margin:.6em 0 1.25em; padding-left:1.45em; }
.prose ul { list-style:disc; }
.prose li { padding-left:.15em; margin-bottom:.3em; }
.prose blockquote, .prose aside, .prose details { background:#f1ece2; padding:16px 20px; margin:1.25em 0; }
.prose blockquote { border-left:3px solid var(--accent); }
.prose aside h2 { margin-top:0; }
.prose summary { cursor:pointer; font-weight:650; }
.prose .table-wrap { max-width:100%; overflow-x:auto; margin:16px 0 22px; }
.prose table { border-collapse:collapse; min-width:34rem; width:100%; line-height:1.55; font-size:.9em; }
.prose caption { text-align:left; font-weight:650; padding:0 0 8px; }
.prose td, .prose th { text-align:left; vertical-align:top; border-bottom:1px solid var(--line); padding:10px 12px; }
.prose thead th { background:#e9e2d6; }
.prose .reading-note-card { border-top:1px solid var(--line); padding:12px 0; }
.prose .review-section { margin-bottom:40px; }
.prose .reading-note-label { display:inline-block; margin-bottom:8px; font-size:.75rem; font-weight:700; color:var(--accent); }
.prose .reading-note-text, .prose .editor-review-text { margin:0; }
.prose .editor-review-card { background:#eee7dc; color:var(--ink); border:0; border-left:3px solid var(--accent); border-radius:0; padding:18px 22px; }
.prose .editor-review-badge { margin-bottom:12px; color:var(--accent); font-size:.8rem; font-weight:700; }
.prose .editor-review-title { color:var(--ink); margin-bottom:12px; font-weight:700; }
.prose .faq-item { padding:10px 0; }
.prose .faq-item h3 { margin:.45em 0; }
@media (max-width:900px) {
    .work-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .feature-spread { grid-template-columns:1.05fr 1fr; gap:16px; }
    .side { grid-template-columns:36% 1fr; gap:12px; }
    .reader { grid-template-columns:160px minmax(0,1fr); gap:30px; }
}
@media (max-width:700px) {
    .mag { padding-top:12px; }
    .lead, .story-head, .story-head:has(.book), .feature-spread, .reader { grid-template-columns:minmax(0,1fr); }
    .story-head .scene { min-height:0; aspect-ratio:1.83; }
    .lead .scene { width:100%; aspect-ratio:2; }
    .lead-copy, .story-copy { padding:24px 20px; }
    .story-head .book { min-height:0; height:170px; padding:9px; }
    .story-head .art.book img { max-height:152px; max-width:270px; }
    .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
    .feature-spread { gap:18px; }
    .side { grid-template-columns:36% 1fr; }
    .reader { margin-top:24px; gap:28px; }
    .reader-nav { position:static; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
    .reader-nav ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 14px; }
}
@media (min-width:511px) and (max-width:700px) {
    .home-page .feature-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
    .home-page .feature-grid .tile h3 { font-size:1.08rem; }
}
@media (max-width:510px) {
    .comparison-pair { grid-template-columns:1fr; gap:14px; }
    .tiles { grid-template-columns:minmax(0,1fr); }
    .feature-grid .tile { display:grid; grid-template-columns:36% 1fr; gap:14px; padding-bottom:15px; border-bottom:1px solid var(--line); }
    .feature-grid .tile-copy { padding:0; }
    .feature-grid .scene { aspect-ratio:1.14; }
    .work .book { height:139px; }
    .side .tease, .feature-grid .tease { font-size:.87rem; }
    .section-heading { gap:8px; }
}
