/* Components. Borders, fills and frames are spent by role: only real objects (news, films,
   the forecast, article cards) get a frame; everything else is set as type on the page. */

/* ── Chapter headings: title, gilt rule, prose intro; a true note in the margin ── */
.chapter { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: 44px; max-width: 820px; }
.chapter h2, .h2 { margin: 0; font: 600 clamp(32px, 4.2vw, 54px)/1.08 var(--display); letter-spacing: 0.01em; color: #f4f8f5; text-wrap: balance; }
.h2 { font-size: clamp(24px, 2.6vw, 32px); }
.h2-big { font-size: clamp(34px, 5vw, 62px); }
.chapter .rule { display: block; width: 140px; height: 9px; margin: 18px 0 20px; background: linear-gradient(90deg, var(--gold), rgba(232, 199, 124, 0)) 12px 50% / calc(100% - 12px) 1px no-repeat; position: relative; }
.chapter .rule::before { content: ''; position: absolute; left: 0; top: 0; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.chapter-intro { margin: 0; max-width: 60ch; font: italic 500 clamp(19px, 1.7vw, 23px)/1.45 var(--script); color: var(--ink-2); }
.chapter-note { order: -1; margin: 0 0 12px; font: italic 400 14px/1.4 var(--book); color: var(--ink-3); }
.chapter .btn-link { justify-self: start; margin-top: 22px; }
.chapter-links { display: flex; flex-wrap: wrap; gap: 6px 30px; margin-top: 22px; }
.chapter .chapter-links .btn-link { margin-top: 0; }
.chapter.center { margin-inline: auto; text-align: center; justify-items: center; }
.chapter.center .rule { margin-inline: auto; }
@media (min-width: 1100px) {
  /* On wide screens the note moves into the left margin, like a gloss beside the text. */
  .chapter { max-width: none; grid-template-columns: 190px minmax(0, 820px); column-gap: 40px; }
  .chapter > * { grid-column: 2; }
  .chapter-note { grid-column: 1; grid-row: 1; order: 0; align-self: end; margin: 0 0 0.5em; padding-top: 10px; border-top: 1px solid var(--line); text-align: right; }
  .chapter.center { grid-template-columns: minmax(0, 1fr); }
  .chapter.center > * { grid-column: 1; }
}
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.head-row .btn-link { flex: none; white-space: nowrap; }

/* ── The five roads, drawn as one road ───────────────────────────── */
.roadmap { position: relative; margin-top: 10px; }
.road-line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.road-bed { fill: none; stroke: rgba(232, 199, 124, 0.35); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.road-glow { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(232, 199, 124, 0.8)); }
.drawn .road-glow { stroke-dashoffset: 0; transition: stroke-dashoffset 2.8s var(--ease); }
.waypoints { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.waypoint a { display: grid; justify-items: center; text-align: center; gap: 6px; padding-top: 18px; text-decoration: none; }
.waypoint.low a { padding-top: 78px; }
.waypoint a::before { content: ''; height: 0; }
.wp-dot { width: 18px; height: 18px; margin-bottom: 12px; transform: rotate(45deg); background: radial-gradient(circle, #fffbe9 0 22%, var(--gold) 30% 58%, #6c5020 64%); box-shadow: 0 0 0 5px rgba(6, 18, 14, 0.9), 0 0 22px rgba(232, 199, 124, 0.7); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.drawn .wp-dot { animation: wp-light 0.8s var(--ease) both; animation-delay: calc(var(--i) * 0.45s + 0.3s); }
.waypoint.high .wp-dot { margin-top: 3px; }
.waypoint a:hover .wp-dot { transform: rotate(45deg) scale(1.25); box-shadow: 0 0 0 5px rgba(6, 18, 14, 0.9), 0 0 34px rgba(232, 199, 124, 1); }
.wp-lore { font: italic 500 17px/1.2 var(--script); color: var(--emerald); }
.wp-name { font: 600 16.5px/1.25 var(--display); color: var(--ink); text-wrap: balance; }
.wp-last { max-width: 22ch; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.wp-last b { display: block; font: 600 11px/1.6 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
@keyframes wp-light { 0% { filter: brightness(0.6); } 50% { filter: brightness(1.8); } 100% { filter: brightness(1); } }

/* ── Tidings: a lead story, then a ruled list ────────────────────── */
.news { margin: 0; padding: 0; list-style: none; }
.news .item { border-bottom: 1px solid rgba(232, 199, 124, 0.12); }
.news .item > a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 0; text-decoration: none; }
.thumb { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #0b1f18; }
.thumb::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(255, 241, 201, 0.22); pointer-events: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.6s; filter: saturate(0.92); }
.item a:hover .thumb img { transform: scale(1.07); filter: saturate(1.08) brightness(1.05); }
.item-body { display: grid; gap: 6px; }
.dateline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: italic 400 13.5px/1.35 var(--book); color: var(--ink-3); }
.src { font: 600 10.5px/1.3 var(--display); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--emerald); }
.topic { color: var(--gold); }
.blue-mark { font: 600 10.5px/1.3 var(--display); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.kind-blue .src { color: var(--blue); }
.headline { font: 500 17.5px/1.4 var(--book); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.25s; }
.item a:hover .headline { color: var(--gold-hi); }
.excerpt { font-size: 16px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 44px; height: 44px; margin: -22px 0 0 -22px; transform: rotate(45deg); background: rgba(6, 18, 14, 0.6); border: 1px solid rgba(232, 199, 124, 0.7); transition: transform 0.35s var(--ease); }
.play::after { content: ''; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -4px; transform: rotate(-45deg); border-left: 13px solid var(--gold-hi); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
a:hover .play, .yt:hover .play { transform: rotate(45deg) scale(1.12); }
/* The lead story in a full feed: wide picture, larger headline, first lines of the story. */
.news.has-lead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.news.has-lead .item.lead { grid-column: 1 / -1; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.news .item.lead > a { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding: 0 0 28px; align-items: end; }
.item.lead .thumb { aspect-ratio: 16 / 10; }
.item.lead .thumb::after { inset: 8px; }
.item.lead .headline { font: 600 clamp(24px, 2.4vw, 32px)/1.2 var(--display); -webkit-line-clamp: 4; }
.item.lead .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.news.clip .item:nth-child(n + 14) { display: none; }
.item.is-hidden { display: none !important; }
.more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.unfurl { display: inline-flex; align-items: center; gap: 12px; padding: 8px 4px; background: none; border: 0; cursor: pointer; font: 600 12.5px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.unfurl::before, .unfurl::after { content: ''; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.unfurl::after { transform: scaleX(-1); }
.unfurl:hover { color: var(--gold-hi); }
.empty { margin: 0; padding: 24px 0; font: italic 400 17px/1.6 var(--book); color: var(--ink-3); border-block: 1px solid var(--line); }

/* ── Filter tabs with counts ─────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tab { position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 0 12px; background: none; border: 0; cursor: pointer; font: 600 12px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); transition: color 0.25s; }
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-pressed='true'] { color: var(--gold-hi); }
.tab[aria-pressed='true']::after { transform: none; }
.tab-count { font: italic 400 13px/1 var(--book); letter-spacing: 0; text-transform: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ── Films ───────────────────────────────────────────────────────── */
.videos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.video-list { display: grid; gap: 18px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; background: #020806; cursor: pointer; }
.yt::after { content: ''; position: absolute; inset: 8px; z-index: 2; border: 1px solid rgba(232, 199, 124, 0.3); pointer-events: none; transition: border-color 0.4s; }
.yt:hover::after { border-color: rgba(232, 199, 124, 0.7); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 1.1s var(--ease), opacity 0.4s; }
.yt:hover img { transform: scale(1.04); opacity: 1; }
.yt::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.85)); }
.yt .play { z-index: 3; }
.yt-big .play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.yt-title { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 3; font: 500 15px/1.35 var(--book); color: #fff; text-align: left; }
.yt-big .yt-title { font: 600 19px/1.3 var(--display); }
.yt.playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.playing::before, .yt.playing::after { display: none; }

/* ── Bards of the road: the creators' newest Forever films ───────── */
.bards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 20px; margin: 0; padding: 0; list-style: none; }
.bard { display: grid; gap: 12px; align-content: start; }
.bard .yt-title { left: 18px; right: 18px; bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bard-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; font: italic 400 13.5px/1.35 var(--book); color: var(--ink-3); }
.bard-by a { margin-left: auto; color: var(--ink-3); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.2); text-underline-offset: 3px; transition: color 0.25s; }
.bard-by a:hover { color: var(--gold); }

/* ── Tale and truth: a glossed manuscript ─────────────────────────── */
.tale { max-width: 1100px; }
.tale-head, .tale-row { display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.tale-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 600 11px/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.tale-head span:last-child { color: var(--emerald); }
.tale-row { padding: 26px 0; border-bottom: 1px solid rgba(232, 199, 124, 0.14); }
.tale-row h3 { margin: 0; font: 600 21px/1.25 var(--display); color: var(--gold-hi); }
.tale-lore { margin: 0; font: italic 500 20px/1.5 var(--script); color: var(--ink); }
.tale-truth { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-2); }

/* ── Lands still waiting ─────────────────────────────────────────── */
.horizon-list { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; margin: 0; padding: 0; list-style: none; }
.horizon-list li { display: flex; align-items: center; font: 600 clamp(20px, 2.4vw, 30px)/1.2 var(--display); color: var(--ink-2); }
.horizon-list li + li::before { content: ''; width: 8px; height: 8px; margin: 0 24px; transform: rotate(45deg); border: 1px solid var(--gold); }
.horizon-list a { color: var(--emerald); text-decoration: none; text-shadow: 0 0 24px rgba(70, 227, 164, 0.4); }
.horizon-list a:hover { color: #9ff5cf; }
.sources-line { margin: -30px auto 0; padding-bottom: 20px; font: italic 400 14px/1.6 var(--book); color: var(--ink-3); }
.sources-line a { color: var(--ink-2); }

/* ── Chapters (articles) ─────────────────────────────────────────── */
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.article-card { position: relative; display: flex; align-items: flex-end; min-height: 380px; padding: 16px; text-decoration: none; isolation: isolate; overflow: hidden; }
.article-card.big { min-height: 480px; }
.ac-art { position: absolute; inset: 0; z-index: -2; }
.ac-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.article-card:hover .ac-art img { transform: scale(1.06); }
.article-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 12, 9, 0.93) 0%, rgba(4, 12, 9, 0.55) 60%, rgba(4, 12, 9, 0.2) 100%); }
.article-card::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(232, 199, 124, 0.35); pointer-events: none; transition: border-color 0.5s, inset 0.5s var(--ease); }
.article-card:hover::after { border-color: rgba(232, 199, 124, 0.75); inset: 9px; }
.ac-body { display: grid; gap: 12px; max-width: 640px; padding: clamp(16px, 3vw, 40px); }
.ac-title { font: 600 clamp(28px, 3.4vw, 46px)/1.08 var(--display); color: var(--gold-hi); text-wrap: balance; }
.ac-dek { font: italic 500 clamp(19px, 1.7vw, 22px)/1.45 var(--script); color: var(--ink-2); }
.ac-meta { font: italic 400 14px/1.4 var(--book); color: var(--ink-3); }

/* ── Tracker ─────────────────────────────────────────────────────── */
.forecast { margin: 0 0 18px; padding: clamp(22px, 3vw, 36px); background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 0 0 5px rgba(6, 20, 15, 0.9), inset 0 0 0 6px rgba(232, 199, 124, 0.18); }
.forecast figcaption { display: grid; gap: 6px; margin-bottom: 22px; }
.forecast-title { font: 600 clamp(21px, 2.2vw, 28px)/1.2 var(--display); color: var(--gold-hi); }
.forecast-sub { font: italic 500 18px/1.4 var(--script); color: var(--ink-3); }
.fc-row { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 20px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.fc-who a { font: 600 15px/1.3 var(--book); color: var(--ink); text-decoration: none; }
.fc-who a:hover { color: var(--gold-hi); }
.fc-who small { display: block; margin-top: 3px; font: italic 400 13px/1.4 var(--book); color: var(--ink-3); }
.fc-track { position: relative; height: 40px; }
.fc-track::before { content: ''; position: absolute; left: 0; right: 0; top: 60%; height: 1px; background: rgba(255, 255, 255, 0.09); }
.fc-today { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: linear-gradient(180deg, var(--emerald), rgba(70, 227, 164, 0.1)); box-shadow: 0 0 12px rgba(70, 227, 164, 0.6); }
.fc-bar { position: absolute; top: calc(60% - 2px); left: var(--a); width: var(--w); height: 4px; background: linear-gradient(90deg, rgba(70, 227, 164, 0.35), var(--emerald)); box-shadow: 0 0 14px rgba(70, 227, 164, 0.45); }
.fc-bar.open { background: linear-gradient(90deg, var(--gold), rgba(232, 199, 124, 0.04)); box-shadow: none; }
.fc-bar.faint { background: linear-gradient(90deg, rgba(232, 199, 124, 0.08), rgba(232, 199, 124, 0.3) 25%, rgba(232, 199, 124, 0.04)); box-shadow: none; }
.fc-dot { position: absolute; top: 60%; left: var(--x); width: 12px; height: 12px; margin: -6px 0 0 -6px; transform: rotate(45deg); background: radial-gradient(circle, #fff8e2 0 25%, var(--gold) 32%); box-shadow: 0 0 18px rgba(232, 199, 124, 0.9); }
.fc-tag { position: absolute; top: 0; left: var(--x); transform: translateX(-50%); font: 600 12.5px/1 var(--display); letter-spacing: 0.06em; color: var(--gold-hi); white-space: nowrap; }
.fc-axis { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 20px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.fc-ticks { position: relative; height: 16px; font: 600 11px/1 var(--display); letter-spacing: 0.1em; color: var(--ink-3); }
.fc-ticks span { position: absolute; left: var(--x); transform: translateX(-50%); white-space: nowrap; }
.fc-ticks span:first-child { transform: none; color: var(--emerald); }
.honest { margin: 0 0 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink-2); }
.honest summary { cursor: pointer; font: 600 12.5px/1.4 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.honest p { max-width: 72ch; margin: 14px 0 4px; }

/* Each road is a chapter: its name sits in the margin, the reckoning in the text column. */
.road-chapter { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.road-margin { position: sticky; top: 110px; align-self: start; display: grid; gap: 8px; }
.road-lore { font: italic 500 19px/1.2 var(--script); color: var(--emerald); }
.road-margin h3 { margin: 0; font: 600 clamp(23px, 2.3vw, 30px)/1.15 var(--display); color: var(--gold-hi); text-wrap: balance; }
.road-q { margin: 6px 0 0; font: italic 400 17px/1.5 var(--book); color: var(--ink-2); }
.road-text { min-width: 0; }
.stands { max-width: 70ch; margin: 0 0 28px; font-size: 18.5px; line-height: 1.75; color: var(--ink-2); }
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 22px; margin: 0; padding: 4px 2px 14px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.node { position: relative; padding-top: 30px; scroll-snap-align: start; }
.node::before { content: ''; position: absolute; top: 6px; left: 8px; right: -22px; height: 1px; background: linear-gradient(90deg, rgba(232, 199, 124, 0.7), rgba(232, 199, 124, 0.2)); }
.node:last-child::before { right: 30%; background: linear-gradient(90deg, rgba(70, 227, 164, 0.8), transparent); }
.node::after { content: ''; position: absolute; top: 1px; left: 3px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 12px rgba(232, 199, 124, 0.8); }
.node:last-child::after { background: var(--emerald); box-shadow: 0 0 14px rgba(70, 227, 164, 0.9); }
.yr { display: block; font: 600 11.5px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.node strong { display: block; margin: 9px 0 6px; font: 600 16px/1.35 var(--book); color: var(--ink); }
.node p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.node .num { display: inline-block; margin: 0 10px 8px 0; font: italic 500 14px/1.3 var(--book); color: var(--emerald); }
.node a { font: italic 400 13.5px/1.3 var(--book); color: var(--ink-3); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.2); text-underline-offset: 3px; }
.node a:hover { color: var(--gold); }
.road-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; margin: 26px 0 0; padding-top: 20px; border-top: 1px dotted rgba(232, 199, 124, 0.35); }
.road-foot dt { margin-bottom: 6px; font: 600 11px/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.road-foot dd { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.ladder { display: grid; gap: 12px; margin: 0 0 30px; padding: 22px 0; border-block: 1px solid rgba(232, 199, 124, 0.14); }
.rung { display: grid; grid-template-columns: minmax(150px, 230px) 1fr 110px; gap: 16px; align-items: center; font-size: 14.5px; }
.rung .label { color: var(--ink-2); line-height: 1.3; }
.rung .label small { display: block; font: italic 400 12.5px/1.4 var(--book); color: var(--ink-3); }
.rung .bar { height: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.rung .bar i { display: block; width: var(--w); height: 100%; background: linear-gradient(90deg, var(--emerald-2), var(--emerald), #c9f7e3); box-shadow: 0 0 16px rgba(70, 227, 164, 0.6); }
.rung.target .bar i { background: repeating-linear-gradient(90deg, rgba(232, 199, 124, 0.75) 0 9px, transparent 9px 15px); box-shadow: none; }
.rung .val { font: 600 14px/1.2 var(--display); color: var(--gold-hi); text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.ladder-note { margin: 4px 0 0; font: italic 400 13.5px/1.4 var(--book); color: var(--ink-3); }

/* ── The Unwaking ────────────────────────────────────────────────── */
.unwaking { text-align: center; }
.unwaking .band-art img { filter: saturate(0.85) hue-rotate(-12deg); }
.unwaking::before { background: radial-gradient(70% 60% at 50% 50%, rgba(24, 8, 36, 0.5), rgba(6, 18, 14, 0.86)); }
.unwaking-kicker { margin: 0; font: 600 12px/1 var(--display); letter-spacing: 0.26em; text-transform: uppercase; color: var(--violet); }
.unwaking h2 { margin: 18px auto 16px; max-width: 860px; color: #ece4ff; text-shadow: 0 0 40px rgba(185, 162, 255, 0.35); }
.unwaking-text { max-width: 620px; margin: 0 auto 26px; font-size: 19px; line-height: 1.7; color: var(--ink-2); }

/* ── Article page ────────────────────────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--emerald), var(--gold)); box-shadow: 0 0 12px rgba(70, 227, 164, 0.7); }
.article-hero { position: relative; display: grid; align-items: end; min-height: 70svh; padding: 150px 0 60px; overflow: hidden; isolation: isolate; }
.article-hero h1 { max-width: 18ch; margin: 14px 0 18px; font: 700 clamp(40px, 6vw, 86px)/1.02 var(--display); text-wrap: balance; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6)); }
.dek { max-width: 700px; margin: 0 0 16px; font: italic 500 clamp(21px, 2.2vw, 27px)/1.4 var(--script); color: var(--ink-2); }
.byline { margin: 0; font: italic 400 15px/1.4 var(--book); color: var(--ink-3); }
.article-grid { display: grid; grid-template-columns: 230px minmax(0, 68ch); justify-content: center; gap: 64px; padding-block: 64px 40px; }
.article-grid:not(:has(.toc)) { grid-template-columns: minmax(0, 68ch); }
.toc { position: sticky; top: 110px; align-self: start; }
.toc b { display: block; margin-bottom: 14px; font: 600 11px/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 1px solid var(--line); font: 400 15px/1.4 var(--book); color: var(--ink-3); text-decoration: none; transition: color 0.25s, border-color 0.25s; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--gold); }
.sources { max-width: calc(68ch + var(--gutter) * 2); padding-block: 10px 30px; }
.sources h2 { margin: 0 0 12px; font: 600 22px/1.2 var(--display); color: var(--gold-hi); }
.sources ol { padding-left: 1.3em; font-size: 15px; color: var(--ink-3); }
.sources li { margin: 6px 0; }
.sources a { color: var(--ink-2); }

/* ── Small screens ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .article-grid { grid-template-columns: minmax(0, 68ch); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .videos, .news.has-lead { grid-template-columns: minmax(0, 1fr); }
  .bards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road-line { display: none; }
  .waypoints { grid-template-columns: minmax(0, 1fr); gap: 0; border-left: 1px dashed rgba(232, 199, 124, 0.45); margin-left: 9px; }
  .waypoint a, .waypoint.low a { justify-items: start; text-align: left; padding: 0 0 26px 26px; position: relative; }
  .wp-dot { position: absolute; left: -9px; top: 2px; margin: 0; }
  .wp-last { max-width: none; }
  .road-chapter { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .road-margin { position: static; }
  .road-foot { grid-template-columns: minmax(0, 1fr); }
  .tale-head { display: none; }
  .tale-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .news .item.lead > a { grid-template-columns: minmax(0, 1fr); }
  .rung { grid-template-columns: 1fr 90px; }
  .rung .bar { grid-column: 1 / -1; grid-row: 2; }
  .fc-row, .fc-axis { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fc-axis > span:first-child { display: none; }
}
@media (max-width: 560px) {
  .news .item > a { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .articles, .bards { grid-template-columns: minmax(0, 1fr); }
  .horizon-list li + li::before { margin: 0 14px; }
}

/* ── Your hearthstone: sign-in, the hero picker and the hero card ─── */
.nav-me.is-in { display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0.06em; text-transform: none; font-size: 14px; }
.nav-me img { width: 26px; height: 26px; border: 1px solid rgba(232, 199, 124, 0.6); box-shadow: 0 0 12px rgba(232, 199, 124, 0.25); }
.hearth { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.hearth-main { display: grid; gap: 30px; min-width: 0; }
.hearth-intro { margin: 14px 0 0; max-width: 56ch; font: italic 500 20px/1.45 var(--script); color: var(--ink-2); }
/* The sign-in plaque is a real object, so it earns the double gilt frame. */
.hearth-side { position: sticky; top: 110px; display: grid; gap: 16px; justify-items: start; padding: clamp(22px, 3vw, 34px); background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 0 0 5px rgba(6, 20, 15, 0.9), inset 0 0 0 6px rgba(232, 199, 124, 0.18); }
.hearth-side p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.hearth-side a { color: var(--emerald); }
.hearth-side h3 { width: 100%; margin: 10px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font: 600 11.5px/1.4 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.field { display: grid; gap: 9px; max-width: 460px; }
.field > span, .pick legend { padding: 0; font: 600 11.5px/1.3 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.field em { font: italic 400 13.5px/1 var(--book); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.field input, .say textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(232, 199, 124, 0.28); border-radius: 0; background: rgba(3, 12, 9, 0.72); color: var(--ink); font: 400 18px/1.45 var(--book); transition: border-color 0.25s, box-shadow 0.25s; }
.field input:focus, .say textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 199, 124, 0.14), 0 0 26px rgba(232, 199, 124, 0.12); }
.field input::placeholder, .say textarea::placeholder { color: var(--ink-3); font-style: italic; }
.pick { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pick legend { margin-bottom: 14px; }
.pick-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; align-items: center; }
.pick-label { font: italic 500 18px/1.2 var(--script); color: var(--ink-2); }
.pick-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.tile { position: relative; display: grid; justify-items: center; gap: 7px; cursor: pointer; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile img { width: 56px; height: 56px; border: 1px solid rgba(232, 199, 124, 0.28); filter: saturate(0.65) brightness(0.78); transition: filter 0.3s, transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.tile:hover img { filter: none; transform: translateY(-2px); }
.tile:has(input:checked) img { filter: none; transform: translateY(-3px); border-color: var(--gold-hi); box-shadow: 0 0 0 2px rgba(232, 199, 124, 0.55), 0 0 24px rgba(232, 199, 124, 0.5); }
.tile:has(input:focus-visible) img { outline: 2px solid var(--gold); outline-offset: 4px; }
.calling span { font: 600 9.5px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); transition: color 0.3s; }
.calling:has(input:checked) span { color: var(--gold-hi); }
.preview { display: grid; gap: 14px; padding: 20px 0; border-block: 1px solid var(--line); }
.preview-label { font: italic 400 14px/1.4 var(--book); color: var(--ink-3); }
.hero-card { display: flex; align-items: center; gap: 20px; }
.face-frame { position: relative; flex: none; width: 48px; height: 48px; }
.face-frame .face-img { width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(232, 199, 124, 0.55); box-shadow: 0 0 0 3px rgba(6, 18, 14, 0.92), 0 0 0 4px rgba(232, 199, 124, 0.22); }
.face-frame .crest { position: absolute; right: -8px; bottom: -8px; width: 22px; height: 22px; border: 1px solid var(--gold); border-radius: 50%; box-shadow: 0 0 0 2px rgba(6, 18, 14, 0.95); }
.face-frame.big { width: 72px; height: 72px; }
.face-frame.big .crest { right: -10px; bottom: -10px; width: 30px; height: 30px; }
.hc-text { display: grid; gap: 4px; min-width: 0; }
.hc-name { font: 600 23px/1.15 var(--display); color: var(--gold-hi); overflow-wrap: anywhere; }
.hc-line { font: italic 400 15.5px/1.35 var(--book); color: var(--ink-3); }
.hero-card.small { gap: 16px; }
.hero-card.small .hc-name { font-size: 17px; }
.hero-card.glint .face-frame { animation: glint 0.8s var(--ease); }
.check { display: flex; align-items: center; gap: 12px; font-size: 16.5px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--emerald); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-msg { margin: 0; min-height: 1.4em; font: italic 400 15.5px/1.4 var(--book); color: var(--emerald); }
.form-msg:empty { min-height: 0; }
.form-msg.bad { color: #ffb4a0; }
.btn:disabled, .btn-link:disabled { opacity: 0.55; cursor: progress; }
button.btn-link { border: 0; cursor: pointer; }
.btn-link.danger { color: #ffb4a0; background-image: linear-gradient(#ffb4a0, #ffb4a0); }
.keys { width: 100%; margin: 0; padding: 0; list-style: none; }
.keys li { padding: 10px 0; border-bottom: 1px dotted rgba(232, 199, 124, 0.3); font-size: 16px; color: var(--ink); }
.keys small { display: block; font: italic 400 13.5px/1.4 var(--book); color: var(--ink-3); }
.warden-note { color: var(--emerald) !important; font-style: italic; }
@keyframes glint { 0% { filter: none; } 35% { filter: brightness(1.55) drop-shadow(0 0 16px rgba(232, 199, 124, 0.85)); } 100% { filter: none; } }

/* ── The fireside beneath each chapter ───────────────────────────── */
.fireside { max-width: calc(68ch + var(--gutter) * 2); margin-bottom: 64px; }
.fireside > h2 { margin: 0 0 8px; font: 600 clamp(26px, 2.6vw, 34px)/1.2 var(--display); color: var(--gold-hi); }
.fire-rule { margin: 0 0 24px; font: italic 500 19px/1.45 var(--script); color: var(--ink-3); }
.fire-join { margin: 0; padding: 20px 0; border-block: 1px solid var(--line); font: italic 400 18px/1.6 var(--book); color: var(--ink-2); }
.say { display: grid; gap: 16px; padding: 22px 0 26px; border-block: 1px solid var(--line); }
.say textarea { min-height: 124px; resize: vertical; font-size: 17.5px; line-height: 1.6; }
.say-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.say-foot .btn { padding: 13px 30px; }
.say-count { margin-left: auto; font: italic 400 13.5px/1 var(--book); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fireside > .form-msg { margin-top: 12px; }
.voices { margin: 0; padding: 0; list-style: none; }
.voice { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(232, 199, 124, 0.12); }
.voice.fresh { animation: voice-in 0.9s var(--ease) both; }
.voice-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 8px; }
.voice-name { font: 600 17px/1.2 var(--display); color: var(--gold-hi); }
.voice-hero, .voice-head time { font: italic 400 14px/1.3 var(--book); color: var(--ink-3); }
.warden-mark { font: 600 10px/1.3 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--emerald); }
.voice-text p { margin: 0 0 0.7em; font-size: 17.5px; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.voice-text p:last-child { margin-bottom: 0; }
.voice-acts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 10px 0 0; }
.voice-acts button { padding: 0; background: none; border: 0; cursor: pointer; font: italic 400 13.5px/1.4 var(--book); color: var(--ink-3); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.18); text-underline-offset: 3px; transition: color 0.25s; }
.voice-acts button:hover { color: var(--gold); }
.voice-reports { font: italic 400 13.5px/1.4 var(--book); color: #ffb4a0; }
.voice.is-out { opacity: 0.5; }
.voice.is-out .voice-name::after { content: ' · put out'; font: italic 400 13px/1 var(--book); color: #ffb4a0; }
.fire-empty { margin: 0; padding: 22px 0; font: italic 400 17px/1.6 var(--book); color: var(--ink-3); }
@keyframes voice-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 900px) {
  .hearth { grid-template-columns: minmax(0, 1fr); }
  .hearth-side { position: static; }
  .pick-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 560px) {
  /* A phone fits each faction's eight faces on one row, and the nine callings in two. */
  .pick-row .pick-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
  .pick-row .tile img { width: 100%; height: auto; aspect-ratio: 1; }
  .callings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 6px; }
  .callings .tile img { width: 48px; height: 48px; }
  .voice { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .voice .face-frame { width: 40px; height: 40px; }
}
