:root {
  --paper: #f3f6f7;
  --ink: #17252c;
  --muted: #617179;
  --rule: rgba(23, 37, 44, 0.2);
  --accent: #246575;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
}

.contact-shell {
  --contact-offset: clamp(0px, 9vw, 132px);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-rows: 1fr auto;
}

.contact-page,
.contact-footer {
  width: min(480px, calc(100% - var(--contact-offset)));
  margin-left: var(--contact-offset);
}

.contact-page {
  align-self: center;
  padding-bottom: clamp(50px, 9vh, 100px);
}

.contact-page h1 {
  font-size: clamp(30px, 3vw, 38px);
  letter-spacing: -0.026em;
}

.contact-location {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-block {
  margin-top: 44px;
}

.contact-label {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, border-color 160ms ease;
}

.contact-arrow {
  color: var(--muted);
  font-size: 15px;
  transition: transform 160ms ease;
}

.contact-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-link:hover .contact-arrow {
  transform: translate(2px, -2px);
}

.contact-footer {
  color: var(--muted);
  font-size: 11px;
}

.contact-footer a:hover,
.legal-nav a:hover,
.legal-page a:hover {
  color: var(--accent);
}

.legal-shell {
  width: min(760px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px clamp(22px, 5vw, 60px) 80px;
}

.legal-nav {
  margin-bottom: clamp(56px, 10vh, 96px);
  color: var(--muted);
  font-size: 12px;
}

.legal-page h1 {
  margin-bottom: 64px;
  font-size: clamp(34px, 5vw, 44px);
  letter-spacing: -0.035em;
}

.legal-page section {
  padding: 28px 0 36px;
  border-top: 1px solid var(--rule);
}

.legal-page h2 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.legal-page h3 {
  margin: 34px 0 9px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.legal-page p,
.legal-page address {
  max-width: 66ch;
  margin: 0 0 16px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.65;
}

.legal-page a {
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

@media (max-width: 780px) {
  .contact-shell {
    --contact-offset: 0px;
    padding: 24px 22px 26px;
  }

  .contact-page,
  .contact-footer {
    width: 100%;
  }

  .contact-page {
    padding-bottom: 8vh;
  }

  .contact-page h1 {
    font-size: clamp(30px, 9vw, 36px);
  }

  .legal-shell {
    padding: 24px 20px 60px;
  }

  .legal-nav {
    margin-bottom: 56px;
  }

  .legal-page h1 {
    margin-bottom: 46px;
  }
}

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