:root {
  --ink: #14231e;
  --muted: #5d6863;
  --paper: #f4f0e8;
  --surface: #ebe5da;
  --accent: #d85b35;
  --line: rgba(20, 35, 30, 0.18);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; text-underline-offset: 0.22em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-header, main, footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 30px 0; }
.wordmark { display: grid; place-items: center; width: 44px; height: 44px; color: var(--paper); background: var(--ink); border-radius: 50%; font-weight: 800; text-decoration: none; }
nav { display: flex; gap: clamp(18px, 4vw, 42px); font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover, .text-link:hover { color: var(--accent); }
.hero { min-height: 78vh; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr); align-items: center; gap: clamp(48px, 7vw, 100px); padding: 80px 0 120px; }
.hero-copy { min-width: 0; }
.eyebrow, .section-number, .project-type { margin: 0 0 16px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.6rem, 7.5vw, 6.6rem); font-weight: 400; letter-spacing: -.055em; line-height: 1; }
.lede { max-width: 690px; margin: 42px 0 0; color: var(--muted); font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
.portrait-wrap { position: relative; margin: 0; }
.portrait-wrap::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--accent); }
.portrait { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.button { display: inline-flex; padding: 13px 22px; color: white; background: var(--accent); border-radius: 999px; font-weight: 700; text-decoration: none; }
.button:hover { transform: translateY(-2px); }
.text-link { font-weight: 700; text-decoration-thickness: 1px; }
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 90px 1fr; margin-bottom: 56px; }
.section-heading h2, .contact h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 5vw, 4.3rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.about-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(40px, 8vw, 100px); margin-left: 90px; }
.about-intro { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3.5vw, 2.7rem); line-height: 1.15; letter-spacing: -.025em; }
.about-copy p:first-child { margin-top: 0; }
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.timeline { margin-left: 90px; }
.role { display: grid; grid-template-columns: minmax(145px, .6fr) 2fr; gap: 40px; padding: 38px 0; border-top: 1px solid var(--line); }
.role:first-child { padding-top: 0; border-top: 0; }
.role-meta p { margin: 0; color: var(--muted); font-size: .86rem; }
.role h3, .project h3, .profile h3 { margin: 0 0 12px; font-size: 1.2rem; }
.role h3 span { color: var(--muted); font-weight: 450; }
.role p { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tags li { padding: 4px 11px; background: var(--surface); border-radius: 999px; color: var(--muted); font-size: .77rem; }
.work-intro { margin: -18px 0 42px 90px; }
.work-intro p { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.project-grid, .profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-left: 90px; }
.project { min-height: 340px; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 46px); background: var(--surface); }
.project h3 { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; }
.project .text-link { margin-top: auto; align-self: flex-start; }
.project-note { margin-top: auto; color: var(--muted); font-size: .85rem; font-style: italic; }
.profile-grid { gap: clamp(40px, 8vw, 100px); }
.subheading { margin-top: 34px !important; }
.skill-list { padding: 0; columns: 2; list-style: none; }
.skill-list li { margin-bottom: 8px; }
.skill-list li::before { content: "— "; color: var(--accent); }
.contact { width: min(calc(100% - 40px), var(--max)); margin: 40px auto; padding: clamp(42px, 8vw, 90px); color: var(--paper); background: var(--ink); }
.contact p:not(.eyebrow) { max-width: 650px; color: #b9c1bd; font-size: 1.1rem; }
.contact .button { margin-top: 18px; background: var(--paper); color: var(--ink); }
.contact .hero-actions { margin-top: 18px; }
.contact .hero-actions .button { margin-top: 0; }
.contact-link { color: var(--paper); font-weight: 700; }
footer { display: flex; justify-content: space-between; padding: 40px 0 60px; color: var(--muted); font-size: .85rem; }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header { padding-top: 20px; }
  nav a:nth-child(3) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 54px; padding: 90px 0 100px; }
  .portrait-wrap { width: calc(100% - 18px); max-width: 390px; }
  .section { padding: 80px 0; }
  .section-heading { grid-template-columns: 50px 1fr; }
  .timeline, .about-grid, .work-intro, .project-grid, .profile-grid { margin-left: 0; }
  .work-intro { margin-top: -14px; }
  .role, .about-grid, .project-grid, .profile-grid { grid-template-columns: 1fr; }
  .role { gap: 16px; }
  .role-meta { display: flex; gap: 20px; }
  .project { min-height: 300px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .hero-actions, .contact, footer { display: none; }
  body { background: white; font-size: 11pt; }
  .hero { min-height: auto; padding: 20px 0 50px; }
  .section { padding: 30px 0; break-inside: avoid; }
}
