:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1b1f24;
  --muted: #5b636d;
  --line: #e4e1da;
  --accent: #1f4e79;
  --accent-soft: #e8eef5;
  --chip: #f1efe9;
  --max: 1080px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121417;
    --surface: #1a1d21;
    --ink: #eceae6;
    --muted: #a3a9b1;
    --line: #2c3036;
    --accent: #8db8e3;
    --accent-soft: #1c2a38;
    --chip: #23272c;
  }
}
:root[data-theme="dark"] {
  --bg: #121417;
  --surface: #1a1d21;
  --ink: #eceae6;
  --muted: #a3a9b1;
  --line: #2c3036;
  --accent: #8db8e3;
  --accent-soft: #1c2a38;
  --chip: #23272c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 17px; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
nav.main { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav.main a { color: var(--muted); text-decoration: none; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lede { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 640px; }
.photo { width: 168px; height: 168px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 52px; font-weight: 700; border: 1px solid var(--line); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--accent); }
.btn.primary { background: var(--accent); color: var(--bg); }
.btn.ghost { color: var(--accent); background: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips li { background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--muted); }
section { padding: 40px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.01em; }
section p.sub { color: var(--muted); margin: 0 0 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.stat b { display: block; font-size: 28px; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.card .body { padding: 18px; }
.card h3 { margin: 0 0 4px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; }
.case { padding: 48px 0 24px; }
.case h1 { font-size: clamp(30px, 4.5vw, 42px); margin: 6px 0 8px; letter-spacing: -0.02em; }
.case .lede { font-size: 19px; color: var(--muted); max-width: 720px; margin: 0 0 20px; }
.shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 24px 0; }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; font-size: 15px; align-self: start; }
.facts dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 12px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; }
.case h2 { font-size: 22px; margin: 28px 0 8px; }
.case ul { padding-left: 20px; }
.case li { margin-bottom: 6px; }
table.decisions { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
table.decisions th, table.decisions td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.decisions th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.next { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 48px; flex-wrap: wrap; }
.dl { display: grid; gap: 12px; }
.dl a { display: flex; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.dl a span { color: var(--muted); font-size: 14px; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.note { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; font-size: 15px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .photo { width: 120px; height: 120px; font-size: 38px; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid, .cols { grid-template-columns: 1fr; }
  table.decisions th:nth-child(3), table.decisions td:nth-child(3) { display: none; }
}
