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

html {
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-th);
  font-size: var(--fs-body);
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  font-weight: 600;
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  font-weight: 600;
}

small,
.small {
  font-size: var(--fs-small);
  line-height: var(--lh-text);
}

a {
  color: var(--gold);
}

a:hover {
  color: var(--ink);
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

#app {
  min-height: 100dvh;
}

/* A laptop shows the phone screens in a centred column (decision 23). */
.phone #app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  body.phone {
    background: var(--surface);
  }

  .phone #app {
    background: var(--canvas);
    box-shadow: 0 0 0 1px var(--line);
  }
}

.label {
  font-family: var(--font-num);
  font-size: var(--fs-label);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.figure {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.display {
  font-family: var(--font-num);
  font-size: 48px;
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero-number {
  font-family: var(--font-num);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

.script {
  font-family: var(--font-script);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  color: var(--neon);
  transform: rotate(-6deg);
}

.muted {
  color: var(--ink-muted);
}

.icon {
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
