/* Layout: sticky profile column on the left, narrative sections on the right; stacks on phones. */
:root {
  --bg: #fbfbf9;
  --surface: #f0f2f1;
  --fg: #1b1f24;
  --muted: #5b6470;
  --line: #dfe3e1;
  --accent: #0f6b5c;
  --accent-soft: #e2efec;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111416;
    --surface: #1a1f22;
    --fg: #e5e9ec;
    --muted: #9aa4ad;
    --line: #2a3136;
    --accent: #5cc3ae;
    --accent-soft: #17302b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16.5px/1.7 var(--body);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  max-width: 1060px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--fg); }
nav a { margin-left: 20px; color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--accent); text-decoration: none; }

.layout { display: grid; grid-template-columns: 230px 1fr; gap: 56px; padding-block: 44px 0; }

.profile { position: sticky; top: 96px; align-self: start; }
.photo, .initials {
  width: 150px; height: 150px; border-radius: 50%;
  object-fit: cover; display: block; margin-bottom: 18px;
}
.initials {
  display: none; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--display); font-size: 46px; color: var(--muted);
}
.profile h1 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 4px; line-height: 1.2; }
.role { color: var(--muted); margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.links { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.links li { margin: 7px 0; display: flex; gap: 10px; align-items: baseline; }
.k {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  min-width: 52px; text-transform: lowercase;
}

main { min-width: 0; max-width: 700px; padding-bottom: 60px; }
section { scroll-margin-top: 76px; margin-bottom: 52px; }
h2 {
  font-family: var(--display); font-weight: 600;
  font-size: 24px; margin: 0 0 16px; text-wrap: balance;
}
h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 14px; }

.intro { margin-bottom: 48px; }
.lead {
  font-family: var(--display); font-weight: 500;
  font-size: 30px; line-height: 1.3; margin-bottom: 18px; text-wrap: balance;
}

.now-grid { display: grid; gap: 22px; }
.now-item { padding-left: 16px; border-left: 2px solid var(--accent); }
.now-item p { margin: 0; color: var(--fg); }

.pipe {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0;
  font-family: var(--mono); font-size: 13px;
  margin: 6px 0 18px;
}
.pipe span {
  background: var(--accent-soft); color: var(--fg);
  padding: 5px 10px; border-radius: 4px; white-space: nowrap;
}
.par {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 5px; border: 1px dashed var(--muted); border-radius: 6px;
}
.pipe i { width: 18px; height: 1px; background: var(--muted); position: relative; }
.pipe i::after {
  content: ""; position: absolute; right: 0; top: -3px;
  border-left: 5px solid var(--muted); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}

.result {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px;
  background: var(--surface); border-radius: 8px; padding: 22px 24px; margin: 4px 0 20px;
}
.figure { display: flex; flex-direction: column; gap: 2px; }
.num { font-family: var(--display); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.figure:first-child .num { color: var(--accent); }
.num small { font-size: 20px; color: var(--muted); }
.cap { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.result-note { grid-column: 1 / -1; margin: 0; font-size: 14.5px; color: var(--muted); }

.button {
  display: inline-block; border: 1px solid var(--accent); border-radius: 6px;
  padding: 7px 16px; font-weight: 500; font-size: 15px;
}
.button:hover { background: var(--accent-soft); text-decoration: none; }

.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.exp p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 780px) {
  .layout { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 0; }
  .profile { position: static; text-align: center; }
  .photo, .initials { margin: 0 auto 12px; width: 120px; height: 120px; }
  .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; }
  .k { display: none; }
  nav { display: none; }
  .lead { font-size: 25px; }
  .exp-grid, .result { grid-template-columns: 1fr; }
  .pipe { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pipe i { width: 1px; height: 14px; margin-left: 28px; }
  .pipe i::after { right: -3px; top: auto; bottom: 0; border-top: 5px solid var(--muted); border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
