:root {
    --bg-page:       url("bg.png");
    --bg-content:    #1e1e1e;
    --bg-box:        #212121;
    --bg-nav:        #000000;
    --border:        #111111;
    --border-accent: #0f0f0f;
    --purple:        rgb(158, 0, 211);
    --purple-hover:  rgb(190, 50, 240);
    --text-primary:  #e0edff;
    --text-muted:    #a3a3a3;
    --text-heading:  #bababa;
    --link:          #4891f7;
    --link-hover:    #68a6fb;
    --mono:          "Share Tech Mono", "Consolas", "Andale Mono", monospace;
    --sans:          "Times New Roman", serif;
    --max-width:     980px;
    --nav-height:    36px;
    --header-height: 52px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-image: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--link); text-decoration: underline; transition: color 0.2s ease; }
a:hover { color: var(--link-hover); }
a:visited { color: var(--link); }

img { max-width: 100%; height: auto; display: block; }

.monospace { font-family: var(--sans); }

/* â”€â”€ Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header {
    background: #171616;
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.5em;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.main-nav {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-inner a {
    display: inline-flex;
    align-items: center;
    height: var(--nav-height);
    padding: 0 14px;
    font-family: var(--sans);
    font-size: 13px;
    color: #ffffff;
    letter-spacing: 0.03em;
    border-right: 1px solid #1a1a1a;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-inner a:first-child { border-left: 1px solid #1a1a1a; }

.nav-inner a:hover,
.nav-inner a.active {
    background: var(--purple);
    color: #ffffff;
}

.user-bar a { font-size: 12px; color: var(--text-muted); }
.user-bar a:hover { color: var(--text-primary); }
.user-bar-sep { color: #333; font-size: 12px; user-select: none; }

/* â”€â”€ Page Wrap â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.page-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    flex: 1;
}

/* â”€â”€ Page Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.page-header {
    padding: 32px 0 24px;
}

.page-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.6em;
    color: var(--text-heading);
    letter-spacing: 0.04em;
}

/* â”€â”€ Content Area â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.content-area {
    max-width: 720px;
    padding-bottom: 48px;
}

.content-area--wide {
    max-width: 100%;
}

/* â”€â”€ Hero (index only) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero {
    padding: 24px 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.hero-cube {
    width: 140px;
    height: 140px;
    object-fit: contain;
    opacity: 0.92;
    animation: cube-float 6s ease-in-out infinite;
}

.hero-tagline {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-tagline::before { content: '[ '; color: var(--purple); }
.hero-tagline::after  { content: ' ]'; color: var(--purple); }


/* â”€â”€ Block â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.block {
    background: var(--bg-content);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.block-header {
    background: var(--bg-box);
    border-bottom: 1px solid var(--border);
    padding: 8px 14px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-header::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--purple);
    flex-shrink: 0;
}

.block-body {
    padding: 18px 16px;
    font-size: 13.5px;
    line-height: 1.8;
}

.block-body p + p { margin-top: 12px; }

.block-body a {
    color: var(--purple-hover);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.block-body a:hover {
    color: #ffffff;
    border-bottom-color: var(--purple);
}

.file-list { list-style: none; }

.file-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.file-entry:last-child { border-bottom: none; }

.file-entry--offline { opacity: 0.55; }

.file-entry__main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.file-entry__name {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    color: var(--purple-hover);
    transition: color 0.2s ease;
}

.file-entry__name:hover { color: #ffffff; }

.file-entry__name--offline {
    color: var(--text-muted);
    cursor: default;
}

.file-entry__proto {
    font-size: 11px;
    color: #444;
    font-family: var(--sans);
    letter-spacing: 0.04em;
}

.file-entry__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.file-entry__location {
    font-size: 12px;
    color: var(--text-muted);
}

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 720px) {
    .nav-inner a         { padding: 0 10px; font-size: 12px; }
    .hero-cube           { width: 100px; height: 100px; }
    .affiliate-entry     { flex-direction: column; }
    .affiliate-logo      { width: 100%; }
    .affiliate-logo img  { max-width: 120px; }
    .contributor-list li { flex-direction: column; gap: 2px; }
    .file-entry          { flex-wrap: wrap; }
    .footer-inner        { flex-direction: column; align-items: flex-start; }
}

li.margin {margin-left: 20px; }
