/* ═══════════════════════════════════════════════════════════
   WEEKEND ALMANAC — an art-deco almanac for the city weekend
   Night green ◆ cream daylight ◆ gold line-work
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'DM Serif Display';
  src: url('assets/dm-serif.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #123B2E;         /* night sections */
  --green-deep: #0C2A21;    /* vignettes, footer  */
  --cream: #F5EEDD;         /* daylight programme */
  --ink: #1B2A24;           /* text on cream      */
  --muted-night: #D8CBA8;   /* secondary on green */
  --muted-day: #5C5544;     /* secondary on cream */
  --gold: #C9A227;          /* rules, stars, CTA  */
  --gold-deep: #8C6D12;     /* large gold text on cream */
  --gold-ink: #7A5E0E;      /* small gold labels on cream (≥4.5:1) */
  --hairline-night: rgba(201, 162, 39, 0.28);
  --hairline-day: rgba(18, 59, 46, 0.18);
  --serif: 'DM Serif Display', 'Georgia', serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background: var(--green-deep);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ── shared focus treatment (both selectors, restyled) ── */
:where(a, button, input, select, [tabindex]):focus {
  outline: 2px solid rgba(201, 162, 39, 0.45);
  outline-offset: 3px;
}
:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold); color: var(--green-deep); }

/* the poster frame: a fixed gold double rule ringing the whole edition */
body::after {
  content: "";
  position: fixed;
  inset: clamp(6px, 0.8vw, 10px);
  border: 3px double rgba(201, 162, 39, 0.55);
  pointer-events: none;
  z-index: 60;
}

/* ──────────────────────────── masthead ─────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 42, 33, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px double var(--gold);
}
.masthead-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  min-height: 44px;
  align-items: center;
}
.brand span { color: var(--gold); }
.masthead-nav { display: flex; align-items: center; gap: 4px; }
.masthead-nav a {
  color: var(--muted-night);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 14px;
  display: inline-block;
  min-height: 44px;
  line-height: 18px;
  transition: color 200ms var(--ease);
}
.chip {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 11px 16px;
  margin-left: 12px;
  min-height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.chip .chip-count {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0;
  background: var(--gold);
  color: var(--green-deep);
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ─────────────────────────── hero ──────────────────────── */
.hero {
  background:
    radial-gradient(140% 100% at 50% -10%, #174734 0%, #103428 55%, #0C2A21 100%);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px) clamp(56px, 7vw, 96px);
  overflow: clip;
}
.hero-folio {
  max-width: 1240px;
  margin: 0 auto clamp(48px, 6vw, 88px);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline-night);
}
.hero-grid {
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  animation: rise 700ms var(--ease) both;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 7.5vw, 116px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 22px 0 24px;
  animation: rise 700ms var(--ease) 90ms both;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--muted-night);
  max-width: 54ch;
  margin-bottom: 36px;
  animation: rise 700ms var(--ease) 180ms both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: rise 700ms var(--ease) 270ms both;
}

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  min-height: 48px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 200ms var(--ease),
    color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn-gold { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }
.btn-line { background: transparent; color: var(--cream); border-color: var(--hairline-night); }
.btn-dark { background: var(--green); color: var(--cream); border-color: var(--green); }
.btn-line-dark { background: transparent; color: var(--green); border-color: rgba(18, 59, 46, 0.45); }

/* ── the hour dial ── */
.dial-wrap {
  animation: rise 900ms var(--ease) 240ms both;
  min-width: 0;
}
.dial { position: relative; }
.dial-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--gold);
}
.dial-rays { opacity: 0.32; animation: shimmer 9s ease-in-out infinite; }
.dial-arc { fill: none; stroke: var(--gold); }
.dial-arc-outer { stroke-width: 2.5; stroke-dasharray: 790; stroke-dashoffset: 790; animation: draw 1100ms var(--ease) 300ms forwards; }
.dial-arc-inner { stroke-width: 1.5; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1100ms var(--ease) 480ms forwards; opacity: 0.9; }
.dial-ticks { opacity: 0.85; }
.dial-hours text {
  font-family: var(--serif);
  font-size: 22px;
  fill: var(--gold);
  letter-spacing: 0.05em;
}
.dial-base { stroke: var(--gold); stroke-width: 1; opacity: 0.5; }
.dial-diamond { fill: var(--gold); }

.dial-points { position: absolute; inset: 0; }
.dial-pt {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  animation: ptIn 500ms var(--ease) calc(900ms + var(--d) * 90ms) forwards;
}
.pt-dot {
  display: block;
  width: 13px;
  height: 13px;
  margin: 15.5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2), 0 0 18px 4px rgba(201, 162, 39, 0.6);
  animation: twinkle 5s ease-in-out calc(var(--d) * 400ms) infinite;
}
.pt-sun .pt-dot {
  background: transparent;
  border: 2.5px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12), 0 0 12px 2px rgba(201, 162, 39, 0.45);
}
.dial-pt.is-saved .pt-dot {
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.35), 0 0 16px 3px rgba(201, 162, 39, 0.7);
}
.pt-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 210px;
  text-align: left;
  background: var(--green-deep);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  z-index: 6;
}
.pt-tip strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.dial-legend {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-night);
  margin-top: 14px;
}
.dial-legend .lg-sat { color: var(--gold); }
.dial-legend .lg-sun { color: var(--gold); }
.dial-caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted-night);
  margin-top: 8px;
}

/* ─────────────────── programme (cream daylight) ────────── */
.programme-sec {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(64px, 8vw, 112px) clamp(20px, 4vw, 48px) clamp(72px, 9vw, 128px);
  border-top: 3px double var(--gold);
}
.prog-head { text-align: center; max-width: 1240px; margin: 0 auto clamp(40px, 5vw, 64px); }
.prog-head h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--green);
}
.prog-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-top: 12px;
}

.toolbar {
  max-width: 1240px;
  margin: 0 auto clamp(40px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 20px 28px;
  padding: 22px 24px;
  background: rgba(201, 162, 39, 0.07);
  border: 1px solid var(--hairline-day);
  border-radius: 2px;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 7px;
}
.field input,
.field select {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: #FBF5E6;
  border: 1px solid rgba(18, 59, 46, 0.3);
  border-bottom: 2px solid var(--gold-deep);
  border-radius: 2px;
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.field input { width: 100%; }
.field-search { flex: 1 1 240px; }
.field-cat { flex: 1 1 190px; }
.field-cat select {
  width: 100%;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%238C6D12' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field-saved button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: transparent;
  border: 1.5px solid var(--green);
  border-radius: 2px;
  padding: 12px 20px;
  min-height: 48px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 180ms var(--ease);
}
.field-saved button[aria-pressed="true"] {
  background: var(--green);
  color: var(--cream);
}
.field-saved button [aria-hidden] { color: var(--gold-deep); }
.field-saved button[aria-pressed="true"] [aria-hidden] { color: var(--gold); }
.prog-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-day);
  padding-bottom: 14px;
}

.prog-grid {
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(32px, 4vw, 64px);
}
.day-head {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  padding-bottom: 14px;
  border-bottom: 3px double var(--gold);
  margin-bottom: 6px;
}
.day-head span { color: var(--gold-ink); }
.day-list { list-style: none; }

.entry {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 24px 10px;
  border-bottom: 1px solid var(--hairline-day);
  align-items: start;
  transition: background-color 200ms var(--ease);
}
.entry-num {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--gold-deep);
  position: relative;
  padding-top: 2px;
}
.entry-star {
  position: absolute;
  top: -4px;
  right: 2px;
  font-size: 13px;
  color: var(--gold-deep);
  opacity: 0;
  transform: scale(0.4) rotate(-72deg);
  transition: opacity 220ms var(--ease), transform 260ms var(--ease);
}
.entry.is-saved .entry-star { opacity: 1; transform: scale(1) rotate(0deg); }

.entry-title { margin: 0; }
.entry-title button {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--green);
  background: none;
  border: 0;
  padding: 2px 0;
  text-align: left;
  cursor: pointer;
  display: inline;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 240ms var(--ease), color 200ms var(--ease);
}
.entry-meta {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-day);
  margin-top: 8px;
}
.entry-meta b { color: var(--gold-ink); font-weight: 600; }
.entry-summary {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted-day);
  margin-top: 8px;
  max-width: 52ch;
}
.entry-actions { display: flex; align-items: start; }
.save-quick {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(18, 59, 46, 0.25);
  border-radius: 2px;
  background: transparent;
  color: rgba(27, 42, 36, 0.4);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease),
    background-color 200ms var(--ease), transform 180ms var(--ease);
}
.save-quick[aria-pressed="true"] {
  color: var(--gold-deep);
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
}

/* ── empty state ── */
.empty {
  max-width: 620px;
  margin: 24px auto 0;
  text-align: center;
  padding: 56px 24px;
  border: 1px solid var(--hairline-day);
  border-radius: 2px;
}
.empty-mark { font-size: 30px; color: var(--gold); }
.empty-title {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--green);
  margin-top: 12px;
}
.empty-copy { color: var(--muted-day); margin: 10px 0 26px; }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ─────────────────── evening notes (green band) ─────────── */
.notes {
  background:
    radial-gradient(120% 130% at 50% 0%, #16442F 0%, #103428 60%, #0C2A21 100%);
  border-top: 3px double var(--gold);
  padding: clamp(72px, 9vw, 128px) clamp(20px, 4vw, 48px);
}
.notes-inner { max-width: 820px; margin-inline: auto; text-align: center; }
.notes h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 52px);
  color: var(--cream);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.notes-list { list-style: none; text-align: left; }
.note {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--hairline-night);
  align-items: start;
}
.note-num {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
  color: var(--gold);
}
.note h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 8px;
}
.note p { color: var(--muted-night); font-size: 16px; line-height: 1.65; }
.notes-fine {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-night);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-night);
}

/* ─────────────────────────── footer ────────────────────── */
.colophon { background: var(--green-deep); border-top: 3px double var(--gold); overflow: clip; }
.skyline { display: block; width: 100%; height: clamp(70px, 9vw, 120px); }
.skyline path { fill: rgba(201, 162, 39, 0.12); stroke: rgba(201, 162, 39, 0.4); stroke-width: 1; }
.skyline-lights rect { fill: var(--gold); animation: twinkle 4s ease-in-out infinite; }
.skyline-lights rect:nth-child(2n) { animation-delay: 1.6s; }
.skyline-lights rect:nth-child(3n) { animation-delay: 2.8s; }
.colophon-inner {
  max-width: 1240px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(48px, 6vw, 72px);
}
.colophon-brand {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--cream);
}
.colophon-line {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 10px;
}
.colophon-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 28px;
}
.colophon-nav a {
  color: var(--muted-night);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 14px;
  display: inline-block;
  min-height: 44px;
  transition: color 200ms var(--ease);
}
.colophon-fine {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-night);
  opacity: 0.85;
}

/* ──────────────── the engagement card (dialog) ─────────── */
.card-dlg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: transparent;
  border: 0;
  padding: clamp(12px, 3vw, 40px);
}
.card-dlg[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dlgIn 240ms var(--ease);
}
.card-dlg::backdrop {
  background: rgba(7, 26, 21, 0.62);
  backdrop-filter: blur(3px);
}
.card {
  position: relative;
  width: min(640px, 100%);
  max-height: min(92dvh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 50% 50% 4px 4px / 12% 12% 4px 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: cardIn 320ms var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(140, 109, 18, 0.4);
  border-radius: 50% 50% 2px 2px / 11.5% 11.5% 2px 2px;
  pointer-events: none;
}
.card-head {
  padding: clamp(52px, 9vw, 76px) clamp(24px, 5vw, 48px) 18px;
  text-align: center;
  border-bottom: 3px double var(--gold);
  position: relative;
}
.card-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.12;
  color: var(--green);
  padding-inline: 30px;
}
.card-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(18, 59, 46, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 180ms var(--ease);
}
.card-scroll {
  overflow-y: auto;
  padding: 26px clamp(24px, 5vw, 48px) 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}
.card-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}
.card-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
  border-top: 1px solid var(--hairline-day);
}
.card-facts > div {
  padding: 11px 4px 11px 0;
  border-bottom: 1px solid var(--hairline-day);
}
.card-facts > div:nth-child(odd) { padding-right: 18px; }
.card-facts > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--hairline-day); }
.card-facts dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.card-facts dd { font-size: 15px; color: var(--ink); margin-top: 3px; }
.card-body { margin-top: 24px; }
.card-body p { font-size: 15.5px; line-height: 1.65; color: var(--muted-day); }
.card-body p + p {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 162, 39, 0.07);
  color: var(--ink);
}
.card-plate {
  margin-top: 26px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  text-align: center;
}
.card-foot {
  padding: 18px clamp(24px, 5vw, 48px) 26px;
  text-align: center;
  border-top: 1px solid var(--hairline-day);
}
.card-save { width: 100%; max-width: 340px; }
.card-save[aria-pressed="true"] { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }

/* ─────────────────────────── keyframes ─────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ptIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.24; }
  50% { opacity: 0.38; }
}
@keyframes dlgIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─────────────────── hover states (fine pointers) ──────── */
@media (hover: hover) and (pointer: fine) {
  .masthead-nav a:hover { color: var(--gold); }
  .brand:hover span { text-shadow: 0 0 14px rgba(201, 162, 39, 0.6); }
  .chip:hover { background: var(--gold); color: var(--green-deep); }
  .chip:hover .chip-count { background: var(--green-deep); color: var(--gold); }
  .btn-gold:hover { background: #DCB63A; border-color: #DCB63A; transform: translateY(-2px); }
  .btn-line:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
  .btn-dark:hover { background: #1B4E3D; transform: translateY(-2px); }
  .btn-line-dark:hover { border-color: var(--green); transform: translateY(-2px); }
  .dial-pt:hover .pt-dot { box-shadow: 0 0 0 5px rgba(201, 162, 39, 0.3), 0 0 18px 4px rgba(201, 162, 39, 0.75); }
  .dial-pt:hover .pt-tip,
  .dial-pt:focus-visible .pt-tip,
  .dial-pt:focus-within .pt-tip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .entry:hover { background: rgba(201, 162, 39, 0.07); }
  .entry:hover .entry-num { color: var(--gold-deep); }
  .entry-title button:hover { background-size: 100% 2px; color: #0F2E24; }
  .save-quick:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
  .field input:hover, .field select:hover { border-color: var(--gold-deep); }
  .field-saved button:hover { transform: translateY(-2px); border-color: var(--gold-deep); }
  .colophon-nav a:hover { color: var(--gold); }
  .card-close:hover { background: var(--green); color: var(--cream); }
  .card-save:hover { background: #1B4E3D; transform: translateY(-2px); }
  .card-save[aria-pressed="true"]:hover { background: #DCB63A; }
}
.entry-title button:focus-visible { background-size: 100% 2px; }

/* press feedback everywhere */
.btn:active, .chip:active, .save-quick:active, .dial-pt:active .pt-dot,
.card-close:active, .field-saved button:active {
  transform: scale(0.96);
}
.entry-title button:active { color: var(--gold-deep); }

/* ─────────────────────── responsive ────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .dial-wrap { max-width: 640px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .prog-grid { grid-template-columns: 1fr; gap: 40px; }
  .toolbar { padding: 18px 16px; gap: 18px; }
  .prog-count { margin-left: 0; flex-basis: 100%; padding-bottom: 0; }
  .entry { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; padding: 22px 4px; }
  .entry-num { font-size: 28px; }
  .entry-title button { font-size: 20px; }
  .note { grid-template-columns: 56px 1fr; gap: 16px; }
  .note-num { font-size: 40px; }
  .card-facts { grid-template-columns: 1fr; }
  .card-facts > div:nth-child(even) { padding-left: 4px; border-left: 0; }
  .card-facts > div:nth-child(odd) { padding-right: 4px; }
}
@media (max-width: 560px) {
  .masthead-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 10px;
  }
  .brand { min-height: 40px; }
  .masthead-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-inline-end: 24px;
    scrollbar-width: none;
    margin-inline: -20px;
    padding-inline-start: 20px;
  }
  .masthead-nav::-webkit-scrollbar { display: none; }
  .chip { margin-left: 4px; flex-shrink: 0; }
  .hero h1 { font-size: clamp(48px, 12.5vw, 64px); }
  .card-close { top: 12px; right: 12px; }
  .card-title { padding-left: 12px; padding-right: 48px; }
  .entry {
    grid-template-columns: 1fr auto;
    grid-template-areas: "num actions" "main main";
    row-gap: 6px;
  }
  .entry-num { grid-area: num; }
  .entry-actions { grid-area: actions; justify-self: end; }
  .entry-main { grid-area: main; }
  .pt-tip { max-width: 170px; font-size: 12px; }
  .pt-nudge { margin-top: -18px; }
}

/* ─────────────────── reduced motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
