@font-face {
  font-family: "EB Garamond";
  src: url("assets/eb-garamond-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #0c2340;
  --blue: #1a82c3;
  --blue-text: #156da3;
  --slate: #505e6e;
  --paper: #f8f6f2;
  --line: #d9dfe3;
  --serif: "EB Garamond", Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-text); }
a:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h4 { font-family: var(--serif); font-weight: 400; overflow-wrap: anywhere; }
.wrap { width: min(72.5rem, calc(100% - 6rem)); margin-inline: auto; }
.skip { position: absolute; top: -8rem; left: 1rem; z-index: 5; padding: .75rem 1rem; background: white; }
.skip:focus { top: 1rem; }

/* Navigation */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .75rem; font: 500 2rem/1.1 var(--serif); white-space: normal; }
.brand img { width: 3.375rem; height: 3.375rem; object-fit: contain; }
.brand:hover, .footer-brand:hover { color: var(--navy); }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; text-underline-offset: .3em; }
nav a:hover { text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; }

/* Introduction */
.hero { display: grid; grid-template-columns: 1.7fr 1fr; align-items: end; gap: 4rem; padding-block: 4.5rem; }
h1 { font-size: 3.5rem; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--blue); }
.intro { max-width: 23rem; color: var(--slate); font-size: 1rem; line-height: 1.6; }
.eyebrow { display: block; margin-bottom: .75rem; color: var(--slate); font-size: .875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
h2 { color: var(--navy); font-size: 2.25rem; line-height: 1.15; letter-spacing: -.02em; }

/* Team */
.team { padding-block: 3rem 4.5rem; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.25rem; }
.section-heading p { max-width: 21rem; color: var(--slate); font-size: 1rem; }
.group-label { color: var(--navy); margin-bottom: 1.25rem; font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.person { min-width: 0; }
.portrait { aspect-ratio: 1; overflow: hidden; background: #e9edef; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.person-top { margin-top: .875rem; }
h4 { font-size: 1.625rem; line-height: 1.2; }
.person-name { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: #aab6c2; text-underline-offset: .15em; }
.person-name:hover { color: var(--blue-text); text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.linkedin-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.role { margin-top: .375rem; color: var(--blue-text); font-size: .875rem; }
.bio { margin-top: .875rem; color: var(--slate); font-size: 1rem; line-height: 1.6; }
.second-group { margin-top: 3rem; }

/* Investor backing */
.investors { background: var(--navy); color: var(--paper); }
.investors h2 { color: var(--paper); }
.investors-inner { display: grid; grid-template-columns: .85fr auto 1.4fr; align-items: center; gap: 2.75rem; padding-block: 3rem; }
.honorhealth-logo { display: inline-flex; align-items: center; justify-content: center; padding: 1.25rem; background: white; border-radius: .125rem; justify-self: start; max-width: 100%; }
.honorhealth-logo img { width: 13.5rem; height: auto; }
.honorhealth-logo:focus-visible { outline-color: white; }
.investor-copy { color: #cbd6e0; font-size: 1rem; line-height: 1.6; }

/* Contact and footer */
.contact { display: flex; justify-content: space-between; align-items: center; gap: 2.5rem; padding-block: 3.75rem; }
.contact-email:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.contact p { margin-top: .875rem; color: var(--slate); }
.contact-email { display: inline-flex; align-items: center; min-height: 2.75rem; font: 400 1.5rem/1.4 var(--serif); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; overflow-wrap: anywhere; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1rem 1.25rem; border-top: 1px solid var(--line); color: var(--slate); font-size: .875rem; }
.footer-brand { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .5625rem; }
.footer-brand img { width: 1.5rem; height: 1.5rem; flex-shrink: 0; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.footer-link { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .5rem; font-size: .875rem; }
.footer-link:hover { text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: .25em; }

/* Tablet: two readable columns. */
@media (max-width: 64rem) {
  .wrap { width: calc(100% - 3.5rem); }
  .hero { grid-template-columns: 1.4fr 1fr; gap: 2rem; padding-block: 3.5rem; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.75rem; }
  .section-heading { align-items: start; }
  .section-heading p { max-width: 17rem; }
  .investors-inner { grid-template-columns: auto 1fr; gap: 1.75rem 2rem; }
  .investors h2 { grid-column: 1 / -1; }
  .contact { flex-wrap: wrap; gap: 1.5rem; }
}

/* Phone: bounded portraits and stacked content. */
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead { flex-wrap: wrap; gap: 1rem; padding-block: 1.25rem 1rem; }
  .brand { font-size: 1.75rem; }
  .brand img { width: 2.75rem; height: 2.75rem; }
  nav { width: 100%; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line); padding-top: .5rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.5rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
  .intro { max-width: none; font-size: 1rem; }
  .team { padding-block: 2.25rem 3rem; }
  .section-heading { display: block; margin-bottom: 2rem; }
  .section-heading p { max-width: none; margin-top: 1rem; }
  .people-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .person { width: 100%; max-width: 26rem; margin-inline: auto; }
  .second-group { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2.5rem; }
  .investors-inner { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 2.5rem; }
  .contact { flex-direction: column; align-items: start; gap: 1.5rem; padding-block: 2.5rem; }
  .footer { gap: .5rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
