:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --ink: #1c1b19;
  --muted: #77736c;
  --rule: #c9c4b9;
  --button: #dedad1;
  --accent: #c94d2e;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191918;
  --ink: #eeeae1;
  --muted: #96928c;
  --rule: #353431;
  --button: #343432;
  --accent: #ed7657;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header, main { width: min(1470px, calc(100% - 36px)); margin-inline: auto; }
.site-header { height: 132px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.wordmark { display: block; width: min(420px, 44vw); text-decoration: none; }
.logo { display: block; width: 100%; height: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.header-actions { display: flex; align-items: center; gap: 34px; }
.header-actions a { color: var(--muted); font-size: 20px; text-decoration: none; }
.header-actions a:hover { color: var(--ink); }
.header-actions .resume-link { padding: 12px 20px; color: var(--ink); background: var(--button); border-radius: 20px; }
.header-actions .resume-link:hover { color: var(--paper); background: var(--ink); }
.theme-toggle { width: auto; padding: 8px 0 8px 2px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 20px; }
.theme-toggle:hover { color: var(--ink); }

.hero { display: flex; min-height: calc(100vh - 132px); padding: 152px 24px 128px; align-items: center; flex-direction: column; justify-content: center; text-align: center; }
.kicker { margin: 0 0 34px; color: var(--muted); font-size: 17px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { max-width: 920px; margin: 0; font-family: var(--serif); font-size: clamp(42px, 3.35vw, 52px); font-weight: 400; line-height: 1.2; letter-spacing: -.015em; }
.introduction { max-width: 1030px; margin: 42px 0 0; color: var(--muted); font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.48; text-wrap: balance; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

@media (max-width: 760px) {
  .site-header, main { width: min(100% - 32px, 1470px); }
  .site-header { height: 86px; }
  .wordmark { width: min(180px, 45vw); }
  .header-actions { gap: 8px; }
  .social-link { display: none; }
  .header-actions .resume-link { padding: 9px 13px; border-radius: 18px; font-size: 13px; }
  .header-actions .journal-link { font-size: 12px; }
  .theme-toggle { font-size: 18px; }
  .hero { min-height: calc(100vh - 86px); padding: 72px 0 100px; }
  .kicker { margin-bottom: 28px; font-size: 11px; line-height: 1.5; }
  .hero h1 { font-size: clamp(38px, 11.2vw, 50px); line-height: 1.12; }
  .introduction { margin-top: 32px; font-size: 19px; line-height: 1.55; }
}

@media (prefers-reduced-motion: no-preference) {
  .header-actions a, .theme-toggle { transition: color 160ms, background-color 160ms; }
}
