@font-face {
  font-family: "Pacifico";
  src: url("/fonts/Pacifico-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("/fonts/Jost-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

html { background: #000; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  background: #000;
  color: #fff;
}

.env {
  position: fixed;
  top: max(1.05rem, env(safe-area-inset-top));
  right: max(1.2rem, env(safe-area-inset-right));
  margin: 0;
  color: #fff;
  font-family: Jost, Futura, "Century Gothic", "Avenir Next", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

main {
  width: min(100%, 52rem);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.eyebrow,
.domain {
  margin: 0;
  font-family: Jost, Futura, "Century Gothic", "Avenir Next", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

.eyebrow {
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.46em;
  padding-left: 0.46em;
}

h1 {
  margin: 0.42em 0 0.5em;
  color: #000;
  font-family: Pacifico, cursive;
  font-size: clamp(4.5rem, 9vw, 6.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 0.046em #fff;
  paint-order: stroke fill;
}

h1 span { display: inline; }

h1 span + span::before { content: "\00a0"; }

.domain {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
}

/* Phone portrait: two-line wordmark, sized to the width. */
@media (max-width: 719px) and (orientation: portrait) {
  main { padding: 2rem 1.1rem 2.4rem; }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.34em;
    padding-left: 0.34em;
  }

  h1 {
    margin-top: 0.35rem;
    font-size: clamp(3.7rem, 20.5vw, 6.6rem);
    line-height: 0.84;
  }

  h1 span { display: block; }

  h1 span + span::before { content: none; }

  .domain {
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    padding-left: 0.24em;
  }
}

/* Tablet, including portrait iPad. */
@media (min-width: 720px) and (max-width: 1100px) {
  main { padding: 3rem 2.75rem; }

  h1 { font-size: clamp(5rem, 11vw, 7.2rem); }
}

/* Desktop. */
@media (min-width: 1101px) {
  .eyebrow { font-size: 0.8rem; }

  h1 { font-size: clamp(6.4rem, 6.6vw, 8.6rem); }

  .domain { font-size: 0.74rem; }
}

/* Wide desktop. The script stops growing so the line stays a mark, not a banner. */
@media (min-width: 1600px) {
  h1 { font-size: 9rem; }
}

/* Short landscape phones: one line, or the stacked mark is taller than the screen. */
@media (max-height: 500px) and (orientation: landscape) {
  main { padding: 0.85rem 1.25rem; }

  .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    padding-left: 0.32em;
  }

  h1 {
    margin-top: 0.15rem;
    font-size: clamp(3rem, 9vw, 5rem);
    line-height: 1.05;
  }

  h1 span { display: inline; }

  h1 span + span::before { content: "\00a0"; }

  .domain {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    padding-left: 0.22em;
  }

  .env {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }
}
