:root {
  --paper: #f4f4f2;
  --ink: #9a9a98;
  --ink-dark: #7f7f7d;
  --pink: #efbee6;
  --blue: #bed5f3;
  --pad: clamp(1.25rem, 3.3vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

::selection {
  background: var(--pink);
  color: var(--ink-dark);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  padding: 0.7rem 1rem;
  background: #fff;
  color: #333;
  font: 700 0.9rem/1 Arial, sans-serif;
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(5rem, 15vh, 12rem);
  padding: var(--pad);
  padding-bottom: clamp(4rem, 8vh, 7rem);
}

.statement {
  max-width: 14.7em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.65rem, 6.15vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 0.98;
  text-wrap: pretty;
}

.statement--secondary {
  max-width: 15.2em;
}

.highlight {
  position: relative;
  display: inline;
  z-index: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.08em 0.025em;
}

.highlight::before {
  position: absolute;
  z-index: -1;
  inset: 0.08em -0.01em 0.01em;
  content: "";
  background: var(--highlight);
}

.highlight--pink {
  --highlight: var(--pink);
}

.highlight--blue {
  --highlight: var(--blue);
}

.office-link {
  color: var(--ink-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.office-link::after {
  position: absolute;
  z-index: -2;
  inset: 0.08em -0.01em 0.01em;
  content: "";
  background: var(--pink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.office-link:hover::after,
.office-link:focus-visible::after {
  transform: scaleY(1);
}

.office-link:focus-visible {
  outline: 0.08em solid var(--ink-dark);
  outline-offset: 0.06em;
}

.page {
  opacity: 0;
  animation: fade-in 2.4s 0.2s ease-out forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .page {
    min-height: 100svh;
    gap: 6rem;
  }

  .statement {
    max-width: none;
    font-size: clamp(2.7rem, 12.2vw, 5.3rem);
    line-height: 0.97;
  }

  .statement--secondary {
    font-size: clamp(2.2rem, 10.7vw, 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page {
    opacity: 1;
    animation: none;
  }

  .office-link::after {
    transition: none;
  }
}
