:root {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #f7f7f3;
  color: #20251f;
  --paper: #f7f7f3;
  --ink: #20251f;
  --secondary: #51594f;
  --line: #d8ded4;
  --green: #31523a;
  --lime: #bef381;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #467052; outline-offset: 5px; border-radius: 3px; }
p, h1, h2, h3, figure { margin: 0; }
p { line-height: 1.65; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; padding: 12px; background: #fff; z-index: 2; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 870; letter-spacing: -.09em; font-size: 31px; line-height: 1; }
.wordmark span { color: var(--green); }
nav { display: flex; align-items: center; gap: clamp(13px, 3vw, 36px); }
nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 14px; font-weight: 650; }
nav a:hover, .text-link:hover, .email:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-contact { border: 1px solid var(--line); padding: 0 15px; border-radius: 100px; }
.hero { display: grid; grid-template-columns: 1.2fr .82fr; align-items: center; gap: clamp(35px, 6vw, 95px); padding-block: clamp(45px, 8vw, 102px) clamp(54px, 8vw, 99px); }
.location, .context, .period, .project-type { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.location { display: flex; gap: 9px; align-items: center; margin-bottom: 18px; color: var(--green); }
.location span { width: 8px; height: 8px; border-radius: 50%; background: #517f4a; }
h1 { font-size: clamp(55px, 8.6vw, 119px); line-height: .9; letter-spacing: -.09em; font-weight: 780; }
h1 span { color: #48724c; }
.role { margin-top: 25px; font-size: clamp(16px, 2vw, 21px); font-weight: 700; line-height: 1.35; }
.role span { color: #48724c; }
.intro { color: var(--secondary); max-width: 43ch; font-size: 16px; margin-top: 13px; }
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; }
.button { display: inline-flex; gap: 16px; align-items: center; min-height: 46px; padding: 10px 16px; font-size: 14px; font-weight: 750; border-radius: 7px; background: var(--lime); color: var(--ink); }
.button:hover { background: #a8df6b; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 14px; }
.portrait { position: relative; display: grid; grid-template-rows: 1fr auto; overflow: hidden; border-radius: 8px; background: #273129; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1 / 1.04; object-fit: cover; object-position: center top; display: block; }
.portrait figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; color: white; font-size: 13px; font-weight: 700; }
.portrait figcaption span { color: #d0dacd; font-weight: 500; }
.section { padding-block: clamp(40px, 6vw, 76px); border-top: 1px solid var(--line); scroll-margin-top: 22px; }
.section-head { display: grid; grid-template-columns: 1fr minmax(240px, .64fr); align-items: end; gap: 12px 25px; margin-bottom: 29px; }
h2 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -.075em; line-height: 1; font-weight: 760; }
.section-head p { color: var(--secondary); max-width: 40ch; }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.035em; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.work-card { padding: clamp(22px, 3.8vw, 44px); border-radius: 8px; display: flex; flex-direction: column; align-items: flex-start; }
.work-platform { background: #dce9d9; }
.work-insurance { background: #ebe5d9; }
.work-card h3 { font-size: clamp(28px, 3.5vw, 43px); margin-block: 28px 14px; max-width: 15ch; }
.work-card p:last-child { max-width: 47ch; }
.project { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding-block: 20px; }
.project:last-child { border-bottom: 1px solid var(--line); }
.project h3 { margin-bottom: 5px; }
.project p { color: var(--secondary); }
.project-icon { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 7px; font-size: 24px; font-weight: 750; }
.dose-icon { background: #e0ebdf; color: #315c41; }
.insu-icon { background: #e9e5f4; color: #543f75; }
.timeline article { display: grid; grid-template-columns: 145px 1fr; gap: 11px; padding-block: 18px; border-top: 1px solid var(--line); }
.timeline article p { color: var(--secondary); }
.timeline h3 { margin-bottom: 4px; }
.credential { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 8px; padding: 19px 23px; margin-top: 14px; background: #e6eee2; }
.credential .context { color: var(--green); margin-bottom: 7px; }
.contact { background: #252e25; color: #f5f7f1; }
.contact-inner { padding-block: 52px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.email { display: inline-block; margin-top: 16px; color: #dcebd7; }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.contact a:focus-visible { outline-color: var(--lime); }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .portrait { max-width: 445px; }
  .section-head { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card h3 { margin-top: 20px; }
  .project { grid-template-columns: auto 1fr; gap: 8px 14px; }
  .project > :last-child { grid-column: 2; justify-self: start; }
  .timeline article { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 400px) {
  .wrap { width: calc(100% - 32px); }
  nav { gap: 11px; }
  nav a { font-size: 12px; }
  .nav-contact { border: none; padding: 0; }
  .site-header { min-height: 66px; gap: 9px; }
  .contact-inner { align-items: start; flex-direction: column; }
}
