:root {
  --paper: #f6f3ec;
  --ink: #111111;
  --muted: #6e6a61;
  --line: rgba(17, 17, 17, 0.16);
  --accent: #1f4fd8;
  --focus: #1f4fd8;

  --page-padding: clamp(1.25rem, 4vw, 3rem);
  --content-width: 42rem;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 100vw 100vh,
    var(--paper);
  color: var(--ink);
  font-family:
    "Helvetica Neue",
    Helvetica,
    Arial,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0.25rem;
  color: var(--accent);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-200%);
  padding: 0.6rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  border: 0;
}

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

.threshold {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(1.25rem, 10vw) minmax(0, var(--content-width)) minmax(1.25rem, 1fr);
  grid-template-rows: auto 1fr auto;
  padding: var(--page-padding) 0;
}

.identity,
.statement,
.coordinates {
  grid-column: 2;
}

.identity {
  align-self: start;
}

.index {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 13vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: -0.09em;
  font-weight: 500;
}

.statement {
  align-self: center;
  max-width: 40rem;
  padding: 12vh 0;
}

.statement p {
  margin: 0 0 1.15rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  letter-spacing: -0.015em;
}

.statement .lead {
  max-width: 41rem;
  margin-bottom: 2.2rem;
  font-size: clamp(1.95rem, 4.8vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.mediums {
  color: var(--muted);
}

.key {
  margin-top: 2.4rem !important;
}

.coordinates {
  align-self: end;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.coordinates dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.coordinates div {
  min-width: 0;
}

.coordinates dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.coordinates dd {
  margin: 0;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  overflow-wrap: anywhere;
}

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

@media (max-width: 720px) {
  :root {
    --page-padding: 1rem;
  }

  .threshold {
    grid-template-columns: 1rem minmax(0, 1fr) 1rem;
  }

  h1 {
    font-size: clamp(3rem, 22vw, 5.6rem);
  }

  .statement {
    padding: 10vh 0 8vh;
  }

  .statement .lead {
    font-size: clamp(2.1rem, 13vw, 3.7rem);
  }

  .coordinates dl {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

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