@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('assets/bricolage-grotesque.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0e192c;
  --surface: #15243a;
  --ink: #e8edf5;
  --text: #b3c0d3;
  --muted: #91a3be;
  --accent: #7de1d4;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 48px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
p { margin: 0 0 18px; text-wrap: pretty; }
strong { color: var(--ink); font-weight: 500; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.3; text-wrap: balance; }
h1 { font-size: clamp(36px, 3.65vw, 54px); line-height: 1.05; letter-spacing: -.045em; }
h2 { margin-bottom: 26px; font-size: 20px; letter-spacing: -.015em; }
h3 { font-size: 20px; letter-spacing: -.015em; }
h4 { font-size: 17px; font-weight: 500; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 90px; max-width: 1220px; margin-inline: auto; padding-inline: 48px; }
.intro { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; justify-content: space-between; height: 100svh; max-height: 1000px; min-height: 650px; padding-block: 94px 62px; }
.name-link { display: inline-block; }
.name-link:hover h1 { color: var(--accent); }
.role { color: var(--ink); margin-block: 20px; font-size: 23px; line-height: 1.45; letter-spacing: -.02em; }
.intro-summary { max-width: 29ch; margin-bottom: 24px; }
.location { color: var(--muted); font-size: 14px; }
.language-switch { position: absolute; inset-block-start: 24px; inset-inline-end: 0; display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.language-switch a { display: inline-flex; align-items: center; min-height: 32px; }
.language-switch a[aria-current] { color: var(--accent); text-decoration: underline; }
.section-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; margin-top: 44px; }
.section-nav a { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.section-nav a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0; }
.section-nav a[aria-current], .section-nav a:hover { color: var(--accent); }
.section-nav a[aria-current]::before { opacity: 1; }
.intro-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 44px; }
.button { display: inline-flex; gap: 22px; align-items: center; justify-content: center; min-height: 48px; padding: 10px 19px; background: var(--accent); color: var(--bg); font-size: 14px; font-weight: 600; border-radius: 4px; }
.button:hover { color: var(--bg); background: #a0eee4; }
.resume-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; }
.resume-link span { color: var(--muted); font-size: 14px; }
.resume-link:hover { text-decoration: underline; }
main { min-width: 0; padding-top: 98px; }
main:focus { outline: none; }
section { scroll-margin-top: 0; margin-bottom: 96px; }
.job { margin-bottom: 44px; }
.job-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 22px; }
.date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.job-heading > .date { flex-shrink: 0; }
.position { margin-top: 24px; }
.position .date { margin-block: 5px 10px; }
.position p:last-child { margin-bottom: 0; }
.job-title { color: var(--ink); margin-top: -12px; margin-bottom: 14px; }
.stack { margin-top: 20px; margin-bottom: 0; color: var(--accent); font-size: 14px; line-height: 1.8; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font-size: 14px; font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.text-link span { font-size: 20px; }
.section-intro { margin-top: -11px; margin-bottom: 34px; color: var(--muted); }
.project { padding: 24px; margin: 0 -24px 18px; border-radius: 4px; }
.project:hover, .project:focus-within, .project:has(details[open]) { background: var(--surface); }
.project-context { margin-top: 8px; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
details { margin-top: 20px; }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; color: var(--ink); font-size: 14px; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
details[open] summary svg { transform: rotate(180deg); }
.detail-body { padding-top: 14px; font-size: 17px; }
.detail-body ul { margin: 0 0 16px; padding-left: 19px; }
.detail-body li { padding-left: 5px; margin-bottom: 10px; }
.detail-body li::marker { color: var(--accent); }
.detail-body p:last-child { margin-bottom: 0; }
.expertise { margin: 0; }
.expertise > div { margin-bottom: 24px; }
dt { color: var(--ink); font-weight: 500; margin-bottom: 6px; }
dd { margin: 0; }
.education-entry { margin-bottom: 26px; }
.education-entry h3 { font-size: 17px; font-weight: 500; }
.education-entry p { margin-top: 7px; font-size: 14px; }
.education-entry .date { font-size: inherit; }
.contact-email { color: var(--accent); font-size: 20px; overflow-wrap: anywhere; }
.contact-email:hover { text-decoration: underline; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 0 36px; color: var(--muted); font-size: 14px; }
footer p { margin: 0; }
.skip-link { position: fixed; z-index: 10; top: -100px; left: 24px; background: var(--accent); color: var(--bg); padding: 12px 18px; }
.skip-link:focus { top: 16px; color: var(--bg); }

@media (min-width: 1001px) and (max-height: 720px) {
  .intro { min-height: 590px; padding-block: 50px 30px; }
  .intro-bottom { gap: 16px; margin-top: 28px; }
  .language-switch { inset-block-start: 8px; }
  .section-nav { margin-top: 28px; }
}

@media (max-width: 1100px) {
  .layout { gap: 60px; padding-inline: 36px; }
  h1 { font-size: 42px; }
  .job-heading { flex-direction: column; gap: 7px; }
}

@media (max-width: 1000px) {
  .layout { display: block; max-width: 760px; padding-inline: 32px; }
  .intro { position: relative; height: auto; min-height: 0; max-height: none; padding-block: 72px 64px; }
  h1 { font-size: 52px; }
  .intro-summary { max-width: 39ch; }
  .intro-bottom { flex-direction: row; align-items: center; gap: 26px; margin-top: 30px; }
  .section-nav { flex-direction: row; flex-wrap: wrap; column-gap: 28px; row-gap: 12px; margin-top: 30px; }
  .section-nav a::before { display: none; }
  main { padding-top: 0; }
  section { margin-bottom: 76px; }
  .job-heading { flex-direction: row; }
  .desktop-break { display: none; }
}

@media (max-width: 480px) {
  html { scroll-padding-top: 28px; }
  body { font-size: 16px; }
  .layout { padding-inline: 24px; }
  .intro { padding-block: 52px 54px; }
  h1 { font-size: 42px; }
  .role { font-size: 20px; margin-block: 17px; }
  .intro-summary { max-width: 30ch; margin-bottom: 18px; }
  .location { font-size: 14px; }
  .language-switch { inset-block-start: 8px; }
  .section-nav { column-gap: 23px; row-gap: 12px; }
  .section-nav a { font-size: 14px; min-height: 30px; }
  .intro-bottom { flex-wrap: wrap; gap: 24px; }
  .button { font-size: 14px; gap: 14px; padding-inline: 15px; }
  .resume-link { font-size: 14px; gap: 7px; }
  .resume-link span { font-size: 14px; }
  h2 { font-size: 20px; margin-bottom: 24px; }
  h3 { font-size: 20px; }
  .job-heading { flex-direction: column; gap: 8px; }
  .job-heading h3 { max-width: 27ch; }
  .job { margin-bottom: 38px; }
  .project { margin-inline: -16px; padding: 20px 16px; }
  .project-context { font-size: 14px; }
  summary { font-size: 14px; gap: 12px; }
  h4, .education-entry h3, .detail-body { font-size: 16px; }
  .stack { font-size: 14px; }
  .contact-email { font-size: 20px; }
  .contact-actions { gap: 18px; }
  section { margin-bottom: 68px; }
}

@media (max-width: 359px) {
  .layout { padding-inline: 20px; }
  h1 { font-size: 36px; }
  .section-nav { column-gap: 19px; }
  .intro-bottom { flex-wrap: wrap; gap: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, summary { transition: color 180ms ease, background-color 180ms ease, transform 180ms var(--ease); }
  .button:hover svg { transform: translateX(3px); }
  .button:active { transform: translateY(1px); }
  svg { transition: transform 220ms var(--ease); }
  .project { transition: background-color 180ms ease; }
}

@media print {
  :root { color-scheme: light; --bg: #fff; --ink: #000; --text: #222; --muted: #444; --accent: #075d55; }
  body { font-size: 10pt; }
  .layout { display: block; padding: 0; max-width: none; }
  .intro { position: static; height: auto; min-height: 0; padding: 0 0 24px; }
  .intro-summary, .location { margin-bottom: 5px; }
  .role { font-size: 14pt; }
  h1 { font-size: 26pt; }
  nav, .intro-bottom, .contact-actions, footer, .text-link, summary { display: none; }
  main { padding-top: 0; }
  section { margin-bottom: 25px; }
  h2, h3, h4 { break-after: avoid; }
  .position, .education-entry { break-inside: avoid; }
  .project { padding: 0; margin: 0 0 22px; }
  details { display: none; }
  .job-heading { flex-direction: row; }
}
