 :root {
  color-scheme: light;
  --paper: #f3f7f2;
  --ink: #153c30;
  --muted: #607368;
  --body-text: #39594b;
  --accent: #153c30;
  --line: #d9dfd3;
  --button-text: #f8f5ec;
  --button-hover: #245642;
  --surface-hover: #e9eddf;
  --button-border: #9baa9b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
.container { width: min(1100px, calc(100% - 96px)); margin: 0 auto; }
.jumbotron { padding: 100px 0 80px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 70px; align-items: start; }
h1 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -3px;
}
.intro { margin: 0 0 38px; font-size: 19px; line-height: 1.75; color: var(--body-text); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.experience { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.experience li { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.experience strong { color: var(--ink); font-size: 17px; font-weight: 600; }
.experience p { margin: 12px 0 0; font-size: 15px; line-height: 1.75; color: var(--body-text); }
.social-links { display: flex; gap: 12px; margin: 30px 0 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 10px 21px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; transition: background .15s ease, color .15s ease; }
.btn-primary { color: var(--button-text); background: var(--accent); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--button-hover); color: var(--button-text); }
.btn-secondary { border: 1px solid var(--button-border); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-hover); }
.portrait { padding-top: 7px; min-width: 0; }
.portrait-frame { overflow: hidden; border-radius: 12px; }
.portrait-image { display: block; width: 100%; height: auto; }
@media (max-width: 1000px) {
  .row { grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; }
}
@media (max-width: 740px) {
  .container { width: calc(100% - 40px); max-width: 560px; }
  .jumbotron { padding: 40px 0 48px; }
  .row { display: flex; flex-direction: column; gap: 28px; }
  .portrait { order: -1; position: static; padding: 0; }
  .portrait-frame { width: 140px; border-radius: 12px; }
  h1 { font-size: 48px; letter-spacing: -2px; margin-bottom: 22px; }
  .intro { font-size: 17px; margin-bottom: 30px; }
  .experience li { padding: 20px 0; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #18231e;
    --ink: #f8f5ec;
    --muted: #b5c3b7;
    --body-text: #d4ddcf;
    --accent: #e9e3cc;
    --line: #35483c;
    --button-text: #153c30;
    --button-hover: #ffffff;
    --surface-hover: #283a2e;
    --button-border: #718776;
  }
}
