/* ==========================================================================
   WEEKEND ORBIT — a two-day planetarium for the city
   Direction: Retro-Futurist Space, overridden to a paper almanac/orrery.
   Display Oswald · Body Literata · Data IBM Plex Mono
   ========================================================================== */

@font-face {
  font-family: "Oswald";
  src: url("assets/oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #efe8d8;
  --paper-2: #f6f1e5;
  --paper-3: #e4dac4;
  --ink: #1c2033;
  --muted: #565a6e;
  --faint: #67624f;
  --instrument: #171b33;
  --instrument-2: #0f1226;
  --accent: #c2410c;
  --accent-deep: #9c3407;
  --accent-ink: #fbf6ec;
  --gold: #e8c46a;
  --rule: rgba(28, 32, 51, 0.16);
  --rule-strong: rgba(28, 32, 51, 0.34);
  --on-inst: rgba(239, 232, 216, 0.74);
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 24px 60px rgba(15, 18, 38, 0.42);
}

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-kerning: normal;
  font-optical-sizing: auto;
}

.row-price,
.hero-meta,
.result-count,
.card-facts dd,
.row-time,
.day-heading-count {
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; }

img, svg { max-width: 100%; }

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow-on-dark { color: var(--gold); }

.section-title {
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.section-title-dark { color: var(--paper); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-ghost {
  border-color: var(--rule-strong);
  color: var(--ink);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:active { transform: scale(0.97); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.brand:active,
.site-nav a:active,
.colophon-col a:active,
.skip-link:active {
  transform: scale(0.97);
}
.dial-star:active .dot { fill: #fff3d6; }
/* keep a visible ring even on legacy/plain focus paths */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  padding: 10px clamp(20px, 4vw, 48px);
  background: rgba(239, 232, 216, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
}
.brand-mark .brand-dot { fill: var(--accent); stroke: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 16px;
}
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  padding-inline-end: 28px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.header-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.header-cta:active { transform: scale(0.97); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 112px);
}

.giant-48 {
  position: absolute;
  right: -0.06em;
  top: -0.08em;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(180px, 34vw, 520px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(28, 32, 51, 0.05);
  pointer-events: none;
  user-select: none;
}
@supports (-webkit-text-stroke: 1px #000) {
  .giant-48 {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(28, 32, 51, 0.13);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}

.hero-copy { min-width: 0; }

.h1 {
  margin: 14px 0 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(58px, 11vw, 172px);
  line-height: 0.88;
  letter-spacing: -0.025em;
}
.h1-line { display: block; }
.h1-outline { color: var(--accent); }
@supports (-webkit-text-stroke: 1px #000) {
  .h1-outline {
    color: transparent;
    -webkit-text-stroke: 2.2px var(--ink);
  }
}

.hero-lede {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.6;
  color: #33374a;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span { position: relative; }
.hero-meta span + span::before {
  content: "✳";
  position: absolute;
  left: -15px;
  color: var(--accent);
}

/* Dial ------------------------------------------------------------------ */

.hero-instrument { margin: 0; min-width: 0; }

.dial {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 44px rgba(15, 18, 38, 0.3));
}
.dial .disc { fill: var(--instrument); }
.dial .rim { fill: none; stroke: rgba(232, 196, 106, 0.42); stroke-width: 1.5; }
.dial .field-star { fill: rgba(239, 232, 216, 0.32); }
.dial .ring-outer { fill: none; stroke: rgba(239, 232, 216, 0.5); stroke-width: 1.2; }
.dial .ring-fine { fill: none; stroke: rgba(239, 232, 216, 0.18); stroke-width: 0.8; }
.dial .tick { stroke: rgba(239, 232, 216, 0.24); stroke-width: 1; }
.dial .tick-major { stroke: rgba(239, 232, 216, 0.6); stroke-width: 1.5; }
.dial .hour-label {
  fill: rgba(239, 232, 216, 0.72);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.dial .day-band-sat { fill: none; stroke: rgba(239, 232, 216, 0.14); stroke-width: 1; }
.dial .day-band-sun { fill: none; stroke: rgba(239, 232, 216, 0.26); stroke-width: 1; }
.dial .day-label {
  fill: rgba(239, 232, 216, 0.55);
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.2em;
}
.dial .leader { stroke: rgba(239, 232, 216, 0.2); stroke-width: 1; }
.dial .hit { fill: transparent; r: 24px; pointer-events: all; }
.dial .halo {
  fill: var(--gold);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.dial .dot {
  fill: var(--gold);
  animation: twinkle 5.5s ease-in-out infinite;
  animation-delay: var(--tw, 0s);
}
.dial .star-label {
  fill: rgba(239, 232, 216, 0.75);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.dial-star { cursor: pointer; outline-offset: 3px; }
.dial-star:focus-visible { outline: 2px solid var(--gold); border-radius: 50%; }
.dial-star[data-saved="true"] .dot { fill: #ff7a3c; }
.dial-star.is-lit .halo { opacity: 0.65; }
.dial-star.is-lit .dot { animation: none; fill: #fff3d6; }
.dial-star.is-dim { opacity: 0.2; transition: opacity 0.2s var(--ease); }
.dial .sweep {
  transform-box: view-box;
  transform-origin: 340px 340px;
  animation: sweep 90s linear infinite;
}
.dial .sweep line { stroke: rgba(232, 196, 106, 0.5); stroke-width: 1; }
.dial .sweep circle { fill: var(--gold); }
.dial .hub { fill: rgba(239, 232, 216, 0.85); }
.dial .hub-inner { fill: var(--instrument); }

.dial-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.caption-key { color: var(--ink); }
.caption-key::before {
  content: "●";
  color: var(--accent);
  margin-right: 6px;
  font-size: 9px;
  vertical-align: 1px;
}
.caption-note { flex-basis: 100%; text-transform: none; letter-spacing: 0.02em; }

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* --------------------------------------------------------------------------
   Ledger
   -------------------------------------------------------------------------- */

.ledger-section {
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 64px);
}

.section-head {
  max-width: 1360px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px 48px;
  align-items: end;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 22px;
}
.section-head .section-title { margin-top: 10px; }
.section-note {
  max-width: 42ch;
  font-size: 16px;
  color: var(--muted);
}

.controls {
  max-width: 1360px;
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-search { flex: 1 1 260px; }
.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.field select { min-width: 190px; }

.saved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.saved-toggle[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.saved-toggle:active { transform: scale(0.97); }
.saved-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
}
.saved-toggle[aria-pressed="true"] .saved-badge {
  background: var(--accent-ink);
  color: var(--accent-deep);
}

.result-count {
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger-wrap { max-width: 1360px; margin: 0 auto; }

.day-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-top: 44px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-size: clamp(22px, 2.6vw, 34px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.day-heading:first-child { margin-top: 0; }
.day-heading-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
}
.day-heading-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.ledger { list-style: none; margin: 0; padding: 0; }

.event-row {
  display: grid;
  grid-template-columns: 52px 104px minmax(0, 1fr) 76px 128px;
  gap: 20px;
  align-items: start;
  padding: 20px 8px;
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.18s var(--ease);
}
.event-row[hidden] { display: none; }

.row-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
  padding-top: 4px;
  transition: color 0.18s var(--ease);
}
.row-when {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.row-when b { color: var(--ink); letter-spacing: 0.12em; font-weight: 400; }
.row-time { font-size: 13px; color: var(--ink); letter-spacing: 0.02em; }
.row-dash { padding: 0 2px; color: var(--faint); }

.row-body { min-width: 0; }
.row-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.row-meta {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.cat-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.row-summary {
  display: block;
  margin-top: 9px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.row-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 23px;
  text-align: right;
  letter-spacing: -0.01em;
}

.open-item {
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.open-item:active { transform: scale(0.97); }

.event-row.is-lit { background: rgba(194, 65, 12, 0.08); }
.event-row.is-lit .row-index { color: var(--accent); }

.empty-state {
  margin-top: 32px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px dashed var(--rule-strong);
  border-radius: 2px;
  text-align: center;
  background: var(--paper-2);
}
.empty-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  text-transform: uppercase;
  line-height: 1.05;
}
.empty-note { margin: 12px auto 22px; max-width: 40ch; color: var(--muted); }

/* --------------------------------------------------------------------------
   Interlude
   -------------------------------------------------------------------------- */

.interlude {
  position: relative;
  overflow: clip;
  background: var(--instrument);
  color: var(--paper);
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(64px, 9vw, 132px) clamp(20px, 5vw, 64px) clamp(40px, 5vw, 64px);
}
.interlude-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.mini-dial {
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
  fill: none;
  stroke: rgba(239, 232, 216, 0.4);
  stroke-width: 1.4;
}
.mini-dial .mini-sweep {
  transform-box: view-box;
  transform-origin: 60px 60px;
  animation: sweep 26s linear infinite;
}
.mini-dial .mini-sweep line { stroke: var(--gold); }
.mini-dial .mini-sweep circle { fill: var(--gold); stroke: none; }
.mini-dial .mini-hub { fill: var(--gold); stroke: none; }
.interlude .section-title { margin-top: 10px; }

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(239, 232, 216, 0.3);
}
.legend-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(239, 232, 216, 0.18);
}
.legend-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.legend-body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--on-inst);
}
.legend-body b { color: var(--paper); font-weight: 600; }

.interlude-foot {
  max-width: 1360px;
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(239, 232, 216, 0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(239, 232, 216, 0.6);
}

/* --------------------------------------------------------------------------
   Colophon
   -------------------------------------------------------------------------- */

.colophon {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px) 72px;
}
.colophon-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}
.brand-name-lg { font-size: 24px; letter-spacing: 0.12em; }
.colophon-brand p { max-width: 42ch; color: var(--muted); margin-top: 12px; font-size: 15px; }
.colophon-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.colophon-col ul { list-style: none; margin: 12px 0 0; padding: 0; }
.colophon-col li { padding: 4px 0; color: var(--muted); font-size: 15px; }
.colophon-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.colophon-note { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   Observation card (dialog)
   -------------------------------------------------------------------------- */

.card-dialog {
  width: min(640px, 94vw);
  max-width: none;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
}
.card-dialog::backdrop {
  background: rgba(15, 18, 38, 0.66);
  backdrop-filter: blur(2px);
}
.card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}
.card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed rgba(28, 32, 51, 0.28);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.card-plate {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.card-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.card-close:active { transform: scale(0.97); }

.card-title {
  margin-top: 22px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.card-meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.card-body { margin-top: 22px; }
.card-body p {
  margin: 0 0 14px;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.65;
}
.card-body p:last-child { margin-bottom: 0; }

.card-facts {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}
.card-facts div { min-width: 0; }
.card-facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.card-facts dd {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.card-actions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.save-item[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.save-item .save-star { color: var(--accent); }
.save-item[aria-pressed="true"] .save-star { color: var(--gold); }
.save-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.noscript-note {
  margin: 0 auto;
  max-width: 1360px;
  padding: 18px clamp(20px, 5vw, 64px);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-deep);
}

/* --------------------------------------------------------------------------
   Hover states (pointer only)
   -------------------------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .header-cta:hover { background: var(--accent); }
  .brand:hover .brand-mark { stroke: var(--accent); }
  .site-nav a:hover { color: var(--ink); }
  .dial-star:hover .halo { opacity: 0.4; }
  .dial-star:hover .dot { animation: none; fill: #fff3d6; }
  .event-row:hover { background: rgba(28, 32, 51, 0.05); }
  .event-row:hover .row-index { color: var(--accent); }
  .event-row:hover .open-item { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .open-item:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .saved-toggle:hover { border-color: var(--ink); }
  .saved-toggle[aria-pressed="true"]:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
  .field input:hover, .field select:hover { border-color: var(--ink); }
  .card-close:hover { background: var(--ink); color: var(--paper); }
  .save-item:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
  .colophon-col a:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
  .legend-item:hover .legend-num { color: var(--paper); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-instrument { max-width: 560px; margin: 8px auto 0; }
  .section-head { grid-template-columns: 1fr; }
  .interlude-inner { grid-template-columns: 1fr; }
  .colophon-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .site-nav { grid-column: 1 / -1; order: 3; }
  .event-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 6px 16px;
    padding-block: 20px;
  }
  .row-index { grid-column: 1; grid-row: 1; }
  .row-when { grid-column: 2; grid-row: 1; flex-direction: row; align-items: baseline; gap: 10px; }
  .row-body { grid-column: 2 / -1; grid-row: 2; margin-top: 8px; }
  .row-price { grid-column: 3; grid-row: 1; font-size: 20px; }
  .open-item { grid-column: 2 / -1; grid-row: 3; margin-top: 14px; width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .h1 { font-size: clamp(52px, 17vw, 96px); }
  .hero-lede { font-size: 17px; }
  .hero-meta { gap: 8px 18px; }
  .hero-meta span + span::before { left: -12px; }
  .dial .hit { r: 44px; }
  .dial .dot { r: 10px; }
  .dial .halo { r: 17px; }
  .dial .star-label { display: none; }
  .giant-48 { font-size: 46vw; right: -0.12em; }
  .card-facts { grid-template-columns: 1fr; gap: 12px; }
  .legend-item { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .colophon-inner { grid-template-columns: 1fr; }
  .result-count { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .dial .sweep,
  .mini-dial .mini-sweep { animation: none; }
}
