/* ==========================================================================
   view.cat — Un dia a Catalunya
   The page is a single day: the sky (--sky-a/--sky-b) and ink (--ink)
   are animated per chapter by js/sky.js through registered custom props.
   ========================================================================== */

@property --sky-a { syntax: '<color>'; inherits: true; initial-value: #2b2d5c; }
@property --sky-b { syntax: '<color>'; inherits: true; initial-value: #f4a28c; }
@property --ink   { syntax: '<color>'; inherits: true; initial-value: #fff8ef; }
@property --accent{ syntax: '<color>'; inherits: true; initial-value: #e4572e; }
@property --night { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --sky-a: #2b2d5c; --sky-b: #f4a28c; --ink: #fff8ef; --accent: #e4572e; --night: 0;
  --sea: #1f5f8b; --terra: #c4532d; --ochre: #e8a33d; --olive: #6b7f3a; --tile: #2a7f86; --rose: #c3223f;
  --cream: #fbf4e8;
  --f-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', 'Noto Serif', Georgia, serif;
  --f-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Noto Sans Arabic', 'Noto Sans Devanagari', sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1240px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* plain fallbacks first; upgraded below where color-mix() is supported */
  --panel: rgba(255, 255, 255, .62); --panel-line: rgba(255, 255, 255, .7);
  --soft: currentColor; --faint: rgba(128, 128, 128, .28);
  transition: --sky-a 1.6s var(--ease), --sky-b 1.6s var(--ease), --ink 1.2s var(--ease), --accent 1.2s var(--ease), --night 1.6s var(--ease);
}
html.dark { --panel: rgba(255, 255, 255, .07); --panel-line: rgba(255, 255, 255, .14); }
@supports (color: color-mix(in oklab, red, blue)) {
  :root { --soft: color-mix(in oklab, var(--ink) 72%, transparent); --faint: color-mix(in oklab, var(--ink) 16%, transparent); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--sky-b);
  font: 400 clamp(1rem, .95rem + .25vw, 1.14rem)/1.62 var(--f-body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, canvas, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
em { font-style: italic; }

/* --- the sky ----------------------------------------------------------- */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-a), var(--sky-b));
  background: linear-gradient(180deg, var(--sky-a) 0%, color-mix(in oklab, var(--sky-a), var(--sky-b) 55%) 55%, var(--sky-b) 100%); }
.sky::after { /* film grain keeps big gradients from banding */
  content: ''; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--night); }

/* --- typography -------------------------------------------------------- */
.core { font-family: var(--f-display); font-weight: 380; font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -.025em; line-height: .95; margin: 0; text-wrap: balance; }
h2.core { font-size: clamp(2.7rem, 1.4rem + 6.4vw, 8rem); max-width: 14ch; }
h3.core { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.9rem); line-height: 1; }
.gloss { font-family: var(--f-display); font-style: italic; font-weight: 340; font-variation-settings: 'opsz' 24; color: var(--soft); margin: .55em 0 0; font-size: 1.08em; display: flex; gap: .6em; align-items: baseline; }
.gloss::before { content: ''; flex: 0 0 1.6em; height: 1px; background: currentColor; opacity: .55; transform: translateY(-.3em); }
h2.core + .gloss { font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem); }
/* On the Catalan page the core *is* the text: hide every gloss. */
html[data-lang="ca"] .gloss { display: none !important; }
html[dir="rtl"] .gloss, :lang(ar) .gloss, :lang(hi) .gloss, :lang(zh) .gloss, :lang(ja) .gloss, :lang(ko) .gloss { font-style: normal; }
.eyebrow { font: 600 .78rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1.2rem; display: flex; gap: .8em; align-items: center; color: var(--soft); }
.eyebrow time { font-variant-numeric: tabular-nums; padding: .35em .7em; border: 1px solid var(--faint); border-radius: 99px; color: var(--ink); letter-spacing: .08em; }
.hint { color: var(--soft); font-size: .92em; margin: .4rem 0; }
.prose { max-width: 62ch; margin: clamp(1.6rem, 3vw, 2.6rem) 0; font-size: 1.06em; }
.prose p { margin: 0 0 1em; }
.prose.cols { max-width: none; columns: 2 30ch; column-gap: clamp(2rem, 5vw, 5rem); }
.prose.cols p { break-inside: avoid; }
.prose.center, .center { margin-inline: auto; text-align: center; }
.center .gloss { justify-content: center; }
.sub { margin-top: clamp(3rem, 6vw, 5rem); }
.sub-gloss { margin-bottom: 1.6rem; }

/* --- header bar -------------------------------------------------------- */
.skip { position: fixed; top: -100px; inset-inline-start: 16px; z-index: 100; background: var(--ink); color: var(--sky-a); padding: .6em 1em; border-radius: 10px; }
.skip:focus { top: 12px; }
.bar { position: fixed; top: 0; inset-inline: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: linear-gradient(180deg, color-mix(in oklab, var(--sky-a) 78%, transparent), transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  mask: linear-gradient(#000 60%, transparent); -webkit-mask: linear-gradient(#000 60%, transparent); }
.bar.scrolled::before { opacity: 1; }
.logo { display: inline-flex; align-items: baseline; text-decoration: none; font: 500 1.35rem/1 var(--f-display); font-variation-settings: 'SOFT' 100; letter-spacing: -.02em; direction: ltr; }
.logo-sun { width: .3em; height: .3em; border-radius: 50%; margin: 0 .07em; background: radial-gradient(circle at 35% 35%, #ffe7a8, #f39b3b 60%, #e4572e); box-shadow: 0 0 .5em #ffb35c, 0 0 1.4em #ff8a3d88; transform: translateY(-.02em); }
.clock { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: .6em; padding: .45em 1em; border-radius: 99px; background: var(--panel); border: 1px solid var(--panel-line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); min-width: 0; }
.clock-time { font: 500 1.05rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; font-variation-settings: 'opsz' 20; direction: ltr; }
.clock-word { font: italic 500 1.02rem/1.1 var(--f-display); }
.clock-gloss { grid-column: 1 / -1; margin: 0; font-size: .72rem; justify-self: center; }
.clock-gloss::before { display: none; }
.bar-actions { display: flex; gap: 8px; align-items: center; }
.pp-btn, .langs summary { display: inline-flex; align-items: center; gap: .45em; height: 40px; padding: 0 .9em; border-radius: 99px; cursor: pointer; font-size: .86rem; font-weight: 600;
  background: var(--panel); border: 1px solid var(--panel-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .2s var(--ease); }
.pp-btn:hover, .langs summary:hover { transform: translateY(-1px); }
.pp-btn svg, .langs summary svg { width: 18px; height: 18px; flex: none; }
.snd-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; background: var(--panel); border: 1px solid var(--panel-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .2s var(--ease); }
.snd-btn:hover { transform: translateY(-1px); }
.snd-btn svg { width: 20px; height: 20px; }
.snd-btn .snd-off, .snd-btn[aria-pressed="false"] .snd-on { display: none; }
.snd-btn[aria-pressed="false"] .snd-off { display: inline; }
.snd-btn[aria-pressed="false"] { opacity: .7; }
.pp-count { font-variant-numeric: tabular-nums; direction: ltr; }
.pp-btn.bump { animation: bump .7s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.96); } }
.langs { position: relative; }
.langs summary { list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(9.5em, 1fr)); gap: 2px;
  background: color-mix(in oklab, var(--cream) 94%, transparent); color: #1d2440; border-radius: 20px; box-shadow: 0 24px 60px -20px #0006; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); max-height: 70vh; overflow: auto; }
.langs-list a { display: block; padding: .5em .8em; border-radius: 12px; text-decoration: none; font-size: .95rem; }
.langs-list a:hover, .langs-list a:focus-visible { background: #1d244010; }
.langs-list a[aria-current] { background: #1d2440; color: var(--cream); }
.langs-list li:first-child { grid-column: 1 / -1; }
.langs-list li:first-child a { font: 500 1.2rem var(--f-display); }

/* --- timeline nav ------------------------------------------------------ */
.timeline { position: fixed; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); z-index: 30; display: none; }
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.timeline a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; font-size: .72rem; padding: 3px 0; }
.timeline a span { font-variant-numeric: tabular-nums; opacity: .55; direction: ltr; }
.timeline a b { font: italic 500 .9rem var(--f-display); max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .4s var(--ease), opacity .3s; }
.timeline a::after { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; transition: all .3s var(--ease); flex: none; }
.timeline a:hover b, .timeline a:focus-visible b, .timeline a.on b { max-width: 9em; opacity: 1; }
.timeline a.on::after { background: currentColor; transform: scale(1.35); box-shadow: 0 0 0 4px var(--faint); }
.timeline a.on span { opacity: 1; }
@media (min-width: 1180px) { .timeline { display: block; } }

/* --- auto language banner --------------------------------------------- */
.auto-banner { position: fixed; z-index: 45; inset-inline: var(--gutter); bottom: max(16px, env(safe-area-inset-bottom)); margin-inline: auto; max-width: 640px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-radius: 22px; background: color-mix(in oklab, var(--cream) 94%, transparent); color: #1d2440; box-shadow: 0 20px 60px -20px #0007; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: rise .8s var(--ease) both .8s; }
.auto-banner p { margin: 0; font-size: .92rem; flex: 1 1 260px; }
.auto-banner div { display: flex; gap: 12px; align-items: center; }
.auto-banner a { font-weight: 700; font-size: .9rem; }
.auto-banner button { border: 0; background: #1d2440; color: var(--cream); padding: .5em 1.1em; border-radius: 99px; cursor: pointer; font-weight: 600; font-size: .9rem; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

/* --- chapters ---------------------------------------------------------- */
.chapter { position: relative; padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(80px, 12vh, 140px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; min-height: 100vh; }
.ch-head { position: relative; }
.chapter .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.chapter .reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { min-height: 100svh; max-width: none; display: grid; align-content: center; padding-top: 90px; padding-bottom: 120px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { max-width: var(--max); margin: 0 auto; width: 100%; position: relative; }
.kicker { font: 600 .78rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin: 0 0 2rem; direction: ltr; text-align: start; }
.hero-title { margin: 0; }
.hero-title .core { display: block; font-size: clamp(4.6rem, 2rem + 15vw, 16rem); line-height: .82; letter-spacing: -.045em; font-weight: 340; text-shadow: 0 2px 60px #ffb87a55; }
.hero-title .core { animation: dawn 2.6s var(--ease) both .2s; }
@keyframes dawn { from { opacity: 0; letter-spacing: .05em; filter: blur(14px); } }
.hero-title .gloss { font-size: clamp(1.2rem, 1rem + 1vw, 2rem); margin-top: 1rem; }
.lead { max-width: 46ch; font-size: clamp(1.08rem, 1rem + .4vw, 1.35rem); line-height: 1.55; margin: 2rem 0 0; text-wrap: pretty; animation: rise 1.4s var(--ease) both 1.1s; }
.core-note { font-size: .95rem; max-width: 52ch; margin-top: 1.4rem; animation: rise 1.4s var(--ease) both 1.4s; }
.scroll-cue { position: absolute; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; text-decoration: none; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; text-align: center; width: max-content; max-width: 80vw; }
.scroll-cue i { width: 1px; height: 48px; background: linear-gradient(currentColor, transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Panels, stages & buttons */
.panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.stage { margin: clamp(2.5rem, 5vw, 4rem) 0; background: var(--panel); border: 1px solid var(--panel-line); border-radius: calc(var(--radius) + 8px); padding: clamp(16px, 2.6vw, 32px); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 40px 80px -50px #1d244055; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .6em 1.3em; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--sky-a); font-weight: 650; cursor: pointer; transition: transform .2s var(--ease), background .3s, color .3s, box-shadow .3s; text-decoration: none; touch-action: manipulation; }
html:not(.dark) .btn { color: #fff; background: #1d2440; border-color: #1d2440; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px #0006; }
.btn:active { transform: translateY(0) scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--faint); }
html:not(.dark) .btn.ghost { color: #1d2440; border-color: #1d244033; background: #ffffff66; }
.btn.big { font: 500 1.4rem/1 var(--f-display); padding: .7em 1.6em; min-height: 58px; }
.btn.round { width: 48px; padding: 0; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.nojs { padding: 2rem; text-align: center; color: var(--soft); }
.speak { width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--spk) center/contain no-repeat; mask: var(--spk) center/contain no-repeat;
  --spk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z' fill='black'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' stroke='black' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.speaking .speak { animation: pulse .6s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.25); opacity: .6; } }
.word-ipa { font: 400 .86rem/1.3 'Charis SIL', 'Doulos SIL', 'Gentium Plus', 'Noto Serif', 'Times New Roman', serif; opacity: .7; direction: ltr; unicode-bidi: isolate; letter-spacing: .02em; }

/* --- 08:30 Llengua ----------------------------------------------------- */
.stats { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; border-top: 1px solid var(--faint); }
.stats li { padding: 1.4rem 1rem 1.4rem 0; display: grid; gap: .3rem; align-content: start; }
.stats b { font: 330 clamp(2.6rem, 2rem + 2.4vw, 4.2rem)/1 var(--f-display); font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -.03em; color: var(--accent); direction: ltr; text-align: start; }
.stats span { font-size: .92rem; color: var(--soft); max-width: 24ch; }

.map-panel { margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); background: linear-gradient(160deg, #0f3d5c, #1d6a8c 60%, #2f8fa6); color: #f5faff; border: 0; border-radius: calc(var(--radius) + 8px); }
.map-panel figcaption { padding: clamp(22px, 3vw, 40px) clamp(22px, 3vw, 40px) 0; }
.map-panel .gloss { color: #d8ecf7cc; }
.map-panel figcaption > p:last-child { max-width: 60ch; color: #e6f3fa; }
.map-wrap { position: relative; }
#map { width: 100%; height: auto; touch-action: manipulation; }
#map .sea-line { stroke: #ffffff14; stroke-width: 1; fill: none; }
#map .link { stroke: #ffe3a3; stroke-opacity: .28; stroke-width: 1.2; stroke-dasharray: 3 5; }
#map .city { cursor: pointer; outline: none; }
#map .city circle.dot { fill: #ffe9b8; transition: r .3s var(--ease), fill .3s; }
#map .city circle.halo { fill: #ffd27a; opacity: .22; transform-box: fill-box; transform-origin: center; animation: halo 3.4s ease-out infinite; }
#map .city text { fill: #f2f9ff; font: 600 15px var(--f-body); paint-order: stroke; stroke: #0f3d5c; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
#map .city.on circle.dot, #map .city:hover circle.dot, #map .city:focus-visible circle.dot { fill: #ff8a5b; r: 9; }
#map .city.on text { fill: #ffd8a8; }
#map .sun-mark { fill: #ffcf6b; }
@keyframes halo { 0% { transform: scale(.4); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }
.map-card { position: absolute; inset-inline-start: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 32px); max-width: min(360px, calc(100% - 32px)); padding: 14px 18px; border-radius: 18px; background: #f9f4ea; color: #12304a; box-shadow: 0 20px 40px -20px #0008; min-height: 52px; }
.map-card b { font: 500 1.5rem/1.1 var(--f-display); display: block; }
.map-card .v { font: italic 500 1.05rem var(--f-display); color: #b7472a; }
.map-card small { display: block; color: #12304a99; margin-top: 2px; }
.map-hint { color: #12304a99; font-size: .9rem; }
.chips { list-style: none; margin: 0; padding: 0 clamp(22px, 3vw, 40px) clamp(22px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid #ffffff33; background: #ffffff10; color: #f5faff; border-radius: 99px; padding: .3em .85em; font-size: .82rem; cursor: pointer; transition: background .2s; }
.chips button:hover, .chips button[aria-pressed="true"] { background: #ffe9b8; color: #0f3d5c; }

.words-head { margin-top: clamp(4rem, 8vw, 6rem); }
.words-head .hint { margin-top: 1rem; }
.listened { font-variant-numeric: tabular-nums; margin-inline-start: .6em; color: var(--accent); font-weight: 700; }
.words { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.word { width: 100%; height: 100%; text-align: start; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: .25rem .8rem; padding: 22px 22px 24px; border-radius: 24px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--panel-line); transition: transform .35s var(--ease), box-shadow .35s, background .35s; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.word:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 24px 40px -24px #1d244066; }
.word-w { font: 400 2.3rem/1 var(--f-display); font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -.02em; grid-column: 1; }
.word .speak { grid-column: 2; grid-row: 1; align-self: center; opacity: .6; }
.word-ipa, .word-gloss, .word-def { grid-column: 1 / -1; }
.word-gloss { margin: .2rem 0 0; font-size: 1rem; }
.word-def { font-size: .94rem; color: var(--soft); margin-top: .5rem; line-height: 1.5; }
.word.heard { background: color-mix(in oklab, var(--accent) 12%, var(--panel)); }
.word.heard .word-w { color: var(--accent); }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; margin-top: 14px; }
.twister-ca { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.12; }
.twister .word-ipa { margin: .8rem 0 0; }
.twister > p { margin: .8rem 0; }
.ldot { position: relative; overflow: hidden; }
.ldot-glyph { font: 300 clamp(6rem, 12vw, 9rem)/.8 var(--f-display); margin: 0 0 .8rem; letter-spacing: .02em; font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.ldot-glyph span { color: var(--accent); display: inline-block; animation: fly 3.2s var(--ease) infinite; }
@keyframes fly { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-.35em) scale(1.3); } 60% { transform: translateY(0); } }
.ldot > p:last-child { margin: 1rem 0 0; }

/* --- 10:00 Mercat ------------------------------------------------------ */
.pa { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.pa .stage-head { grid-column: 1 / -1; }
.pa-board { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #f7efe2, #e9dcc6); touch-action: none; }
#pa-canvas { width: 100%; height: 100%; cursor: grab; }
#pa-canvas:active { cursor: grabbing; }
.pa-steps { list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: s; display: grid; gap: 10px; }
.pa-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; opacity: .45; transition: opacity .4s; font: 450 1.2rem/1.25 var(--f-display); }
.pa-steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; font: 600 .9rem var(--f-body); }
.pa-steps li small { grid-column: 2; margin: 2px 0 0; font-size: .9rem; }
.pa-steps li small::before { display: none; }
.pa-steps li.on { opacity: 1; }
.pa-steps li.ok { opacity: .8; }
.pa-steps li.ok::before { content: '✓'; background: var(--olive); border-color: var(--olive); color: #fff; }
.pa-meter { height: 6px; border-radius: 99px; background: var(--faint); overflow: hidden; margin: .8rem 0; }
.pa-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e8573a, #c3223f); border-radius: inherit; transition: width .2s; }
.pa-done { font: italic 450 1.25rem/1.35 var(--f-display); color: var(--terra); margin: 1rem 0 0; }
.dishes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2px 28px; }
.dishes li { padding: 1.2rem 0; border-top: 1px solid var(--faint); }
.dishes h4 { font: 420 1.6rem/1.05 var(--f-display); margin: 0; font-variation-settings: 'SOFT' 100; }
.dishes .gloss { font-size: .95rem; margin-top: .25rem; }
.dishes p:last-child { font-size: .94rem; color: var(--soft); margin: .5rem 0 0; }

/* --- 12:00 Castells ---------------------------------------------------- */
.castell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: stretch; }
.castell-board { position: relative; min-height: 460px; border-radius: 24px; overflow: hidden; background: linear-gradient(#cfe8f7, #f4ede0 70%, #d8c3a0 70.2%, #cbb289); }
#castell-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sway { position: absolute; left: 50%; bottom: 14px; width: min(260px, 70%); height: 10px; transform: translateX(-50%); border-radius: 99px; background: #1d244022; }
.sway b { position: absolute; left: 50%; top: 0; bottom: 0; width: 30%; transform: translateX(-50%); border-radius: 99px; background: #3d9a5c66; transition: width .4s; }
.sway i { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #1d2440; box-shadow: 0 0 0 3px #fff; z-index: 1; }
.levels { list-style: none; padding: 0; margin: 1.2rem 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.levels li { display: flex; align-items: baseline; gap: .6em; padding: .3em .8em; border-radius: 10px; opacity: .4; transition: all .35s var(--ease); font: 450 1.05rem var(--f-display); }
.levels li small { margin: 0; font-size: .82rem; }
.levels li small::before { display: none; }
.levels li.up { opacity: 1; background: color-mix(in oklab, var(--accent) 14%, transparent); }
.castell-msg { font: 450 1.5rem/1.2 var(--f-display); margin: .6rem 0 0; min-height: 1.2em; }
.castell-msg.win { color: #2f7a4a; }
.castell-msg.fail { color: var(--rose); }
.castell-msg-t { margin-top: .2rem; }
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0 28px; margin: 0; }
.glossary div { border-top: 1px solid var(--faint); padding: 1rem 0; }
.glossary dt { font: italic 450 1.35rem var(--f-display); }
.glossary dd { margin: .3rem 0 0; color: var(--soft); font-size: .94rem; }
.glossary dd .gloss { display: inline; font-size: 1em; }
.glossary dd .gloss::before { display: none; }

/* --- 16:00 Trencadís --------------------------------------------------- */
.mosaic { padding: 0; overflow: hidden; }
#mosaic-canvas { width: 100%; aspect-ratio: 16 / 9; cursor: crosshair; background: #f3ede2; touch-action: manipulation; }
.mosaic-ui { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 14px clamp(16px, 2.6vw, 28px) 20px; }
.mosaic-ui .btns { margin: 0; }
.creators { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 2px 28px; }
.creators li { border-top: 1px solid var(--faint); padding: 1.1rem 0; display: grid; grid-template-columns: 1fr auto; gap: 0 1em; align-items: baseline; }
.creators h4 { margin: 0; font: 450 1.3rem/1.15 var(--f-display); }
.creators .years { font-size: .78rem; color: var(--soft); font-variant-numeric: tabular-nums; direction: ltr; }
.creators p { grid-column: 1 / -1; margin: .35rem 0 0; color: var(--soft); font-size: .94rem; }

/* --- 18:00 Sant Jordi -------------------------------------------------- */
.rose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.rose-form { display: grid; gap: 14px; }
.rose-form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; letter-spacing: .02em; }
.rose-form input, .rose-form textarea { width: 100%; border: 1px solid #3a142033; background: #ffffffb3; border-radius: 14px; padding: .7em .9em; font: 400 1.05rem/1.4 var(--f-display); color: #3a1420; resize: vertical; }
.rose-form input:focus, .rose-form textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.rose-card { perspective: 1200px; }
#rose-canvas { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 40px 80px -30px #3a142088, 0 2px 0 #fff8 inset; transform: rotate(1.5deg); transition: transform .8s var(--ease); background: #f6ecdd; }
#rose-canvas:hover { transform: rotate(0deg) scale(1.01); }

/* --- 19:30 Sardana ----------------------------------------------------- */
.ring { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
#ring-svg { width: 100%; max-width: 560px; margin: 0 auto; overflow: visible; }
#ring-svg .floor { fill: none; stroke: var(--faint); stroke-dasharray: 2 8; }
#ring-svg .bag { fill: color-mix(in oklab, var(--ink) 30%, transparent); }
#ring-svg .arm { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; opacity: .8; }
#ring-svg .dancer circle { stroke: none; }
#ring-svg .dancer.you circle.body { fill: #ffd166; }
#ring-svg .dancer.you text { fill: #ffd166; font: 700 18px var(--f-body); }
.ring-count { font: 450 1.4rem var(--f-display); margin: 1rem 0 0; }
.fact { font: italic 450 1.3rem/1.3 var(--f-display); margin-top: 1.4rem; }
.note-ico { font-size: 1.1em; }

/* cobla explorer */
.cobla-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: end; }
.cobla-head .hint { max-width: 52ch; }
#cobla-scope { width: 100%; height: 110px; border-radius: 18px; background: rgba(128, 128, 128, .1); }
.inst-group { margin: 2rem 0 .6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; }
.inst-group h4 { margin: 0; font: 450 1.6rem/1.1 var(--f-display); display: flex; align-items: baseline; gap: .6em; }
.inst-group h4 .gloss { margin: 0; font-size: .7em; }
.inst-group h4 .gloss::before { display: none; }
.inst-group .hint { margin: 0; }
.instruments { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.inst { position: relative; width: 100%; height: 100%; text-align: start; display: grid; align-content: start; gap: .25rem; padding: 18px 18px 40px; border-radius: 20px; cursor: pointer; overflow: hidden;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--panel-line); transition: transform .3s var(--ease), background .3s; }
.inst:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .14); }
.inst-n { font: 420 1.7rem/1 var(--f-display); font-variation-settings: 'SOFT' 100; }
.inst .gloss { margin: .1rem 0 0; font-size: .92rem; }
.inst-d { font-size: .88rem; color: var(--soft); line-height: 1.45; margin-top: .35rem; }
.inst-rec { font-size: .74rem; line-height: 1.4; color: var(--soft); opacity: .85; margin-top: .45rem; padding-top: .45rem; border-top: 1px dashed var(--panel-line); }
.inst-rec::before { content: '♪ '; opacity: .7; }
a.inst { text-decoration: none; }
a.inst .inst-rec { text-decoration: underline; }
a.inst .inst-rec::before { content: none; }
.inst.norec { cursor: default; opacity: .62; }
.inst.norec:hover { transform: none; }
.inst.norec .eq { display: none; }
.inst.norec .inst-rec::before { content: ''; }
.inst.loading .eq i { opacity: .8; animation: eq 1s ease-in-out infinite alternate; }
.ring.loading #ring-join, .ring.loading #ring-leave { cursor: progress; }
.eq { position: absolute; inset-inline-start: 18px; bottom: 14px; display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.eq i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; opacity: .45; }
.inst.playing { background: rgba(255, 209, 102, .22); }
.inst.playing .eq i { opacity: 1; animation: eq .5s ease-in-out infinite alternate; }
.inst.playing .eq i:nth-child(2) { animation-delay: -.2s; } .inst.playing .eq i:nth-child(3) { animation-delay: -.35s; } .inst.playing .eq i:nth-child(4) { animation-delay: -.1s; } .inst.playing .eq i:nth-child(5) { animation-delay: -.42s; }
@keyframes eq { from { height: 3px; } to { height: 16px; } }
@media (max-width: 860px) { .cobla-head { grid-template-columns: minmax(0, 1fr); } }

/* sardana: choose the band */
.formacio { border: 0; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.formacio legend { font-size: .86rem; font-weight: 600; color: var(--soft); margin-bottom: 8px; padding: 0; width: 100%; }
.formacio label { cursor: pointer; flex: 1 1 180px; }
.formacio input { position: absolute; opacity: 0; pointer-events: none; }
.formacio span { display: grid; gap: .1rem; height: 100%; padding: 10px 14px; border-radius: 16px; border: 1.5px solid var(--panel-line); background: rgba(255, 255, 255, .06); transition: border-color .25s, background .25s; }
.formacio b { font: 450 1.15rem/1.1 var(--f-display); }
.formacio .gloss { margin: 0; font-size: .82rem; }
.formacio .gloss::before { display: none; }
.formacio input:checked + span { border-color: #ffd166; background: rgba(255, 209, 102, .14); }
.formacio input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* --- 22:00 Correfoc ---------------------------------------------------- */
.fire { max-width: none; min-height: 110vh; overflow: hidden; touch-action: pan-y; cursor: crosshair; }
#fire-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fire-inner { position: relative; max-width: var(--max); margin: 0 auto; pointer-events: none; }
.fire-inner a { pointer-events: auto; }
.fire .core { text-shadow: 0 0 40px #ff6a0066; }
.fire-hint { margin-top: 2rem; }
.fire-count { font: 300 clamp(3rem, 6vw, 5rem)/1 var(--f-display); margin: 2rem 0 0; color: #ffb35c; text-shadow: 0 0 30px #ff7a00aa; font-variant-numeric: tabular-nums; }
.fire-btn { pointer-events: auto; margin-top: 1rem; }
.fire-count span { font: italic 400 1.2rem var(--f-display); color: var(--soft); text-shadow: none; }
.fire-best { color: var(--soft); max-width: 46ch; margin-top: 1.4rem; }

/* --- 23:30 L'any ------------------------------------------------------- */
.wheel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: center; }
.wheel-box { position: relative; }
#wheel-svg { width: 100%; max-width: 580px; margin: 0 auto; overflow: visible; touch-action: pan-y; }
#wheel-svg .rot { transition: transform 1.1s var(--ease); }
#wheel-svg .rim { fill: none; stroke: var(--faint); }
#wheel-svg .month-arc { fill: none; stroke-width: 34; }
#wheel-svg .month-label { fill: var(--ink); font: italic 500 15px var(--f-display); letter-spacing: .02em; }
#wheel-svg .tick { stroke: var(--faint); }
#wheel-svg .ev { cursor: pointer; outline: none; }
#wheel-svg .ev circle { fill: var(--ink); transition: r .3s var(--ease), fill .3s; }
#wheel-svg .ev:hover circle, #wheel-svg .ev:focus-visible circle { r: 10; fill: #ffd166; }
#wheel-svg .ev.on circle { fill: #ffd166; r: 12; }
#wheel-svg .ev.var circle { stroke: var(--ink); stroke-dasharray: 2 2; fill-opacity: .55; }
#wheel-svg .today line { stroke: #ff7a59; stroke-width: 2; }
#wheel-svg .today circle { fill: #ff7a59; }
#wheel-svg .today text { fill: #ff7a59; font: 700 12px var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
#wheel-svg .center-big { fill: var(--ink); font: 300 64px var(--f-display); }
#wheel-svg .center-small { fill: var(--soft); font: 600 12px var(--f-body); letter-spacing: .16em; text-transform: uppercase; }
.wheel-panel { min-height: 320px; }
.wheel-date { font: 600 .8rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #ffb38a; margin: 1rem 0 .6rem; }
#wheel-name { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem); }
#wheel-text { margin-top: 1rem; max-width: 48ch; }
.events-list { columns: 2 28ch; }

/* --- 00:00 Bona nit ---------------------------------------------------- */
.huge { font-size: clamp(4rem, 2rem + 12vw, 13rem) !important; max-width: none !important; line-height: .85 !important; }
.night .ch-head.center .core { margin-inline: auto; }
.phrases { list-style: none; padding: 0; margin: clamp(3rem, 6vw, 5rem) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.phrase { width: 100%; height: 100%; text-align: start; padding: 20px 22px; border-radius: 22px; display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; align-content: start; cursor: pointer; background: var(--panel); border: 1px solid var(--panel-line); transition: transform .3s var(--ease), background .3s; }
.phrase:hover { transform: translateY(-3px); background: color-mix(in oklab, white 12%, transparent); }
.phrase-ca { font: 420 1.75rem/1.05 var(--f-display); font-variation-settings: 'SOFT' 100; }
.phrase .speak { grid-row: 1; grid-column: 2; opacity: .6; align-self: center; }
.phrase .word-ipa, .phrase-t { grid-column: 1 / -1; }
.phrase-t { font-size: .92rem; color: var(--soft); margin-top: .4rem; }
.passport-inline { margin-top: clamp(3rem, 6vw, 5rem); }
.outro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 14px; }
.outro h3 { font: 450 1.6rem/1.1 var(--f-display); margin: 0 0 .6rem; }
.outro p { color: var(--soft); }
.links { display: flex; gap: 1.2em; flex-wrap: wrap; }
.links a { font-weight: 700; color: var(--ink); }

/* Passport (inline + dialog) */
.pp-body { margin-top: 1.4rem; }
.pp-stamps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
.pp-stamps li { aspect-ratio: 1; display: grid; place-items: center; text-align: center; }
.pp-stamps svg { width: 100%; height: 100%; overflow: visible; }
.stamp-empty { fill: none; stroke: var(--faint); stroke-width: 2; stroke-dasharray: 5 6; }
.stamp-label-empty { fill: var(--soft); font: 600 11px var(--f-body); letter-spacing: .06em; }
.pp-stamps li.got svg { animation: stampin .6s var(--ease) both; }
@keyframes stampin { 0% { transform: scale(1.6) rotate(-14deg); opacity: 0; } 70% { transform: scale(.94); } }
.pp-status { font: italic 450 1.3rem/1.3 var(--f-display); margin: 1.2rem 0 0; }
.pp-status.done { color: #ffd166; }
html:not(.dark) .pp-status.done { color: var(--terra); }
.pp-reset { background: none; border: 0; color: var(--soft); text-decoration: underline; cursor: pointer; font-size: .85rem; padding: 0; margin-top: .8rem; }
.pp-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); border: 0; border-radius: 30px; padding: clamp(24px, 4vw, 44px); background: #14152e; color: #f3f1ea; box-shadow: 0 40px 120px -20px #000a; --ink: #f3f1ea; --soft: #f3f1eabb; --faint: #f3f1ea2a; }
.pp-dialog::backdrop { background: #05060fb3; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pp-dialog[open] { animation: rise .5s var(--ease); }
.pp-dialog h2.core { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.pp-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.pp-close button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #ffffff2a; background: transparent; color: inherit; font-size: 1.5rem; cursor: pointer; }

/* Toast */
.toast { position: fixed; z-index: 60; left: 50%; top: max(72px, calc(env(safe-area-inset-top) + 64px)); transform: translate(-50%, -20px); opacity: 0; pointer-events: none; padding: .7em 1.2em; border-radius: 99px; background: #14152e; color: #f3f1ea; font-size: .92rem; font-weight: 600; box-shadow: 0 16px 40px -12px #0008; transition: all .45s var(--ease); max-width: calc(100vw - 32px); text-align: center; display: flex; align-items: center; gap: .6em; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 30px; height: 30px; flex: none; }

/* Footer */
.foot { padding: 80px var(--gutter) max(40px, env(safe-area-inset-bottom)); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; color: var(--soft); font-size: .9rem; border-top: 1px solid var(--faint); }
.foot-made { font: italic 450 1.4rem var(--f-display); color: var(--ink); margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .2em .8em; align-items: baseline; }
.foot-made .gloss { margin: 0; font-size: .8em; }
.foot-langs a { text-decoration: none; white-space: nowrap; }
.foot-rec { margin: 1rem 0 0; font-size: .82rem; }
.foot-rec summary { cursor: pointer; font-weight: 600; color: var(--ink); width: max-content; }
.foot-rec p { margin: .6rem 0; max-width: 70ch; }
.foot-rec ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: .3rem; }
.foot-rec a { color: inherit; }
.foot-langs a:hover { text-decoration: underline; }
.foot-logo { font: 300 clamp(4rem, 18vw, 15rem)/.8 var(--f-display); letter-spacing: -.05em; color: var(--ink); opacity: .9; margin: 3rem 0 0; direction: ltr; text-align: start; font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.foot-logo span { color: #ffb35c; text-shadow: 0 0 30px #ff8a3d; }

/* --- responsive -------------------------------------------------------- */
@media (max-width: 860px) {
  .pa, .castell, .rose, .ring, .wheel { grid-template-columns: minmax(0, 1fr); }
  .castell-board { min-height: 420px; }
  .wheel-panel { min-height: 0; }
  .clock-gloss { display: none; }
}
@media (max-width: 560px) {
  .clock { padding: .4em .8em; }
  .clock-word { display: none; }
  .langs summary span { display: none; }
  .langs summary, .pp-btn { padding: 0 .75em; }
  .langs-list { position: fixed; top: 64px; inset-inline: 12px; grid-template-columns: 1fr 1fr; }
  .map-card { position: static; margin: 0 16px 16px; max-width: none; }
  #map .city text { font-size: 19px; }
  .btn.big { font-size: 1.2rem; }
  .word-w { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .chapter .reveal { opacity: 1; transform: none; }
}
@media print {
  .bar, .timeline, .sky, canvas, .stage, .toast, .auto-banner, .scroll-cue { display: none !important; }
  body { color: #111; background: #fff; }
  html[data-lang] .gloss { display: block !important; color: #555; }
}

/* --- RTL: Catalan stays left-to-right inside right-to-left pages ---------- */
html[dir="rtl"] [lang="ca"] { direction: ltr; unicode-bidi: isolate; text-align: right; }
html[dir="rtl"] .center[lang="ca"], html[dir="rtl"] .center [lang="ca"] { text-align: center; }
html[dir="rtl"] .timeline a { flex-direction: row-reverse; }
html[dir="rtl"] .gloss::before { transform: translateY(-.3em); }
/* hero copy floats over the sunrise: keep it legible everywhere */
.hero .lead, .hero .core-note, .hero .kicker { text-shadow: 0 1px 14px rgba(20, 14, 48, .55), 0 0 2px rgba(20, 14, 48, .3); }
