@font-face {
  font-family: Manrope;
  src: url("manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --ink: #151c2b;
  --white: #faf9f6;
  --muted: #4d5563;
  --on-ink: #c5cddd;
  --rule: #cbd0d8;
  --rule-dark: #3e4960;
  --accent: #c3d5ff;
  --soft: #e9eef7;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  font-family: Manrope, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3.25rem); font-weight: 800; letter-spacing: -.04em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: -.02em; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: .12em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--accent); color: var(--ink); }
[id] { scroll-margin-block-start: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; }
.icon { flex: none; width: 1.0625rem; height: 1.0625rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; inset: .5rem auto auto var(--gutter); z-index: 2; padding: .65rem 1rem; background: var(--accent); color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header, .hero, .contact, .site-footer { background: var(--ink); color: var(--white); }
.site-header { border-bottom: 1px solid var(--rule-dark); }
.header-layout { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 4.375rem; }
.brand, nav a, .text-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; width: fit-content; font-weight: 750; }
.brand { font-size: 1.02rem; font-weight: 800; text-decoration: none; }
.brand img { display: block; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(.7rem, 3vw, 2.4rem); color: var(--on-ink); font-size: .9375rem; }
nav a:last-child { color: var(--white); }

.hero-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: clamp(1.4rem, 4.5vw, 4rem); padding-block: clamp(2.75rem, 4.2vw, 4rem); }
.hero h1 { font-size: clamp(3.5rem, 7.6vw, 6rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.hero h1 > span { display: block; }
.period, .profile-role { color: var(--accent); }
.profile-role { margin-top: 1.05rem; font-size: clamp(1.05rem, 1.9vw, 1.38rem); font-weight: 750; line-height: 1.35; }
.profile-scope { max-width: 45ch; margin-top: .6rem; color: var(--on-ink); font-size: clamp(1rem, 1.35vw, 1.125rem); }
.profile-meta { margin-top: .75rem; color: var(--on-ink); font-size: .875rem; font-weight: 650; }
.hero-figure { margin: 0; }
.hero-figure img { display: block; width: 100%; height: auto; }
.contact-actions, .store-links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.hero .contact-actions { margin-top: 1.05rem; }
.contact-actions a { font-size: .9375rem; }
.mail { display: inline-flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 2.75rem; padding: .625rem .875rem; border-radius: 2px; background: var(--accent); color: var(--ink); font-weight: 800; }
.mail:hover { background: var(--white); }
.mail:focus-visible { outline-color: var(--accent); }

.detail-section { padding-block: clamp(2.4rem, 5.4vw, 4.6rem); }
.detail-section + .detail-section { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr); align-items: start; gap: .65rem 2rem; margin-bottom: 1.4rem; }
.section-head p, .record p, .project p, .certs { max-width: 70ch; color: var(--muted); }
.records { border-bottom: 1px solid var(--rule); }
.record { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr); align-items: baseline; gap: .35rem 2rem; padding-block: 1rem; border-top: 1px solid var(--rule); }
.record h3 span { display: block; margin-top: .25rem; color: var(--muted); font-size: .85rem; font-weight: 650; letter-spacing: normal; }
.record:target { background: var(--soft); }
.experience-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; margin-top: .7rem; }
.certs { font-size: .875rem; }
.certs strong, .project strong { color: var(--ink); }

.project { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .4rem 1.5rem; }
.project p { margin-top: .7rem; }
.section-action { margin-top: .65rem; }

.contact { padding-block: clamp(2.4rem, 5.4vw, 4.6rem); }
.contact-layout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .9rem 2rem; }
.contact p { max-width: 55ch; margin-top: .55rem; color: var(--on-ink); }
.site-footer { color: var(--on-ink); border-top: 1px solid var(--rule-dark); }
.footer-layout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; min-height: 4rem; font-size: .875rem; }

@media (max-width: 52rem) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-figure { display: none; }
}

@media (max-width: 40rem) {
  .header-layout { min-height: 3.75rem; }
  .brand { font-size: .9rem; }
  .brand img { width: 26px; height: 26px; }
  nav { font-size: .85rem; }
  nav .nav-projects { display: none; }
  .hero-layout { padding-block: 2.15rem; }
  .hero h1 { font-size: clamp(3rem, 11.8vw, 4.4rem); }
  .section-head, .record { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 1rem; }
  .record { gap: .55rem; }
}
