:root {
  color-scheme: light;
  --background: #faf9f6;
  --text: #263a41;
  --muted: #626c6e;
  --accent: #386e7c;
  --line: #dedfda;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
a:hover { color: var(--accent); }
main { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  min-height: min(850px, 100svh);
  padding-block: 88px;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 5px;
  background: #d9e3e6;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro-copy { min-width: 0; }
.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
}
h1 {
  margin: 0 0 15px;
  font-size: clamp(2.1rem, 4.15vw, 3.55rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.055em;
}
.role {
  margin: 0 0 25px;
  font-size: clamp(.88rem, 1.35vw, 1.05rem);
  font-weight: 500;
  line-height: 1.6;
}
.summary {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.9;
}
.email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: .9rem;
  text-decoration-color: #bdc7c8;
}
.social-links { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 27px -10px; }
.social-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #536467;
  border-radius: 3px;
}
.social-links a:hover { color: var(--accent); background: #edf0ec; }
.social-links svg { width: 19px; height: 19px; fill: currentColor; }
.social-links .stroke-icon { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-links .icon-dot { fill: currentColor; stroke: none; }
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  min-height: 44px;
  font-size: .85rem;
  text-decoration: none;
}
.about-link span { font-size: 1.15rem; }

.about {
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, 1fr);
  gap: 64px;
  padding-block: 80px 100px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 32px;
}
h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 550; letter-spacing: -.045em; line-height: 1.3; }
.about-copy { min-width: 0; max-width: 720px; }
.about-copy p { margin: 0 0 23px; color: var(--muted); font-size: 1rem; line-height: 1.95; }
.about-copy p:first-child { color: var(--text); }
.about-copy p:last-child { margin-bottom: 0; }

@media (max-width: 1000px) {
  main { width: calc(100% - 64px); }
  .intro { gap: 36px; padding-block: 64px; min-height: auto; }
  .portrait { aspect-ratio: 4 / 5; }
  .about { gap: 40px; grid-template-columns: minmax(0, .32fr) minmax(0, 1fr); }
}
@media (max-width: 800px) {
  main { width: min(500px, calc(100% - 48px)); }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 28px 36px; }
  .portrait {
    width: min(100%, 280px);
    aspect-ratio: 4 / 5;
    justify-self: center;
  }
  .intro-copy { text-align: center; }
  .eyebrow { margin-bottom: 16px; font-size: .67rem; }
  h1 { font-size: clamp(1.9rem, 8.5vw, 2.7rem); margin-bottom: 12px; }
  .role { font-size: .88rem; margin-bottom: 23px; text-wrap: balance; }
  .summary { font-size: .95rem; line-height: 1.8; margin-bottom: 19px; }
  .summary,
  .about-copy p {
    text-align: justify;
    text-align-last: left;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 7 3 3;
  }
  .email { font-size: .875rem; }
  .social-links { justify-content: center; gap: 10px; margin: 8px 0 15px; }
  .about-link { gap: 16px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 23px; padding-block: 36px 52px; scroll-margin-top: 24px; }
  .about-copy p { font-size: .95rem; line-height: 1.8; margin-bottom: 21px; }
  .about-copy p:last-child { margin-bottom: 0; }
}
@media (max-width: 360px) {
  main { width: calc(100% - 40px); }
  .portrait { width: min(100%, 250px); }
  .social-links { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
