/* The snowfall background: the opening of a made-up ski village on a cold morning. Two canvases hold the snow: the
   back one (far and middle flakes, the crust on the letters, the pieces that slip off) sits behind the words, the
   front one (the near, softer flakes) passes in front of them. The words and the button are plain HTML. */
:root {
  --sky-top: #a9b9c8;      /* the cold morning sky at the top */
  --sky-bottom: #e3e8ec;   /* the paler sky near the ground */
  --ink: #13233a;          /* the heading and the button */
  --muted: #3f5068;        /* the small words */
  --accent: #c2502c;       /* the one accent: the ridge on the mark, the report numbers */
  --snow: #ffffff;         /* the snow */
  --line: rgba(19, 35, 58, 0.16); /* thin edges */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: clip;
}

body {
  background: var(--sky-bottom);
  color: var(--ink);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 300px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}

.snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.snow--back {
  z-index: 0;
}

.snow--front {
  z-index: 3;
}

/* the bar at the top */
.bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 3.4vh, 28px) clamp(16px, 4vw, 44px);
  font-size: clamp(12px, 0.9vw + 6px, 15px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 1.5em;
  height: 1.5em;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__cap {
  stroke: var(--accent);
}

.bar__report {
  color: var(--muted);
  font-weight: 500;
}

/* the heading in the middle */
.hero {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 0 clamp(16px, 6vw, 88px);
  max-width: 1100px;
}

.eyebrow {
  margin: 0 0 clamp(8px, 2vh, 18px);
  color: var(--muted);
  font-size: clamp(11px, 0.8vw + 5px, 14px);
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title {
  margin: 0;
  font-size: clamp(34px, min(9vw, 13.5vh), 132px);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* a mask a little taller than the line, so the crust of snow above the letters is not cut */
.title__mask {
  display: block;
  overflow: hidden;
  padding-top: 0.12em;
  margin-top: -0.12em;
}

.title__line {
  display: inline-block;
}

.lede {
  margin: clamp(10px, 2.4vh, 22px) 0 clamp(16px, 3.6vh, 32px);
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(14px, 0.6vw + 10px, 18px);
  line-height: 1.45;
}

/* the elastic pill: the words widen on the wdth axis, the fill swells with a bounce */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: clamp(44px, 7vh, 54px);
  padding: 0 clamp(20px, 2vw, 26px);
  border-radius: 999px;
  color: #f4f7fa;
  font-size: clamp(14px, 0.4vw + 11px, 16px);
  font-weight: 620;
  font-stretch: 100%;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.pill__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(19, 35, 58, 0.55);
}

.pill__words {
  display: inline-block;
}

.pill__arrow {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* the snow report at the bottom */
.report {
  position: relative;
  z-index: 2;
  display: flex;
  gap: clamp(18px, 4vw, 48px);
  margin: 0;
  padding: 0 clamp(16px, 4vw, 44px) clamp(14px, 3.6vh, 30px);
}

.report__item {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  min-width: 96px;
}

.report dt {
  color: var(--muted);
  font-size: clamp(10px, 0.5vw + 7px, 12px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report dd {
  margin: 0;
  color: var(--accent);
  font-size: clamp(15px, 0.8vw + 10px, 20px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .lede {
    max-width: 28ch;
  }
}
