:root {
  color-scheme: dark;
  --midnight: #0b132b;
  --midnight-soft: #111c3b;
  --ivory: #f7f3e8;
  --teal: #20b7a8;
  --coral: #f07167;
  --gold: #f2c14e;
  --muted: #c8cedd;
  --line: rgb(247 243 232 / 18%);
  --max-width: 75rem;
  --display: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { width: 100%; margin: 0; min-width: 0; max-width: 100%; overflow-x: clip; background: var(--midnight); color: var(--ivory); font: 400 1rem/1.65 var(--body); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: .19rem solid var(--gold); outline-offset: .25rem; border-radius: .15rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; transform: translateY(-200%); padding: .65rem .9rem; background: var(--ivory); color: var(--midnight); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 1rem; width: calc(100% - 2rem); max-width: var(--max-width); margin-inline: auto; }
.site-header { min-height: 5rem; border-bottom: 1px solid var(--line); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .85rem; }
.site-header nav a, .site-footer a { min-height: 2.75rem; display: inline-flex; align-items: center; font-size: .875rem; }
.brand { font-size: 1.4rem; font-weight: 800; letter-spacing: -.06em; text-decoration: none; }
.brand span { color: var(--coral); }
.language-switcher a { text-decoration: none; color: var(--muted); font-weight: 700; }
.language-switcher a[aria-current="page"] { color: var(--ivory); border-bottom: 2px solid var(--teal); }
.section { min-width: 0; width: calc(100% - 2rem); max-width: var(--max-width); margin-inline: auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.hero { padding-block: clamp(4rem, 9vw, 7rem); }
.hero-layout, .hero-copy { min-width: 0; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-name { margin-bottom: 1.25rem; color: var(--teal); font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 800; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.hero-illustration { display: none; margin: 0; }
.eyebrow { margin: 0 0 1rem; color: var(--teal); font-size: .77rem; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { width: 100%; max-width: 16ch; overflow-wrap: anywhere; font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -.045em; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3rem, 10vw, 7.2rem); }
h1 em { color: var(--gold); }
h2 { margin-bottom: 2.5rem; font-size: clamp(2.25rem, 6vw, 4.5rem); }
h3 { margin-bottom: .65rem; font-size: 1.15rem; line-height: 1.3; }
.intro { width: 100%; max-width: 44rem; margin-bottom: 2rem; color: var(--muted); font-size: clamp(1.05rem, 2.5vw, 1.32rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .7rem 1rem; border: 2px solid transparent; border-radius: .15rem; font-weight: 800; text-decoration: none; }
.button-primary { background: var(--coral); color: #1c1020; }
.button-primary:hover { background: #ff8a80; }
.button-secondary { border-color: var(--line); }
.button-secondary:hover { border-color: var(--ivory); }
.profile-links { display: flex; flex-wrap: wrap; gap: 1.2rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.profile-links a { color: var(--muted); }
.section-heading { margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.timeline { min-width: 0; padding: 0; margin: 0; list-style: none; }
.timeline > li { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.timeline > li > * { min-width: 0; }
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.timeline-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; color: var(--teal); }
.timeline-meta span { color: var(--muted); font-size: .875rem; }
.timeline p { color: var(--muted); }
.achievement-list { max-width: 100%; padding-left: 1.1rem; color: var(--ivory); overflow-wrap: anywhere; }
.achievement-list li + li { margin-top: .45rem; }
.skills-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.skills-list div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.skills-list div:last-child { border-bottom: 1px solid var(--line); }
.skills-list dt { color: var(--teal); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.skills-list dd { margin: 0; color: var(--muted); }
.credentials dl { display: grid; gap: 1.5rem; margin: 0; }
.credentials dl div { border-top: 1px solid var(--line); padding-top: 1rem; }
.credentials dt { color: var(--teal); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.credentials dd { margin: .45rem 0 0; color: var(--muted); }
.contact { border-top: 1px solid var(--line); }
.contact h2 { max-width: 18ch; }
.contact-email { display: inline-block; color: var(--gold); font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2.7rem); text-decoration-thickness: 1px; word-break: break-word; }
.site-footer { min-height: 6rem; padding: 1.5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-footer nav { gap: 1rem; }

@media (width >= 44rem) {
  .site-header, .site-footer { width: calc(100% - 4rem); }
  .section { width: calc(100% - 4rem); }
  .timeline > li { grid-template-columns: minmax(11rem, .72fr) 2fr; gap: 2.5rem; }
  .timeline-meta { display: block; }
  .timeline-meta span { display: block; margin-top: .25rem; }
  .skills-list div { grid-template-columns: minmax(11rem, .72fr) 2fr; gap: 2.5rem; }
  .credentials dl { grid-template-columns: repeat(3, 1fr); }
}

@media (width >= 60rem) {
  .hero-layout { grid-template-columns: minmax(0, 1.3fr) minmax(20rem, .7fr); gap: clamp(2rem, 5vw, 5rem); }
  .hero-illustration { display: block; width: min(100%, 28rem); aspect-ratio: 2 / 3; justify-self: end; background: center / contain no-repeat url("/images/backend-engineer-hero.png"); }
}

@media (width < 42rem) {
  .site-header { flex-wrap: wrap; padding: .85rem 0; }
  .site-header > nav:not(.language-switcher) { order: 3; width: 100%; overflow-x: auto; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (width < 44rem) {
  .timeline > li { display: block; width: 100%; max-width: 100%; }
  .timeline-meta { display: block; width: 100%; margin-bottom: 1rem; }
  .timeline-meta span { display: block; margin-top: .25rem; }
  .timeline p, .achievement-list { width: 100%; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
