/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f4ef;
  --ink: #101010;
  --muted: #5e5a55;
  --accent: #7a6248;
  --line: #e6e0d8;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
.hero-grid > *, .cards > *, .quotes > *, .work-grid > * { min-width: 0; }
p, li, h1, h2, h3, h4 { overflow-wrap: break-word; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-size: 24px; text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--accent); margin: 0 4px; }
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .2s; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(48px, 7vw, 84px); font-weight: 400; letter-spacing: -.01em; margin-bottom: 18px; }
.lede { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; color: var(--ink); max-width: 30ch; }
.hero-bio { color: var(--muted); max-width: 56ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.text-link {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; max-width: 360px; margin-left: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }

.stats {
  list-style: none; padding: 40px 0 0; margin: 72px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line);
}
.stats .num { display: block; font-family: var(--serif); font-size: 48px; line-height: 1; margin-bottom: 8px; }
.stats .label { font-size: 13px; letter-spacing: .04em; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 56px; }
.section-head .section-sub { max-width: 680px; }
.section-head h2, .contact h2 { font-size: clamp(36px, 4.5vw, 52px); font-weight: 400; white-space: nowrap; }
.section-sub { color: var(--muted); margin-top: 16px; }

/* Experience cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 36px 32px; }
.card-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 20px; margin-bottom: 18px; }
.card h3 { font-size: 26px; margin-bottom: 14px; }
.card p:last-child { color: var(--muted); font-size: 15.5px; margin: 0; }

.timeline { list-style: none; margin: 64px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }
.timeline .when { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }

/* Recognition */
.recog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 72px; }
.recog-grid .plain-list li > span:first-child { white-space: nowrap; }
.list-title { font-size: 24px; margin-bottom: 16px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plain-list .yr { color: var(--muted); font-size: 14px; white-space: nowrap; }

.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.quote { margin: 0; padding: 36px 36px 30px; background: var(--bg); border-left: 2px solid var(--accent); }
.quote.featured { grid-column: 1 / -1; padding: 48px 56px 40px; }.quote.featured p { font-size: 27px; }
.quote p { font-family: var(--serif); font-size: 22px; line-height: 1.45; margin-bottom: 18px; }
.quote p::before { content: "\201C"; }
.quote p::after { content: "\201D"; }
.quote footer { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Resume */
.resume { border-top: 1px solid var(--ink); }
.r-block { padding: 36px 0; border-bottom: 1px solid var(--line); }
.r-h { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.r-role + .r-role { margin-top: 36px; }
.r-role-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.r-role-head h4 { font-size: 24px; }
.r-role-head h4 span { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); }
.r-dates { font-size: 13px; letter-spacing: .08em; color: var(--muted); margin: 0; white-space: nowrap; }
.r-intro { font-style: italic; color: var(--muted); }
.resume ul { margin: 0; padding-left: 18px; }
.resume li { margin-bottom: 10px; }
.resume li::marker { color: var(--accent); }
.r-early + .r-early { margin-top: 22px; }
.r-early p { margin: 0; color: var(--ink); }
.r-two { display: grid; grid-template-columns: 1fr; gap: 36px; }
.r-two li, .r-two p { white-space: nowrap; }
.tags { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { margin: 0 !important; font-size: 13.5px; padding: 6px 14px; border: 1px solid var(--line); background: var(--bg-alt); }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.work { background: var(--bg); padding: 40px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.work-type { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.work h3 { font-size: 28px; margin-bottom: 14px; }
.work p { color: var(--muted); font-size: 15.5px; }
.work-meta { font-style: italic; font-size: 14px !important; }
.work-status, .work-download {
  margin-top: auto; align-self: flex-start;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--muted);
}
.work-download { color: var(--ink); border-color: var(--ink); text-decoration: none; }
.work-download:hover { color: var(--accent); border-color: var(--accent); }

/* Contact */
.contact { padding: 120px 0; }
.button {
  display: inline-block; margin-top: 20px; padding: 16px 34px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s;
}
.button:hover { background: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}
@media (max-width: 820px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(3.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-3.25px) rotate(-45deg); }

  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 240px; margin: 0; }
  .stats { margin-top: 48px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .cards, .quotes, .work-grid, .recog-grid, .r-two { grid-template-columns: 1fr; }
  .recog-grid { gap: 40px; margin-bottom: 48px; }
  .card, .quote, .work { padding: 28px 24px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  /* Phones are too narrow for long single-line titles and list items; allow wrapping there only */
  .section-head h2, .contact h2 { white-space: normal; font-size: 34px; }
  .recog-grid .plain-list li > span:first-child, .r-two li, .r-two p { white-space: normal; }
  .quote.featured { padding: 28px 24px; }
  .quote.featured p { font-size: 22px; }
}

/* Print: resume prints cleanly if someone prints the page */
@media print {
  .site-header, .hero-links, .nav-toggle, .contact, .site-footer { display: none; }
  .section.alt { background: none; }
}
