@font-face {
  font-family: "Pirata One";
  src: url("/fonts/PirataOne-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --sky-1: #1d3150;
  --sky-2: #0e1a2b;
  --sky-3: #081120;
  --cream: #f3e6c4;
  --parchment: #c9bfa6;
  --gold: #e8b04b;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--sky-3);
  color: var(--cream);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 96px;
  text-align: center;
  background: radial-gradient(
    circle at 78% 22%,
    var(--sky-1) 0%,
    var(--sky-2) 55%,
    var(--sky-3) 100%
  );
}

.moon {
  position: absolute;
  top: clamp(24px, 8vh, 72px);
  right: clamp(24px, 10vw, 140px);
  width: clamp(40px, 7vw, 72px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 48px 10px rgb(243 230 196 / 0.22);
}

.crest {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flag {
  width: clamp(150px, 28vw, 240px);
  height: auto;
  margin-bottom: clamp(12px, 2vh, 24px);
}

.wordmark {
  margin: 0;
  font-family: "Pirata One", serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 13vw, 7rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.tagline {
  margin: 1.1rem 0 0;
  /* Trailing letter-spacing pushes the line left; pad it back to center. */
  padding-left: 0.35em;
  font-size: clamp(0.8rem, 2.4vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.more {
  margin: 0.6rem 0 0;
  font-size: clamp(0.85rem, 2.4vw, 1rem);
  color: var(--parchment);
}

.waves {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(40px, 8vh, 80px);
}

/* phase.js sets data-phase before first paint; no attribute (no JS) = before. */
html:not([data-phase="after"]) .after,
html[data-phase="after"] .before {
  display: none;
}
