:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --paper-deep: #ece9e1;
  --card: #fbfaf7;
  --ink: #132238;
  --ink-soft: #3f4b5c;
  --muted: #667180;
  --line: #dcd9d0;
  --accent: #1f6f78;
  --accent-deep: #14525a;
  --accent-soft: #cfe5dc;
  --night: #0f1d2e;
  --night-line: rgba(255, 255, 255, .14);
  --night-text: #c3ccd6;
  --white: #fdfcfa;
  --serif: 'Iowan Old Style', 'Charter', 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --shell: 1160px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .7rem 1rem; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(246, 244, 239, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; transition: color .15s ease; }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta { padding: 7px 16px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 500; }
.site-nav .nav-cta:hover { background: var(--ink); color: var(--white); }

/* Shared type */
.eyebrow { margin-bottom: 16px; color: var(--accent-deep); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.08; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; }
h1 em, h2 em { color: var(--accent); font-style: italic; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.lead { max-width: 580px; margin-top: 24px; color: var(--ink-soft); font-size: 19px; line-height: 1.65; }
.section { padding-block: 112px; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-intro { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }
.text-link { display: inline-block; margin-top: 20px; color: var(--accent-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--accent); }

/* Buttons */
.button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--accent-deep); }
.button-ghost { border-color: var(--line); color: var(--ink); }
.button-ghost:hover { border-color: var(--ink); }
.button-light { background: var(--white); color: var(--ink); white-space: nowrap; }
.button-light:hover { background: var(--accent-soft); }

/* Hero */
.hero { padding-block: 96px 88px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 72px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.portrait { justify-self: end; width: 100%; max-width: 320px; }
.portrait-frame { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: linear-gradient(160deg, var(--accent-soft), var(--paper-deep) 70%); box-shadow: 0 30px 60px -30px rgba(19, 34, 56, .35); }
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent-deep); font-family: var(--serif); font-size: 96px; opacity: .55; }
.portrait figcaption { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.portrait figcaption strong { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.portrait figcaption span { color: var(--muted); font-size: 15px; }

/* Credentials strip */
.credentials { border-block: 1px solid var(--line); background: var(--card); }
.credential-list { padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.credential-list li { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.credential-list li:first-child { padding-left: 0; border-left: 0; }
.credential-list strong { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.credential-list span { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Focus */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.focus-card { padding: 32px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.focus-num { margin-bottom: 28px; color: var(--accent); font-family: var(--mono); font-size: 14px; }
.focus-card h3 { margin-bottom: 12px; }
.focus-card p { color: var(--ink-soft); font-size: 16px; }
.focus-card ul { margin-top: 24px; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; font-size: 15px; }
.focus-card li { padding-left: 20px; position: relative; }
.focus-card li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--accent); }

/* Standards */
.standards { padding-block: 112px; background: var(--night); color: var(--white); }
.section-head-light .eyebrow { color: var(--accent-soft); }
.section-head-light .section-intro { color: var(--night-text); }
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--night-line); }
.standard { padding: 32px 32px 8px 0; display: flex; flex-direction: column; }
.standard + .standard { padding-left: 32px; border-left: 1px solid var(--night-line); }
.standard-tag { margin-bottom: 14px; color: var(--accent-soft); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.standard h3 { margin-bottom: 12px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.standard p:not(.standard-tag) { color: var(--night-text); font-size: 16px; }
.standard a { margin-top: auto; padding-top: 24px; color: var(--white); font-size: 15px; font-weight: 600; text-decoration: none; }
.standard a:hover { color: var(--accent-soft); }
.disclaimer { max-width: 760px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--night-line); color: #8e9bab; font-size: 14px; }

/* Experience */
.experience { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.experience .section-head { position: sticky; top: 112px; margin-bottom: 0; }
.timeline { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline li { padding-block: 28px; display: grid; grid-template-columns: 140px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.timeline-date { padding-top: 3px; color: var(--accent-deep); font-family: var(--mono); font-size: 14px; }
.timeline h3 { font-size: 19px; }
.timeline-org { margin: 2px 0 10px; color: var(--muted); font-size: 15px; }
.timeline li p:last-child { color: var(--ink-soft); font-size: 16px; }

/* Writing */
.writing { padding-block: 112px; background: var(--paper-deep); }
.writing-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.writing .section-head { margin-bottom: 0; }
.topic-list { padding: 0; list-style: none; display: grid; gap: 16px; }
.topic-list li { padding: 24px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.topic-status { display: inline-block; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.topic-list h3 { margin-bottom: 4px; font-size: 19px; }
.topic-list p { color: var(--ink-soft); font-size: 16px; }

/* Contact */
.contact { margin-block: 112px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 48px; background: var(--accent-deep); color: var(--white); border-radius: 8px; }
.contact .eyebrow { color: var(--accent-soft); }
.contact h2 { max-width: 620px; }
.contact p:last-child { max-width: 600px; margin-top: 16px; color: #d6e4e3; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer-inner { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer a { color: var(--accent-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr minmax(0, 300px); gap: 40px; padding-block: 72px; }
  .credential-list { grid-template-columns: repeat(2, 1fr); }
  .credential-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .credential-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .focus-grid, .standards-grid { grid-template-columns: 1fr; }
  .standard, .standard + .standard { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--night-line); }
  .experience, .writing-inner { grid-template-columns: 1fr; gap: 40px; }
  .experience .section-head { position: static; }
  .section, .standards, .writing { padding-block: 88px; }
  .contact { flex-direction: column; align-items: flex-start; padding: 44px; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 48px 64px; }
  .portrait { grid-row: 1; justify-self: start; max-width: none; display: flex; align-items: center; gap: 16px; }
  .portrait-frame { flex: 0 0 88px; border-radius: 50%; aspect-ratio: 1; box-shadow: none; }
  .portrait-fallback { font-size: 32px; }
  .portrait figcaption { margin-top: 0; }
  .lead { font-size: 17px; }
  .hero-actions .button { flex: 1 1 100%; justify-content: center; }
  .credential-list { grid-template-columns: 1fr; }
  .credential-list li, .credential-list li:nth-child(3) { padding: 20px 0; border-left: 0; }
  .credential-list li + li { border-top: 1px solid var(--line); }
  .section, .standards, .writing { padding-block: 64px; }
  .section-head { margin-bottom: 36px; }
  .focus-card { padding: 24px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .contact { margin-block: 64px; padding: 32px 24px; }
  .contact .button { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; }
}

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

/* Footer links and legal pages */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal { max-width: 760px; padding-block: 72px 96px; }
.legal h1 { margin-bottom: 8px; font-size: clamp(34px, 4vw, 46px); }
.legal .legal-sub { margin-bottom: 40px; color: var(--muted); }
.legal h2 { margin: 40px 0 12px; font-size: 24px; }
.legal p, .legal ul { margin-bottom: 14px; color: var(--ink-soft); }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-deep); }
.legal address { font-style: normal; margin-bottom: 14px; color: var(--ink-soft); }
.todo { padding: 1px 6px; border-radius: 4px; background: #fbe3c9; color: #7a3d0b; font-family: var(--mono); font-size: .85em; }
