:root {
  --ink: #173532;
  --ink-soft: #49615d;
  --paper: #f4f0e8;
  --paper-deep: #e8e0d3;
  --accent: #b35836;
  --line: rgba(23, 53, 50, 0.2);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.6), transparent 32rem),
    var(--paper);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.masthead,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.masthead {
  display: flex;
  align-items: center;
  min-height: 145px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 108px;
  height: auto;
  mix-blend-mode: multiply;
}

section {
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 6.6rem);
}

h2 {
  max-width: 680px;
  font-size: clamp(2rem, 4.8vw, 4rem);
}

.intro {
  position: relative;
  padding: clamp(90px, 13vw, 170px) 0 clamp(90px, 11vw, 145px);
  overflow: hidden;
}

.intro::after {
  position: absolute;
  right: 0;
  bottom: 48px;
  width: 220px;
  height: 80px;
  opacity: 0.32;
  background-image: radial-gradient(var(--accent) 1.3px, transparent 1.3px);
  background-size: 12px 12px;
  content: "";
}

.intro-copy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 6vw, 90px);
  max-width: 900px;
  margin: 64px 0 45px auto;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.intro-copy p {
  margin: 0;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.partners {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: clamp(55px, 9vw, 130px);
  padding: clamp(85px, 11vw, 145px) 0;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.partner-grid li {
  display: grid;
  min-height: 148px;
  place-items: center;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.partner-grid img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 92px;
  object-fit: contain;
}

.partner-grid .logo-portrait {
  max-height: 88px;
}

.partner-grid .logo-wide {
  width: 100%;
  max-height: 72px;
}

.contact {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(55px, 10vw, 150px);
  padding: clamp(85px, 11vw, 145px) 0;
}

.contact-details {
  margin: 4px 0 0;
  font-style: normal;
}

.contact-details p {
  margin: 0 0 24px;
}

.contact-details span {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-details a {
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--accent);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 45px;
  color: var(--ink-soft);
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer a {
  text-decoration: none;
}

@media (max-width: 800px) {
  .masthead {
    min-height: 130px;
  }

  .intro-copy,
  .partners,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    margin-top: 44px;
  }

  .intro::after {
    display: none;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 28px;
  }
}

@media (max-width: 480px) {
  .masthead,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .partner-grid,
  .contact-details {
    grid-template-columns: 1fr;
  }

  .partner-grid li {
    min-height: 128px;
    padding: 20px;
  }

  footer {
    flex-direction: column;
  }
}

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