:root {
  --ink: #0b1f3a;
  --cream: #f7f1e3;
  --gold: #e5c382;
  --rule: #405164;
  color: var(--cream);
  background: var(--ink);
  font-family: system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 76% 49%, #1d3b48, transparent 55%), var(--ink);
}
.wrap { width: min(calc(100% - 40px), 1160px); margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.skip { position: fixed; top: .5rem; left: .5rem; transform: translateY(-150%); padding: 14px; background: var(--cream); color: var(--ink); z-index: 2; }
.skip:focus { transform: none; }
.mast, footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mast { min-height: 76px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; gap: 8px; align-items: center; font: 500 clamp(1.25rem, 2.4vw, 1.7rem)/1.1 Georgia, serif; letter-spacing: -.04em; }
.brand svg { color: var(--gold); width: 1.45em; height: auto; }
.locale { color: #d3d7d8; font-size: .75rem; }
.hero-layout { flex: 1; display: grid; grid-template-columns: minmax(0,1fr); align-content: center; gap: 4px; padding-block: 32px 22px; }
h1, p, figure { margin: 0; }
h1 { font: normal clamp(3.6rem, 12.6vw, 5.8rem)/.99 Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
h1 em { color: var(--gold); font-weight: normal; }
.intro { margin-block: 16px 20px; font-size: clamp(.95rem, 1.5vw, 1.18rem); line-height: 1.55; max-width: 35ch; color: #cdd4d7; }
.intro strong { font-weight: 550; color: var(--cream); }
.button { display: inline-flex; gap: 8px; align-items: center; min-height: 46px; padding: 12px 17px; background: var(--cream); color: var(--ink); font-weight: 650; font-size: .9rem; text-decoration: none; border-radius: 4px; }
.button span { border-left: 1px solid #bdb5a7; padding-left: 10px; font-weight: 450; }
.button:hover { background: #f2dba7; }
.portrait { align-self: center; width: min(100%, 620px); justify-self: center; }
.scene { position: relative; }
.scene svg { display: block; width: 100%; height: auto; }
.window-portrait { position: absolute; display: block; left: 25.3333%; top: 49.0244%; width: 17%; height: 28.0488%; object-fit: cover; object-position: center 30%; filter: sepia(.18); }
.window-light, .lamp-halo { opacity: 0; transition: opacity .45s ease-out; }
.lit .window-light { opacity: .94; }
.lit .lamp-halo { opacity: .85; }
figcaption { display: flex; justify-content: center; }
.light-switch { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 16px; background: #10283b; color: var(--cream); font: inherit; font-size: .82rem; border: 1px solid #667578; border-radius: 25px; cursor: pointer; }
.light-switch[hidden] { display: none; }
.light-switch:hover { border-color: var(--gold); }
.switch-track { width: 26px; height: 16px; padding: 2px; border: 1px solid #85969c; border-radius: 12px; display: flex; align-items: center; }
.switch-track::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #bec6c4; transition: transform .25s ease-out; }
.lit .switch-track { border-color: var(--gold); }
.lit .switch-track::after { transform: translateX(10px); background: var(--gold); }
footer { flex-wrap: wrap; border-top: 1px solid var(--rule); padding-block: 17px; color: #c3cccf; font-size: .78rem; }
footer small { font-size: .73rem; }
@media (min-width: 760px) {
  .wrap { width: min(calc(100% - 96px), 1160px); }
  .mast { min-height: 94px; }
  .hero-layout { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: center; padding-block: 48px; }
  h1 { font-size: clamp(5.4rem, 8.9vw, 8rem); }
  h1 em { display: block; }
  .intro { margin-block: 25px; }
  footer { min-height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .window-light, .lamp-halo, .switch-track::after { transition: none; }
}
