/* The Hollow Almanac: CityLab's paper header and footer, with the page itself nine hundred metres down.
   Abyss blue, verdigris bronze, pale brass and coil cyan; portholes, gauges and a brass timeline. */
.almanac-page {
  --a-ink: #03111a; --a-deep: #061a26; --a-deep-2: #0a2533; --a-glass: rgba(120, 220, 255, .06);
  --a-brass: #d9b26a; --a-brass-2: #a8803f; --a-verdi: #5fa08a; --a-cyan: #6fe8ff; --a-cream: #efe8d6;
  --a-body: #c9d6d6; --a-muted: #8aa1a6; --a-rule: rgba(217, 178, 106, .28);
  --a-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
.almanac-page .alm { background: var(--a-deep); color: var(--a-body); overflow: hidden; }
.almanac-page .alm-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; position: relative; }
.almanac-page .alm-narrow { width: min(760px, calc(100% - 32px)); }
.almanac-page .alm h1, .almanac-page .alm h2, .almanac-page .alm h3, .almanac-page .alm h4 { font-family: var(--a-serif); color: var(--a-cream); letter-spacing: -.01em; }
.almanac-page .alm h1 { margin: 0 0 .4rem; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; text-shadow: 0 0 40px rgba(111, 232, 255, .25); }
.almanac-page .alm h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.08; }
.almanac-page .alm h3 { margin: 0 0 .35rem; font-size: 1.25rem; }
.almanac-page .alm h4 { margin: 1.3rem 0 .35rem; font: 750 .74rem/1.3 ui-sans-serif, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--a-brass); }
.almanac-page .alm li, .almanac-page .alm dd { color: var(--a-body); }
.almanac-page .alm p { color: var(--a-body); line-height: 1.7; font-size: 1.04rem; }
.almanac-page .alm main a, .almanac-page .alm a { color: var(--a-cyan); text-decoration-color: rgba(111, 232, 255, .35); }
.almanac-page .alm a:hover { color: var(--a-brass); }
.almanac-page .alm-eyebrow { margin: 0 0 .7rem; color: var(--a-brass); font: 750 .72rem/1.4 ui-sans-serif, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.almanac-page .alm-deck { max-width: 44rem; }
.almanac-page .alm .citylab-link { color: var(--a-cream); }

/* the hero: caustic light over the abyss, and the ring map */
.almanac-page .alm-hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); background:
  linear-gradient(180deg, rgba(3, 17, 26, .55), var(--a-deep) 92%),
  url(/citylab/assets/fathom-ring/ring.webp) center / cover no-repeat; border-bottom: 1px solid var(--a-rule); }
.almanac-page .caustics { position: absolute; inset: -20%; pointer-events: none; opacity: .5; mix-blend-mode: screen;
  background:
    radial-gradient(40% 18% at 30% 20%, rgba(111, 232, 255, .16), transparent 70%),
    radial-gradient(30% 14% at 70% 35%, rgba(111, 232, 255, .12), transparent 70%),
    radial-gradient(35% 16% at 50% 70%, rgba(217, 178, 106, .10), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) rotate(-2deg); } to { transform: translate3d(3%, 2%, 0) rotate(2deg); } }
.almanac-page .alm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; }
.almanac-page .alm-lede { font-family: var(--a-serif); font-style: italic; font-size: 1.35rem !important; color: var(--a-cream) !important; margin: 0 0 1rem; }
.almanac-page .alm-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 1.4rem; }
.almanac-page .ring-map { width: 100%; max-width: 480px; justify-self: center; overflow: visible; }
.almanac-page .ring-tube { fill: none; stroke: rgba(111, 232, 255, .35); stroke-width: 7; }
.almanac-page .coil { fill: var(--a-cyan); opacity: .25; animation: coil 4.3s linear infinite; }
@keyframes coil { 0%, 90%, 100% { opacity: .2; } 4% { opacity: 1; } }
.almanac-page .dome-glass { fill: rgba(111, 232, 255, .14); }
.almanac-page .dome-rim { fill: none; stroke: var(--a-brass); stroke-width: 3; }
.almanac-page .dome-sun { fill: #fff2c8; filter: drop-shadow(0 0 4px #ffd27a); }
.almanac-page .map-dome text { fill: var(--a-cream); font: 650 12px ui-sans-serif, system-ui, sans-serif; }
.almanac-page .map-dome:hover .dome-rim, .almanac-page .map-dome:focus-visible .dome-rim { stroke: var(--a-cyan); stroke-width: 4; }
.almanac-page .map-depth { fill: var(--a-brass); font: 700 30px var(--a-serif); }
.almanac-page .map-sub { fill: var(--a-muted); font: 650 11px ui-sans-serif, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }

/* sections, divided by a riveted brass rule */
.almanac-page .alm-section { padding: clamp(48px, 7vw, 84px) 0; position: relative; }
.almanac-page .alm-section + .alm-section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1120px, calc(100% - 32px)); transform: translateX(-50%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--a-rule) 15%, var(--a-rule) 85%, transparent); }
.almanac-page .alm-section:nth-of-type(even) { background: linear-gradient(180deg, var(--a-deep-2), var(--a-deep)); }
.almanac-page .plaque { margin-top: 1.6rem; padding: 16px 20px; border: 1px solid var(--a-rule); border-radius: 14px; background: rgba(217, 178, 106, .06);
  font-family: var(--a-serif); font-size: 1.08rem !important; color: var(--a-cream) !important; box-shadow: inset 0 0 0 4px rgba(217, 178, 106, .05); }

/* the years: a brass line with lit coils on it */
.almanac-page .timeline { list-style: none; margin: 0; padding: 0 0 0 30px; border-left: 2px solid var(--a-rule); }
.almanac-page .timeline li { position: relative; margin: 0 0 26px; }
.almanac-page .timeline li::before { content: ""; position: absolute; left: -39px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--a-deep); border: 2px solid var(--a-cyan); box-shadow: 0 0 12px rgba(111, 232, 255, .55); }
.almanac-page .timeline .yr { display: inline-block; margin-bottom: 4px; font: 750 .7rem ui-sans-serif, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--a-cyan); }
.almanac-page .timeline p { margin: 0; }

/* trade: ledger cards */
.almanac-page .ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.almanac-page .ledger-card { position: relative; padding: 22px 20px 18px; border-radius: 16px; background: var(--a-glass); border: 1px solid var(--a-rule); }
.almanac-page .ledger-no { position: absolute; top: 14px; right: 16px; font: 700 1.6rem var(--a-serif); color: rgba(217, 178, 106, .35); }
.almanac-page .ledger-card p { margin: 0; font-size: .98rem; }

/* factions */
.almanac-page .factions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.almanac-page .faction { padding: 22px 22px 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(95, 160, 138, .14), rgba(6, 26, 38, .6)); border: 1px solid rgba(95, 160, 138, .35); }
.almanac-page .faction:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.almanac-page .faction .motto { margin: 0 0 .6rem; font-family: var(--a-serif); font-style: italic; color: var(--a-brass) !important; }
.almanac-page .faction p { font-size: .98rem; }
.almanac-page .faction-meta { margin: .6rem 0 0; font: 600 .8rem/1.5 ui-sans-serif, system-ui, sans-serif !important; color: var(--a-muted) !important; }
.almanac-page .questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 28px; }
.almanac-page .questions article { padding: 20px 22px; border-left: 3px solid var(--a-cyan); background: rgba(111, 232, 255, .05); border-radius: 0 14px 14px 0; }
.almanac-page .questions p { margin: 0; }

/* the domes: one pressure chamber each */
.almanac-page .chamber { margin: 36px 0 56px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, rgba(10, 37, 51, .95), rgba(4, 18, 27, .95)); border: 1px solid var(--a-rule);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 0 0 6px rgba(217, 178, 106, .05); }
.almanac-page .chamber-view { margin: 0; position: relative; }
.almanac-page .chamber-view img { display: block; width: 100%; height: clamp(220px, 38vw, 440px); object-fit: cover; }
.almanac-page .chamber-view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 37, 51, .95)); }
.almanac-page .chamber-head { display: flex; gap: 20px; align-items: center; padding: 0 clamp(18px, 4vw, 40px); margin-top: -56px; position: relative; z-index: 1; }
.almanac-page .chamber-head h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.almanac-page .chamber-motto { margin: .2rem 0 0; font-family: var(--a-serif); font-style: italic; font-size: 1.15rem !important; color: var(--a-cream) !important; }
.almanac-page .porthole { flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 12px; box-sizing: border-box;
  background: radial-gradient(circle at 38% 32%, rgba(111, 232, 255, .45), #0a2a38 66%); border: 7px solid var(--a-brass-2);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .65), 0 0 0 3px #5d4420, 0 0 30px rgba(111, 232, 255, .25); }
.almanac-page .porthole span { font: 750 .72rem/1.2 ui-sans-serif, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--a-cream); }
.almanac-page .gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 22px clamp(18px, 4vw, 40px) 0; }
.almanac-page .gauges div { padding: 10px 14px; border-radius: 12px; background: rgba(217, 178, 106, .07); border: 1px solid rgba(217, 178, 106, .22); }
.almanac-page .gauges dt { font: 750 .64rem ui-sans-serif, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--a-brass); }
.almanac-page .gauges dd { margin: 3px 0 0; font: 600 .92rem/1.4 ui-sans-serif, system-ui, sans-serif; color: var(--a-cream); }
.almanac-page .chamber-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; padding: 10px clamp(18px, 4vw, 40px) 36px; }
.almanac-page .happening { margin-top: 1.3rem; padding: 18px 20px; border-radius: 16px; background: radial-gradient(120% 100% at 0% 0%, rgba(111, 232, 255, .16), rgba(111, 232, 255, .03)); border: 1px solid rgba(111, 232, 255, .3); }
.almanac-page .happening h4 { margin-top: 0; color: var(--a-cyan); }
.almanac-page .happening p { margin: 0; font-size: .98rem; }
.almanac-page .plain { list-style: none; margin: 0; padding: 0; }
.almanac-page .plain li { margin: 0 0 10px; line-height: 1.55; font-size: .96rem; }
.almanac-page .plain strong { color: var(--a-cream); }
.almanac-page .plain em { display: block; color: var(--a-brass); font-family: var(--a-serif); }
.almanac-page .people q { display: block; margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--a-rule); font-family: var(--a-serif); font-style: italic; color: var(--a-cream); }
.almanac-page .wrong { margin-top: 1.4rem; padding-top: 14px; border-top: 1px dashed var(--a-rule); font-size: .96rem !important; }
.almanac-page .wrong span { display: block; font: 750 .66rem ui-sans-serif, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--a-verdi); margin-bottom: 4px; }
.almanac-page .fine-print { margin-top: 2rem; font-size: .9rem !important; color: var(--a-muted) !important; }

@media (max-width: 860px) {
  .almanac-page .alm-hero-grid, .almanac-page .chamber-body { grid-template-columns: 1fr; }
  .almanac-page .ring-map { max-width: 380px; }
  .almanac-page .chamber-head { flex-direction: column; align-items: flex-start; margin-top: -64px; gap: 10px; }
  .almanac-page .porthole { width: 92px; height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .almanac-page .caustics, .almanac-page .coil { animation: none; }
}
