@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #e8ecf2;
  --ink: #080a0d;
  --line: #bdc5d0;
  --accent: #004eb8;
  --gutter: clamp(24px, 3.4vw, 64px);
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 7px;
  border-radius: 2px;
}
::selection { color: #fff; background: var(--accent); }
.arrow {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: square;
  flex: 0 0 auto;
}
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .36em;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.35;
}
.text-link span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.text-link:hover, .email-link:hover { color: var(--accent); }

/* The whole home composition occupies one screen. Typography remains HTML. */
.home-page {
  height: 100vh;
  height: 100svh;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}
.home-header {
  position: absolute;
  top: clamp(22px, 3.3vw, 54px);
  right: var(--gutter);
  z-index: 2;
}
.contact-nav { font-size: clamp(20px, 2.2vw, 36px); letter-spacing: -.04em; }
.hero { width: 100%; height: 100%; position: relative; isolation: isolate; overflow: clip; }
.hero-art {
  position: absolute;
  top: 56%;
  left: 50%;
  width: min(100vw, 155vh);
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}
.hero-art img { display: block; width: 100%; height: auto; }
.family-name {
  position: absolute;
  top: 50%;
  left: var(--gutter);
  margin: 0;
  transform: translateY(-50%);
  font-size: clamp(60px, 14vw, 270px);
  font-weight: 750;
  letter-spacing: -.075em;
  line-height: .95;
  white-space: nowrap;
}

.contact-page {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow-x: clip;
  isolation: isolate;
}
.contact-header {
  padding: clamp(22px, 2.1vw, 36px) var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(23px, 2.3vw, 35px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }
.back-link { font-size: clamp(20px, 1.9vw, 29px); letter-spacing: -.035em; gap: .5em; }
.contact-main { padding: 0 var(--gutter) clamp(72px, 8vw, 144px); }
.contact-main > h1 {
  margin: clamp(40px, 4.1vw, 68px) 0 clamp(28px, 3.3vw, 54px);
  font-size: clamp(64px, 8.4vw, 144px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.065em;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4.2vw, 72px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact {
  min-width: 0;
  padding: 20px 0 23px;
  border-bottom: 1px solid var(--line);
}
.contact:nth-child(-n + 3) { padding-top: 0; }
.contact:nth-last-child(-n + 3) { border-bottom: 0; }
.contact h2 {
  margin: 0 0 5px;
  font-size: clamp(26px, 2.45vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.045em;
}
.email-link {
  display: inline-flex;
  align-items: center;
  gap: .32em;
  min-height: 44px;
  max-width: 100%;
  text-decoration: none;
  font-size: clamp(16px, 1.55vw, 24px);
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: -.025em;
}
.email-link span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}
.email-link .arrow { width: .95em; height: .95em; }
.contact-art-crop {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
  height: 100px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
.contact-art {
  position: absolute;
  right: -240px;
  top: 20px;
  width: 500px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 1900px) {
  .family-name { font-size: 14vw; }
}

@media (max-width: 1099px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
  .contact:nth-child(-n + 3) { padding-top: 20px; }
  .contact:nth-child(-n + 2) { padding-top: 0; }
  .contact:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .contact:nth-last-child(-n + 2) { border-bottom: 0; }
  .contact h2 { font-size: 29px; }
  .email-link { font-size: clamp(17px, 2.1vw, 22px); }
  .contact-art-crop { width: 180px; height: 80px; }
  .contact-art { width: 400px; right: -220px; }
}

@media (max-width: 719px) {
  .home-header { top: 24px; }
  .contact-nav { font-size: 21px; }
  .hero-art {
    width: 150vw;
    max-width: none;
    top: 51%;
    left: 47%;
    transform: translate(-50%, -50%) rotate(-14deg);
  }
  .family-name {
    left: 0;
    width: 100%;
    text-align: center;
    top: 51%;
    font-size: 15.1vw;
    letter-spacing: -.075em;
  }
  .contact-header { padding-top: 22px; gap: 12px; }
  .wordmark { font-size: 24px; }
  .back-link { font-size: 20px; }
  .contact-main > h1 { margin-top: 48px; margin-bottom: 34px; font-size: clamp(53px, 13vw, 88px); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact { padding: 22px 0 23px; }
  .contact:nth-child(-n + 3), .contact:nth-child(-n + 2) { padding-top: 22px; }
  .contact:first-child { padding-top: 0; }
  .contact:nth-last-child(-n + 3), .contact:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .contact:last-child { border-bottom: 0; }
  .contact h2 { font-size: 29px; margin-bottom: 4px; }
  .email-link { font-size: clamp(16px, 4.65vw, 21px); }
  .contact-art-crop { display: none; }
}

@media (max-height: 500px) and (min-width: 720px) {
  .home-header { top: 16px; }
  .contact-nav { font-size: 21px; }
  .hero-art { width: 150vh; }
  .family-name { font-size: 12vw; }
}

@media (forced-colors: active) {
  .hero-art, .contact-art-crop { display: none; }
  a:focus-visible { outline-color: Highlight; }
}
