/* ==========================================================================
   Side by Side Philosophy — imperial purple, marble, gold leaf and water
   ========================================================================== */

:root {
  --night: #140a1e;
  --purple-900: #1c0f2e;
  --purple-800: #2a1842;
  --purple-700: #3d2460;
  --purple-500: #6b4aa0;
  --purple-300: #b9a5d8;

  --gold: #c9a24a;
  --gold-light: #ead08a;
  --gold-dark: #8c6a22;

  --marble: #f5f0e7;
  --marble-shade: #e7dfd0;
  --ink: #2b2231;
  --ink-soft: #5d5266;

  --lapis: #17506a;
  --lapis-deep: #0d3448;
  --aqua: #4fb0c6;
  --foam: #d6f1f6;

  --gutter: 18px;
  --radius: 6px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 30px -12px rgba(10, 4, 20, .55);

  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-body: "EB Garamond", "Garamond", "Georgia", serif;
  --font-lede: "Cormorant Garamond", "Garamond", "Georgia", serif;

  /* Running-dog wave scroll, the classical Greek water border. */
  --wave-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28' viewBox='0 0 48 28'%3E%3Cg fill='none' stroke='%23ead08a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M0 22C6 22 10 18 12 13C14 7 19 5 24 5C30 5 33 9 33 13C33 17 30 19 27 19C24 19 22 17 22 15C22 13 23.5 12 25 12.3'/%3E%3Cpath d='M33 13C34 18 40 22 48 22'/%3E%3C/g%3E%3C/svg%3E");
  --ripple-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cg fill='none' stroke='%23d6f1f6' stroke-linecap='round'%3E%3Cpath d='M0 10Q15 4 30 10T60 10T90 10T120 10' stroke-opacity='.38' stroke-width='1.4'/%3E%3Cpath d='M-30 30Q-15 24 0 30T30 30T60 30T90 30T120 30T150 30' stroke-opacity='.2' stroke-width='1.1'/%3E%3C/g%3E%3C/svg%3E");
  --ripple-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='54'%3E%3Cpath d='M0 27Q11 20 22 27T45 27T67 27T90 27' fill='none' stroke='%23ffffff' stroke-opacity='.14' stroke-width='2'/%3E%3C/svg%3E");
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cg fill='none' stroke='%23c9a24a' stroke-width='1.6'%3E%3Cpath d='M0 1H24M0 23H24'/%3E%3Cpath d='M2 23V4H20V19H6V8H16V15H10V11H13'/%3E%3C/g%3E%3C/svg%3E");
  --marble-veins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='.0125 .00625' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .41 0 0 0 0 .5 -2.6 0 0 0 .34'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--night);
  color: var(--marble);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); }
a:hover { color: #fff3cf; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; line-height: 1.15; margin: 0; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--gold); color: var(--night); padding: .5rem 1rem; border-radius: var(--radius);
  font-family: var(--font-display); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: .55rem 1.05rem; font-size: .72rem; }

.btn-gold {
  color: #2a1a05;
  background: linear-gradient(180deg, #f3dc9b 0%, var(--gold) 55%, #a8822f 100%);
  border-color: #f6e3a8;
  box-shadow: 0 6px 18px -8px rgba(201, 162, 74, .8), 0 1px 0 rgba(255, 255, 255, .5) inset;
}
.btn-gold:hover { color: #1b1003; box-shadow: 0 10px 26px -8px rgba(234, 208, 138, .9); }
.btn-gold[aria-disabled="true"] { cursor: default; filter: saturate(.75); }
.btn-gold[aria-disabled="true"]:hover { transform: none; }

.btn-ghost { color: var(--gold-light); border-color: rgba(234, 208, 138, .55); background: rgba(20, 10, 30, .35); }
.btn-ghost:hover { background: rgba(234, 208, 138, .12); color: #fff; }

.btn-ghost-dark { color: var(--purple-800); border-color: rgba(61, 36, 96, .35); background: rgba(255, 255, 255, .55); }
.btn-ghost-dark:hover { color: var(--night); background: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 10, 30, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(201, 162, 74, .35);
}
.nav {
  max-width: 1240px; margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--marble);
}
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(201, 162, 74, .6); }
.brand em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--purple-300); text-decoration: none; padding: .3rem 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- Hero: a Roman metropolis at dusk ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: min(100vh, 900px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.5rem 1.25rem 12.5rem;
}
.hero-sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 28% 9%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 47% 22%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 63% 12%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 81% 6%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 92% 26%, rgba(255,255,255,.5), transparent),
    radial-gradient(ellipse 70% 45% at 70% 100%, rgba(234, 170, 90, .45), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 105%, rgba(160, 80, 120, .45), transparent 75%),
    linear-gradient(180deg, #120820 0%, #231238 45%, #4a2550 78%, #7a3c4c 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1240px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
}
.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  font-weight: 700;
  letter-spacing: .06em;
  background: linear-gradient(180deg, #fff6dc 0%, var(--gold-light) 45%, var(--gold) 80%, #9b7629 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .45));
}
.h1-sub {
  display: block; margin-top: .4rem;
  font-family: var(--font-lede); font-style: italic; font-weight: 500;
  font-size: .5em; letter-spacing: .08em; text-transform: none;
}
.lede {
  font-family: var(--font-lede); font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.5;
  color: #e9e0f2; max-width: 36rem; margin: 1.4rem 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.2rem; margin: 2.8rem 0 0; padding-top: 1.4rem;
  border-top: 1px solid rgba(201, 162, 74, .3);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-light); line-height: 1; }
.hero-stats dd { margin: .35rem 0 0; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-300); }

.hero-bust { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); }
.hero-bust img {
  position: relative; border-radius: 22%;
  box-shadow: 0 0 0 1px rgba(234, 208, 138, .55), 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.bust-halo {
  position: absolute; inset: -14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 208, 138, .28) 0%, rgba(201, 162, 74, .08) 45%, transparent 70%);
  animation: halo 8s ease-in-out infinite;
}
@keyframes halo { 50% { transform: scale(1.06); opacity: .75; } }

.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; z-index: 1; }
.aqueduct-water { animation: shimmer 5s linear infinite; }
@keyframes shimmer { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

@media (max-width: 900px) {
  .hero { padding-top: 3rem; padding-bottom: 12rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-bust { order: -1; width: min(64vw, 280px); }
  .lede { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
}

/* ---------- Water: the channels between columns and panels ---------- */

.water {
  background-color: var(--lapis);
  background-image:
    var(--ripple-a),
    var(--ripple-b),
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(111, 195, 212, .45), transparent 70%),
    radial-gradient(ellipse 50% 50% at 75% 80%, rgba(79, 176, 198, .35), transparent 70%),
    linear-gradient(160deg, #1d6683 0%, var(--lapis) 45%, var(--lapis-deep) 100%);
  background-size: 120px 40px, 90px 54px, 100% 100%, 100% 100%, 100% 100%;
  animation: flow 14s linear infinite;
}
@keyframes flow {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 240px 160px, -180px 216px, 0 0, 0 0, 0 0; }
}

.wave-band {
  height: 46px;
  background-color: var(--lapis-deep);
  background-image:
    var(--wave-gold),
    linear-gradient(180deg, var(--lapis) 0%, var(--lapis-deep) 100%);
  background-size: 48px 28px, 100% 100%;
  background-repeat: repeat-x, no-repeat;
  background-position: 0 9px, 0 0;
  border-top: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
  box-shadow: 0 1px 0 rgba(234, 208, 138, .35) inset, 0 -1px 0 rgba(234, 208, 138, .35) inset;
  animation: wave 6s linear infinite;
}
.wave-band-reverse { animation-direction: reverse; }
@keyframes wave { to { background-position: 48px 9px, 0 0; } }

/* ---------- Sections ---------- */

.section { padding: 5.5rem 1.25rem; }
.section > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--marble); }
.section-head h2::after {
  content: ""; display: block; width: 168px; height: 20px; margin: 1.1rem auto 0;
  background: var(--meander) repeat-x center / 21px 21px;
}
.section-lede {
  font-family: var(--font-lede); font-size: 1.3rem; color: #d9cfe6;
  max-width: 44rem; margin: 1.2rem auto 0;
}

.section-reader, .section-translators, .section-about {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(107, 74, 160, .28), transparent 70%),
    var(--purple-900);
}
.section-app, .section-search {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(107, 74, 160, .22), transparent 70%),
    var(--night);
}

/* ---------- Marble surfaces ---------- */

.marble, .panel, .col, .result, .daily-card, .reader-controls, .chooser, .timeline-card {
  color: var(--ink);
  background-color: var(--marble);
  background-image:
    var(--marble-veins),
    radial-gradient(ellipse 120% 80% at 15% 0%, #fffdf7 0%, transparent 60%),
    linear-gradient(180deg, var(--marble) 0%, var(--marble-shade) 100%);
  background-size: 480px 480px, 100% 100%, 100% 100%;
}

/* ---------- The reader ---------- */

.reader { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gutter); }

.reader-controls {
  display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.6rem;
  padding: 1.1rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 74, .6);
}
.control-group { display: flex; flex-direction: column; gap: .3rem; }
.control-group label, .ref-label {
  font-family: var(--font-display); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
}
.reader select {
  font: 500 1.05rem var(--font-body); color: var(--ink);
  padding: .45rem 2.2rem .45rem .8rem; min-width: 8.5rem;
  border: 1px solid rgba(61, 36, 96, .3); border-radius: var(--radius);
  background: #fffdf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233d2460' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .8rem center;
  appearance: none; cursor: pointer;
}
.section-stepper { flex-direction: row; align-items: end; gap: .5rem; }
.section-stepper > div { display: flex; flex-direction: column; gap: .3rem; }
.section-stepper select { min-width: 6rem; }
.step {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid rgba(201, 162, 74, .8); background: linear-gradient(180deg, #fff8e4, #ecd9a6);
  color: var(--purple-800); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.step:hover { background: linear-gradient(180deg, #fff, #f3e2b4); }
.step:disabled { opacity: .35; cursor: default; }
.reader-ref .ref-value { font-family: var(--font-display); font-size: 1.6rem; color: var(--purple-700); line-height: 1.1; }
.control-actions { flex-direction: row; gap: .5rem; margin-left: auto; }

.chooser {
  min-width: 0;
  margin: 0; padding: 1rem 1.4rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 74, .6);
}
.chooser legend {
  float: left; width: 100%; padding: 0; margin-bottom: .7rem;
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
}
.chooser-hint { letter-spacing: .05em; text-transform: none; font-family: var(--font-body); font-style: italic; font-size: .95rem; }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  --h: 0;
  display: inline-flex; align-items: center; gap: .45rem;
  font: 500 .98rem var(--font-body); color: var(--ink);
  padding: .35rem .85rem .35rem .6rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(61, 36, 96, .2); background: rgba(255, 255, 255, .6);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.chip::before {
  content: ""; width: .7rem; height: .7rem; border-radius: 50%;
  background: hsl(var(--h) 45% 55%); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8);
}
.chip:hover { border-color: hsl(var(--h) 40% 50% / .6); }
.chip[aria-pressed="true"] {
  background: hsl(var(--h) 55% 92%); border-color: hsl(var(--h) 40% 45% / .7);
  color: hsl(var(--h) 45% 22%); box-shadow: 0 0 0 1px hsl(var(--h) 40% 45% / .3) inset;
}
.chip-year { font-size: .82rem; color: var(--ink-soft); }

.aqueduct-frame {
  position: relative; border-radius: calc(var(--radius) + 4px);
  padding: 6px; background: linear-gradient(180deg, #f2d991, var(--gold) 40%, var(--gold-dark));
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
}
.columns {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: var(--gutter); padding: var(--gutter);
  border-radius: var(--radius);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  min-height: 18rem;
  scrollbar-color: var(--gold) var(--lapis-deep);
}
.columns .loading {
  grid-column: 1 / -1; align-self: center; text-align: center;
  font-family: var(--font-lede); font-style: italic; font-size: 1.3rem; color: var(--foam);
}

.col {
  --h: 260;
  position: relative; scroll-snap-align: start;
  border-radius: 4px; padding: 0 1.4rem 1.4rem;
  box-shadow: 0 1px 0 #fff inset, 0 8px 20px -10px rgba(5, 25, 35, .7);
  animation: rise .45s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
/* Ionic capital: abacus band with volutes at each corner. */
.col::before {
  content: ""; display: block; height: 14px; margin: 0 -1.4rem 1rem;
  border-radius: 4px 4px 0 0;
  background:
    radial-gradient(circle at 9px 9px, transparent 3px, hsl(var(--h) 35% 40% / .55) 3.5px, hsl(var(--h) 35% 40% / .55) 5px, transparent 5.5px) left top / 18px 18px no-repeat,
    radial-gradient(circle at 9px 9px, transparent 3px, hsl(var(--h) 35% 40% / .55) 3.5px, hsl(var(--h) 35% 40% / .55) 5px, transparent 5.5px) right top / 18px 18px no-repeat,
    linear-gradient(180deg, hsl(var(--h) 45% 82%), hsl(var(--h) 35% 70%));
  border-bottom: 1px solid hsl(var(--h) 30% 45% / .5);
}
.col-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .2rem; }
.col-name {
  font-family: var(--font-display); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase;
  color: hsl(var(--h) 40% 28%);
}
.col-year { font-family: var(--font-lede); font-style: italic; color: var(--ink-soft); white-space: nowrap; }
.col-printed {
  display: inline-block; margin-bottom: .6rem;
  font-size: .8rem; letter-spacing: .06em; color: var(--ink-soft);
}
.col-text p { margin: 0 0 .85em; font-size: 1.1rem; line-height: 1.68; hyphens: auto; }
.col-text p:first-child::first-letter {
  float: left; font-family: var(--font-display); font-size: 3.1em; line-height: .85;
  padding: .06em .1em 0 0; color: hsl(var(--h) 40% 32%);
}
.col-empty { font-style: italic; color: var(--ink-soft); }
.note {
  margin: 1rem 0 0; padding: .55rem .8rem;
  border-left: 3px solid var(--gold); background: rgba(201, 162, 74, .1);
  font-size: .95rem; font-style: italic; color: var(--ink-soft); border-radius: 0 4px 4px 0;
}
.scroll-hint {
  margin: 0 0 -.4rem; text-align: right;
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light);
}
.reader-foot { margin: .4rem 0 0; text-align: center; font-size: .95rem; font-style: italic; color: var(--purple-300); }

@media (max-width: 700px) {
  .columns { grid-auto-columns: 86%; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
    margin: 0 -1rem; padding: .2rem 1rem .6rem;
  }
  .chip { flex: none; scroll-snap-align: start; }
  .scroll-hint { text-align: center; }
  .control-actions { margin-left: 0; width: 100%; }
  .reader-controls { padding: 1rem; }
}

/* ---------- Panels (feature grid) ---------- */

.panels {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter); padding: var(--gutter);
  border-radius: calc(var(--radius) + 2px);
  border: 4px solid var(--gold-dark);
  box-shadow: 0 0 0 1px var(--gold-light) inset, 0 24px 60px -24px rgba(0, 0, 0, .8);
}
.panel {
  position: relative; padding: 2rem 1.8rem 1.8rem; border-radius: 4px;
  box-shadow: 0 1px 0 #fff inset, 0 8px 22px -12px rgba(5, 25, 35, .8);
}
.panel h3 { font-size: 1.35rem; color: var(--purple-800); margin-bottom: .6rem; }
.panel p { margin: 0 0 .8rem; color: var(--ink); }
.panel p:last-child { margin-bottom: 0; }
.panel-glyph {
  font-family: var(--font-display); font-size: .9rem; letter-spacing: .2em; color: var(--gold-dark);
  margin-bottom: .7rem; padding-bottom: .55rem; border-bottom: 1px solid rgba(140, 106, 34, .35); width: 3rem;
}

@media (max-width: 960px) { .panels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .panels { grid-template-columns: 1fr; } }

.get-app { margin-top: 3.5rem; }
.get-app-inner {
  display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap;
  padding: 1.6rem 2rem; border-radius: 18px;
  background: linear-gradient(120deg, rgba(61, 36, 96, .9), rgba(28, 15, 46, .95));
  border: 1px solid rgba(201, 162, 74, .55);
  box-shadow: 0 0 0 6px rgba(201, 162, 74, .08), 0 24px 60px -24px rgba(0, 0, 0, .8);
}
.get-app-inner img { width: 96px; height: 96px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(234, 208, 138, .6); }
.get-app-inner > div { flex: 1 1 18rem; }
.get-app-inner h3 { font-size: 1.4rem; color: var(--gold-light); }
.get-app-inner p { margin: .4rem 0 0; color: #ddd2ea; }

/* ---------- Translators timeline: a river with panels on its banks ---------- */

.timeline {
  position: relative; list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 5rem; row-gap: 1.4rem;
}
.timeline::before {
  content: ""; position: absolute; top: -1rem; bottom: -1rem; left: 50%; width: 22px; transform: translateX(-50%);
  border-radius: 11px; border: 2px solid var(--gold-dark);
  background-color: var(--lapis);
  background-image: var(--ripple-a), var(--ripple-b), linear-gradient(90deg, var(--lapis-deep), #1f6c88 50%, var(--lapis-deep));
  background-size: 120px 40px, 90px 54px, 100% 100%;
  animation: river 9s linear infinite;
}
@keyframes river { to { background-position: 0 240px, 0 324px, 0 0; } }
.timeline li { position: relative; }
.timeline li:nth-child(odd) { grid-column: 1; }
.timeline li:nth-child(even) { grid-column: 2; margin-top: 3.2rem; }
.timeline li::after {
  content: ""; position: absolute; top: 1.6rem; width: 2.5rem; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--lapis), var(--aqua), var(--lapis));
  box-shadow: 0 0 0 1px var(--gold-dark);
}
.timeline li:nth-child(odd)::after { right: -2.5rem; }
.timeline li:nth-child(even)::after { left: -2.5rem; }

.timeline-card {
  --h: 260;
  display: block; width: 100%; text-align: left; cursor: pointer;
  font: inherit; padding: 1.1rem 1.3rem 1.1rem 1.5rem; border-radius: 6px;
  border: 1px solid rgba(201, 162, 74, .55);
  border-left: 6px solid hsl(var(--h) 40% 52%);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.timeline-card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 #fff inset, 0 16px 34px -14px rgba(0, 0, 0, .8); }
.timeline-card[aria-pressed="true"] { outline: 2px solid hsl(var(--h) 40% 45%); outline-offset: 2px; }
.tl-year { font-family: var(--font-display); font-size: 1.6rem; color: hsl(var(--h) 40% 32%); line-height: 1; }
.tl-name { display: block; font-family: var(--font-display); font-size: 1rem; letter-spacing: .08em; color: var(--purple-800); margin-top: .4rem; }
.tl-title { display: block; font-style: italic; color: var(--ink-soft); font-size: .98rem; margin-top: .15rem; }
.tl-blurb { display: block; margin-top: .5rem; color: var(--ink); font-size: 1rem; }
.tl-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.tl-tag {
  font-family: var(--font-display); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px; background: hsl(var(--h) 45% 90%); color: hsl(var(--h) 40% 26%);
}
.tl-action { font-size: .88rem; color: var(--purple-500); margin-left: auto; }

@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; padding-left: 2.6rem; }
  .timeline::before { left: 10px; transform: none; }
  .timeline li:nth-child(n) { grid-column: 1; margin-top: 0; }
  .timeline li:nth-child(n)::after { left: -1.7rem; right: auto; width: 1.7rem; }
}

/* ---------- Search ---------- */

.search-form { display: flex; gap: .7rem; max-width: 720px; }
.search-form input {
  flex: 1; min-width: 0;
  font: 400 1.15rem var(--font-body); color: var(--ink);
  padding: .8rem 1.2rem; border-radius: 999px; border: 1px solid var(--gold);
  background: var(--marble); box-shadow: 0 0 0 4px rgba(201, 162, 74, .12);
}
.search-form input::placeholder { color: #8b8094; font-style: italic; }
.search-status { text-align: center; color: var(--purple-300); font-style: italic; min-height: 1.6em; margin: 1.2rem auto; }
.results { list-style: none; padding: 0; display: grid; gap: .8rem; max-width: 900px; }
.result {
  --h: 260;
  display: block; padding: 1rem 1.3rem; border-radius: 6px;
  border-left: 5px solid hsl(var(--h) 40% 52%); box-shadow: var(--shadow);
}
.result-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.result-ref { font-family: var(--font-display); color: var(--purple-700); font-size: 1rem; letter-spacing: .06em; }
.result-who { font-style: italic; color: hsl(var(--h) 35% 30%); }
.result p { margin: .4rem 0 .6rem; }
.result mark { background: rgba(234, 208, 138, .7); color: inherit; padding: 0 .1em; border-radius: 2px; }
.result-open {
  font: 600 .7rem var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  background: none; border: 0; padding: 0; color: var(--purple-500); cursor: pointer;
}
.result-open:hover { color: var(--purple-800); text-decoration: underline; }

/* ---------- Daily ---------- */

.section-daily {
  padding-top: 1rem;
  background: linear-gradient(180deg, var(--night), var(--purple-900));
}
.daily-card {
  position: relative; max-width: 860px; margin: 0 auto; text-align: center;
  padding: 3rem clamp(1.4rem, 5vw, 4rem) 2.4rem; border-radius: 8px;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(201, 162, 74, .12), 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.daily-card::before, .daily-card::after {
  content: ""; position: absolute; left: 1.2rem; right: 1.2rem; height: 12px;
  background: var(--meander) repeat-x center / 18px 18px; opacity: .8;
  height: 18px;
}
.daily-card::before { top: 1rem; }
.daily-card::after { bottom: 1rem; }
.daily-card .eyebrow { color: var(--gold-dark); margin-top: .6rem; }
.daily-card blockquote {
  margin: 0; font-family: var(--font-lede); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.5; color: var(--ink);
}
.daily-card figcaption {
  margin-top: 1.4rem; display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap;
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.daily-open { color: var(--purple-500); text-decoration: none; }
.daily-open:hover { color: var(--purple-800); }

/* ---------- About ---------- */

.about-grid {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto;
  gap: var(--gutter); padding: var(--gutter);
  border-radius: calc(var(--radius) + 2px);
  border: 4px solid var(--gold-dark);
  box-shadow: 0 0 0 1px var(--gold-light) inset, 0 24px 60px -24px rgba(0, 0, 0, .8);
}
.panel-wide { grid-row: span 2; }
.panel-wide h2 { font-size: 1.8rem; color: var(--purple-800); margin-bottom: 1rem; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .panel-wide { grid-row: auto; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--night); padding-bottom: 2.5rem; }
.meander { height: 24px; background: var(--meander) repeat-x; opacity: .85; margin-bottom: 2.5rem; }
.footer-inner { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; text-align: center; }
.footer-quote { font-family: var(--font-lede); font-style: italic; font-size: 1.35rem; color: #e3d9ee; margin: 0 0 1.4rem; }
.footer-quote span { font-style: normal; font-size: .95rem; color: var(--gold); white-space: nowrap; }
.site-footer nav { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.site-footer nav a {
  font-family: var(--font-display); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--purple-300); text-decoration: none;
}
.site-footer nav a:hover { color: var(--gold-light); }
.footer-small { margin-top: 1.6rem; font-size: .88rem; color: #8d7fa3; }

/* ---------- Simple pages (privacy, 404) ---------- */

.page { max-width: 760px; margin: 0 auto; padding: 4rem 1.25rem 5rem; }
.page .panel { padding: 2.4rem clamp(1.4rem, 4vw, 3rem); }
.page h1 { font-size: 2.2rem; color: var(--purple-800); margin-bottom: 1rem; }
.page h2 { font-size: 1.2rem; color: var(--purple-800); margin: 1.8rem 0 .5rem; }
.page a { color: var(--purple-500); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
