:root {
  --navy: #12263a;
  --slate: #46596a;
  --blue-gray: #6b8294;
  --blue: #3479af;
  --rule: #d8e1e7;
  --light: #f3f6f8;
  --white: #fff;
  --heading: Baskerville, "Baskerville Old Face", Georgia, serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  font-family: var(--body);
  color: var(--slate);
  background: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}
main:focus { outline: none; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  color: var(--navy);
  font-family: var(--heading);
  font-weight: 400;
}
h2 {
  font-size: clamp(2.65rem, 5vw, 4rem);
  letter-spacing: -.045em;
  line-height: 1;
}
p { line-height: 1.68; }

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), 74rem);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  z-index: 1;
  inset: .75rem auto auto .75rem;
  padding: .7rem 1rem;
  color: var(--navy);
  background: var(--white);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 5.25rem;
}
.home-link {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 5.75rem;
  min-height: 2.75rem;
  overflow: hidden;
}
.home-link img {
  width: 100%;
  height: auto;
  margin-block: -.6rem;
}
nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 3.2vw, 2.75rem);
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .875rem;
  font-weight: 540;
  white-space: nowrap;
  text-decoration: none;
}
nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: .35em; }

.hero {
  background: linear-gradient(180deg, #f8fafb 0%, var(--white) 80%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.25rem, 6vw, 6.75rem);
  padding-block: clamp(3.25rem, 6.5vw, 6.25rem);
}
h1 {
  font-size: clamp(3.5rem, 6.1vw, 6rem);
  line-height: .92;
  letter-spacing: -.057em;
}
h1 span { display: block; }
.hero-copy {
  max-width: 35rem;
  margin-top: 1.75rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}
.hero-copy p + p { margin-top: .85rem; }

.primary-link, .text-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  font-weight: 600;
}
.primary-link {
  justify-content: space-between;
  min-width: 9rem;
  margin-top: 1.55rem;
  padding: .65rem 1rem;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: var(--white);
  font-size: .875rem;
  text-decoration: none;
}
.primary-link:hover { background: #233e56; }
.primary-link span, .text-link [aria-hidden="true"] { flex: 0 0 auto; font-size: 1.05em; }
.text-link {
  width: fit-content;
  color: var(--navy);
  font-size: .9375rem;
  text-decoration: none;
}
.text-link .link-label {
  text-decoration: underline;
  text-underline-offset: .26em;
  text-decoration-thickness: 1px;
}
.text-link:hover .link-label { text-decoration-thickness: 2px; }
.text-link [aria-hidden="true"] { color: var(--blue); }

.brand-panel {
  display: grid;
  place-items: stretch;
  aspect-ratio: 1 / 1.045;
  padding: clamp(1.125rem, 2.35vw, 2rem);
  border: 1px solid #e1e8ed;
  background: var(--light);
}
.panel-frame {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
}
.panel-frame::before, .panel-frame::after {
  position: absolute;
  width: 1.125rem;
  height: 1.125rem;
  content: "";
}
.panel-frame::before {
  inset: -1px auto auto -1px;
  border-top: 1px solid var(--blue-gray);
  border-left: 1px solid var(--blue-gray);
}
.panel-frame::after {
  inset: auto -1px -1px auto;
  border-bottom: 1px solid var(--blue-gray);
  border-right: 1px solid var(--blue-gray);
}
.panel-frame img { width: 76%; height: auto; }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
section[id] { scroll-margin-top: 1rem; }
.focus { border-top: 1px solid var(--rule); }
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3.5vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3.25rem);
}
.focus-area {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: .85rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.3rem;
}
.focus-area h3 {
  font-size: clamp(1.6rem, 2.35vw, 2.1rem);
  text-wrap: balance;
  letter-spacing: -.032em;
  line-height: 1.08;
}
.focus-area p { max-width: 35ch; }

.about {
  border-top: 1px solid #e5eaee;
  background: var(--light);
}
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7.5vw, 7rem);
}
.about-copy h2 { margin-bottom: 1.5rem; }
.about-copy p { max-width: 64ch; }
.about-copy p + p { margin-top: .9rem; }
.about-copy .text-link { margin-top: .65rem; }
.portrait {
  width: 100%;
  max-width: 24rem;
  justify-self: end;
}
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 26%;
  border-radius: 3px;
  background: #dce2e6;
}

.contact, .site-footer {
  background: var(--navy);
  color: #d9e4ed;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.4fr .86fr 1fr;
  align-items: start;
  gap: 1.5rem 2rem;
  padding-block: clamp(3.5rem, 6vw, 5.75rem);
}
.contact h2 { color: var(--white); }
.contact p { max-width: 33ch; margin-top: .85rem; }
.contact-person {
  display: grid;
  padding-top: .4rem;
  font-style: normal;
  line-height: 1.6;
}
.contact-person strong { color: var(--white); font-weight: 620; }
.contact-links {
  display: grid;
  justify-items: start;
}
.contact .text-link { color: var(--white); font-weight: 500; }
.contact .text-link [aria-hidden="true"] { color: #a7c7df; }
.contact a:focus-visible { outline-color: #a7c7df; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
  border-top: 1px solid #3a4d5f;
}
.footer-inner small { font-size: .8125rem; }
.four-squares {
  display: grid;
  grid-template-columns: repeat(2, .325rem);
  grid-auto-rows: .325rem;
  gap: .12rem;
}
.four-squares i { background: #b4c8d8; }
.four-squares i:nth-child(2) { background: #8da8bb; }
.four-squares i:nth-child(3) { background: var(--blue-gray); }
.four-squares i:nth-child(4) { background: var(--blue); }

@media (max-width: 53rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, .53fr);
    gap: 1.75rem;
  }
  h1 { font-size: clamp(3.15rem, 7.3vw, 4.5rem); }
  .brand-panel { aspect-ratio: 1; }
  .about-inner { gap: 2rem; }
  .contact-inner { grid-template-columns: 1fr 1fr; }
  .contact-inner > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 44rem) {
  .header-inner { min-height: 4.5rem; }
  .home-link { width: 4.625rem; }
  nav { gap: clamp(.75rem, 3.4vw, 1.4rem); }
  nav a { font-size: .8125rem; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  h1 { font-size: clamp(2.85rem, 10vw, 4.35rem); }
  .hero-copy { margin-top: 1.4rem; }
  .brand-panel {
    display: none;
  }
  .focus-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }
  .focus-area {
    grid-template-rows: auto;
    grid-row: auto;
    gap: .5rem;
    padding-top: 1rem;
  }
  .focus-area h3 {
    font-size: 1.7rem;
    text-wrap: wrap;
  }
  .focus-area p { max-width: 58ch; }
  .about-inner { grid-template-columns: minmax(0, 1fr); }
  .portrait {
    justify-self: start;
    max-width: 23rem;
  }
  .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .contact-person { padding-top: 0; }
  .contact-links .text-link { min-height: 2.75rem; }
}

@media (max-width: 22.5rem) {
  .home-link { width: 4rem; }
  nav { gap: .6rem; }
  nav a { font-size: .75rem; }
}
