:root {
    --bg: #0e1016;
    --card: #171b26;
    --ink: #f4f6fb;
    --mute: #a7afc2;
    --line: #2a3142;
    --orange: #ff7a18;
    --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Manrope, "Segoe UI", sans-serif;
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(255,122,24,.18), transparent 55%),
        var(--bg);
    color: var(--ink);
    line-height: 1.65;
    padding-bottom: 84px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #ffb27a; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.03em; line-height: 1.15; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 30; }
.frame { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.top {
    position: sticky; top: 0; z-index: 30;
    background: rgba(14,16,22,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.bar {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto; min-height: 72px;
    display: flex; align-items: center; gap: 18px;
}
.brand img { width: 108px; }
.desk { display: flex; gap: 2px; flex: 1; }
.desk a {
    text-decoration: none; color: var(--mute);
    font-size: 14px; font-weight: 700; padding: 8px 10px; border-radius: 999px;
}
.desk a[aria-current="page"], .desk a:hover { color: #fff; background: rgba(255,255,255,.06); }
.bar-cta { display: flex; gap: 8px; }
.go, .ghost {
    text-decoration: none; font-weight: 800; border-radius: 999px;
    min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center;
}
.go { background: linear-gradient(180deg, #ff9a3d, var(--orange)); color: #1a0d04; }
.ghost { background: #242836; color: #fff; border: 1px solid #3a4156; }
.burger {
    display: none; width: 44px; height: 44px; margin-left: auto;
    border: 0; background: #242836; border-radius: 12px; padding: 11px;
}
.burger span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; }
.sheet { display: none !important; padding: 8px 16px 16px; background: #12151e; border-top: 1px solid var(--line); }
.sheet.is-open { display: grid !important; }
.sheet a { display: block; text-decoration: none; color: var(--ink); padding: 12px 8px; font-weight: 700; border-radius: 10px; }
.sheet .go { margin-top: 8px; width: auto; }
.intro { padding: 36px 0 8px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
h1 { font-size: clamp(34px, 4.4vw, 52px); margin: 0 0 12px; }
.lead { color: var(--mute); font-size: 18px; margin: 0 0 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.portrait { width: 100%; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.35); object-fit: cover; max-height: 460px; }
.block { padding: 26px 0; }
.paths, .notes, .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card, .note {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 8px;
}
.card h2, .note h2, .card h3 { margin: 0 0 8px; font-size: 24px; }
.card p, .prose p, .note p { color: #d7dceb; }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
    text-decoration: none; color: inherit; background: var(--card);
    border-radius: 16px; overflow: hidden; border: 1px solid transparent;
}
.tile:hover { border-color: rgba(255,122,24,.55); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tile span { display: grid; padding: 10px 12px 12px; }
.tile b { color: var(--ink); }
.tile small { color: var(--mute); }
.prose { display: grid; gap: 12px; }
.prose h2 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 34px); }
.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; align-items: start; }
ol.flow { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 12px; }
ol.flow li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
ol.flow b {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255,122,24,.15); color: #ff9a3d;
}
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--mute); font-size: 13px; font-weight: 700; }
td:first-child { font-weight: 700; color: #fff; white-space: nowrap; }
.crumbs { color: var(--mute); font-size: 14px; margin: 16px 0 0; }
.crumbs a { color: var(--mute); text-decoration: none; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 0; font-weight: 800; color: #fff; }
.foot { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 26px; background: #0b0d12; }
.foot-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.1fr; gap: 22px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot p, .foot li { color: var(--mute); font-size: 14px; }
.foot a { color: #d5dbeb; }
.age {
    width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--orange);
    display: grid; place-items: center; color: #ff9a3d; font-weight: 800;
}
.copy { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 8px 0 18px; color: var(--mute); font-size: 13px; }
.dock {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(14,16,22,.96); border-top: 1px solid var(--line);
}
.dock a { text-align: center; text-decoration: none; color: #fff; padding: 12px; border-radius: 12px; background: #242836; font-weight: 800; }
.dock .hot { background: linear-gradient(180deg, #ff9a3d, var(--orange)); color: #1a0d04; }
.missing { min-height: 48vh; display: grid; align-content: center; }
@media (min-width: 901px) {
    .sheet, .sheet.is-open { display: none !important; }
}
@media (max-width: 900px) {
    .desk, .bar-cta { display: none; }
    .burger { display: block; }
    .sheet.is-open { display: grid !important; }
    .intro, .paths, .notes, .cols, .split, .foot-grid { grid-template-columns: 1fr; }
    .shelf { grid-template-columns: 1fr 1fr; }
    .dock { display: grid; }
    h1 { font-size: 34px; }
}
