:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #505050;
  --line: #dedede;
  --surface: #f4f4f4;
  --accent: #262626;
  --accent-dark: #171717;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.58 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; object-fit: cover; }
:focus-visible { outline: 3px solid #4b4b4b; outline-offset: 4px; }
[id] { scroll-margin-top: 1.5rem; }
.shell { width: min(70rem, calc(100% - 4rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .header-nav, .actions { display: flex; align-items: center; }
.header-inner { min-height: 4.25rem; gap: 1.2rem; justify-content: space-between; }
.wordmark { font-weight: 720; text-decoration: none; }
.header-nav { gap: clamp(.8rem, 3vw, 1.85rem); }
.header-nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.header-nav a:hover, .wordmark:hover { text-decoration: underline; }
.actions { flex-wrap: wrap; gap: .55rem; }
.button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  border-radius: .32rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 640;
  text-decoration: none;
}
.button:hover { background: var(--surface); }
.primary { background: var(--accent); border-color: var(--accent); color: white; }
.primary:hover { background: #414141; border-color: #414141; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: .5rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: white;
  padding: .5rem 1rem;
  z-index: 2;
}
.skip-link:focus { transform: none; }

.hero { padding-block: clamp(2.75rem, 8vw, 6rem) clamp(2rem, 5vw, 3.25rem); }
h1 {
  max-width: 18ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.85rem, 6.85vw, 6.4rem);
  line-height: .995;
  letter-spacing: -.064em;
  font-weight: 500;
}
.hero-description { max-width: 42rem; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.16rem); margin-top: 1.1rem; }
.hero-meta { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.hero .actions { margin-top: 1.3rem; }

.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.metric { display: flex; flex-direction: column-reverse; justify-content: start; gap: .28rem; padding: 1.05rem clamp(.7rem, 3vw, 1.75rem); }
.metric:first-child { padding-left: 0; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric dt { color: var(--muted); font-size: .94rem; }
.metric dd { color: var(--accent-dark); font-size: clamp(1.55rem, 3.2vw, 2.25rem); font-weight: 690; line-height: 1.15; letter-spacing: -.05em; }
.metric dd a { text-decoration: none; }
.metric dd a:hover { text-decoration: underline; }
.metric small { display: block; margin-top: .18rem; font-size: .82rem; }

.experience, .background { margin-top: clamp(2.6rem, 6vw, 4.8rem); }
.section-heading { margin-bottom: 1.2rem; }
.section-heading p { margin-top: .48rem; color: var(--muted); }
h2 {
  font: 500 clamp(2rem, 4.7vw, 3.35rem)/1.06 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}
h3 { font-size: clamp(1.16rem, 2.15vw, 1.5rem); line-height: 1.25; letter-spacing: -.025em; }
.timeline { list-style: none; padding: 0; }
.timeline > li { border-top: 1px solid var(--line); }
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.timeline > li:target { border-top-color: var(--accent); }
.role-grid {
  display: grid;
  grid-template-columns: minmax(11rem, 24%) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.35rem, 3vw, 2.15rem);
}
.role-meta { display: grid; align-content: start; gap: .32rem; color: var(--muted); font-size: .88rem; }
.role-meta span:first-child { color: var(--accent-dark); font: 650 .87rem/1.5 var(--mono); }
.company-row { display: flex; align-items: center; gap: .7rem; }
.company-logo { flex: 0 0 auto; border: 1px solid var(--line); border-radius: .32rem; }
.company { display: inline-block; color: var(--accent-dark); font-weight: 600; margin-top: .12rem; }
.company-context { margin-top: .65rem; color: var(--muted); }
.story, .impact { margin-top: .68rem; }
.impact { border-left: 2px solid var(--accent); padding-left: .7rem; font-weight: 640; }
.scope { margin: .65rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.scope li + li { margin-top: .35rem; }
.technical { margin-top: 1rem; border: 1px solid var(--line); border-radius: .32rem; }
.technical summary { padding: .62rem .78rem; cursor: pointer; font-size: .94rem; font-weight: 650; }
.technical:target { border-color: var(--accent); }
.technical summary:hover { text-decoration: underline; text-underline-offset: .18em; }
.technical-body { display: grid; gap: .75rem; padding: .8rem; border-top: 1px solid var(--line); }
.technical figure figcaption { margin-bottom: .4rem; color: var(--muted); font: .82rem/1.5 var(--mono); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.flow li { display: grid; align-content: start; position: relative; gap: .2rem; border: 1px solid var(--line); border-radius: .22rem; padding: .55rem .65rem; font-size: .88rem; line-height: 1.45; }
.flow li + li::before { content: ""; width: 1.05rem; border-top: 1px solid var(--line); position: absolute; top: 50%; right: 100%; }
pre { overflow: auto; margin: 0; padding: .65rem .8rem; border-radius: .26rem; color: var(--ink); background: var(--surface); font: .84rem/1.55 var(--mono); }
code { font: inherit; }

.credential-grid, .skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.credential-grid h3 { font-size: 1.12rem; }
.credential-grid h4 { font-size: .9rem; margin: .9rem 0 0; }
.credential-list { margin: .55rem 0 0; padding: 0; list-style: none; }
.credential-list > * + * { margin-top: .5rem; }
.certification-list li { display: flex; align-items: center; gap: .65rem; }
.certification-list img { flex: 0 0 auto; object-fit: contain; padding: .12rem; }
.certification-list img[src$="atlassian.svg"] { padding: .36rem; }
.certification-list strong, .certification-list span { display: block; }
.certification-list strong { font-weight: 650; }
.certification-list span { color: var(--muted); font-size: .82rem; }
.skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.credential-list dt, .skills dt { font-weight: 650; }
.credential-list dd, .skills dd { color: var(--muted); }
.contact { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; margin-top: 3.5rem; padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line); }
.email { display: inline-block; margin-top: .45rem; color: var(--accent-dark); overflow-wrap: anywhere; }
.error-page { padding-block: 3rem; }
.error-page h1 { margin-bottom: 1rem; }

@media (max-width: 54rem) {
  .shell { width: calc(100% - 2.5rem); }
}

@media (max-width: 39rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: .55rem 1rem; padding-block: .6rem; }
  .header-nav { order: 1; width: 100%; }
  .header-nav a { padding-block: .25rem; }
  .hero { padding-top: 2rem; }
  .metric { padding: .7rem .45rem; }
  .metric dd { font-size: clamp(1.1rem, 5.3vw, 1.7rem); }
  .metric dt { font-size: .84rem; line-height: 1.35; }
  .role-grid, .credential-grid, .skills, .flow { grid-template-columns: minmax(0, 1fr); }
  .role-meta { display: flex; flex-wrap: wrap; gap: .25rem .8rem; }
  .flow { gap: .6rem; }
  .flow li + li::before { width: 0; height: .65rem; border-top: 0; border-left: 1px solid var(--line); right: 50%; top: auto; bottom: 100%; }
  .credential-grid, .skills { gap: 1rem; }
}

@page { size: A4; margin: 14mm; }
@media print {
  .site-header, .skip-link, .actions, .impact-strip, .technical, .company-logo, .certification-list img { display: none; }
  :root { font-size: 10pt; background: white; color: black; }
  .shell { width: 100%; }
  .hero { padding: 0; }
  h1 { font-size: 28pt; max-width: none; }
  h2 { font-size: 19pt; }
  .hero-description { max-width: none; margin-top: .6rem; }
  .experience, .background, .contact { margin-top: 1rem; }
  .role-grid { display: block; padding-block: .65rem; }
  .role-meta { display: flex; gap: .6rem; margin-bottom: .3rem; }
  .timeline > li, .credential-grid > section, .skills > div, .contact { break-inside: avoid; }
  .credential-grid, .skills { gap: .85rem; }
  .contact { padding-block: .7rem 0; }
}
