/* Tokens copied from the design system (design-system/tokens.css, bundle.css), as plain values:
   this page loads no bundle and no script. */
:root {
  --surface-0: #0b0b0c;
  --text-1: #f4f1ea;
  --line-2: #3a3a41;
  --signal: #d6ff3f;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-16: 64px;
  --space-24: 96px;
  --font-sans: 'Archivo', system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  /* The mark: the wordmark's large proportions (flag 56px, name 26px, gap 16px), scaled together so
     the lockup, 6.93 flag heights wide, and its clear space of half a flag height on each side fit
     the viewport, from a 36px flag up to 120px. */
  --flag-h: clamp(36px, calc(100vw / 8.1), 120px);
  --name-h: calc(var(--flag-h) * 26 / 56);
  --lockup-gap: calc(var(--flag-h) * 16 / 56);
}

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html {
  color-scheme: dark;
  background: var(--surface-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* A stage surface with the night atmosphere, as the system's covers use it. */
body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  background: var(--surface-0) url('/atmosphere/night.webp') center / cover no-repeat;
}

main {
  align-self: center;
  justify-self: center;
  box-sizing: border-box;
  max-width: 100%;
  padding: var(--space-16) max(var(--space-4), var(--flag-h) / 2) var(--space-24);
}

/* The signature: a hairline closing the heading, carrying the 40px signal pennant. */
h1 {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--lockup-gap);
  margin: 0;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line-2);
  line-height: 0;
}

h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 3px;
  background: var(--signal);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%);
}

h1 img {
  display: block;
  flex: none;
  width: auto;
}

.flag {
  height: var(--flag-h);
}

.name {
  height: var(--name-h);
}

/* title-lg */
p {
  margin: var(--space-6) 0 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* Phones: the flag stands over the name, as in the stacked logo, at the same proportions, so the
   name keeps its size. 13.4 name heights hold the name and a flag height of clear space. */
@media (max-width: 599px) {
  :root {
    --name-h: calc(100vw / 13.4);
    --flag-h: calc(var(--name-h) * 56 / 26);
  }

  h1 {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  h1 {
    padding-bottom: var(--space-5);
  }

  p {
    margin-top: var(--space-5);
  }
}
