/* Hallmark · shape: widescreen holding page · genre: playful · theme: custom · job: visit · idea: "The game’s loading artwork becomes the arrival at Wispwater." · vibe: "sunlit woodland with quiet water"
 * paper: deep woodland green · accent: water-lily pink · display: Young Serif · body: system-ui · hero: woodland pool with a text bank · nav: domain masthead · footer: none · imagery: Wispwater loading concept · signature: Wisp afloat in the woodland pool
 * axes: dark/roman-serif/chromatic-pink · posture: drenched · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V4 · weakest: H, keep the character clear of the title with a separate dark reading area */
@import url("./tokens.css");

@font-face {
  font-family: "Young Serif";
  src: url("./assets/YoungSerif-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scrollbar-color: var(--color-rule) var(--color-paper);
}

::selection {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-synthesis: none;
  line-height: 1.55;
}

.site {
  width: min(100% - 2 * clamp(var(--space-md), 3.3vw, var(--space-2xl)), var(--measure-stage));
  margin-inline: auto;
  padding-block: var(--space-md) var(--space-xl);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--space-2xl);
  margin-bottom: var(--space-sm);
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.masthead-mark {
  display: block;
  flex: none;
  object-fit: contain;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 59fr) minmax(0, 41fr);
  align-items: center;
  min-height: clamp(35rem, calc(100svh - 8.25rem), 49rem);
  isolation: isolate;
  overflow: clip;
  position: relative;
  border-radius: var(--radius-stage);
  background: var(--color-stage);
  color: var(--color-ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-frame);
  border-radius: inherit;
  pointer-events: none;
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 82%;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 49%, var(--color-shade) 75%, var(--color-stage) 98%);
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
}

.hero-copy {
  grid-column: 2;
  padding: var(--space-2xl) var(--space-lg) var(--space-2xl) var(--space-md);
}

h1 {
  min-width: 0;
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 5.65vw, 6.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.intro {
  max-width: 29ch;
  margin: var(--space-lg) 0 0;
  color: var(--color-secondary);
  font-size: clamp(1.0625rem, 1.55vw, 1.3rem);
  text-wrap: pretty;
}

.launch-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-xl) 0 0;
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 600;
}

.launch-status::before {
  content: "";
  flex: 0 0 var(--space-lg);
  height: 1px;
  background-color: currentColor;
}

@media (max-width: 54rem) {
  .site {
    padding-block: var(--space-xs) var(--space-lg);
  }

  .masthead {
    min-height: 3rem;
    margin-bottom: var(--space-xs);
  }

  .masthead-mark {
    width: 2.5rem;
    height: 2.5rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hero-art {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    min-height: clamp(0rem, calc(100svh - 27.5rem), 30rem);
    max-height: 30rem;
  }

  .hero-art img {
    object-position: 40% 50%;
  }

  .hero-art::after {
    background: linear-gradient(to bottom, transparent 74%, var(--color-stage) 100%);
  }

  .hero-copy {
    grid-column: auto;
    padding: 0 var(--space-lg) var(--space-xl);
  }

  h1 {
    font-size: clamp(2.5rem, 11vw, 5.5rem);
  }

  .intro {
    margin-top: var(--space-md);
  }

  .launch-status {
    margin-top: var(--space-lg);
  }
}
