:root {
  color-scheme: light;
  --paper: #f8f9fa;
  --mist: #e8eef2;
  --ink: #17263a;
  --body: #3d4c5d;
  --line: #b9c7d1;
  --accent: #284861;
  --night: #172b40;
  --white: #fff;
  --serif: "Iowan Old Style", "Bitstream Charter", "Palatino Linotype", Georgia, serif;
  --sans: "Aptos", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
textarea:focus-visible {
  outline: 2px solid #2a6391;
  outline-offset: 4px;
}

.shell {
  width: min(100% - 7rem, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  top: .5rem;
  left: .5rem;
  padding: .5rem 1rem;
  transform: translateY(-160%);
  background: var(--white);
}

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

.site-header {
  border-bottom: 1px solid #dbe2e7;
}

.header-inner,
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  min-height: 5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  font-family: var(--serif);
  font-size: 1.44rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-decoration: none;
}

.wordmark-symbol {
  position: relative;
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.3rem;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.wordmark-symbol::before,
.wordmark-symbol::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.wordmark-symbol::before {
  top: .22rem;
  right: 0;
  width: .66rem;
  height: 1px;
}

.wordmark-symbol::after {
  left: .43rem;
  top: .22rem;
  bottom: 0;
  width: 1px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem 1.85rem;
  font-size: .9rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

nav a:hover,
.wordmark:hover {
  text-decoration: underline;
  text-underline-offset: .22em;
}

nav .nav-contact {
  padding-inline: .95rem;
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .97fr);
  align-items: center;
  gap: clamp(2.5rem, 5.4vw, 5.4rem);
  padding-block: clamp(3.8rem, 7vw, 6.4rem) clamp(4rem, 7vw, 6.1rem);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.25rem, 5.4vw, 5.5rem);
  line-height: .98;
}

h2 {
  font-size: clamp(2.35rem, 4.1vw, 3.95rem);
  line-height: 1.04;
}

h3 {
  font-size: clamp(1.52rem, 2.05vw, 1.88rem);
  line-height: 1.12;
}

.hero-copy > p {
  max-width: 36ch;
  margin-top: 1.6rem;
  color: var(--body);
  font-size: clamp(1.07rem, 1.6vw, 1.28rem);
}

.hero-copy > .button {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 .95rem/1.4 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
}

.button-primary:hover {
  background: var(--ink);
}

.hero-figure {
  position: relative;
  isolation: isolate;
  margin: 0 .8rem .8rem 0;
}

.hero-figure::before {
  position: absolute;
  inset: .9rem -.8rem -.8rem .9rem;
  z-index: -1;
  border: 1px solid var(--line);
  background: var(--mist);
  content: "";
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.22;
  object-fit: cover;
  object-position: 48% center;
}

.work {
  padding-block: clamp(3.2rem, 5.5vw, 5.2rem);
  background: var(--mist);
}

.work-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  align-items: start;
  gap: .8rem 3rem;
}

.work-intro > p,
.approach-copy > p {
  max-width: 48ch;
  color: var(--body);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 2.1rem;
  margin-top: 2.75rem;
}

.work-grid > article {
  padding-top: 1.25rem;
  border-top: 1px solid #8da3b3;
}

.work-grid p,
.approach-steps p {
  margin-top: .6rem;
  color: var(--body);
}

.work-grid h3,
.approach-steps h3 {
  text-wrap: wrap;
}

.approach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: 2rem clamp(3rem, 9vw, 9rem);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.approach-copy > p {
  margin-top: 1.2rem;
}

.approach-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: phase;
}

.approach-steps > li {
  position: relative;
  min-height: 2rem;
  padding: 1.1rem 0 1.25rem 3rem;
  border-top: 1px solid var(--line);
  counter-increment: phase;
}

.approach-steps > li::before {
  position: absolute;
  top: 1.24rem;
  left: 0;
  color: var(--accent);
  content: counter(phase, decimal-leading-zero);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}

.approach-steps > li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact {
  padding-block: clamp(3.4rem, 6.2vw, 5.9rem);
  background: var(--night);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 2rem clamp(3rem, 7vw, 7rem);
}

.contact h2 {
  max-width: 15ch;
}

.contact-inner > div > p {
  max-width: 43ch;
  margin-top: 1.2rem;
  color: #d3deeb;
}

.contact-email {
  font-weight: 600;
  overflow-wrap: anywhere;
  text-underline-offset: .2em;
}

.contact :focus-visible {
  outline-color: #a6d6fa;
}

.contact label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 600;
}

.contact textarea {
  display: block;
  width: 100%;
  min-height: 8rem;
  padding: .75rem .85rem;
  border: 1px solid #adbdce;
  border-radius: 2px;
  background: #f3f7fa;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.contact textarea::placeholder {
  color: #566677;
}

.contact form > p {
  margin-top: .6rem;
  color: #d3deeb;
  font-size: .9rem;
}

.contact .button {
  margin-top: .85rem;
}

.button-light {
  background: #e7f0f7;
  color: var(--ink);
}

.button-light:hover {
  background: var(--white);
}

.site-footer {
  background: var(--paper);
}

.footer-inner p {
  color: var(--body);
  font-size: .9rem;
}

@media (max-width: 58rem) {
  .shell {
    width: min(100% - 3.5rem, 76rem);
  }

  .hero {
    gap: 2.4rem;
  }

  .approach,
  .contact-inner {
    gap: 2rem;
  }
}

@media (max-width: 43rem) {
  .shell {
    width: calc(100% - 2.5rem);
  }

  .header-inner {
    flex-wrap: wrap;
    gap: .5rem 1rem;
    padding-block: .8rem;
  }

  nav {
    gap: 0 1.1rem;
  }

  nav .nav-contact {
    padding-inline: 0;
    border: 0;
    font-weight: 600;
  }

  .hero,
  .work-intro,
  .work-grid,
  .approach,
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.8rem;
  }

  h1 {
    font-size: clamp(2.85rem, 10.5vw, 4rem);
  }

  .hero-figure img {
    aspect-ratio: 1.4;
  }

  .work-grid {
    margin-top: 1.8rem;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: .5rem 1rem;
    padding-block: 1rem;
  }
}
