:root {
  --navy-deep: #0b1826;
  --navy: #14283d;
  --cream: #f1e3c4;
  --brass: #c9a24b;
  --muted: #9fb0c0;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background:
    radial-gradient(ellipse at 50% 35%, #1d3a57 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}
.stage {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
}
.logo {
  width: min(680px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}
.tagline {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  font-style: italic;
}
.rule {
  width: 120px;
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.eyebrow, .status {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { color: var(--brass); margin-bottom: 16px; }
h1.plain { margin: 0 0 24px; font-weight: normal; font-size: clamp(1.6rem, 5vw, 2.4rem); }
a { color: var(--brass); }

/* ---------- Home screen ---------- */
body.home {
  background: var(--navy-deep);
  overflow: hidden;
}
.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
/* The artwork always fills the whole screen. */
.scene-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Tall screens: keep the harbours (right of centre) in view. */
  object-position: 62% 50%;
}
/* Tall screens: logo in the sky, Start button in the foliage. */
.scene-logo {
  position: absolute;
  top: max(2.5%, env(safe-area-inset-top));
  left: 50%;
  width: min(88vw, 54vh);
  width: min(88vw, 54dvh);
  margin: 0;
  transform: translateX(-50%);
}
.scene-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(6, 20, 40, 0.55));
}
.start {
  position: absolute;
  left: 50%;
  bottom: max(7%, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 0.55em 2.2em 0.6em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3.4vh, 1.9rem);
  font-weight: bold;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  color: var(--cream);
  background: linear-gradient(#1f3d5c, #12263b);
  border: 3px solid var(--brass);
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 2px rgba(11, 24, 38, 0.9),
    inset 0 2px 0 3px rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.55);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
  transition: filter 0.15s ease, margin 0.15s ease;
}
.start:hover,
.start:focus-visible { filter: brightness(1.18); margin-bottom: 2px; }
.start:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }

/* Wide screens: the art is cropped top and bottom to fill the screen. The crop
   is chosen so the sky leaves room for the logo and the foliage for the button. */
@media (min-aspect-ratio: 5/4) {
  .scene-art { object-position: 50% 46%; }
  .scene-logo {
    top: 1.5vh;
    width: min(88vw, 49vh);
  }
  .start {
    bottom: 2.5vh;
    padding: 0.4em 2.2em 0.45em;
    font-size: clamp(1.1rem, 3vh, 1.8rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .start { transition: none; }
}
