:root {
  color-scheme: dark;
  --background: #19181a;
  --foreground: #fafafa;
  --body: #d1d5db;
  --muted: #9ca3af;
  --rule: #374151;
  --image-background: #242328;
  --accent: #e6ab89;
  --selection-background: #c27f58;
  --selection-text: #fff;
  --title-font: 'Poppins', sans-serif;
  --body-font: 'Inter', sans-serif;
  --section-font: 'Bebas Neue', sans-serif;
}
html[data-theme='light'] {
  color-scheme: light;
  --background: #fff;
  --foreground: #111;
  --body: #374151;
  --muted: #626975;
  --rule: #d1d5db;
  --image-background: #f3f4f6;
  --accent: #93502d;
  --selection-background: #f4cfaa;
  --selection-text: #3b281e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--body-font); line-height: 1.625; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--selection-background); color: var(--selection-text); }
html { scrollbar-color: var(--rule) var(--background); }
.skip-link { position: fixed; top: -60px; left: 16px; padding: 8px 16px; background: var(--background); z-index: 10; }
.skip-link:focus { top: 8px; }
.portfolio { width: min(100%, 896px); margin: 0 auto; padding: 80px 24px 32px; }
.intro { padding-bottom: 48px; border-bottom: 1px solid var(--rule); }
.banner { height: 256px; position: relative; }
.banner > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; }
#theme-toggle { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; border: 0; border-radius: 7px; background: #19181ae8; color: #fff; }
#theme-toggle:hover { background: #302b2a; }
#theme-toggle .icon { grid-area: 1 / 1; width: 21px; height: 21px; }
#theme-toggle .moon, html[data-theme='light'] #theme-toggle .sun { display: none; }
html[data-theme='light'] #theme-toggle .moon { display: block; }
.identity { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 32px; position: relative; }
.person { padding-bottom: 32px; }
h1 { font-family: var(--title-font); font-size: 48px; line-height: 1.2; letter-spacing: -.025em; font-weight: 700; margin: 0; }
.subtitle { font-family: var(--title-font); font-size: 20px; line-height: 1.5; color: var(--muted); margin: 4px 0 0; }
.socials { display: flex; gap: 24px; margin-top: 16px; color: var(--body); align-items: center; }
.socials a { display: flex; align-items: center; justify-content: center; width: 24px; height: 28px; }
.icon { width: 24px; height: 24px; display: block; flex-shrink: 0; }
.portrait { flex-shrink: 0; margin-top: -96px; }
.portrait img { display: block; width: 192px; height: 192px; border-radius: 50%; object-fit: cover; border: 4px solid var(--background); box-shadow: 0 14px 22px -10px #0007; }
.banner > .theme-light, .portrait > .theme-light { display: none; }
html[data-theme='light'] .theme-light { display: block; }
html[data-theme='light'] .theme-dark { display: none; }
.section { padding: 62px 16px 44px; border-bottom: 1px solid var(--rule); }
h2 { margin: 0 0 24px; font-family: var(--section-font); font-size: 36px; line-height: 1.12; letter-spacing: .025em; font-weight: 400; }
p { margin: 0; }
.about-copy { font-size: 18px; line-height: 1.625; color: var(--body); }
.about-copy p + p { margin-top: 18px; }
.about-meta { display: block; margin-top: 24px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.about-meta-separator { margin: 0 2px; }
.jobs { display: grid; gap: 32px; }
.job { padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
.job:last-child { padding-bottom: 0; border: 0; }
.job-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
h3 { font-family: var(--title-font); font-size: 24px; line-height: 1.4; font-weight: 600; margin: 0; }
.job-role { font-size: 14px; margin-top: 3px; color: var(--body); }
.job-period { font-size: 12px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.job-description { font-size: 14px; line-height: 1.75; margin-top: 14px; color: var(--body); }
.school-grade { font-size: 12px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.job-roles { display: grid; gap: 12px; margin-top: 3px; }
.job-role-title { color: var(--body); font-size: 14px; }
.job-role-period { margin-top: 2px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.projects-section h2 { margin-bottom: 40px; }
.projects { display: grid; gap: 80px; }
.project { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.project-image { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--image-background); }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.16,1,.3,1); }
.project-title { display: flex; align-items: baseline; gap: 12px; }
.project-title h3 { font-size: 23px; line-height: 1.35; }
.project-link { display: flex; flex-shrink: 0; align-self: flex-start; margin-top: 5px; color: var(--muted); }
.project-link .icon { width: 20px; height: 20px; }
.project-info > p { font-size: 14px; line-height: 1.65; margin-top: 12px; color: var(--body); }
.project-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 14px 0 0; font-size: 10px; color: var(--muted); }
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 32px 64px; }
.contact-intro h2 { margin-bottom: 16px; }
.contact-intro p { max-width: 34ch; color: var(--body); font-size: 16px; line-height: 1.7; }
.contact-details { display: grid; margin: 0; }
.contact-details > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 62px; }
.contact dt { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.contact dd { min-width: 0; margin: 0; color: var(--body); font-size: 14px; overflow-wrap: anywhere; }
.contact a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 500; text-decoration: none; text-underline-offset: 4px; }
.contact a:hover { text-decoration: underline; text-decoration-color: currentColor; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 16px 0; color: var(--muted); font-size: 11px; }
@media (max-width: 767px) {
  .portfolio { padding-top: 40px; }
  .banner { height: 192px; }
  .identity { flex-direction: column-reverse; align-items: center; gap: 24px; text-align: center; padding: 0 16px; }
  .portrait { margin-top: -80px; }
  .portrait img { width: 160px; height: 160px; }
  .person { padding-bottom: 24px; }
  h1 { font-size: 36px; }
  .socials { justify-content: center; }
  .intro { padding-bottom: 36px; }
  .section { padding-top: 48px; padding-bottom: 36px; }
  .project { grid-template-columns: 1fr; gap: 24px; }
  .contact { grid-template-columns: 1fr; gap: 24px; }
  .project-title { justify-content: center; }
  .project-info > p { text-align: left; }
  .projects { gap: 64px; }
}
@media (max-width: 480px) {
  .portfolio { padding: 24px 12px 24px; }
  .section { padding-left: 10px; padding-right: 10px; }
  .banner { height: 180px; }
  .job-heading { display: block; }
  .job-period { margin-top: 8px; }
  .job-roles { margin-top: 12px; }
  .about-copy { font-size: 16px; }
  .about-meta { font-size: 11px; }
  .contact dl { font-size: 14px; }
  .project-title h3 { font-size: 21px; }
  footer { padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-image img { transition: none; }
}

img { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
