/* Magazine style from design/magazine.html, standalone (no hub needed).
   Two editions: Standard = paper, After Dark = night print. Switching changes only the variables below. */
:root {
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --bg:#f3efe6; --ink:#1a1815; --mute:#6b655a; --line:#d8d1c2; --accent:#a8321f; --accent-ink:#fff; --card:#ebe5d6;
  color-scheme: light;
}
:root[data-edition="adult"] { --accent:#e0245e; }
:root[data-theme="dark"], :root[data-edition="adult"]:not([data-theme="light"]) {
  --bg:#0f0e10; --ink:#ece6dc; --mute:#9a9388; --line:#2c2a2e; --card:#19171b; color-scheme: dark;
}
:root[data-edition="normal"][data-theme="dark"] { --accent:#e07a5f; }

* { box-sizing:border-box; }
html, body { margin:0; }
body { overflow-x:hidden; background:var(--bg); color:var(--ink); font:400 16px/1.55 var(--serif); transition:background .3s, color .3s; }
a { color:var(--ink); }
h1, h2, h3, p, figure { margin:0; }
.wrap { max-width:1600px; margin:0 auto; padding:0 24px 80px; }
.sc { font:600 11px var(--sans); letter-spacing:.2em; text-transform:uppercase; color:var(--mute); }

/* top bar + edition toggle */
.topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 24px; background:color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.edition { display:flex; border:1px solid var(--ink); border-radius:999px; overflow:hidden; font:600 12px var(--sans); letter-spacing:.1em; text-transform:uppercase; }
.edition button { all:unset; cursor:pointer; padding:8px 16px; color:var(--ink); }
.edition button b { color:var(--accent); margin-left:4px; }
.edition button[aria-pressed="true"] { background:var(--ink); color:var(--bg); }
.edition button[aria-pressed="true"] b { color:inherit; }
.edition button:focus-visible, .iconbtn:focus-visible, .plate:focus-visible, .vbtn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.iconbtn { all:unset; cursor:pointer; font-size:18px; width:34px; height:34px; display:grid; place-items:center; border-radius:50%; }
.iconbtn:hover { background:var(--card); }

/* masthead: compact newspaper strip */
.mast { border-top:4px solid var(--ink); border-bottom:1px solid var(--ink); padding:10px 0 12px; margin-top:18px; display:grid; grid-template-columns:1fr auto 1fr; align-items:end; gap:20px; }
.mast .wm { font:700 clamp(30px, 5vw, 60px)/.95 var(--serif); letter-spacing:.05em; text-transform:uppercase; text-align:center; }
.mast .r { text-align:right; }

/* profile: Cara-style avatar + bio + links */
.profile { display:flex; gap:26px; align-items:center; padding:30px 0 26px; max-width:860px; margin:0 auto; }
.avatar { flex:none; width:104px; height:104px; border-radius:50%; position:relative; overflow:hidden; background:linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000)); display:grid; place-items:center; }
.avatar span { font:700 34px var(--serif); color:#fff; } .avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; }
.who p { font:italic 19px/1.45 var(--serif); margin:6px 0 14px; }
.links { display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; font:600 12px var(--sans); letter-spacing:.14em; text-transform:uppercase; }
.links a { text-decoration:none; } .links a:hover { color:var(--accent); }
.links .pill { background:var(--accent); color:var(--accent-ink); padding:8px 16px; border-radius:999px; } .links .pill:hover { color:var(--accent-ink); filter:brightness(1.1); }
.rule { border-bottom:4px double var(--ink); padding-bottom:8px; margin-bottom:6px; }

/* mosaic: edge to edge, tight gaps, rows justified. --rowh is the height a row aims for; it grows with the screen */
.mosaic { --rowh:clamp(250px, 20vw, 335px); display:flex; flex-wrap:wrap; gap:4px; }
.mosaic .fill { flex-grow:10000; }
.tile { all:unset; box-sizing:border-box; position:relative; cursor:zoom-in; overflow:hidden; background:var(--card); }
.tile img, .tile .ph { width:100%; height:100%; display:block; object-fit:cover; transition:transform .5s; }
.tile:hover img, .tile:hover .ph { transform:scale(1.04); }
.tile:focus-visible { outline:3px solid var(--accent); outline-offset:-3px; }
.tile .cap { position:absolute; inset:auto 0 0 0; padding:44px 14px 12px; color:#fff; background:linear-gradient(transparent, rgba(0,0,0,.75)); display:flex; flex-direction:column; opacity:0; transition:opacity .25s; pointer-events:none; }
.tile:hover .cap, .tile:focus-visible .cap { opacity:1; }
@media (hover:none) { .tile .cap { opacity:1; padding-top:30px; } }
.tile .cap b { font:700 10px var(--sans); letter-spacing:.2em; text-transform:uppercase; color:#ffd45a; }
.tile .cap i { font:italic 700 20px/1.15 var(--serif); } .tile .cap em { font:12px var(--sans); opacity:.8; font-style:normal; }
.tile.lead .cap { opacity:1; padding:80px 22px 18px; } .tile.lead .cap i { font-size:clamp(28px, 4vw, 52px); letter-spacing:-.02em; }

.tile.wide .cap { opacity:1; padding:40px 18px 10px; } .tile.wide .cap i { font-size:clamp(16px, 2vw, 24px); }


/* placeholder (until your picture exists) */
.ph { display:grid; place-items:center; font:italic 700 clamp(28px, 6vw, 56px) var(--serif); color:rgba(255,255,255,.85); }

.foot { margin-top:60px; padding-top:14px; border-top:4px double var(--ink); display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }

/* dialogs */
dialog { border:1px solid var(--ink); background:var(--bg); color:var(--ink); padding:0; }
dialog::backdrop { background:rgba(0,0,0,.75); }
#gate { max-width:440px; width:calc(100% - 32px); }
#gate form { padding:28px; }
#gate h2 { font:700 34px var(--serif); margin:6px 0 10px; }
#gate p { color:var(--mute); }
.gbtns { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.gbtns button { font:600 12px var(--sans); letter-spacing:.1em; text-transform:uppercase; padding:11px 16px; border:1px solid var(--ink); background:none; color:var(--ink); cursor:pointer; }
.gbtns .primary { background:var(--ink); color:var(--bg); }
#viewer { max-width:none; width:100vw; height:100vh; max-height:none; background:#0a0a0b; color:#eee; border:0; }
#viewer figure { height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:56px 70px 20px; gap:14px; }
#vcap { max-width:760px; text-align:center; font:italic 16px/1.4 var(--serif); color:#bbb; }
#vcap b { display:block; font:700 20px var(--serif); font-style:normal; color:#fff; }
#vcap a { color:#ffd45a; font:600 11px var(--sans); letter-spacing:.14em; text-transform:uppercase; }
.vbtn { all:unset; cursor:pointer; position:absolute; z-index:3; width:44px; height:44px; display:grid; place-items:center; font-size:26px; color:#fff; border-radius:50%; background:rgba(255,255,255,.08); }
.vbtn:hover { background:rgba(255,255,255,.2); }
#vclose { top:14px; right:14px; } #vprev { left:12px; top:50%; } #vnext { right:12px; top:50%; }

@media (max-width: 900px) {
  .mast { grid-template-columns:1fr; text-align:center; } .mast .sc, .mast .r { text-align:center; }
  #viewer figure { padding:56px 12px 16px; }
}
@media (max-width: 540px) { #vol { display:none; } .topbar { justify-content:center; } .edition button { padding:8px 12px; } .wrap { padding:0 12px 60px; } .profile { flex-direction:column; text-align:center; } .links { justify-content:center; } .tile.lead { flex-basis:100% !important; } }
@media (prefers-reduced-motion: reduce) { * { transition:none !important; } }

/* ===== v3 additions ===== */
.wm a { color:inherit; text-decoration:none; }
.rule { display:flex; justify-content:space-between; align-items:center; }
.linkbtn { all:unset; cursor:pointer; font:600 11px var(--sans); letter-spacing:.16em; text-transform:uppercase; border-bottom:2px solid var(--accent); padding-bottom:2px; }
.linkbtn:focus-visible, .vb:focus-visible, .dots button:focus-visible, .cmp:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.links .pill.off { background:none; color:var(--mute); border:1px solid var(--line); }

/* hero strip: ultrawide cover pieces, full browser width; two crossfade */
.hero { position:relative; width:100vw; margin:0 0 0 calc(50% - 50vw); aspect-ratio:var(--r); max-height:78vh; overflow:hidden; border-bottom:4px double var(--ink); background:var(--card); }
.hero .tile { position:absolute; inset:0; width:100%; height:100%; opacity:0; pointer-events:none; transition:opacity 1.1s ease; }
.hero .tile.on { opacity:1; pointer-events:auto; z-index:1; }
.hero .tile img, .hero .tile .ph { position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto !important; object-fit:cover; }
.hero .tile .cap { opacity:1; padding:80px max(24px, calc(50vw - 776px)) 22px; }
.hero .tile .cap i { font-size:clamp(26px, 4vw, 56px); letter-spacing:-.02em; }
.hero .dots { position:absolute; z-index:3; bottom:16px; right:max(24px, calc(50vw - 776px)); display:flex; gap:2px; }
.dots button { all:unset; cursor:pointer; width:24px; height:24px; display:grid; place-items:center; }
.dots button::after { content:""; width:9px; height:9px; border-radius:50%; border:2px solid #fff; opacity:.7; }
.dots button[aria-current="true"]::after { background:#fff; opacity:1; }
@media (max-width:700px) { .hero { aspect-ratio:16/8; } }
@media (prefers-reduced-motion: reduce) { .hero .tile { transition:none; } }

/* sketch-vs-final slider */
.cmp { position:relative; width:100%; max-width:900px; margin:0 auto; aspect-ratio:var(--r); overflow:hidden; cursor:ew-resize; touch-action:pan-y; user-select:none; background:#000; }
.cmp .a, .cmp .b { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; pointer-events:none; }
.cmp .b { clip-path:inset(0 0 0 var(--p)); }
.cmp .ph { aspect-ratio:auto !important; }
.ph.grey { filter:grayscale(1) contrast(1.1); }
.cmp .bar { position:absolute; top:0; bottom:0; left:var(--p); width:3px; margin-left:-1.5px; background:#fff; box-shadow:0 0 8px rgba(0,0,0,.6); pointer-events:none; }
.cmp .bar::after { content:"\2194"; position:absolute; top:50%; left:50%; width:38px; height:38px; margin:-19px 0 0 -19px; border-radius:50%; background:#fff; color:#111; display:grid; place-items:center; font-size:20px; box-shadow:0 2px 10px rgba(0,0,0,.5); }
.cmp .lab { position:absolute; bottom:10px; padding:4px 9px; font:700 10px var(--sans); letter-spacing:.18em; text-transform:uppercase; background:rgba(0,0,0,.6); color:#fff; pointer-events:none; }
.cmp .lab.l { left:10px; } .cmp .lab.r { right:10px; }
.cmp.inv { width:min(100%, calc((100vh - 240px) * var(--r))); max-width:none; flex:none; }

/* viewer */
#stage { position:relative; flex:1; min-height:0; width:100%; display:flex; align-items:center; justify-content:center; }
#stage > img { max-width:100%; max-height:100%; object-fit:contain; cursor:zoom-in; }
#stage > .ph { width:min(70vw, 520px); cursor:zoom-in; }
.zoomwrap { position:relative; flex:1 1 auto; align-self:stretch; overflow:hidden; cursor:grab; touch-action:none; }
.zoomwrap:active { cursor:grabbing; }
.zoomwrap .zimg { position:absolute; left:50%; top:50%; max-width:100%; max-height:100%; transform:translate(-50%,-50%); user-select:none; -webkit-user-drag:none; will-change:transform; }
.zoomwrap .zimg.ph { width:min(60%, 520px); max-height:none; }
#stage .hint { position:absolute; bottom:6px; left:50%; transform:translateX(-50%); font:11px var(--sans); letter-spacing:.06em; color:#bbb; background:rgba(0,0,0,.55); padding:4px 10px; border-radius:99px; pointer-events:none; white-space:nowrap; }
#vbar { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.vb { all:unset; cursor:pointer; padding:7px 14px; border:1px solid #555; border-radius:99px; font:600 11px var(--sans); letter-spacing:.12em; text-transform:uppercase; color:#ddd; }
.vb:hover { border-color:#fff; color:#fff; }
.vb[aria-pressed="true"] { background:#fff; color:#111; border-color:#fff; }
#vcap .print { display:block; font:600 10px var(--sans); letter-spacing:.14em; text-transform:uppercase; color:#999; margin:3px 0 6px; font-style:normal; }

/* commission corner: a classified ad */
.classified { max-width:560px; margin:64px auto 0; padding:20px 24px 24px; border:1px solid var(--ink); outline:1px solid var(--ink); outline-offset:4px; }
.chead { display:flex; justify-content:space-between; align-items:flex-end; border-bottom:3px solid var(--ink); padding-bottom:8px; margin-bottom:6px; }
.chead h3 { font:italic 700 30px/1.1 var(--serif); }
.status { font:700 11px var(--sans); letter-spacing:.14em; text-transform:uppercase; }
.status.open { color:#2e8b57; } .status.closed { color:var(--accent); }
.crow { display:flex; align-items:baseline; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); font:19px var(--serif); }
.crow .dots { flex:1; border-bottom:2px dotted var(--line); transform:translateY(-4px); }
.crow b { font:600 14px var(--sans); }
.cnote { font:italic 15px/1.45 var(--serif); color:var(--mute); margin:14px 0; }
.cbtn { display:inline-block; background:var(--ink); color:var(--bg); padding:10px 18px; font:600 12px var(--sans); letter-spacing:.14em; text-transform:uppercase; text-decoration:none; }
.cbtn:hover { background:var(--accent); color:var(--accent-ink); }

/* story page */
.story { max-width:1000px; margin:0 auto; padding-top:26px; }
.story .back { text-decoration:none; }
.story h2 { font:700 clamp(36px, 6vw, 72px)/1 var(--serif); letter-spacing:-.02em; margin:10px 0 12px; }
.story .stand { font:italic 22px/1.4 var(--serif); color:var(--mute); margin-bottom:16px; }
.story .by { font:600 11px var(--sans); letter-spacing:.16em; text-transform:uppercase; padding:10px 0; border-top:1px solid var(--ink); border-bottom:1px solid var(--line); margin-bottom:22px; }
.fig { margin:0 0 28px; } .figbtn { all:unset; display:block; width:100%; cursor:zoom-in; background:var(--card); }
.fig img { width:100%; max-height:84vh; object-fit:contain; display:block; margin:0 auto; } .fig .ph { max-width:560px; margin:0 auto; }
.fig figcaption { margin-top:8px; font:600 10px var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--mute); }
.cols2 { columns:2; column-gap:34px; column-rule:1px solid var(--line); font:17px/1.65 var(--serif); }
.cols2.one { columns:1; max-width:640px; }
.cols2 p { margin:0 0 14px; } .cols2.dc p:first-child::first-letter { float:left; font:700 4.6em/.78 var(--serif); padding:6px 10px 0 0; color:var(--accent); }
.pull { margin:30px 0; padding:4px 0 4px 26px; border-left:4px solid var(--accent); font:italic clamp(24px, 2.8vw, 38px)/1.22 var(--serif); }
.readnext { display:grid; grid-template-columns:repeat(2, 1fr); gap:22px; }
.readnext a { text-decoration:none; border-top:3px solid var(--ink); padding-top:12px; } .readnext b { display:block; font:700 24px/1.1 var(--serif); margin:4px 0 6px; } .readnext span:last-child { color:var(--mute); font:14px var(--sans); }
@media (max-width:700px) { .cols2 { columns:1; } .readnext { grid-template-columns:1fr; } #vcap { font-size:14px; } }
.tile .cap em { font-style:normal; }
#viewer { overflow:hidden; } #viewer figure { overflow:hidden; } #vcap { flex:none; }
.tleft { display:flex; align-items:center; gap:18px; } .navlink { text-decoration:none; color:var(--ink); border-bottom:2px solid transparent; padding-bottom:2px; } .navlink:hover { border-bottom-color:var(--accent); }
.edition button { white-space:nowrap; } @media (max-width:540px) { .edition button { padding:8px 10px; font-size:11px; letter-spacing:.06em; } }
@media (max-width:540px) { .topbar { gap:6px; padding:10px 10px; } .tleft { gap:10px; } .navlink { font-size:10px; letter-spacing:.1em; } .edition button { padding:8px 8px; font-size:10px; letter-spacing:.04em; } .iconbtn { width:28px; } }

/* wide, half and third tiles in the automatic mosaic */
.mosaic .br { flex:0 0 100%; height:0; margin-top:-4px; }
@media (max-width:700px) { .mosaic .tile.sz-half, .mosaic .tile.sz-third { flex-basis:100% !important; } }
/* the artist's own layout (board.js): 12 columns; a row is half as tall as a column is wide */
.board { container-type:inline-size; }
.bgrid { display:grid; grid-template-columns:repeat(12, minmax(0, 1fr)); grid-auto-rows:calc(((100cqw - 66px) / 12 - 6px) / 2); gap:6px; }
.bgrid > * { grid-column:var(--x) / span var(--w); grid-row:var(--y) / span var(--h); min-width:0; min-height:0; }
.bgrid .bt img, .bgrid .bt .ph { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:var(--fx) var(--fy); aspect-ratio:auto !important; transform-origin:var(--fx) var(--fy); transform:scale(var(--cz)); }
.bgrid .bt:hover img, .bgrid .bt:hover .ph { transform:scale(calc(var(--cz) * 1.04)); }
.btext { overflow:hidden; align-self:stretch; display:flex; flex-direction:column; justify-content:flex-end; padding:6px 2px; white-space:pre-line; overflow-wrap:anywhere; }
.btext.head { font:700 clamp(22px, 3.4vw, 46px)/1.05 var(--serif); letter-spacing:-.02em; border-bottom:1px solid var(--ink); }
.btext.text { font:15px/1.6 var(--sans); justify-content:flex-start; }
.pgrid { display:none; }
@media (max-width:700px) {
  .bgrid { display:none; }
  .pgrid { display:flex; flex-direction:column; gap:6px; }
  .prow { display:flex; gap:6px; align-items:flex-start; }
  .prow .tile { position:relative; flex:var(--r) 1 0; min-width:0; aspect-ratio:var(--r); }
  .prow.one .tile { flex:none; width:min(100%, calc(76vh * var(--r))); margin:0 auto; }
  .prow .btext { flex:1; min-width:0; }
  .pgrid .tile img, .pgrid .tile .ph { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; aspect-ratio:auto !important; }
}
}

/* mini sections (doodles, experiments): further chapters of the same gallery, each opening under a heading as grand as the masthead */
.minilinks { display:flex; flex-wrap:wrap; gap:8px 20px; margin:12px 0 14px; }
.mini { margin-top:clamp(64px, 9vw, 128px); scroll-margin-top:68px; }
.chap { margin-bottom:18px; }
.chap > .sc { display:flex; justify-content:space-between; gap:12px; }
.chap h2 { margin:14px 0 0; font:800 clamp(46px, 9vw, 136px)/.9 var(--serif); letter-spacing:-.05em; text-transform:uppercase; overflow-wrap:anywhere; }
.chap p { margin:12px 0 0; max-width:640px; font:italic 19px/1.45 var(--serif); }
:root[data-look="marker"] .chap h2 { font-style:italic; font-weight:700; text-transform:none; letter-spacing:-.03em; }
:root[data-look="classic"] .chap { text-align:center; } :root[data-look="classic"] .chap h2 { font-weight:700; letter-spacing:.04em; } :root[data-look="classic"] .chap p { margin-inline:auto; }
.mosaic.minirow { --rowh:clamp(250px, 20vw, 335px); }
/* in the Grid style the chapters wear that style's type and spacing */
:root[data-gstyle="grid"] .chap h2 { font:650 clamp(34px, 5vw, 64px)/1.05 var(--sans); letter-spacing:-.025em; text-transform:none; }
:root[data-gstyle="grid"] .chap p { font:15px/1.55 var(--sans); }
:root[data-gstyle="grid"] .mosaic.minirow { gap:14px; } :root[data-gstyle="grid"] .minirow .tile { border-radius:7px; }
@media (max-width:700px) { .mosaic.minirow { --rowh:190px; } }

/* a mini section as a sliding strip (full width of the window) */
.mstrip { position:relative; width:100vw; margin-left:calc(50% - 50vw); }
.mstrip .bgw { position:absolute; left:2vw; top:50%; transform:translateY(-60%); max-width:96vw; overflow:hidden; font:700 clamp(90px, 20vw, 340px)/1 var(--serif); letter-spacing:-.04em; text-transform:uppercase; white-space:nowrap; color:transparent; -webkit-text-stroke:1.5px var(--line); pointer-events:none; }
.mtrack { position:relative; display:flex; align-items:flex-start; gap:clamp(14px, 3vw, 48px); overflow-x:auto; overflow-y:hidden; padding:14px 6vw 10px; scrollbar-width:none; cursor:grab; }
.mtrack::-webkit-scrollbar { display:none; } .mtrack.drag { cursor:grabbing; } .mstrip.still .mtrack { cursor:auto; justify-content:safe center; }
.mtrack .it { --h:min(66vh, 680px); flex:none; display:flex; flex-direction:column; gap:10px; width:min(86vw, calc(var(--h) * var(--r))); color:inherit; text-decoration:none; user-select:none; }
.mtrack .fr { position:relative; display:block; width:100%; aspect-ratio:var(--r); overflow:hidden; background:var(--card); }
.mtrack .fr > img, .mtrack .fr > .ph { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s; -webkit-user-drag:none; }
.mtrack .it:hover .fr > img { transform:scale(1.04); }
.itcap { display:flex; justify-content:space-between; gap:12px; font:italic 14px var(--serif); color:var(--mute); } .itcap b { font:700 11px var(--sans); letter-spacing:.14em; font-style:normal; color:var(--ink); }
.mnav { display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:6px max(18px, 2vw) 0; font:600 11px var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--mute); }
.mnav em { margin-right:6px; font-style:normal; } .mct { min-width:64px; text-align:center; }
.mnav button { width:38px; height:38px; border-radius:99px; border:1px solid var(--ink); background:var(--bg); color:var(--ink); font:600 20px/1 var(--sans); cursor:pointer; } .mnav button:hover { background:var(--ink); color:var(--bg); } .mnav button:disabled { opacity:.3; pointer-events:none; }
.mstrip.still .mnav { display:none; }
:root[data-gstyle="grid"] .mtrack .fr { border-radius:7px; } :root[data-gstyle="grid"] .mstrip .bgw { font-family:var(--sans); }
@media (hover:none), (max-width:700px) { .mnav em { display:none; } .mtrack .it { --h:56vh; } }

/* mini sections as opening columns or opening rows. Every slice opens to the same size, so the one under the mouse stays under it */
.opening { display:flex; gap:6px; }
.opening + .opening.columns { margin-top:6px; }
.opening .slice { position:relative; overflow:hidden; min-width:0; background:var(--card); cursor:zoom-in; color:#fff; text-decoration:none; transition:flex-grow .6s cubic-bezier(.2,.8,.2,1), height .55s cubic-bezier(.2,.8,.2,1); }
.opening .slice > img, .opening .slice > .ph { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.opening .slice:focus-visible { outline:3px solid var(--accent); outline-offset:-3px; }
.opening .slcap { position:absolute; inset:auto 0 0 0; display:flex; align-items:baseline; gap:12px; padding:46px 18px 14px; background:linear-gradient(transparent, rgba(0,0,0,.65)); white-space:nowrap; opacity:0; transition:opacity .25s; pointer-events:none; }
.opening .slcap b { font:600 16px var(--sans); overflow:hidden; text-overflow:ellipsis; } .opening .slcap em { font:12px var(--sans); opacity:.8; }
.opening .slice.on .slcap { opacity:1; transition-delay:.2s; }
.opening.columns { height:min(68vh, 640px); } .opening.columns .slice { flex:1 1 0; } .opening.columns .slice.on { flex-grow:5; }
.opening.slats .slice > img { object-position:50% 30%; }   /* upright pictures: faces tend to sit in the upper part */
.opening.slats { flex-direction:column; } .opening.slats .slice { flex:none; height:clamp(64px, 9vh, 96px); } .opening.slats .slice.on { height:clamp(240px, 38vw, 560px); max-height:76vh; }
:root[data-gstyle="grid"] .opening .slice { border-radius:7px; }
@media (max-width:700px) {
  .opening.columns { flex-direction:column; height:auto; } .opening.columns .slice { flex:none; height:76px; } .opening.columns .slice.on { height:380px; }
  .opening.slats .slice { height:64px; } .opening.slats .slice.on { height:280px; }
}

/* sub-sections (a series inside a chapter) */
.sub { margin-top:clamp(40px, 5vw, 72px); scroll-margin-top:68px; }
.subhd { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 18px; margin-bottom:14px; }
.subhd h3 { font:800 clamp(26px, 3.6vw, 52px)/1 var(--serif); letter-spacing:-.035em; text-transform:uppercase; overflow-wrap:anywhere; }
.subhd p { flex-basis:100%; max-width:640px; font:italic 17px/1.45 var(--serif); }
:root[data-look="marker"] .subhd h3 { font-style:italic; font-weight:700; text-transform:none; }
:root[data-look="classic"] .subhd { justify-content:center; text-align:center; } :root[data-look="classic"] .subhd h3 { font-weight:700; letter-spacing:.03em; } :root[data-look="classic"] .subhd p { margin-inline:auto; }
:root[data-gstyle="grid"] .subhd h3 { font:650 clamp(22px, 2.6vw, 34px)/1.1 var(--sans); letter-spacing:-.015em; text-transform:none; }
:root[data-gstyle="grid"] .subhd p { font:14px/1.5 var(--sans); }

/* the top bar on small and middle-sized screens: the edition switch never gets squeezed (its second button was cut off), so the long "Vol. 01" line gives way first */
.edition { flex:none; } .tleft { min-width:0; } #vol { white-space:nowrap; }
@media (max-width:820px) { #vol { display:none; } }
