:root {
    --bg: #0c1118;
    --panel: #121a23;
    --panel2: #17212c;
    --text: #f0eee8;
    --muted: #b2bac2;
    --line: rgba(226,182,123,.22);
    --copper: #d9a66d;
    --teal: #84b7b0;
    --max: 1160px;
    --reading: 780px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: radial-gradient(ellipse at 78% 4%,rgba(132,183,176,.09),transparent 30rem),radial-gradient(ellipse at 8% 18%,rgba(217,166,109,.07),transparent 28rem),var(--bg);
    color: var(--text);
    font: 16px/1.75 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
a {
    color: var(--teal);
    text-decoration: none;
}
a:hover {
    color: #b5d8d2;
    text-decoration: underline;
}
a:focus-visible,button:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 4px;
}
.wrap {
    width: min(calc(100% - 40px),var(--max));
    margin-inline: auto;
}
.topline {
    border-bottom: 1px solid var(--line);
    font-size: .76rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
}
.topline .wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(12,17,24,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}
.brand {
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--text);
    font-size: 1.05rem;
    white-space: nowrap;
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-right: 9px;
    border: 1px solid var(--copper);
    border-radius: 10px;
    color: var(--copper);
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
nav a {
    font-size: .88rem;
    color: #d2d7dc;
    padding: 8px 10px;
    border-radius: 7px;
}
nav a[aria-current=page],nav a:hover {
    background: var(--panel2);
    color: var(--copper);
    text-decoration: none;
}
.hero {
    padding: 78px 0 55px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(120deg,rgba(18,26,35,.8),rgba(12,17,24,.2));
}
.eyebrow {
    color: var(--copper);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(2.3rem,6vw,4.8rem);
    line-height: 1.06;
    letter-spacing: -.045em;
    max-width: 900px;
    margin: 18px 0 20px;
    overflow-wrap: anywhere;
}
.hero p {
    max-width: 790px;
    font-size: 1.13rem;
    color: #d1d6da;
    margin: 0;
}
.hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.pill {
    border: 1px solid var(--line);
    background: rgba(23,33,44,.72);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .76rem;
    color: #d4d8da;
    letter-spacing: .05em;
}
.content-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 250px;
    gap: 48px;
    padding: 54px 0 80px;
    align-items: start;
}
.article {
    min-width: 0;
}
.article section {
    padding: 0 0 32px;
    margin: 0 0 34px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    scroll-margin-top: 120px;
}
.article h2 {
    font-size: clamp(1.45rem,3vw,2rem);
    line-height: 1.25;
    letter-spacing: -.025em;
    margin: 0 0 14px;
    color: #f4eee4;
}
.article h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 22px 0 8px;
    color: var(--copper);
}
.article p {
    margin: 0 0 15px;
    color: #d0d5da;
}
.article ul {
    padding-left: 22px;
    color: #d0d5da;
}
.article li {
    padding: 3px 0;
}
.toc {
    position: sticky;
    top: 110px;
    border: 1px solid var(--line);
    background: rgba(18,26,35,.8);
    border-radius: 14px;
    padding: 20px;
}
.toc h2 {
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--copper);
    margin: 0 0 12px;
}
.toc a {
    display: block;
    padding: 7px 0;
    color: #c8d0d5;
    font-size: .88rem;
    line-height: 1.45;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.toc a:last-child {
    border: 0;
}
.callout {
    border-left: 3px solid var(--copper);
    background: var(--panel);
    padding: 18px 20px;
    border-radius: 0 10px 10px 0;
    color: #d4d9dd;
    margin: 25px 0;
}
.resource-list {
    display: grid;
    gap: 14px;
}
.resource {
    border: 1px solid var(--line);
    background: linear-gradient(145deg,rgba(23,33,44,.9),rgba(18,26,35,.82));
    border-radius: 13px;
    padding: 22px;
}
.resource h2 {
    font-size: 1.22rem !important;
    margin: 0 0 6px !important;
}
.resource .url {
    font-size: .9rem;
    overflow-wrap: anywhere;
    display: inline-block;
    margin: 5px 0 10px;
}
.resource p {
    margin-bottom: 0;
}
.resource-label {
    font-size: .7rem;
    color: var(--copper);
    letter-spacing: .14em;
    text-transform: uppercase;
}
.footer {
    border-top: 1px solid var(--line);
    padding: 28px 0 36px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .85rem;
}
.footer strong {
    color: var(--text);
}
.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.backtop {
    display: inline-block;
    margin-top: 8px;
    font-size: .85rem;
}
.small {
    font-size: .82rem;
    color: var(--muted);
}
@media (max-width:850px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 15px 0;
        gap: 12px;
    }
    nav {
        gap: 2px;
    }
    nav a {
        padding: 7px 8px;
    }
    .content-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .toc {
        position: static;
        order: -1;
    }
    .hero {
        padding: 56px 0 42px;
    }
}
@media (max-width:520px) {
    .wrap {
        width: min(calc(100% - 28px),var(--max));
    }
    .topline .wrap {
        font-size: .65rem;
        letter-spacing: .08em;
    }
    .hero h1 {
        font-size: 2.45rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .article p {
        font-size: .97rem;
    }
    .toc {
        padding: 16px;
    }
    .resource {
        padding: 17px;
    }
    .nav {
        min-height: 0;
    }
    nav a {
        font-size: .82rem;
    }
}
@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation: none !important;
        transition: none !important;
    }
}
/* Editorial readability and directory layout refinement */
.article {
    max-width: 820px;
}
.article p {
    max-width: 72ch;
    line-height: 1.78;
    text-wrap: pretty;
}
.article section {
    padding-bottom: 38px;
    margin-bottom: 38px;
}
.article h2 {
    max-width: 28ch;
    margin-bottom: 18px;
}
.article h3 {
    max-width: 42ch;
}
.content-layout {
    grid-template-columns: minmax(0,1fr) 230px;
    gap: 42px;
}
.toc {
    font-size: .9rem;
    max-height: calc(100vh - 130px);
    overflow: auto;
}
.link-directory-intro {
    max-width: 760px;
    margin: 0 0 26px;
    color: #d0d5da;
}
.onion-slots {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    margin: 0 0 36px;
}
.onion-slot {
    min-width: 0;
    border: 1px solid rgba(217,166,109,.38);
    border-radius: 14px;
    padding: 22px;
    background: linear-gradient(150deg,rgba(23,33,44,.96),rgba(12,17,24,.94));
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.onion-slot .slot-number {
    display: block;
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 14px;
}
.onion-slot h2 {
    font-size: 1.15rem !important;
    letter-spacing: -.02em;
    margin: 0 0 10px !important;
    overflow-wrap: anywhere;
}
.onion-slot p {
    font-size: .9rem;
    line-height: 1.6;
    margin: 0 0 15px !important;
}
.slot-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .72rem;
    color: #d4d8da;
    letter-spacing: .04em;
}
.slot-status:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--copper);
    display: inline-block;
}
.resource .url a {
    overflow-wrap: anywhere;
}
@media (max-width:850px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .article {
        max-width: none;
    }
    .toc {
        max-height: none;
        order: -1;
    }
}
@media (max-width:620px) {
    .onion-slots {
        grid-template-columns: 1fr;
    }
    .onion-slot {
        padding: 19px;
    }
    .article section {
        padding-bottom: 28px;
        margin-bottom: 28px;
    }
}
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(132,183,176,.45);
    border-radius: 8px;
    background: #17212c;
    color: #d7e9e5;
    font: 600 .82rem/1.2 inherit;
    cursor: pointer;
}
.copy-btn:hover {
    background: #20313b;
    border-color: var(--teal);
}
.copy-btn:disabled {
    opacity: .7;
    cursor: default;
}
.resource .copy-btn {
    margin-left: 8px;
    margin-top: 0;
}
.copy-feedback {
    display: inline-block;
    margin-left: 8px;
    color: var(--teal);
    font-size: .8rem;
}


/* Signature navigation rail and compact mobile menu */
.header .nav { gap: 18px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.menu-toggle { display: none; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 310px); gap: clamp(28px, 5vw, 76px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy h1 { max-width: 13ch; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.hero-copy p { max-width: 68ch; }
.hero-rail { position: relative; overflow: hidden; border: 1px solid rgba(217,166,109,.34); border-radius: 20px; padding: 22px; background: linear-gradient(155deg, rgba(23,33,44,.95), rgba(12,17,24,.92)); box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.hero-rail:before { content: "Ω"; position: absolute; right: -10px; top: -42px; font: 170px/1 Georgia,serif; color: rgba(217,166,109,.055); pointer-events: none; }
.rail-kicker { color: var(--copper); font-size: .67rem; font-weight: 800; letter-spacing: .2em; }
.hero-rail h2 { margin: 8px 0 5px; font-size: 1.5rem; letter-spacing: -.035em; }
.rail-intro { margin: 0 0 16px; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.rail-links { display: grid; gap: 5px; }
.rail-links .rail-link { display: grid; grid-template-columns: 30px minmax(0,1fr) 16px; align-items: center; gap: 10px; padding: 10px 9px; border: 1px solid transparent; border-radius: 10px; color: var(--text); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.rail-links .rail-link:hover, .rail-links .rail-link.is-current { background: rgba(217,166,109,.09); border-color: rgba(217,166,109,.24); text-decoration: none; transform: translateX(2px); }
.rail-number { color: var(--copper); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.rail-link-copy { display: grid; gap: 2px; min-width: 0; }
.rail-link-copy strong { font-size: .86rem; font-weight: 700; }
.rail-link-copy small { color: var(--muted); font-size: .69rem; line-height: 1.35; }
.rail-arrow { color: var(--copper); font-size: .95rem; }
.rail-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: .68rem; letter-spacing: .04em; }
.rail-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(132,183,176,.1); }
@media (max-width: 1000px) {
 .hero .wrap { grid-template-columns: minmax(0,1fr) 265px; gap: 26px; }
 .hero-copy h1 { font-size: clamp(2.5rem, 5vw, 3.7rem); }
 .nav { flex-wrap: wrap; }
}
@media (max-width: 760px) {
 .header .nav { min-height: 70px; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 0; }
 .brand { font-size: .96rem; }
 .menu-toggle { display: inline-flex; width: 42px; height: 42px; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); cursor: pointer; }
 .menu-toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--copper); transition: transform .2s ease, opacity .2s ease; }
 .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
 .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
 .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
 .header nav[data-main-nav] { display: none; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding-top: 8px; }
 .header nav[data-main-nav].is-open { display: grid; }
 .header nav[data-main-nav] a { padding: 11px 12px; border: 1px solid rgba(255,255,255,.055); background: rgba(23,33,44,.5); }
 .hero { padding: 38px 0 34px; }
 .hero .wrap { grid-template-columns: minmax(0,1fr); gap: 26px; }
 .hero-copy h1 { max-width: 15ch; font-size: clamp(2.5rem, 10vw, 4rem); }
 .hero-rail { padding: 18px; }
 .rail-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .rail-links .rail-link { grid-template-columns: 25px minmax(0,1fr); gap: 7px; }
 .rail-arrow { display: none; }
}
@media (max-width: 420px) {
 .rail-links { grid-template-columns: 1fr; }
 .topline .wrap span:last-child { display: none; }
 .brand-mark { width: 32px; height: 32px; }
}
