/* Cover + contents page */
.cover { padding-top: var(--bar-h); background: var(--surface, var(--ink)); }
.cover-photo { position: relative; height: clamp(320px, 62svh, 760px); overflow: hidden; background: var(--ink); }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.cover-fallback { height: 100%; display: grid; place-items: center; color: var(--paper); }
.cover-fallback .svgi { width: 22vw; }
.halftone { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(0, 0, 0, .28) 1px, transparent 1.7px); background-size: 5px 5px; mix-blend-mode: multiply; }
.cover-title { background: var(--paper); border-block: var(--line) solid var(--ink); display: grid; place-items: center; padding: clamp(36px, 6vw, 72px) var(--gutter); text-align: center; }
.cover-title .t-title { font-size: clamp(44px, 7vw, 104px); }
.cover-foot { position: relative; display: grid; place-items: center; padding: clamp(36px, 5vw, 64px) var(--gutter); color: var(--paper); }
.cover-pill { background: var(--paper); color: var(--ink); border-radius: 12px; padding: 12px 34px 10px; font-size: clamp(16px, 1.6vw, 20px); display: inline-block; }
.cover-year { position: absolute; right: var(--gutter); bottom: 22px; font-size: 13px; opacity: .7; }

.contents { position: relative; padding: clamp(80px, 12vw, 160px) var(--gutter); overflow: hidden; display: grid; place-items: center; }
.contents-bg { position: absolute; inset: 0; z-index: -1; background: #7fa3c8; }
.contents-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.contents-card { width: min(980px, 100%); background: var(--paper); border: var(--line) solid var(--ink); border-radius: clamp(24px, 4vw, 48px); padding: clamp(28px, 5vw, 70px) clamp(20px, 6vw, 90px); }
.contents-card .t-title { text-align: center; font-size: clamp(40px, 5vw, 72px); margin-bottom: clamp(20px, 3vw, 36px); }
.toc { display: grid; gap: 2px; }
.toc-row { position: relative; display: grid; grid-template-columns: auto auto 1fr auto; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 10px; font-family: var(--font-mono); font-weight: 500; font-size: clamp(15px, 1.6vw, 20px); isolation: isolate; overflow: hidden; }
.toc-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--row-bg); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease-out); }
a.toc-row:hover, a.toc-row:focus-visible { color: var(--row-ink); }
a.toc-row:hover::before, a.toc-row:focus-visible::before { transform: scaleX(1); }
.toc-num { font-size: .72em; opacity: .5; }
.toc-dots { height: 2px; margin-bottom: .32em; align-self: end; background-image: radial-gradient(circle, currentColor 1px, transparent 1.4px); background-size: 7px 2px; background-repeat: repeat-x; transform-origin: left; }
.toc-page { font-variant-numeric: tabular-nums; }
.toc-soon { font-family: var(--font-accent); text-transform: uppercase; font-size: .7em; padding: 3px 8px 1px; border: 2px solid currentColor; border-radius: 999px; }
.toc-row.is-off { opacity: .45; }
.next--cover { margin-top: 0; }

/* brand.json "cover": a gradient hero with the theme, instead of a photo */
.cover-hero { height: auto; min-height: clamp(460px, 78svh, 900px); display: grid; align-items: end; color: #fff; }
.ch-in { position: relative; z-index: 3; padding-top: clamp(60px, 10vw, 140px); padding-bottom: clamp(70px, 9vw, 120px); display: grid; gap: clamp(10px, 1.4vw, 18px); justify-items: start; }
.ch-eyebrow { font-family: var(--font-body); font-weight: 700; font-size: clamp(15px, 1.3vw, 19px); }
.ch-title { font-family: var(--font-heading); font-size: clamp(48px, 9.5vw, 150px); line-height: .98; max-width: 12ch; }
.ch-title .ow { display: inline-block; overflow: hidden; padding: .04em 0; vertical-align: top; }
.ch-title .oc { display: inline-block; }
.ch-text { font-size: clamp(16px, 1.5vw, 21px); max-width: 34ch; line-height: 1.3; }
.ch-meta { font-family: var(--font-body); font-weight: 700; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.25; margin-top: 8px; }
.ch-strip { position: absolute; left: 0; right: 0; bottom: clamp(20px, 3vw, 36px); height: clamp(14px, 1.6vw, 22px); z-index: 3; background-repeat: repeat-x; background-size: auto 100%; animation: chs 60s linear infinite; }
@keyframes chs { to { background-position: -2000px 0; } }
html.no-motion .ch-strip { animation: none; }

/* brand.json cover.layout "poster" (TEDx UoB example post): label + date top left, the line pattern full width,
   label + theme + tagline, and a gradient band at the bottom holding the logo */
.ch-poster { display: flex; flex-direction: column; align-items: stretch; min-height: clamp(640px, calc(100svh - var(--bar-h)), 1120px); }
.ch-poster .ch-top { padding-top: clamp(36px, 6vw, 100px); display: grid; gap: clamp(6px, .8vw, 12px); justify-items: start; }
.ch-label { font-family: var(--font-body); font-weight: 400; color: var(--red, #EB0028); font-size: clamp(14px, 1.3vw, 20px); letter-spacing: -0.03em; }
.ch-date { font-family: var(--font-body); font-weight: 500; font-size: clamp(18px, 2vw, 30px); line-height: 1.02; letter-spacing: -0.05em; color: #fff; }
.ch-strip.ch-strip--poster { position: relative; bottom: auto; height: clamp(54px, 8.4vw, 120px); margin-block: clamp(28px, 4.5vw, 70px); }
.ch-poster .ch-in { flex: 1; align-content: center; padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(40px, 5vw, 80px); }
.ch-poster .ch-eyebrow { color: var(--red, #EB0028); }
.ch-poster .ch-title { font-size: clamp(54px, 9.6vw, 172px); line-height: .94; }
.ch-poster .ch-text { max-width: 34ch; font-size: clamp(16px, 1.65vw, 26px); line-height: 1.12; }
.ch-band { min-height: clamp(150px, 22vh, 300px); display: flex; align-items: center; color: #fff; }
.ch-band-in { width: 100%; }
.ch-band-logo { display: block; width: clamp(190px, 25vw, 380px); height: auto; color: #fff; fill: #fff; }
