:root {
  color-scheme: light;
  --ink: #141820;
  --slate: #515e76;
  --slate-soft: #808da6;
  --line: #e8eaf1;
  --orange: #f94d0f;
  --page-gutter: clamp(1.5rem, 5vw, 4.5rem);
  font-family: Montserrat, "Avenir Next", Avenir, "Helvetica Neue", Arial,
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: #ffffff;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 100svh;
  padding: 1.75rem var(--page-gutter) 1.5rem;
  overflow: hidden;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 3;
}

.site-header {
  display: flex;
  align-items: center;
}

.brand {
  display: block;
  width: clamp(8.75rem, 14vw, 12.5rem);
  color: inherit;
}

.brand img {
  width: 100%;
  height: auto;
}

.brand:focus-visible {
  outline: 0.16rem solid var(--orange);
  outline-offset: 0.4rem;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(22rem, 0.88fr) minmax(25rem, 1.12fr);
  align-items: center;
  min-height: 0;
  padding: clamp(2rem, 6vh, 5rem) 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-top: 1rem;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.75rem, 6.7vw, 7.4rem);
  font-weight: 800;
  letter-spacing: -0.067em;
  line-height: 0.92;
}

.headline-line {
  display: block;
  white-space: nowrap;
}

.hero-copy p {
  margin: clamp(2rem, 4.8vh, 3.7rem) 0 0 0.12em;
  color: #2f3746;
  font-size: clamp(1rem, 1.55vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.5;
}

.hero-mark {
  position: relative;
  z-index: 2;
  width: min(49vw, 45rem);
  margin: 0 -2vw 0 -3vw;
  justify-self: end;
  transform: translateY(0.75rem) rotate(-0.8deg);
  transform-origin: 55% 50%;
  animation: drift 8s ease-in-out infinite;
}

.hero-mark img {
  width: 100%;
  height: auto;
}

.fold-lines {
  position: absolute;
  z-index: 0;
  inset: 50% auto auto -16vw;
  width: min(88vw, 82rem);
  height: auto;
  transform: translateY(-49%);
  fill: none;
  stroke: var(--line);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #cfd4de;
  color: #313a4b;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.4;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0.75rem) rotate(-0.8deg);
  }
  50% {
    transform: translateY(0.2rem) rotate(-0.25deg);
  }
}

@media (max-width: 760px) {
  .page {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .brand {
    width: 8.5rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    padding: 2.4rem 0 2rem;
  }

  .hero-copy {
    align-self: auto;
    padding: 0;
  }

  h1 {
    max-width: none;
    font-size: clamp(3rem, 13vw, 4.6rem);
    line-height: 0.94;
  }

  .hero-copy p {
    max-width: 22rem;
    margin-top: 1.5rem;
    font-size: 1rem;
  }

  .hero-mark {
    width: min(96vw, 35rem);
    margin: clamp(1.25rem, 4vh, 2.5rem) -2vw -4vh auto;
  }

  .fold-lines {
    inset: 28% auto auto -72vw;
    width: 175vw;
  }
}

@media (max-width: 430px) {
  .page {
    min-height: 100svh;
  }

  .site-footer {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark {
    animation: none;
  }
}
