@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-81401990.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-151a53ae.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --ink: #000000;
  --paper: #ffffff;
  --accent: #00a240;
  --accent-contrast: #000000;
  --copy: #333333;
  --muted: #555555;
  --line: rgba(0, 0, 0, 0.18);
  --section-bg: #000000;
  --section-text: #ffffff;
  --section-muted: rgba(255, 255, 255, 0.7);
  --section-line: rgba(255, 255, 255, 0.28);
  --footer-bg: #000000;
  --footer-text: #ffffff;
  --font-display: 'Manrope', Arial, sans-serif;
  --font-body: 'DM Sans', Arial, sans-serif;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #ffffff;
  --paper: #000000;
  --copy: #d0d0d0;
  --muted: #a7a7a7;
  --line: rgba(255, 255, 255, 0.22);
  --section-bg: #121212;
  --section-text: #ffffff;
  --section-muted: rgba(255, 255, 255, 0.72);
  --section-line: rgba(255, 255, 255, 0.24);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ink: #ffffff;
    --paper: #000000;
    --copy: #d0d0d0;
    --muted: #a7a7a7;
    --line: rgba(255, 255, 255, 0.22);
    --section-bg: #121212;
    --section-text: #ffffff;
    --section-muted: rgba(255, 255, 255, 0.72);
    --section-line: rgba(255, 255, 255, 0.24);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header,
.home-hero,
.experience-section,
.site-footer {
  width: min(100% - 48px, 1400px);
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  display: flex;
  padding: 28px 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  height: 46px;
  align-items: center;
}

.brand-crop {
  display: block;
  width: 112px;
  height: 46px;
  overflow: hidden;
}

.brand-crop img {
  width: 112px;
  height: 112px;
  transform: translateY(-33px);
}

.brand-crop .brand-symbol-dark,
:root[data-theme='dark'] .brand-symbol-light {
  display: none;
}

:root[data-theme='dark'] .brand-crop .brand-symbol-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand-symbol-light {
    display: none;
  }

  :root:not([data-theme]) .brand-crop .brand-symbol-dark {
    display: block;
  }
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 42px);
  font-size: 0.9rem;
  font-weight: 650;
}

nav > a:not(.nav-cta) {
  padding: 7px 0 5px;
  border-bottom: 1px solid transparent;
}

nav > a[aria-current='page'] {
  border-color: var(--ink);
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
}

.language-switch a {
  min-width: 30px;
  padding: 5px 7px;
  border-radius: 999px;
  text-align: center;
}

.language-switch a[aria-current='page'] {
  background: var(--ink);
  color: var(--paper);
}

.language-switch span {
  color: var(--muted);
}

.theme-toggle {
  display: inline-flex;
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease;
}

.theme-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-cta {
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.home-hero {
  min-height: calc(100vh - 91px);
  padding: clamp(70px, 10vh, 120px) 0 100px;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 1260px;
  margin: 28px 0 clamp(65px, 9vw, 120px);
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 9.8rem);
  font-weight: 750;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

h1 em {
  color: var(--accent);
  font-weight: 400;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: clamp(60px, 11vw, 170px);
  align-items: start;
}

.lead {
  max-width: 700px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.bio-copy p {
  margin: 0 0 22px;
  color: var(--copy);
  font-size: 1.05rem;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  padding-bottom: 6px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--ink);
  font-weight: 750;
}

.experience-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: clamp(60px, 10vw, 150px);
  padding-top: 110px;
  padding-bottom: 120px;
  background: var(--section-bg);
  color: var(--section-text);
  box-shadow: 0 0 0 100vmax var(--section-bg);
  clip-path: inset(0 -100vmax);
}

.experience-heading h2 {
  max-width: 520px;
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.8vw, 5.4rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.experience-intro {
  max-width: 500px;
  margin: 38px 0 0;
  color: var(--section-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.tech-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--section-line);
}

.tech-list li {
  display: flex;
  padding: 19px 4px;
  align-items: baseline;
  gap: 30px;
  border-bottom: 1px solid var(--section-line);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  font-weight: 650;
}

.tech-list span {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 750;
}

.site-footer {
  display: flex;
  padding: 25px 0;
  align-items: center;
  justify-content: space-between;
  color: var(--footer-text);
  background: var(--footer-bg);
  border-top: 1px solid var(--section-line);
  box-shadow: 0 0 0 100vmax var(--footer-bg);
  clip-path: inset(0 -100vmax);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  width: 86px;
  height: 86px;
}

.site-footer a {
  font-weight: 650;
}

.contact-hero,
.contact-details {
  width: min(100% - 48px, 1400px);
  margin-right: auto;
  margin-left: auto;
}

.contact-hero {
  display: grid;
  min-height: calc(100vh - 272px);
  padding: clamp(75px, 11vh, 130px) 0 100px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.55fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: end;
}

.contact-hero h1 {
  margin-bottom: 0;
}

.contact-hero h1 span {
  color: var(--accent);
}

.contact-copy {
  padding-bottom: 10px;
}

.contact-copy > p {
  margin: 0 0 36px;
  color: var(--copy);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.65;
}

.contact-button {
  display: inline-flex;
  min-height: 56px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease;
}

.contact-button:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

.contact-details {
  display: grid;
  padding: 28px 0 85px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.contact-details article {
  min-width: 0;
  padding-right: 30px;
}

.contact-details article + article {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.contact-details p,
.contact-details a {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.contact-details .detail-label {
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .site-header,
  .home-hero,
  .experience-section,
  .site-footer,
  .contact-hero,
  .contact-details {
    width: min(100% - 32px, 1400px);
  }

  .home-hero {
    min-height: auto;
    padding: 65px 0 80px;
  }

  h1 {
    margin-bottom: 65px;
  }

  .intro-grid,
  .experience-section,
  .contact-hero {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 42px;
  }

  .experience-section {
    gap: 60px;
    padding-top: 85px;
    padding-bottom: 90px;
  }

  .contact-hero {
    min-height: auto;
    gap: 55px;
    padding: 70px 0 80px;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-details article,
  .contact-details article + article {
    padding: 25px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-details .detail-label {
    margin-bottom: 14px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-top: 20px;
  }

  nav {
    max-width: 205px;
    gap: 10px;
    font-size: 0.78rem;
  }

  .nav-cta {
    padding: 9px 12px;
  }

  .language-switch a {
    min-width: 27px;
    padding: 5px;
  }

  h1 {
    font-size: clamp(3.5rem, 16.5vw, 5rem);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
