/* Monica Elaina Kingsley, personal site. Light only by design: one theme, one signal colour at a time.
   Radius system: 10px (chips, inputs), 18px (panels), 999px (buttons, pills). */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #F6F6FA;
  --paper-2: #ECECF4;
  --surface: #FFFFFF;
  --ink: #15152B;
  --ink-2: #38384F;
  --muted: #555570;
  --line: #DEDEEA;
  --line-2: #CACADB;
  --signal: #4B4DB3;
  --signal-ink: #393B94;
  --signal-wash: #EAEAF8;
  --signal-mid: #C4C5EB;
  --on-signal: #FFFFFF;
  --r-s: 10px;
  --r-m: 18px;
  --r-pill: 999px;
  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --wrap: 1360px;
  --nav-h: 64px;
  --shadow: 0 1px 0 rgba(21, 21, 43, 0.03), 0 14px 32px -24px rgba(40, 40, 110, 0.22);
}

[data-signal="violet"] { --signal: #6A45B0; --signal-ink: #52318F; --signal-wash: #F0EAF9; --signal-mid: #D0BFEA; }
[data-signal="teal"] { --signal: #0F766E; --signal-ink: #0B5953; --signal-wash: #E1F3F1; --signal-mid: #A5D6D1; }
[data-signal="green"] { --signal: #2F7A55; --signal-ink: #215B3F; --signal-wash: #E4F2EA; --signal-mid: #B1D7C1; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--signal-wash); color: var(--ink); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
img, canvas { max-width: 100%; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); transition: top 0.2s var(--ease); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-ink); font-weight: 500; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 58ch; line-height: 1.55; }
h2 { font-family: var(--font-display); font-weight: 720; font-stretch: 88%; font-size: clamp(34px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; text-wrap: balance; }
.num, .stats .num, .w-big, .w-num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: var(--r-pill); font-weight: 560; font-size: 15.5px; line-height: 1; white-space: nowrap; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--signal); color: var(--on-signal); }
.btn-primary:hover { background: var(--signal-ink); }
.btn-ghost { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:active { opacity: 0.9; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 18px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-in { height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-s); background: var(--ink); color: #fff; font-size: 17px; font-weight: 720; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); font-size: 15px; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.nav-links a:hover, .nav-links a.is-here { background: var(--paper-2); color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 10px; }

/* ---------- layout ---------- */
main { display: block; }
.sec, .hero, .strip { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sec { padding-top: clamp(72px, 9vw, 150px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.print-head { display: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 88px); align-items: center; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-copy { display: grid; gap: 22px; align-content: center; }
.name { font-family: var(--font-display); font-weight: 740; font-stretch: 88%; font-size: clamp(44px, 6vw, 92px); line-height: 0.96; letter-spacing: -0.035em; display: grid; }
.name .line { display: block; }
.hero-sub { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- at a glance ---------- */
.glance { display: grid; gap: 18px; padding: 4px 0 4px clamp(20px, 3vw, 40px); border-left: 1px solid var(--line-2); }
.glance-t { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.glance dl { display: grid; gap: 20px; margin: 0; }
.glance dt { font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 2px; }
.glance dd { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }

/* ---------- key numbers ---------- */
.strip { padding-top: 8px; padding-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stats li { padding: 28px 22px 26px; display: grid; gap: 8px; align-content: start; }
.stats li + li { border-left: 1px solid var(--line); }
.stats .num { font-weight: 700; font-stretch: 90%; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: -0.03em; }
.stats .lbl, .metrics .lbl { font-size: 14px; line-height: 1.4; color: var(--muted); max-width: 22ch; }

/* ---------- experience ---------- */
.exp { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: clamp(36px, 5vw, 96px); align-items: start; }
.exp-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.role-nav ol { display: grid; gap: 2px; border-left: 1px solid var(--line-2); }
.role-nav a { display: flex; gap: 14px; align-items: baseline; padding: 11px 0 11px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 15px; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.role-nav .yr { font-family: var(--font-mono); font-size: 12.5px; min-width: 3.2em; }
.role-nav a:hover { color: var(--ink); }
.role-nav a.is-here { color: var(--ink); border-left-color: var(--signal); font-weight: 600; }
.exp-main { min-width: 0; }
.chapter { padding: clamp(36px, 4vw, 64px) 0; border-top: 1px solid var(--line-2); display: grid; gap: 22px; scroll-margin-top: calc(var(--nav-h) + 8px); }
.chapter:first-of-type { border-top: 0; padding-top: 0; }
.ch-head { display: grid; gap: 10px; }
.when { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.role { font-size: clamp(25px, 2.7vw, 38px); line-height: 1.08; }
.org { font-size: 18px; color: var(--ink-2); }
.org .place { color: var(--muted); margin-left: 10px; font-size: 15px; }
.sum { font-size: 18.5px; line-height: 1.55; max-width: 62ch; color: var(--ink); }
.metrics { display: flex; flex-wrap: wrap; gap: 14px 44px; }
.metrics li { display: grid; gap: 4px; }
.metrics .num { font-weight: 700; font-stretch: 90%; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -0.03em; }
.more summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; font-weight: 540; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { border-color: var(--ink); }
.more summary svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.more[open] summary svg { transform: rotate(180deg); }
.more .more-close { display: none; }
.more[open] .more-close { display: inline; }
.more[open] .more-open { display: none; }
.bul { margin-top: 22px; display: grid; gap: 14px; max-width: 72ch; }
.bul li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.bul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; background: var(--line-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 11px; border-radius: var(--r-s); background: var(--paper-2); font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); }

/* ---------- skills ---------- */
.sk-grid { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) minmax(240px, 320px); gap: clamp(24px, 3.5vw, 64px); align-items: start; }
.sk-tabs { display: grid; gap: 4px; }
.sk-tab { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; border-radius: var(--r-s); text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.sk-tab:hover { background: var(--paper-2); }
.sk-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.sk-n { font-family: var(--font-mono); font-size: 12px; opacity: 0.7; }
.sk-ptitle { display: none; font-size: 22px; margin-bottom: 14px; }
.sk-panel + .sk-panel { margin-top: 28px; }
.js .sk-panel + .sk-panel { margin-top: 0; }
.js .sk-panel[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); font-size: 16px; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease); }
.chip.has-use { border-color: var(--signal-mid); box-shadow: inset 0 -2px 0 var(--signal-mid); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--on-signal); box-shadow: none; }
.chip:active { opacity: 0.9; }
.sk-used { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); min-height: 160px; align-content: start; }
.sk-used h3 { font-size: 22px; }
.sk-used .sk-used-empty { color: var(--muted); font-size: 15px; }
.sk-used ol { display: grid; gap: 6px; }
.sk-used a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--r-s); background: var(--paper); font-size: 15px; transition: background-color 0.2s; }
.sk-used a:hover { background: var(--signal-wash); }
.sk-used .yr { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

/* ---------- education ---------- */
.edu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); }
.edu-list li { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--ink); }
.edu-years { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.edu-list h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
.edu-school { color: var(--ink-2); font-size: 17px; }
.edu-note { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ---------- contact ---------- */
.contact { padding-bottom: clamp(72px, 9vw, 150px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.contact:not(:has(.portrait)) { grid-template-columns: minmax(0, 1fr); }
.contact-in { display: grid; gap: 24px; padding-top: clamp(32px, 4vw, 56px); border-top: 2px solid var(--ink); }
.contact h2 { font-size: clamp(32px, 4.2vw, 60px); max-width: 18ch; }
.avail { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); max-width: 44ch; }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.portrait { width: 240px; height: 300px; object-fit: cover; border-radius: var(--r-m); border: 1px solid var(--line); }
.mail-plain { font-family: var(--font-mono); font-size: 15px; }
.foot { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; border-top: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.about.has-photo .about-grid { grid-template-columns: minmax(220px, 400px) minmax(0, 1fr); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-m); border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.about-text { display: grid; gap: 22px; max-width: 64ch; align-content: start; }
.about-lead { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; color: var(--ink); font-weight: 520; letter-spacing: -0.01em; }
.about-body { display: grid; gap: 16px; color: var(--ink-2); font-size: 18px; line-height: 1.65; }
.beyond { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(36px, 5vw, 72px); }
.beyond li { padding-top: 18px; border-top: 2px solid var(--ink); display: grid; gap: 8px; align-content: start; }
.beyond h3 { font-size: 22px; }
.beyond p { color: var(--ink-2); font-size: 16px; }

/* ---------- mentoring and coaching ---------- */
.coach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.sessions { display: grid; }
.session { padding: 26px 0; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.session:first-child { padding-top: 0; border-top: 0; }
.session h3 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.1; }
.session .who { color: var(--ink-2); font-weight: 540; font-size: 15.5px; }
.session p { color: var(--ink-2); }
.session .meta { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.covers { margin-top: 26px; display: grid; gap: 10px; }
.covers li { position: relative; padding-left: 22px; color: var(--ink-2); }
.covers li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; background: var(--line-2); }
.aud-note { margin-top: 26px; padding: 14px 16px; border-radius: var(--r-s); background: var(--signal-wash); font-size: 15px; color: var(--ink-2); }
.book { position: sticky; top: calc(var(--nav-h) + 24px); }
.book-panel { display: grid; gap: 24px; padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.book-step { display: grid; gap: 12px; }
.book-step h3 { font-size: 18px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: var(--r-pill); background: var(--paper-2); width: fit-content; max-width: 100%; }
.seg-btn { min-height: 40px; padding: 0 18px; border-radius: var(--r-pill); font-size: 15px; font-weight: 540; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.seg-btn[aria-checked="true"] { background: var(--ink); color: #fff; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { flex: none; scroll-snap-align: start; display: grid; gap: 2px; min-width: 96px; padding: 10px 14px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--surface); text-align: left; font-size: 15px; transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease); }
.day small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.day:hover { border-color: var(--ink); transform: translateY(-2px); }
.day[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.day[aria-pressed="true"] small { color: inherit; opacity: 0.85; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time { min-height: 42px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); font-family: var(--font-mono); font-size: 14px; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.time:hover { border-color: var(--ink); }
.time[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.book-note { font-size: 14px; color: var(--muted); }
.book-form { display: grid; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.picked { font-size: 16px; }
.fld { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); font-weight: 540; }
.fld input, .fld select, .fld textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); padding: 12px 14px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--surface); min-height: 46px; width: 100%; }
.fld textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: var(--signal); }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.chk input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--signal); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book-msg.err { color: #A12A0C; font-size: 14.5px; min-height: 1.2em; }
.book-done { gap: 16px; }
.book-done h3 { font-size: 26px; }
.book-done .ref code { font-family: var(--font-mono); background: var(--paper-2); padding: 3px 9px; border-radius: 6px; }

/* ---------- writing (home section, blog index, posts) ---------- */
.writing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.wcard a { display: grid; gap: 16px; height: 100%; align-content: start; }
.wbody { display: grid; gap: 12px; align-content: start; }
.wcard .wcover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-m); border: 1px solid var(--line); }
.wcard h3 { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.15; transition: color 0.2s; }
.wcard a:hover h3 { color: var(--signal-ink); }
.wcard .wsum { color: var(--ink-2); font-size: 16px; }
.wmeta { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.wcard.is-feature { grid-column: span 2; }
.wcard.is-feature h3 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.025em; }
.wcard.is-feature .wsum { font-size: 18px; max-width: 56ch; }
.writing-more { margin-top: clamp(24px, 3vw, 40px); }
.blog-grid { margin-top: 8px; }
.sub-main { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(72px, 8vw, 128px); min-height: calc(100dvh - var(--nav-h) - 140px); }
.sub-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 64px); max-width: 70ch; }
.sub-title, .post-title { font-family: var(--font-display); font-weight: 740; font-stretch: 88%; font-size: clamp(38px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.post { max-width: 760px; margin: 0 auto; display: grid; gap: clamp(22px, 3vw, 40px); }
.post .back { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); width: max-content; }
.post .back svg { width: 16px; height: 16px; transform: scaleX(-1); }
.post .back:hover { color: var(--ink); }
.post-head { display: grid; gap: 18px; }
.post-title { font-size: clamp(34px, 4.6vw, 62px); }
.post-cover { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-m); border: 1px solid var(--line); }
.toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.toc ol { display: grid; gap: 6px; counter-reset: t; }
.toc li { counter-increment: t; display: flex; gap: 12px; font-size: 15px; }
.toc li::before { content: counter(t); font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); min-width: 1.4em; padding-top: 2px; }
.toc a:hover { color: var(--signal-ink); }
.prose { font-size: 19px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.3em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; margin-top: 2em; scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; }
.prose h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 650; }
.prose h4 { font-size: 20px; font-weight: 650; }
.prose a { color: var(--signal-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: 0.5em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--signal); }
.prose blockquote { margin-left: 0; padding: 16px 0 0; border-top: 1px solid var(--line-2); color: var(--ink); font-family: var(--font-display); font-size: 1.15em; line-height: 1.5; }
.prose code { font-family: var(--font-mono); font-size: 0.86em; background: var(--paper-2); padding: 2px 7px; border-radius: 6px; color: var(--ink); }
.prose pre { overflow: auto; padding: 18px 20px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 2.4em 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-m); border: 1px solid var(--line); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.post-foot { display: flex; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.copied-note { font-size: 14px; color: var(--signal-ink); }
.post-nav { max-width: 760px; margin: clamp(40px, 5vw, 72px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); transition: border-color 0.2s, transform 0.25s var(--ease); }
.post-nav a:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-nav small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.post-nav span { font-family: var(--font-display); font-weight: 650; font-size: 18px; line-height: 1.25; }
.bstatus { max-width: 720px; margin: 0 auto; display: grid; gap: 22px; }
.bstatus .sub-title { font-size: clamp(32px, 4.2vw, 56px); }
.bpill { width: max-content; padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; background: var(--paper-2); color: var(--ink); }
.bpill.is-confirmed { background: var(--signal); color: var(--on-signal); }
.bpill.is-pending { background: var(--signal-wash); color: var(--signal-ink); }
.bpill.is-declined, .bpill.is-cancelled { background: #F3E4DF; color: #7A2410; }
.bfacts { display: grid; gap: 14px; }
.bfacts div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.bfacts dt { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bfacts dd { margin: 0; font-size: 18px; word-break: break-word; }
.bfacts code { font-family: var(--font-mono); background: var(--paper-2); padding: 3px 9px; border-radius: 6px; }
.bactions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- focus flash (used when a link jumps to a role) ---------- */
.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--signal-mid); } 30% { box-shadow: 0 0 0 8px var(--signal-wash); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- 404 ---------- */
.nf-in { min-height: 100dvh; display: grid; place-content: center; gap: 20px; padding: var(--gutter); max-width: 720px; margin: 0 auto; }
.nf-title { font-family: var(--font-display); font-weight: 740; font-size: clamp(44px, 8vw, 96px); line-height: 0.98; letter-spacing: -0.04em; }

/* ---------- preview mode (CMS) ---------- */
[data-preview="1"] [data-f] { cursor: pointer; }
[data-preview="1"] [data-f]:hover { outline: 2px dashed var(--signal); outline-offset: 3px; }
[data-preview="1"] .cms-hit { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 6px; animation: flash 1.4s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .glance { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .hero-sub { max-width: 46ch; }
  .exp { grid-template-columns: minmax(0, 1fr); }
  .exp-side { display: none; }
  .sk-grid { grid-template-columns: minmax(0, 1fr); }
  .sk-tabs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .sk-tab { flex: none; scroll-snap-align: start; white-space: nowrap; }
  .sk-used { position: static; }
  .coach-grid { grid-template-columns: minmax(0, 1fr); }
  .book { position: static; }
  .writing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats li:nth-child(4) { border-left: 0; }
  .stats li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  :root { --nav-h: 108px; }
  .nav { height: auto; }
  .nav-in { height: auto; flex-wrap: wrap; row-gap: 2px; padding-top: 8px; padding-bottom: 4px; }
  .nav-links { order: 3; width: 100%; display: flex; overflow-x: auto; gap: 2px; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .nav-links::-webkit-scrollbar { display: none; }
  .sk-tabs { mask-image: linear-gradient(90deg, #000 88%, transparent); }
}
@media (max-width: 900px) {
  .edu-list { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .about.has-photo .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo img { max-width: 360px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li { padding: 22px 14px 20px; }
  .stats li:nth-child(odd) { border-left: 0; }
  .stats li:nth-child(even) { border-left: 1px solid var(--line); }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats li:nth-child(4) { border-left: 1px solid var(--line); }
  .stats li:nth-child(5) { grid-column: 1 / -1; border-left: 0; }
  .brand-name { display: none; }
  .writing-grid { grid-template-columns: minmax(0, 1fr); }
  .wcard.is-feature { grid-column: auto; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .w-ctl { flex-direction: column; align-items: stretch; gap: 6px; }
  .p0-cells { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .btn-lg { min-height: 54px; padding: 0 26px; }
}

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

/* ---------- print: one clean CV ---------- */
@media print {
  @page { margin: 14mm 14mm 16mm; }
  html, body { background: #fff; }
  body { font-size: 10pt; line-height: 1.45; color: #000; }
  .nav, .skip, .hero, .strip, .exp-side,  .more summary, .sk-tabs, .sk-used, .contact-row, .foot, .portrait, .coaching, .about-photo { display: none !important; }
  .about-grid { display: block; }
  .about-body { font-size: 10pt; }
  .beyond { grid-template-columns: repeat(2, 1fr); margin-top: 8pt; }
  .print-head { display: block; margin-bottom: 14pt; }
  .print-head .ph-name { font-family: var(--font-display); font-size: 24pt; font-weight: 760; letter-spacing: -0.02em; }
  .print-head p { color: #333; }
  .sec { padding: 0; max-width: none; }
  .sec-head { margin: 12pt 0 6pt; gap: 4pt; }
  h2 { font-size: 15pt; letter-spacing: 0; }
  .lead { display: none; }
  .exp { display: block; }
  .chapter { padding: 8pt 0; gap: 4pt; border-top: 0.5pt solid #bbb; }
  .ch-head, .metrics, .sum { break-inside: avoid; break-after: avoid; }
  .bul li { break-inside: avoid; }
  .tags { break-before: avoid; }
  .role { font-size: 12pt; }
  .org, .sum { font-size: 10pt; }
  .metrics .num { font-size: 12pt; }
  .metrics { gap: 4pt 18pt; }
  .more > :not(summary) { display: block !important; }
  details.more::details-content { content-visibility: visible !important; display: block !important; height: auto !important; }
  .bul { margin-top: 4pt; gap: 3pt; }
  .bul li { font-size: 9.5pt; color: #111; }
  .tags li { background: none; padding: 0 6pt 0 0; font-size: 8.5pt; }
  .sk-panels { display: block; }
  .sk-panel[hidden] { display: block !important; }
  .sk-ptitle { display: block; font-size: 10.5pt; margin: 6pt 0 2pt; }
  .chips { gap: 0 6pt; }
  .chip { border: 0; box-shadow: none; padding: 0; min-height: 0; font-size: 9.5pt; background: none; }
  .chip::after { content: ","; }
  .edu-list { display: block; }
  .edu-list li { border: 0; padding: 4pt 0; }
  .contact { padding: 0; display: block; }
  .contact-in { padding: 0; border: 0; background: none; box-shadow: none; }
  .contact h2 { font-size: 12pt; max-width: none; }
  .avail { font-size: 10pt; }
  a { color: #000; }
}
