:root {
    --bg: #f0f4f8;
    --surface: #ffffff;
    --text: #1a2332;
    --text-alt: #3d5068;
    --text-muted: #8496a9;
    --accent: #2E86C1;
    --accent-hover: #2471A3;
    --accent-subtle: #D6EAF8;
    --warn: #b45309;
    --warn-subtle: #fef3e2;
    --border: #d5dbe3;
    --border-hover: #b8c4d0;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: 'Cascadia Code', 'SF Mono', 'Consolas', monospace;
    --max-w: 1140px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.07);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    font-weight: 600;
    z-index: 200;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

/* === Header === */
.site-header {
    background: var(--surface);
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.brand:hover {
    color: var(--text);
    text-decoration: none;
}

.brand span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    color: var(--text-alt);
    font-size: 15px;
    font-weight: 500;
    transition: color .2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text);
}

.mobile-nav {
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    color: var(--text-alt);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* === Hero === */
.hero-banner {
    padding: 76px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.hero-banner h1 {
    font-size: 46px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1.2px;
    margin-bottom: 18px;
    line-height: 1.12;
}

.hero-banner .tagline {
    font-size: 18px;
    color: var(--text-alt);
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 15px 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    transition: background .2s, transform .15s;
}

.cta-btn:hover {
    background: var(--accent-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.hero-secondary {
    font-size: 14px;
    color: var(--text-alt);
}

/* === Page head (subpages) === */
.page-head {
    padding: 56px 0 40px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.page-head h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    line-height: 1.15;
}

.page-head .lede {
    font-size: 18px;
    color: var(--text-alt);
    max-width: 760px;
    line-height: 1.7;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-left: 6px;
    color: var(--text-muted);
}

.byline {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* === Content blocks === */
.block {
    padding: 60px 0;
}

.block-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.block-heading {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -0.6px;
}

.block-lead {
    font-size: 17px;
    color: var(--text-alt);
    max-width: 740px;
    margin-bottom: 34px;
}

.prose {
    max-width: 780px;
}

.prose p,
.prose li {
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--text-alt);
}

.prose p {
    margin-bottom: 18px;
}

.prose h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin: 40px 0 14px;
    letter-spacing: -0.4px;
}

.prose h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    margin: 30px 0 10px;
}

.prose ul,
.prose ol {
    margin: 0 0 18px 22px;
}

.prose li {
    margin-bottom: 8px;
}

.prose strong {
    color: var(--text);
}

.prose code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    word-break: break-all;
}

.prose hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 36px 0;
}

/* === Address card === */
.address-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 28px;
    text-align: center;
}

.address-card h2 {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.onion-string {
    margin-bottom: 14px;
}

.onion-string code {
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.5;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: inline-block;
    word-break: break-all;
    user-select: all;
}

.address-note {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 8px;
}

.address-verify {
    font-size: 14px;
    color: var(--text-alt);
}

/* === Cards === */
.info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: border-color .2s, box-shadow .2s;
}

.info-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 15px;
    color: var(--text-alt);
    line-height: 1.65;
}

.fact-list {
    list-style: none;
    max-width: 860px;
}

.fact-list li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 14px;
    font-size: 15.5px;
    color: var(--text-alt);
    line-height: 1.65;
}

.fact-list strong {
    color: var(--text);
}

.note-box {
    background: var(--warn-subtle);
    border: 1px solid #f0d9b5;
    border-left: 4px solid var(--warn);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    max-width: 780px;
    font-size: 15.5px;
    color: var(--text-alt);
    line-height: 1.7;
}

.note-box strong {
    color: var(--text);
}

/* === Table === */
.data-table {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 960px;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.data-table th {
    text-align: left;
    padding: 16px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-alt);
    background: var(--bg);
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 16px 18px;
    font-size: 14.5px;
    color: var(--text-alt);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
}

.data-table td:first-child {
    color: var(--text);
    font-weight: 600;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-url {
    font-family: var(--mono);
    font-size: 13px;
    word-break: break-all;
}

/* === FAQ === */
.help-list {
    max-width: 780px;
}

.help-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color .2s;
}

.help-item:hover {
    border-color: var(--border-hover);
}

.help-q {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.help-a {
    font-size: 15px;
    color: var(--text-alt);
    line-height: 1.7;
}

/* === Sources / references === */
.references {
    max-width: 860px;
    padding-left: 22px;
}

.references li {
    font-size: 15px;
    color: var(--text-alt);
    line-height: 1.7;
    margin-bottom: 12px;
}

.references .src-note {
    color: var(--text-muted);
    font-size: 13.5px;
}

/* === CTA box === */
.action-box {
    text-align: center;
    padding: 52px 28px;
    background: var(--accent-subtle);
    border-radius: var(--radius);
    max-width: var(--max-w);
    margin: 0 auto;
}

.action-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.action-box p {
    font-size: 17px;
    color: var(--text-alt);
    margin-bottom: 26px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* === Footer === */
.page-footer {
    background: var(--surface);
    border-top: 2px solid var(--accent);
    padding: 52px 0 28px;
    margin-top: 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-columns h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
}

.footer-columns p {
    font-size: 14px;
    color: var(--text-alt);
    line-height: 1.7;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    font-size: 14px;
    color: var(--text-alt);
    transition: color .2s;
    word-break: break-all;
}

.footer-nav a:hover {
    color: var(--accent);
}

.legal-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 16px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.copyright {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    /* With JS: collapsed menu behind toggle. Without JS: nav stays visible. */
    .js .nav-toggle {
        display: flex;
    }

    .js .mobile-nav.open {
        display: block;
    }

    html:not(.js) .mobile-nav {
        display: block;
    }

    .hero-banner {
        padding: 56px 0 44px;
    }

    .hero-banner h1 {
        font-size: 32px;
    }

    .hero-banner .tagline {
        font-size: 16px;
    }

    .page-head h1 {
        font-size: 28px;
    }

    .block {
        padding: 44px 0;
    }

    .block-heading {
        font-size: 25px;
    }

    .info-row {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .hero-banner h1 {
        font-size: 26px;
    }

    .page-head h1 {
        font-size: 24px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none;
        animation: none;
        scroll-behavior: auto;
    }
}
