@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/bricolage-grotesque.woff2") format("woff2-variations"), url("fonts/bricolage-grotesque.woff2") format("woff2"); }
:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --ink: #1B1E27;
  --muted: #5A6070;
  --line: #DDE0E6;
  --accent: #8E2A49;
  --accent-soft: #F6E9ED;
  --warn: #B26F12;
  --head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161B;
    --surface: #1C1F27;
    --ink: #E9EAEE;
    --muted: #A2A8B5;
    --line: #313642;
    --accent: #EE93AE;
    --accent-soft: #3A2430;
    --warn: #E5AC45;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

/* Top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0; }
.top .me { font-family: var(--head); font-weight: 750; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 1.25rem; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--accent); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 1.75rem; padding: 2.5rem 0 3.5rem; align-items: center; }
@media (min-width: 720px) { .hero { grid-template-columns: 200px 1fr; gap: 2.75rem; padding-top: 3.5rem; } }
.hero img {
  width: 160px; height: 160px; border-radius: 28px; object-fit: cover; display: block;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line);
}
@media (min-width: 720px) { .hero img { width: 200px; height: 200px; } }
.hero .hi { font-weight: 600; color: var(--accent); margin: 0 0 0.5rem; }
.hero h1 {
  font-family: var(--head); font-weight: 750;
  font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.hero .sub { color: var(--muted); font-size: 1.125rem; margin: 0 0 1.5rem; max-width: 34rem; }
.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; padding: 0.65rem 1.15rem; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 1.5px solid var(--accent);
}
.btn.primary { background: var(--accent); color: var(--surface); }
.btn.ghost { color: var(--accent); }
.btn:hover { filter: brightness(1.08); }

.highlights { margin: 0 0 3rem; }
.facts.hl { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.facts.hl div { background: var(--surface); border: 1px solid var(--line); padding: 1.1rem 1.25rem; }
@media (max-width: 480px) { .facts.hl { grid-template-columns: 1fr; } }
/* Section heading */
.sect { font-family: var(--head); font-weight: 750; font-size: 1.35rem; letter-spacing: -0.015em; margin: 0 0 1.25rem; }

/* Case cards */
.case {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.75rem; margin-bottom: 1.5rem;
}
@media (min-width: 720px) { .case { padding: 2.25rem 2.5rem; } }
.case h2 {
  font-family: var(--head); font-weight: 750; font-size: clamp(1.4rem, 3.2vw, 1.75rem);
  line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.75rem;
}
.case .result { font-size: 1.125rem; margin: 0 0 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0 0 1.25rem; }
.facts div { background: var(--accent-soft); border-radius: 12px; padding: 0.85rem 1rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.facts dd { margin: 0; font-family: var(--head); font-weight: 750; font-size: clamp(1.25rem, 3.5vw, 1.6rem); line-height: 1.1; color: var(--accent); }
.facts dt { font-size: 0.875rem; color: var(--muted); line-height: 1.35; margin-top: 0.3rem; }
@media (max-width: 480px) { .facts { gap: 0.5rem; } .facts div { padding: 0.7rem; } .facts dt { font-size: 0.8rem; } .case { padding: 1.4rem 1.15rem; } }
.swipe { display: none; }
@media (max-width: 640px) { .swipe { display: inline; } }
.chips { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { font-size: 0.85rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.7rem; }

figure { margin: 0 0 1.5rem; }
.diagram { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; overflow-x: auto; background: var(--bg); }
.diagram svg { display: block; width: 100%; min-width: 560px; height: auto; }
figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }

.case h3 { font-family: var(--head); font-weight: 600; font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
.case p { margin: 0 0 0.9rem; }
.case ul:not(.chips) { margin: 0 0 0.9rem; padding-left: 1.15rem; }
.case li { margin-bottom: 0.45rem; }
.case li::marker { color: var(--accent); }

details { border-top: 1px solid var(--line); margin-top: 1.25rem; }
summary {
  cursor: pointer; list-style: none; padding: 1rem 0 0.25rem; font-weight: 600; color: var(--accent);
  display: flex; align-items: center; gap: 0.5rem;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font-size: 1.2rem; line-height: 1; width: 1rem; }
details[open] summary::before { content: "\2212"; }
details[open] summary .closed { display: none; }
details:not([open]) summary .open { display: none; }

/* SVG parts */
.n rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.n.key rect { stroke: var(--accent); stroke-width: 2; }
.n.warn rect { stroke: var(--warn); stroke-width: 2; }
.n.out rect { stroke-dasharray: 4 4; }
.n.out text { opacity: 0.6; }
.t { font-family: var(--body); font-size: 15px; font-weight: 600; fill: var(--ink); }
.s { font-family: var(--body); font-size: 12.5px; fill: var(--muted); }
.lbl { font-family: var(--body); font-size: 12.5px; font-weight: 600; fill: var(--muted); }
.w { fill: none; stroke: var(--accent); stroke-width: 1.75; }
.w.dash { stroke-dasharray: 5 5; stroke: var(--muted); }
.w.warn { stroke: var(--warn); }
.ah { fill: var(--accent); }
.ah.m { fill: var(--muted); }
.ah.wn { fill: var(--warn); }
.strike { stroke: var(--muted); stroke-width: 1.5; }


/* Closing */
.cta { text-align: center; padding: 3.5rem 0 2rem; }
.cta h2 { font-family: var(--head); font-weight: 750; font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.cta p { color: var(--muted); margin: 0 0 1.5rem; }
.cta .btns { justify-content: center; }
footer { text-align: center; color: var(--muted); font-size: 0.875rem; padding: 1.5rem 0 3rem; }
