:root {
  color-scheme: light dark;
  --background: #f4f5f2;
  --surface: #ffffff;
  --text: #18201e;
  --muted: #66716d;
  --line: #d8ded9;
  --accent: #246a62;
  --accent-strong: #154b45;
  --accent-soft: #dcebe7;
  --code: #e9ede9;
  --shadow: 0 20px 60px rgba(27, 43, 38, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111715;
    --surface: #18201d;
    --text: #eef3ef;
    --muted: #a4b0ab;
    --line: #303a36;
    --accent: #80c9bd;
    --accent-strong: #a6ddd4;
    --accent-soft: #203d38;
    --code: #202a27;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--accent-soft) 62%, transparent), transparent 28rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 20;
  padding: .6rem .9rem;
  transform: translateY(-180%);
  border-radius: .5rem;
  background: var(--text);
  color: var(--background);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  font-size: .92rem;
  font-weight: 750;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--background);
  font-size: .68rem;
  letter-spacing: .06em;
}

nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
nav a { color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--text); }

main { min-height: calc(100vh - 190px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(3rem, 9vw, 8rem);
  align-items: center;
  padding: clamp(5rem, 13vw, 10rem) 0 clamp(5rem, 10vw, 8rem);
}

.hero-copy { max-width: 760px; }

.eyebrow,
.section-label {
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-weight: 730;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 1.6rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.lede {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.portrait {
  width: clamp(150px, 19vw, 230px);
  height: clamp(150px, 19vw, 230px);
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 42% 58% 56% 44% / 45% 42% 58% 55%;
  box-shadow: var(--shadow);
  object-fit: cover;
  filter: saturate(.84) contrast(1.03);
}

.hero-links { display: flex; gap: 1.4rem; align-items: center; margin-top: 2.2rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .78rem 1.08rem;
  border-radius: .7rem;
  background: var(--text);
  color: var(--background);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}

.button:hover { background: var(--accent-strong); color: var(--background); }
.text-link { font-size: .92rem; font-weight: 700; text-decoration: none; }

.home-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.home-section h2 { max-width: 630px; font-size: clamp(2.2rem, 4vw, 3.6rem); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.feature {
  display: block;
  min-height: 280px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.feature:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.feature > span { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.feature h3 { margin: 3rem 0 .7rem; font-size: 2rem; }
.feature p { max-width: 440px; color: var(--muted); }
.feature strong { color: var(--accent-strong); font-size: .88rem; }

.index-header,
.simple-page {
  max-width: 770px;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.index-header h1,
.simple-page h1 { margin-bottom: 1.3rem; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.index-header > p:last-child,
.simple-page > p { max-width: 630px; color: var(--muted); font-size: 1.12rem; }
.simple-page .button { margin-top: 1.2rem; }

.article-list { margin: 0 0 7rem; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.article-list li { border-bottom: 1px solid var(--line); }
.article-list a { display: flex; gap: 2rem; justify-content: space-between; align-items: baseline; padding: 1.55rem .15rem; color: var(--text); text-decoration: none; }
.article-list a:hover strong { color: var(--accent); }
.article-copy { display: grid; gap: .22rem; }
.article-copy strong { font-size: 1.05rem; transition: color 150ms ease; }
.article-copy span { color: var(--muted); font-size: .88rem; }
.article-list time { flex: 0 0 auto; color: var(--muted); font-size: .78rem; }

.prose { width: min(750px, 100%); margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) 0; }
.article-kicker { display: flex; justify-content: space-between; margin-bottom: 2.6rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
.article-kicker a { text-decoration: none; }
.prose h1 { margin-bottom: 2rem; font-size: clamp(2.7rem, 6vw, 4.8rem); }
.prose h2 { margin: 3.5rem 0 1rem; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.prose h3 { margin: 2.5rem 0 .8rem; font-size: 1.35rem; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.4rem; }
.prose img { display: block; max-width: min(100%, 1100px); height: auto; margin: 2.5rem auto; border: 1px solid var(--line); border-radius: .65rem; box-shadow: var(--shadow); }
.prose blockquote { margin-inline: 0; padding: .15rem 0 .15rem 1.4rem; border-left: 3px solid var(--accent); color: var(--muted); }
.prose code { padding: .13em .35em; border-radius: .3rem; background: var(--code); font-family: "SFMono-Regular", Consolas, monospace; font-size: .86em; }
.prose pre { overflow-x: auto; margin: 1.8rem 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--code); line-height: 1.55; }
.prose pre code { padding: 0; background: transparent; }
.prose hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--line); }
.prose table { width: 100%; margin: 2rem 0; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.1rem 0 2.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.resume-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: end;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.resume-hero h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6.3rem);
}

.resume-intro {
  max-width: 470px;
  margin: 0 0 .45rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.resume-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 7.5rem);
  padding: clamp(4rem, 8vw, 7rem) 0 8rem;
}

.resume-sidebar {
  align-self: start;
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 1.8rem;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.5;
}

.resume-sidebar p { margin: 0; }
.resume-sidebar strong { color: var(--text); }

.resume-sidebar-label {
  margin-bottom: .25rem !important;
  color: var(--accent);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.resume-sidebar-links { display: grid; gap: .4rem; }
.resume-sidebar-links a { font-weight: 700; text-decoration: none; }

.experience { min-width: 0; }

.experience-item {
  position: relative;
  padding: 0 0 clamp(4rem, 8vw, 6.5rem);
}

.experience-item + .experience-item {
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.company-header {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  margin-bottom: 2.4rem;
}

.company-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--accent-strong);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.company-mark.has-logo {
  overflow: hidden;
  background: #fff;
}

.company-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.company-name h2 {
  margin: -.1rem 0 .3rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.company-name p,
.company-tenure,
.role-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.company-tenure {
  padding-top: .2rem;
  font-weight: 700;
  white-space: nowrap;
}

.role-list {
  display: grid;
  gap: 2.6rem;
  padding-left: 4rem;
}

.role-heading {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.role-heading h3 {
  margin-bottom: 0;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}

.role-heading p { flex: 0 0 auto; }

.role ul {
  display: grid;
  gap: .72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.58;
}

.role li::before {
  content: '';
  position: absolute;
  top: .7em;
  left: 0;
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--accent);
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 2rem 0 0;
  border-block: 1px solid var(--line);
}

.impact-strip div { padding: 1.25rem 1rem 1.25rem 0; }
.impact-strip div + div { padding-left: 1rem; border-left: 1px solid var(--line); }

.impact-strip dt {
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1;
}

.impact-strip dd {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 2rem 0 0 4rem;
  padding: 0;
  list-style: none;
}

.skill-list li {
  padding: .32rem .62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}

.career-year {
  position: absolute;
  right: 0;
  bottom: -.05em;
  z-index: -1;
  color: color-mix(in srgb, var(--line) 42%, transparent);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: .75;
}

@media print {
  :root { color-scheme: light; }
  body { background: white; color: #18201e; font-size: 10pt; }
  .site-header, .site-footer, .skip-link, .resume-sidebar-links, .career-year { display: none; }
  main { width: 100%; min-height: 0; }
  .resume-hero { padding: 0 0 2rem; }
  .resume-layout { grid-template-columns: 140px 1fr; gap: 2rem; padding: 2rem 0 0; }
  .resume-sidebar { position: static; color: #66716d; }
  .experience-item { break-inside: avoid; padding-bottom: 2.5rem; }
  .experience-item + .experience-item { padding-top: 2rem; }
  .role-list { gap: 1.5rem; }
  .role li { color: #424b48; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header, .site-footer, main { width: min(100% - 2rem, 1120px); }
  .site-header { min-height: 74px; }
  .brand { font-size: 0; gap: 0; }
  nav { gap: 1rem; }
  nav a { font-size: .82rem; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 4.5rem; }
  .portrait { grid-row: 1; width: 112px; height: 112px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 230px; }
  .article-list a { display: grid; gap: .6rem; }
  .resume-hero { grid-template-columns: 1fr; gap: 1.8rem; padding-top: 4.5rem; }
  .resume-hero h1 { font-size: clamp(2.7rem, 14vw, 4.5rem); }
  .resume-layout { grid-template-columns: 1fr; gap: 3.5rem; padding-top: 3rem; }
  .resume-sidebar { position: static; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .resume-sidebar-links { grid-column: 1 / -1; display: flex; gap: 1.2rem; }
  .company-header { grid-template-columns: 2.65rem minmax(0, 1fr); }
  .company-mark { width: 2.65rem; height: 2.65rem; }
  .company-tenure { grid-column: 2; }
  .role-list { padding-left: 0; }
  .role-heading { display: grid; gap: .25rem; }
  .impact-strip { grid-template-columns: 1fr; }
  .impact-strip div { padding: 1rem 0; }
  .impact-strip div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .skill-list { margin-left: 0; }
  .site-footer { display: grid; }
}

@media (max-width: 430px) {
  .site-header nav { gap: .8rem; }
  .site-header nav a { font-size: .75rem; }
  .resume-sidebar { grid-template-columns: 1fr 1fr; }
}

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