/* =============================================================================
   Classical Logic & Rhetoric — micro-learning styles
   Restrained, collegiate, serif. Warm off-white, single deep-navy accent.
   Mobile-first; scales up at min-width breakpoints.
   ========================================================================== */

:root {
  /* ---- Hillsdale brand (from online.hillsdale.edu) ---- */
  --hc-blue: #1b6ef3; /* bright top-rule / focus accent */
  --hc-blue-cta: #3b7ad7; /* primary CTA blue */
  --hc-blue-cta-700: #2f63b4; /* CTA hover */
  --hc-black: #0c0d10; /* nav + hero background */
  --hc-black-soft: #15171d; /* hero gradient stop */
  --hc-ink-on-dark: #f4f5f7; /* text on dark chrome */
  --hc-dim-on-dark: #aeb6c6; /* muted text on dark chrome */

  /* Official Hillsdale Blue (PMS 654 C) — crest / skip-link. */
  --navy: #003a70;
  --navy-700: #002d57;
  --navy-300: #6b7790;

  /* ---- Dark content surfaces (full cinematic; matches the catalog) ---- */
  --bg: #0a0b0e;             /* near-black page background */
  --surface: #0e0f13;        /* card: barely above black */
  --surface-2: #131419;      /* inset: recap, questions, inputs */
  --surface-locked: #0c0d10; /* locked card */
  --paper: var(--bg);        /* legacy aliases now resolve dark */
  --paper-card: var(--surface);
  --ink: #eef0f4;            /* primary text (soft white, never pure) */
  --ink-soft: #aeb6c6;       /* secondary text */
  --rule: rgba(255, 255, 255, 0.12);      /* the defining thin outline */
  --rule-strong: rgba(255, 255, 255, 0.2);
  --gold: #d8b566;           /* gold accent on dark */
  --gold-bright: #e3c887;    /* brighter gold (active laurel) */
  --gold-deep: #b8923f;      /* wax-seal body */
  --ok: #5bb98a;             /* complete (green) on dark */
  --warn: #e0a06a;           /* warning text on dark */
  --risk: #d68a4a;           /* streak-at-risk amber on dark */
  --focus: var(--hc-blue);

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --read: 'Crimson Pro', Georgia, serif;
  --ui: 'Inter', system-ui, -apple-system, sans-serif;

  --measure: 38rem;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

html {
  color-scheme: dark; /* native controls (time picker, scrollbars) render dark */
}

* {
  box-sizing: border-box;
}

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

em {
  font-style: italic;
}

/* ---- Accessibility helpers ------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ---- Sticky top bar / progress ------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--hc-black);
  color: var(--hc-ink-on-dark);
  border-top: 3px solid var(--hc-blue); /* the bright Hillsdale rule */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  padding-top: env(safe-area-inset-top);
}

.topbar__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.55rem 1.1rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.topbar__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ---- Brand: official Hillsdale white logo lockup ---- */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand__logo {
  display: block;
  height: 1.7rem; /* ~27px; width auto-scales to the 198:53 lockup */
  width: auto;
}

.topbar__progress {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.topbar__count {
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--hc-dim-on-dark);
}

.progressbar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.progressbar__fill {
  height: 100%;
  width: 0%;
  background: var(--hc-blue);
  transition: width 0.4s ease;
}

/* ---- Always-visible streak pill (primary mobile cue) ---- */
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.9rem;
  padding: 0.2rem 0.7rem 0.2rem 0.55rem;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--hc-dim-on-dark);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.2s ease;
}
.streak-pill:hover {
  background: rgba(255, 255, 255, 0.12);
}
.streak-pill__laurel {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  color: var(--gold);
}
.streak-pill--none .streak-pill__laurel {
  color: var(--hc-dim-on-dark);
}
.streak-pill__count {
  font-variant-numeric: tabular-nums;
}
.streak-pill--active {
  color: #fff;
  background: rgba(216, 181, 102, 0.16);
  border-color: rgba(216, 181, 102, 0.5);
}
.streak-pill--active .streak-pill__laurel {
  color: var(--gold-bright);
}
.streak-pill--risk {
  color: #fff;
  border-color: var(--risk);
  background: rgba(194, 119, 47, 0.18);
  animation: pill-pulse 1.8s ease-in-out infinite;
}
.streak-pill--risk .streak-pill__laurel {
  color: var(--risk);
}
.streak-pill--bump {
  animation: pill-bump 0.45s ease;
}
@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 119, 47, 0); }
  50% { box-shadow: 0 0 0 4px rgba(194, 119, 47, 0.25); }
}
@keyframes pill-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ---- Dark cinematic hero -------------------------------------------------- */

.hero {
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(27, 110, 243, 0.16), transparent 55%),
    linear-gradient(180deg, var(--hc-black) 0%, var(--hc-black-soft) 100%);
  color: var(--hc-ink-on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.8rem 1.1rem 2rem;
}

.hero__kicker {
  margin: 0 0 0.5rem;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hc-blue);
}

.hero__title {
  font-size: clamp(1.9rem, 6.5vw, 2.9rem);
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 0.7rem;
}

.hero__lede {
  max-width: var(--measure);
  color: var(--hc-dim-on-dark);
  margin: 0 0 1.2rem;
  font-size: 1.05rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.hero__momentum {
  margin: 0;
  font-family: var(--ui);
  font-size: 0.9rem;
  color: var(--hc-dim-on-dark);
}

/* ---- Streak panel (on the dark hero) -------------------------------------- */

.streak-panel {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.streak-panel__title {
  margin: 0 0 0.7rem;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hc-dim-on-dark);
}

.streak-panel__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.streak-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.streak-figure__wreath {
  display: flex;
  align-items: center;
  justify-content: center;
}
.streak-figure__sprig {
  width: 1.35rem;
  height: 2.7rem;
  flex: none;
  color: var(--gold);
}
.streak-figure__sprig--r {
  transform: scaleX(-1); /* mirror the branch to flank the other side */
}
.streak-figure__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin: 0 0.2rem;
}
.streak-figure__label {
  font-family: var(--ui);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--hc-dim-on-dark);
}

/* Daily-goal ring */
.streak-ring {
  position: relative;
  width: 72px;
  height: 72px;
  flex: none;
}
.streak-ring svg {
  transform: rotate(-90deg); /* start the fill at 12 o'clock */
}
.streak-ring__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 6;
}
.streak-ring__fill {
  fill: none;
  stroke: var(--hc-blue);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  transition: stroke-dashoffset 0.6s ease;
}
.streak-ring__fill.is-complete {
  stroke: var(--gold-bright);
}
.streak-ring__text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.streak-panel__best {
  margin: 0.9rem 0 0;
  font-family: var(--ui);
  font-size: 0.88rem;
  color: var(--hc-dim-on-dark);
}
.streak-panel__best strong {
  color: var(--gold-bright);
}
.streak-goal-note {
  margin: 0.3rem 0 0;
  font-family: var(--ui);
  font-size: 0.88rem;
  color: var(--hc-ink-on-dark);
}

/* This-week dot calendar */
.streak-week {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.9rem;
}
.streak-week__day {
  flex: 1;
  display: grid;
  place-items: center;
  height: 1.9rem;
  border-radius: 6px;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hc-dim-on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
}
.streak-week__day.is-active {
  color: var(--hc-black);
  background: var(--gold-bright);
}
.streak-week__day.is-today {
  border-color: var(--hc-blue);
}

/* Earned-badge chips */
.streak-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  padding: 0;
}
.streak-badges[hidden] {
  display: none;
}
.streak-badges__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem 0.2rem 0.5rem;
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hc-ink-on-dark);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.streak-badges__icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  color: var(--gold);
}

/* ---- Layout --------------------------------------------------------------- */

main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 4rem;
}

.callout {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  background: var(--paper-card);
}
.callout--warn {
  border-color: rgba(224, 160, 106, 0.4);
  background: rgba(224, 160, 106, 0.08);
  color: var(--warn);
}

/* ---- Reminder CTA + collapsible panel (inside the streak panel) ----------- */

.reminder-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem 0.85rem;
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.reminder-cta[hidden] {
  display: none;
}
.reminder-cta:hover {
  background: rgba(255, 255, 255, 0.08);
}
.reminder-cta__chev {
  color: var(--hc-dim-on-dark);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.reminder-cta[aria-expanded='true'] .reminder-cta__chev {
  transform: rotate(90deg);
}

.reminder {
  margin: 0.7rem 0 0;
  padding: 0.9rem 0 0.2rem;
  border-top: 1px solid var(--rule);
}
.reminder[hidden] {
  display: none;
}
.reminder__lede {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: var(--measure);
}
.reminder__steps {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--ui);
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.reminder__steps li {
  padding-left: 0.15rem;
}
.reminder__steps li::marker {
  color: var(--gold);
  font-weight: 700;
}
.reminder__steps li.reminder__note {
  list-style: none;
  margin-left: -1.25rem;
  margin-top: 0.1rem;
  color: var(--hc-dim-on-dark);
  font-style: italic;
  font-size: 0.84rem;
}
.reminder__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.reminder__hint {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.reminder__form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 14rem;
}
.field__label {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink);
}
input[type='time'] {
  font: inherit;
  font-size: 1.05rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: #0f1116;
  color: var(--ink);
}
.reminder__tz {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.reminder__tz strong {
  color: var(--gold);
}
.reminder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.reminder__status {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.reminder__status--ok {
  color: var(--ok);
}
.reminder__status--warn {
  color: var(--warn);
}

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

.btn {
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.62rem 1.15rem;
  background: var(--hc-blue-cta);
  color: #fff;
  border: 1px solid var(--hc-blue-cta);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  background: var(--hc-blue-cta-700);
  border-color: var(--hc-blue-cta-700);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Outlined on black — the Hillsdale catalog chip/button style. */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}
/* Completion action reads gold (distinct from the blue "play"). */
.btn--complete {
  margin-top: 0.4rem;
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--complete:hover {
  background: rgba(216, 181, 102, 0.1);
}

/* Bright royal-blue primary CTA (matches the hero button on hillsdale.edu). */
.btn--cta {
  background: var(--hc-blue-cta);
  border-color: var(--hc-blue-cta);
  font-size: 1.05rem;
  padding: 0.72rem 1.4rem;
  box-shadow: 0 2px 10px rgba(59, 122, 215, 0.35);
}
.btn--cta:hover {
  background: var(--hc-blue-cta-700);
  border-color: var(--hc-blue-cta-700);
}

/* ---- Lesson stepper ------------------------------------------------------- */

.lessons {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  counter-reset: lesson;
}

.lesson {
  position: relative;
  margin: 0 0 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.lesson--locked .card {
  background: var(--surface-locked);
  border-style: dashed;
}

.lesson--complete .card {
  border-color: rgba(216, 181, 102, 0.35); /* faint gold edge when done */
}

.card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem 0.4rem;
}

.card__badge {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--hc-blue);
  background: transparent;
  border: 1px solid var(--hc-blue);
  border-radius: 50%;
  font-size: 1.05rem;
}
.lesson--locked .card__badge {
  color: var(--navy-300);
  border-color: var(--rule-strong);
}
.lesson--complete .card__badge {
  color: #0a0b0e;
  background: var(--gold);
  border-color: var(--gold);
}

.card__heading {
  flex: 1;
}
.card__title {
  margin: 0.15rem 0 0.2rem;
  font-size: 1.4rem;
}
.card__meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-family: var(--serif);
}
.card__dot {
  margin: 0 0.4rem;
  color: var(--rule-strong);
}
.card__status {
  letter-spacing: 0.02em;
}
.lesson--complete .card__status {
  color: var(--ok);
}

.card__body {
  padding: 0.4rem 1.2rem 1.2rem;
}

.recap {
  margin: 0.4rem 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold);
  background: var(--surface-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.card__controls {
  margin: 0.6rem 0 0.4rem;
}

.lesson__lock {
  margin: 0;
  padding: 0.9rem 1.2rem 1.2rem 4rem;
  color: var(--navy-300);
  font-style: italic;
  font-size: 0.98rem;
}

/* ---- Player --------------------------------------------------------------- */

.player-slot:empty {
  display: none;
}

.player {
  margin: 0.6rem 0 0.9rem;
}
.player__frame {
  width: 100%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
/* Vimeo's responsive embed injects its own padded wrapper; ensure radius clips. */
.player__frame iframe {
  display: block;
  width: 100%;
}
.player__cc-note {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---- Questions ------------------------------------------------------------ */

.questions {
  margin: 1rem 0 0.4rem;
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
}
.questions__note {
  margin: 0 0 0.8rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.questions__list {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.questions__item {
  padding-left: 0.2rem;
}
.questions__label {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.questions__input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: #0f1116;
  color: var(--ink);
  resize: vertical;
}
.questions__input::placeholder {
  color: #6b7280;
}

/* ---- Transcript ----------------------------------------------------------- */

.transcript {
  margin: 1rem 0 0;
  border-top: 1px solid var(--rule);
  padding-top: 0.7rem;
}
.transcript > summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
}
.transcript > summary::-webkit-details-marker {
  display: none;
}
.transcript > summary::before {
  content: '▸';
  color: var(--gold);
  transition: transform 0.15s ease;
}
.transcript[open] > summary::before {
  transform: rotate(90deg);
}
.transcript__body {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75; /* extra leading for long-form reading on dark */
  max-width: var(--measure);
}

/* ---- Course done ---------------------------------------------------------- */

.done {
  margin: 1.5rem 0 0;
  padding: 1.4rem 1.3rem;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.done__title {
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.done p {
  margin: 0;
  max-width: var(--measure);
}

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

.sitefoot {
  text-align: center;
  color: var(--navy-300);
  font-size: 0.9rem;
  padding: 2rem 1rem 2.5rem;
}

/* ---- Milestone celebration ------------------------------------------------ */

.celebrate {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
  pointer-events: none;
}
.celebrate[hidden] {
  display: none;
}
.celebrate__card {
  position: relative;
  pointer-events: auto;
  max-width: 26rem;
  width: 100%;
  text-align: center;
  padding: 1.2rem 1.3rem 1.3rem;
  background: var(--hc-black);
  color: var(--hc-ink-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--hc-blue);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  animation: celebrate-in 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
/* Wax seal — gold disc that "presses into wax". */
.celebrate__seal {
  width: 4.2rem;
  height: 4.2rem;
  margin: 0 auto 0.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #3a2c10; /* embossed motif (dark on gold) */
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.4), transparent 45%),
    radial-gradient(circle at 50% 55%, var(--gold-bright), var(--gold-deep) 72%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.45),
    inset 0 -3px 7px rgba(0, 0, 0, 0.4),
    0 4px 14px rgba(0, 0, 0, 0.5);
  animation: seal-press 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.celebrate__seal-icon {
  width: 2.4rem;
  height: 2.4rem;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.25));
}
.celebrate__title {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}
.celebrate__body {
  margin: 0 0 0.9rem;
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--hc-dim-on-dark);
}
.celebrate__dismiss {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.celebrate__dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
}

@keyframes celebrate-in {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes seal-press {
  0% { transform: scale(1.5) rotate(-8deg); opacity: 0; }
  60% { transform: scale(0.94) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

/* ---- Larger screens ------------------------------------------------------- */

@media (min-width: 40rem) {
  body {
    font-size: 1.18rem;
  }
  .card__body {
    padding: 0.4rem 1.6rem 1.5rem;
  }
  .card__head {
    padding: 1.3rem 1.6rem 0.4rem;
  }
  .hero__inner {
    padding: 2.4rem 1.6rem 2.6rem;
  }
}

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