@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
}

:root {
  --bg: #000000;
  --text: #f4f2ec;
  --muted: #a3a29c;
  --faint: #8a8984;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  text-align: center;
  width: min(44rem, 100%);
  margin: 0 auto;
  padding:
    max(1.75rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    1.25rem
    max(1.25rem, env(safe-area-inset-left));
}

.logo-wrap {
  width: min(42rem, 90vw);
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg);
  /* The official file includes black padding around the mark.
     These margins are a percentage of the logo width, so they only
     remove that empty plate and leave a gap before the name. */
  margin-top: -10%;
  margin-bottom: -8%;
}

.brand {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
}

h1 {
  margin: 1rem 0 0;
  font-family: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  font-size: clamp(3.25rem, 10vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

.lede {
  margin: 1rem 0 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 1.0625rem;
  text-wrap: balance;
}

footer {
  padding:
    0.5rem
    max(1.25rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--faint);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

footer p + p {
  margin-top: 0.15rem;
}

footer a {
  color: inherit;
  display: inline-block;
  padding: 0.35rem 0.5rem;
  text-underline-offset: 0.2em;
}

footer a:hover,
footer a:focus-visible {
  color: var(--text);
}

::selection {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 420px) {
  .brand {
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 3.5rem);
  }
}

@media (max-height: 700px) {
  .logo-wrap {
    width: min(28rem, 78vw);
  }

  main {
    padding-top: 1rem;
  }
}
