:root,
html[data-theme="light"] {
  color-scheme: light;
  --paper: #ece7db;
  --field: #d9d2c4;
  --ink: #111111;
  --soft: #2a2a2a;
  --muted: #6a655a;
  --line: rgba(17, 17, 17, 0.2);
  --line-strong: rgba(17, 17, 17, 0.48);
  --accent: #e12b1a;
  --green: #1a7a3a;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #181611;
  --field: #12100c;
  --ink: #ece7db;
  --soft: #ece7db;
  --muted: #9a948a;
  --line: rgba(236, 231, 219, 0.2);
  --line-strong: rgba(236, 231, 219, 0.48);
  --accent: #e12b1a;
  --green: #4fc27a;
}

:root {
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-180%);
  background: var(--accent);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.site-header, main, .site-footer {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  border-bottom: 1px solid var(--line-strong);
}
.identity {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  gap: 12px;
}
.identity-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.identity strong, .identity small { display: block; }
.identity strong { font-size: 13px; }
.identity small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
nav, .header-tools, .language-switch, .hero-actions, .contact-actions, .footer-links {
  display: flex;
  align-items: center;
}
nav { gap: 4px; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
nav a:hover { color: var(--ink); }
.header-tools { justify-self: end; gap: 8px; }
.language-switch { gap: 2px; color: var(--muted); font-size: 10px; }
.language-switch button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { color: var(--accent); }
#theme-toggle {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
#theme-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.eyebrow, .location, .section-kicker, .project-number, .tag-list, .now-strip__meta {
  text-transform: uppercase;
}
.eyebrow, .location, .section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.eyebrow::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--accent);
  content: "";
}
.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: end;
  min-height: 520px;
  padding: clamp(64px, 7vw, 88px) 0 clamp(58px, 6vw, 72px);
  gap: clamp(48px, 7vw, 88px);
}
.public-hero h1, .section-intro h2, .contact-section h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
}
.public-hero h1 {
  max-width: 13ch;
  margin: 28px 0 0;
  font-size: clamp(54px, 7vw, 88px);
}
.hero-experience {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-intro {
  max-width: 65ch;
  margin: 34px 0 0;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}
.hero-actions, .contact-actions { flex-wrap: wrap; margin-top: 38px; gap: 10px; }
.primary-link, .secondary-link, .tertiary-link, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.primary-link { padding: 0 18px; background: var(--accent); color: var(--paper); }
.primary-link:hover { background: var(--ink); color: var(--paper); }
.secondary-link, .tertiary-link { padding: 0 18px; border: 1px solid var(--ink); }
.tertiary-link { border-style: dashed; }
.secondary-link:hover, .tertiary-link:hover { background: var(--paper); }
.profile-note { padding: 24px 0 4px 24px; border-left: 1px solid var(--line-strong); }
.profile-note__portrait {
  display: block;
  width: 100px;
  height: 100px;
  aspect-ratio: 1;
  margin-bottom: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
}
.profile-note__role, .profile-note .location { margin: 0; }
.profile-note__role { max-width: 24ch; color: var(--soft); font-size: 14px; }
.profile-note .location { max-width: 28ch; margin-top: 12px; line-height: 1.6; }
.selected-work, .personal-story {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  padding: clamp(72px, 8vw, 100px) 0;
  border-top: 1px solid var(--line-strong);
  gap: clamp(44px, 6vw, 84px);
}
.section-intro h2 { max-width: 11ch; margin: 20px 0 0; font-size: clamp(34px, 4.5vw, 52px); }
.section-summary { max-width: 40ch; margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.project-list { border-top: 2px solid var(--ink); }
.project-row {
  display: grid;
  grid-template-columns: 44px minmax(150px, 0.8fr) minmax(240px, 1.35fr);
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.project-number { padding-top: 4px; color: var(--accent); font-size: 10px; }
.project-title h3, .project-summary { margin: 0; }
.project-title h3 { font-size: 17px; }
.project-summary { max-width: 48ch; color: var(--muted); font-size: 14px; line-height: 1.65; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 8px;
}
.now-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  padding: 38px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  gap: clamp(48px, 8vw, 112px);
}
.now-strip__meta { display: flex; align-items: center; color: var(--soft); font-size: 10px; }
.now-strip__meta time { margin-left: auto; color: var(--muted); }
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--accent);
}
.now-strip__content h2, .now-strip__content p { margin: 0; }
.now-strip__content h2 { font-size: 21px; }
.now-strip__content p { max-width: 65ch; margin-top: 12px; color: var(--soft); font-size: 15px; }
.personal-story__summary {
  max-width: 58ch;
  margin: 0;
  color: var(--soft);
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.5;
}
.life-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.life-list li { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.life-list li:nth-child(odd) { margin-right: 20px; }
.life-list li::before { margin-right: 9px; color: var(--green); content: "+"; }
.contact-section {
  margin-bottom: 112px;
  padding: clamp(44px, 7vw, 72px);
  border: 2px solid var(--ink);
  border-left: 8px solid var(--accent);
  background: var(--paper);
}
.contact-section h2 { max-width: 17ch; margin: 22px 0 0; font-size: clamp(34px, 4.8vw, 56px); }
.contact-section > p:not(.section-kicker) { max-width: 58ch; margin: 24px 0 0; color: var(--soft); }
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 38px 0 48px;
  border-top: 1px solid var(--line);
  gap: 28px;
}
.site-footer strong, .site-footer > div > span { display: block; }
.site-footer > div > span, .site-footer p { margin: 5px 0 0; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.footer-links { gap: 18px; }
.text-link { color: var(--muted); }
.text-link:hover { color: var(--ink); }
.site-footer p { grid-column: 1 / -1; }
.social-link { gap: 6px; }
.linkedin-icon { flex: 0 0 auto; }
.not-found {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 80px;
}
.not-found h1 {
  max-width: 9ch;
  margin: 24px 0;
  font-family: var(--display);
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}
.not-found > p:not(.section-kicker) { color: var(--muted); }
.not-found > .primary-link { margin-top: 24px; }
.not-found-tools { display: flex; align-items: center; margin-top: 48px; gap: 12px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .public-hero { grid-template-columns: 1fr; }
  .profile-note { display: grid; grid-template-columns: auto 1fr; align-items: end; padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; gap: 20px; }
}
@media (max-width: 720px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 1120px); }
  .identity small { display: none; }
  .public-hero { min-height: auto; padding: 58px 0 64px; }
  .public-hero h1 { max-width: 100%; font-size: clamp(38px, 12vw, 52px); }
  .hero-actions, .contact-actions { align-items: stretch; flex-direction: column; }
  .hero-actions a, .contact-actions a { width: 100%; }
  .profile-note__portrait { width: 64px; height: 64px; margin: 0; }
  .selected-work, .personal-story { grid-template-columns: 1fr; padding: 76px 0; gap: 48px; }
  .project-row { grid-template-columns: 32px 1fr; gap: 12px; }
  .project-summary { grid-column: 2; }
  .now-strip { grid-template-columns: 1fr; gap: 28px; }
  .life-list { grid-template-columns: 1fr; }
  .life-list li:nth-child(odd) { margin-right: 0; }
  .contact-section { margin-bottom: 76px; padding: 38px 26px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; flex-direction: column; gap: 4px; }
  .site-footer p { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
