@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-serif-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --paper: #f6f5f2;
  --ink: var(--brand-primary);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
}

.landing {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2rem, 7.5vw, 7.5rem);
  overflow: hidden;
  background-color: var(--paper);
  background-image: url("/assets/paper-fold.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.landing-copy {
  width: min(68vw, 58rem);
}

h1 {
  max-width: 100%;
  margin: 0;
  font-family: Didot, "Bodoni 72", "IBM Plex Serif", Georgia, serif;
  font-size: clamp(3.25rem, 10.2vw, 9.75rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.9;
  white-space: nowrap;
}

p {
  margin: clamp(1.25rem, 2.4vw, 2rem) 0 0 1em;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(0.76rem, 1.3vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .landing {
    padding: clamp(1.5rem, 8vw, 3rem);
    background-position: 62% center;
  }

  .landing-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.65rem, 13.6vw, 4rem);
    line-height: 0.94;
    white-space: nowrap;
  }

  p {
    margin-top: 1.5rem;
    margin-left: 0.2em;
    font-size: 0.7rem;
  }
}
