/* Editorial layout: typography and whitespace, no cards. */
:root {
  --bg: #f5f2eb;
  --ink: #33312c;
  --muted: #6f6b63;
  --line: #e2ddd2;
  --accent: #3f5f8f;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --bg: #23242a; --ink: #d9d7d2; --muted: #a09d96; --line: #383a41; --accent: #9fb4dd; }
}
:root[data-theme="dark"] { --bg: #23242a; --ink: #d9d7d2; --muted: #a09d96; --line: #383a41; --accent: #9fb4dd; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.muted { color: var(--muted); font-weight: 400; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

/* nav: plain text links */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 600; text-decoration: none; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; padding-top: 72px; }
.hero-text { padding-bottom: 48px; }
.kicker { font-size: 13px; color: var(--accent); margin: 0 0 18px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 20px; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 22px; max-width: 46ch; }
.note { font-size: 15px; margin: 0; }
.note .mono { color: var(--accent); margin-right: 8px; }
.hero-photo { margin: 0; }
.hero-photo img {
  display: block; width: auto; max-width: 100%; max-height: 540px; margin: 0 auto; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

/* at a glance: numbers in a single row, separated by hairlines only */
.glance { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 64px; }
.glance div { padding: 22px 20px 22px 0; }
.glance div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.glance b { display: block; font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.glance span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 4px; }

/* sections: label on the left, content on the right */
.block { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.side { position: sticky; top: 84px; align-self: start; margin: 4px 0 0; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.body { max-width: 700px; }
.intro { margin: 0 0 22px; color: var(--muted); }
.sub { margin: 34px 0 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.inline { margin: 0; line-height: 1.8; }
p.inline.mono { font-size: 14.5px; }

/* definitions */
.defs { margin: 0; }
.defs div { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.defs div:first-child { padding-top: 0; }
.defs dt { font-weight: 600; }
.defs dd { margin: 0; color: var(--muted); }

/* rows: date or tag | content */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows li:first-child { padding-top: 6px; }
.rows time { font-size: 13px; color: var(--muted); padding-top: 3px; white-space: nowrap; }
.rows b { display: block; font-weight: 600; line-height: 1.4; }
.rows p { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }
.rows small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--accent); }
.rows.tight li { padding: 11px 0; }

/* beyond work */
.run { display: grid; grid-template-columns: 200px 1fr; gap: 32px; max-width: none; }
.run-photo { margin: 0; }
.run-photo img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%); mask-image: linear-gradient(to bottom, #000 85%, transparent 100%); }
.run-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.run-title { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.run p { margin-top: 0; }
.pbs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pbs div { padding: 12px 14px 12px 0; }
.pbs div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.pbs dt { font-size: 12px; color: var(--muted); }
.pbs dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wmm { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 22px; font-size: 15px; color: var(--muted); }
.wmm .done { color: var(--ink); font-weight: 600; }
.wmm .done i { color: #d39b00; }
.wmm i { font-size: 13px; margin-right: 3px; }

/* contact */
.big { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; margin: 0 0 20px; }
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: flex; align-items: center; gap: 10px; padding: 12px 0; text-decoration: none; }
.links a:hover { color: var(--accent); }
.links i, .links .si { width: 16px; font-size: 16px; color: var(--muted); }
.links a:hover i, .links a:hover .si { color: var(--accent); }
.si { display: inline-block; height: 16px; flex: none; background: currentColor;
  -webkit-mask: var(--si) center / contain no-repeat; mask: var(--si) center / contain no-repeat; }

.footer { display: flex; justify-content: space-between; padding-top: 22px; padding-bottom: 36px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* mobile */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .hero-text { padding-bottom: 28px; }
  .hero-photo img { max-height: 360px; }
  .glance { grid-template-columns: 1fr 1fr; margin-bottom: 40px; }
  .glance div, .glance div + div { padding: 16px 12px 16px 0; border-left: 0; }
  .glance div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .glance div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .glance b { font-size: 1.5rem; }
  .block { grid-template-columns: 1fr; gap: 14px; padding: 30px 0 36px; }
  .side { position: static; }
  .defs div { grid-template-columns: 1fr; gap: 2px; }
  .rows li { grid-template-columns: 1fr; gap: 2px; }
  .run { grid-template-columns: 1fr; }
  .run-photo { max-width: 200px; }
  .pbs { grid-template-columns: 1fr 1fr; }
  .pbs div, .pbs div + div { padding: 10px 10px 10px 0; border-left: 0; }
  .pbs div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .pbs div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .links { grid-template-columns: 1fr; }
}

/* softer photos: less harsh black on the warm background */
.hero-photo img, .run-photo img { filter: contrast(0.88) brightness(1.06); }

/* ===== One soft background colour: light sky blue ===== */
:root {
  --bg: #edf4fb;
  --ink: #1f2a3a;
  --muted: #566274;
  --line: rgba(31, 42, 58, 0.12);
  --accent: #2563b8;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --bg: #18212f; --ink: #e6ebf2; --muted: #9eabbd; --line: rgba(230, 235, 242, 0.12); --accent: #8db7f0; }
}
:root[data-theme="dark"] { --bg: #18212f; --ink: #e6ebf2; --muted: #9eabbd; --line: rgba(230, 235, 242, 0.12); --accent: #8db7f0; }
body { background: var(--bg); }
.nav { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.hero-photo img, .run-photo img { filter: none; }

/* full Berlin photo (with its background): rounded frame, no fade */
.run-photo img { -webkit-mask-image: none; mask-image: none; border-radius: 12px; aspect-ratio: 3 / 4; object-fit: cover; }

/* ===== tweaks: bigger section labels, FLDP card, toolkit chips, contact buttons ===== */
.side { font-size: 15px; font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.sub { font-size: 13px; }

.feature {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 4px;
  padding: 12px 18px 12px 12px; border-radius: 12px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, #fff 70%, var(--bg)); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(31, 42, 58, .05);
}
.feature:hover { border-color: var(--accent); color: var(--ink); }
.feature-badge { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 500; }
.feature-text b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.feature-text small { display: block; margin-top: 2px; font-size: 13px; color: var(--accent); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .feature { background: color-mix(in srgb, #fff 6%, var(--bg)); }
:root:not([data-theme="light"]) .feature-badge { color: var(--bg); }
}
:root[data-theme="dark"] .feature { background: color-mix(in srgb, #fff 6%, var(--bg)); }
:root[data-theme="dark"] .feature-badge { color: var(--bg); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px; border-radius: 8px; font-family: var(--mono); font-size: 13.5px;
  background: color-mix(in srgb, #fff 70%, var(--bg)); border: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .chips li { background: color-mix(in srgb, #fff 6%, var(--bg)); }
}
:root[data-theme="dark"] .chips li { background: color-mix(in srgb, #fff 6%, var(--bg)); }

.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links li { border: 0; }
.links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
  background: color-mix(in srgb, #fff 70%, var(--bg)); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(31, 42, 58, .05); transition: border-color .15s, transform .15s;
}
.links a:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.links i, .links .si { width: auto; font-size: 16px; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .links a { background: color-mix(in srgb, #fff 6%, var(--bg)); }
}
:root[data-theme="dark"] .links a { background: color-mix(in srgb, #fff 6%, var(--bg)); }
@media (max-width: 760px) {
  .side { font-size: 14px; }
  .feature { display: flex; }
}
.links .si { width: 16px; height: 16px; }
.links li:nth-child(2) .si { color: #006bff; }
.links li:nth-child(3) .si { color: #ea4335; }
.links li:nth-child(4) i { color: var(--ink); }
.links li:nth-child(5) i { color: #fc4c02; }
.links li:nth-child(6) i { color: var(--accent); }
.links li:nth-child(1) i { color: #0a66c2; }

/* theme toggle */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 6px; padding: 0;
  border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle i { font-size: 15px; }
.nav-inner > div.nav-right { display: flex; align-items: center; gap: 22px; }
@media (max-width: 760px) { .nav-inner > div.nav-right { gap: 0; } }

/* issuer logos on the right of each certification, LinkedIn style */
.rows.with-logo li { grid-template-columns: 96px 1fr 40px; align-items: center; }
.org-logo {
  justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  background: #ffffff; border: 1px solid var(--line);
}
.org-logo .si { width: 24px; height: 24px; }
.org-logo.text { font-family: var(--font); font-weight: 800; font-size: 13px; letter-spacing: -0.02em; color: #c8102e; }
@media (max-width: 760px) {
  .rows.with-logo li { grid-template-columns: 1fr 40px; gap: 2px 14px; }
  .rows.with-logo li time { grid-column: 1; }
  .rows.with-logo li > div { grid-column: 1; }
  .rows.with-logo .org-logo { grid-column: 2; grid-row: 1 / span 2; }
}
.rows.with-logo li { grid-template-columns: 96px 1fr 46px; }
.org-logo { width: 46px; height: 46px; }
.org-logo .si { width: 36px; height: 30px; }
.org-logo .si[style*="junipernetworks"] { color: #5f9a1f !important; }
@media (max-width: 760px) { .rows.with-logo li { grid-template-columns: 1fr 46px; } }
.org-logo img { width: 38px; height: auto; display: block; }

/* inline link under a row (e.g. LinkedIn reflection on FLDP) */
.row-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--accent); text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.row-link i { color: #0a66c2; }

/* ===== phone: compact, horizontally scrollable section menu under the name ===== */
@media (max-width: 760px) {
  html { scroll-padding-top: 108px; }
  .nav-inner { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .nav-inner > div.nav-right { display: contents; }
  .nav-inner .theme-toggle { order: 1; margin-left: auto; }
  .nav nav {
    order: 2; flex: 0 0 calc(100% + 36px); display: flex; gap: 20px;
    overflow-x: auto; white-space: nowrap; padding: 8px 0 10px; margin: 0 -18px; padding-left: 18px; padding-right: 18px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
            mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a { font-size: 14px; color: var(--muted); }
}

/* kicker: never split a phrase across lines */
.kicker span { white-space: nowrap; }

/* major events / recovery: one item per line */
.events { list-style: none; margin: 4px 0 0; padding: 0; max-width: 620px; }
.events li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.events li time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* Berlin photo: sit in the middle of the text column, centered on phones */
.run-photo { align-self: center; }
@media (max-width: 760px) {
  .run-photo { justify-self: center; max-width: 240px; width: 100%; }
  .run-photo figcaption { text-align: center; }
}

/* keep the running column inside the page at mid widths */
.run > div { min-width: 0; }
.pbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .pbs dd { font-size: 1.15rem; } }
@media (max-width: 760px) { .pbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
