/* Hearth's dusk and lantern light, scoped to this page's main content. */
.hearth-page main {
  --hearth-night: #111c30;
  --hearth-panel: #17253a;
  --hearth-gold: #f0c681;
  --hearth-text: #f5eee1;
  --hearth-muted: #bdc8d6;
  --hearth-line: #384354;
  background: var(--hearth-night);
  color: var(--hearth-text);
}

.hearth-page main a { color: var(--hearth-gold); }
.hearth-page main a:focus-visible { outline: 3px solid #ffe0a4; outline-offset: 6px; }
.hearth-page main .eyebrow { color: var(--hearth-gold); letter-spacing: .12em; text-transform: uppercase; }
.hearth-page main h2 { font-size: clamp(2.25rem, 4vw, 3rem); }
.hearth-hero { padding: 32px 0; background: radial-gradient(ellipse at 75% 40%, #3c3435 0, transparent 65%); }
.hearth-opening { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 44px; }
.hearth-demo-note .hearth-badge { justify-self: start; padding: 5px 12px; border: 1px solid #9a7850; border-radius: 3px; color: var(--hearth-gold); background: #f0c6810a; font-size: .875rem; font-weight: 650; }
.hearth-welcome h1 { font-size: clamp(5rem, 9vw, 7.5rem); color: var(--hearth-gold); line-height: .95; letter-spacing: -.025em; margin: 0 0 20px; }
.hearth-tagline { font: 600 clamp(1.65rem, 2.8vw, 2.1rem)/1.2 Royal, Georgia, serif; max-width: 24ch; margin-bottom: 22px; }
.hearth-intro { color: var(--hearth-muted); margin-bottom: 26px; max-width: 41ch; }
.hearth-page main .hearth-play { background: var(--hearth-gold); color: #202538; border-color: #ffdda3; box-shadow: 0 4px 28px #e8a34f18; text-align: center; }
.hearth-page main .hearth-play:hover { background: #ffdda3; }
.hearth-free { font-size: .875rem; color: var(--hearth-muted); margin: 12px 0 0; }
.hearth-hero-shot { margin: 0; min-width: 0; }
.hearth-hero-shot a { display: block; padding: 8px; border: 1px solid #9a7850; border-radius: 5px; background: #101a27; box-shadow: 0 18px 48px #080e1b80; }
.hearth-hero-shot img { width: 100%; border-radius: 1px; }
.hearth-hero-shot figcaption { font-size: .875rem; color: var(--hearth-muted); padding: 14px 0 0; }
.hearth-demo-note { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 36px; padding: 18px 22px; border-left: 3px solid var(--hearth-gold); background: #f0c68108; }
.hearth-demo-note p { margin: 0; font-size: .9375rem; color: var(--hearth-muted); }
.hearth-demo-note strong { color: var(--hearth-text); }

.hearth-expect { padding: 26px 0 32px; border-bottom: 1px solid var(--hearth-line); }
.hearth-expect-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 42px; }
.hearth-page main .hearth-expect h2 { font-size: 1.8rem; margin: 0; }
.hearth-expect ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 0; margin: 0; }
.hearth-expect li { color: var(--hearth-muted); font-size: .9375rem; }
.hearth-expect strong { display: block; color: var(--hearth-text); margin-bottom: 5px; font-weight: 600; }

.hearth-teaching { padding: 76px 0; }
.hearth-teaching-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; }
.hearth-section-intro > p { max-width: 36ch; }
.hearth-aside { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hearth-line); color: var(--hearth-muted); }
.hearth-actions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.hearth-actions li { border-top: 1px solid #857052; padding-top: 20px; }
.hearth-actions h3 { font-size: 1.7rem; margin-bottom: 12px; }
.hearth-actions p { color: var(--hearth-muted); margin: 0; }

.hearth-gallery-section { padding: 60px 0 64px; background: var(--hearth-panel); border-block: 1px solid var(--hearth-line); }
.hearth-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.hearth-gallery-heading h2 { margin: 0; }
.hearth-gallery-heading > p { max-width: 28ch; font-size: .9375rem; color: var(--hearth-muted); margin: 0; }
.hearth-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.hearth-gallery figure { margin: 0; min-width: 0; }
.hearth-gallery a { display: block; aspect-ratio: 25 / 18; background: #0d1727; border: 1px solid #617080; border-radius: 3px; }
.hearth-gallery a:hover { border-color: var(--hearth-gold); }
.hearth-gallery img { width: 100%; height: 100%; object-fit: contain; }
.hearth-gallery figcaption { padding-top: 14px; font-size: .9375rem; color: var(--hearth-muted); }
.hearth-gallery figcaption strong { display: block; color: var(--hearth-text); font-weight: 600; font-size: 1rem; margin-bottom: 2px; }

.hearth-bugs { padding: 64px 0; background: radial-gradient(ellipse at 90% 100%, #393139 0, transparent 65%); }
.hearth-bugs-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 80px; align-items: center; }
.hearth-bugs h2 { margin-bottom: 16px; }
.hearth-bugs p:last-child { margin-bottom: 0; }
.hearth-bugs-layout > div:first-child > p:last-child { color: var(--hearth-muted); max-width: 60ch; }
.hearth-page main .hearth-report-link { border: 1px solid #a98b61; background: transparent; color: var(--hearth-gold); text-align: center; }
.hearth-page main .hearth-report-link:hover { background: #f0c68112; }
.hearth-report p { margin-top: 14px; font-size: .875rem; color: var(--hearth-muted); max-width: 38ch; }

@media (max-width: 1000px) {
  .hearth-opening { gap: 30px; }
  .hearth-expect-layout { grid-template-columns: 1fr; gap: 20px; }
  .hearth-teaching-layout, .hearth-bugs-layout { gap: 40px; }
}
@media (max-width: 760px) {
  .hearth-hero { padding-top: 36px; }
  .hearth-opening, .hearth-teaching-layout, .hearth-bugs-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hearth-tagline { max-width: 28ch; }
  .hearth-intro { max-width: 50ch; }
  .hearth-hero-shot { max-width: 620px; width: 100%; margin-inline: auto; }
  .hearth-demo-note { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 30px; padding: 16px 18px; }
  .hearth-expect ul { grid-template-columns: 1fr; gap: 18px; }
  .hearth-expect strong { display: inline; }
  .hearth-teaching, .hearth-gallery-section, .hearth-bugs { padding: 44px 0; }
  .hearth-section-intro > p { max-width: 60ch; }
  .hearth-gallery-heading { display: block; }
  .hearth-gallery-heading > p { max-width: none; margin-top: 16px; }
  .hearth-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .hearth-actions, .hearth-gallery { grid-template-columns: minmax(0, 1fr); }
  .hearth-actions { gap: 24px; }
  .hearth-page main .hearth-play { width: 100%; padding-inline: 14px; }
  .hearth-free { max-width: 32ch; }
  .hearth-gallery { gap: 28px; }
}
