:root {
  color-scheme: dark;
  --wm-background: #090b0f;
  --wm-ink: #f2f4f8;
  --wm-muted: #b8c0cd;
  --wm-accent: #c0d8fb;
  --wm-line: #354050;
  --wm-glow: #192a44;
  --wm-button-ink: #0b1626;
  --wm-width: 76rem;
}

:root[data-wm-entry-theme="amber"] {
  --wm-background: #0e0b08;
  --wm-ink: #faf1e6;
  --wm-muted: #cbc0b3;
  --wm-accent: #f4d29a;
  --wm-line: #564435;
  --wm-glow: #40291a;
  --wm-button-ink: #201408;
}

.wm-home, .wm-home * { box-sizing: border-box; }
.wm-home {
  margin: 0;
  min-height: 100vh;
  background: var(--wm-background);
  color: var(--wm-ink);
  font: 400 1rem/1.55 system-ui, sans-serif;
}
.wm-home a { color: inherit; text-underline-offset: .24em; }
.wm-home :is(a, select):focus-visible, [data-wm-member-entry] .wm-theme select:focus-visible {
  outline: 2px solid var(--wm-accent);
  outline-offset: 4px;
}
.wm-skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 2;
  padding: .65rem;
  background: var(--wm-background);
  transform: translateY(-200%);
}
.wm-skip:focus { transform: none; }
.wm-top, .wm-home main, .wm-footer {
  width: min(calc(100% - 2 * clamp(1rem, 4vw, 3rem)), var(--wm-width));
  margin-inline: auto;
}
.wm-top, .wm-footer, .wm-arrival-links, .wm-actions, .wm-home .utilities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
}
.wm-top, .wm-footer { justify-content: space-between; }
.wm-top { min-height: 5rem; border-bottom: 1px solid var(--wm-line); }
.wm-identity { display: block; width: clamp(7rem, 15vw, 9.5rem); }
.wm-identity img, .wm-hero-art img { display: block; width: 100%; height: auto; mix-blend-mode: screen; }
.wm-theme {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--wm-muted);
  font: 500 .85rem/1.3 system-ui, sans-serif;
}
.wm-theme select {
  min-height: 2.75rem;
  padding: .35rem .55rem;
  border: 1px solid var(--wm-line);
  border-radius: .2rem;
  color: var(--wm-ink);
  background: var(--wm-background);
  font: inherit;
}
.wm-home .wm-lang { position: static; margin: 0; }
.wm-home .wm-lang select {
  min-height: 2.75rem;
  color: var(--wm-ink);
  background: var(--wm-background);
  border-color: var(--wm-line);
}
.wm-hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.03fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: clamp(28rem, 62vh, 41rem);
  padding-block: clamp(2.8rem, 7vw, 6.5rem);
}
.wm-hero h1 {
  max-width: 13ch;
  margin: 0;
  font: 400 clamp(2.6rem, 5.35vw, 5rem)/.99 Georgia, serif;
  letter-spacing: -.048em;
  overflow-wrap: anywhere;
}
.wm-hero p { max-width: 31ch; margin: 1.25rem 0 1.75rem; color: var(--wm-muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.wm-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 3.15rem;
  padding: .68rem 1.08rem;
  border: 1px solid var(--wm-line);
  border-radius: .2rem;
  text-decoration: none;
  font-weight: 600;
}
.wm-actions .wm-primary { color: var(--wm-button-ink); background: var(--wm-accent); border-color: var(--wm-accent); }
.wm-actions .wm-secondary:hover { border-color: var(--wm-accent); }
.wm-hero-art {
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 16rem;
  border: 1px solid var(--wm-line);
  background: radial-gradient(ellipse at 50% 34%, var(--wm-glow), #06070a 65%);
}
.wm-hero-art img { max-width: 100%; }
.wm-arrival-links {
  min-height: 4.15rem;
  padding-block: .6rem;
  border-block: 1px solid var(--wm-line);
}
.wm-arrival-links a, .wm-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.wm-footer { min-height: 5rem; color: var(--wm-muted); font-size: .875rem; }
.wm-footer p { margin: 0; }
.wm-footer nav { display: flex; gap: 0 1.25rem; flex-wrap: wrap; }

.wm-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem clamp(.75rem, 3vw, 1.65rem);
  background: var(--wm-background);
  color: var(--wm-ink);
  border-bottom: 1px solid var(--wm-line);
  font: 500 .88rem/1.3 system-ui, sans-serif;
}
.wm-demo-bar a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; }
.wm-demo-bar a:focus-visible { outline: 2px solid var(--wm-accent); outline-offset: 3px; }

@media (max-width: 47rem) {
  .wm-hero { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 2.5rem; }
  .wm-hero-art { min-height: 0; }
  .wm-hero-art img { max-width: 30rem; }
  .wm-top, .wm-footer { padding-block: .55rem; }
}
