/* The 8 Museum — shared interior stylesheet (July 2026 redesign) */

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

:root {
    --bg: #0a0a0b;
    --surface: #111113;
    --ivory: #e9e5dc;
    --ivory-dim: #a8a49b;
    --ivory-faint: #5f5c55;
    --gold: #a99368;
    --hairline: rgba(233, 229, 220, 0.12);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { font-size: 16px; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ivory);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--bg); }

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--ivory); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--gold); }

.content a, section a, p a {
    color: var(--ivory);
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 1px;
}
.content a:hover, section a:hover, p a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* --- Header --- */
header {
    padding: 56px 0 36px;
    text-align: center;
}

.header-mark { display: inline-block; border: none !important; }
.header-mark img {
    height: 64px;
    width: auto;
    opacity: 0.92;
    transition: opacity 0.25s ease;
}
.header-mark:hover img { opacity: 1; }

h1 {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--ivory);
    margin: 20px 0 6px;
}

.subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--ivory-dim);
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* --- Body content --- */
.content, section {
    padding: 32px 0;
    border-top: 1px solid var(--hairline);
}

.content p, section p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--ivory-dim);
    line-height: 1.9;
    margin-bottom: 20px;
}

.content p:last-child, section p:last-child { margin-bottom: 0; }

.content strong, section strong {
    color: var(--ivory);
    font-weight: 400;
}

h2 {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gold);
    text-transform: lowercase;
    letter-spacing: 0.3em;
    margin: 36px 0 16px;
    padding-top: 32px;
    border-top: 1px solid var(--hairline);
}

h2:first-of-type { margin-top: 0; }
section h2 { border-top: none; padding-top: 0; margin-top: 0; }

/* --- Axiom list (about) --- */
.axioms {
    list-style: none;
    margin: 16px 0 20px;
}

.axioms li {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--ivory-dim);
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline);
    display: flex;
    gap: 16px;
    line-height: 1.6;
}

.axioms li:last-child { border-bottom: none; }

.axiom-num {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 0.9rem;
    flex-shrink: 0;
    padding-top: 1px;
    min-width: 20px;
    font-weight: 500;
}

/* --- Progress bar (about) --- */
.progress-section {
    padding: 28px 0;
    border-top: 1px solid var(--hairline);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--ivory-dim);
    margin-bottom: 10px;
}

.progress-bar-outer {
    width: 100%;
    height: 2px;
    background: var(--hairline);
}

.progress-bar-inner {
    height: 2px;
    background: var(--gold);
    opacity: 0.85;
}

.progress-note {
    font-size: 0.75rem;
    color: var(--ivory-faint);
    margin-top: 8px;
}

/* --- Country list (countries) --- */
.country-list {
    padding: 32px 0;
    border-top: 1px solid var(--hairline);
}

.country {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
}

.country-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--ivory);
}

.country-count {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--ivory-dim);
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.country-bar { position: relative; }

.country-bar::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    background: var(--gold);
    opacity: 0.35;
    width: var(--bar-width, 0%);
}

.coming-soon { padding-bottom: 16px; }
.coming-soon .country-count {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ivory-faint);
}

/* --- Meta block (thesis) --- */
.meta-block {
    background: var(--surface);
    border: 1px solid var(--hairline);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.meta-row {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 0.82rem;
}

.meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.meta-row:first-child { padding-top: 0; }

.meta-key {
    color: var(--ivory-faint);
    min-width: 100px;
    flex-shrink: 0;
}

.meta-val { color: var(--ivory-dim); }

/* --- Research questions (thesis) --- */
.rq {
    border-left: 1px solid var(--gold);
    padding-left: 22px;
    margin: 16px 0;
}

.rq p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--ivory-dim);
    margin-bottom: 14px;
    line-height: 1.7;
}

/* --- Chapter list (thesis) --- */
.chapters { list-style: none; }

.chapter {
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
    display: flex;
    gap: 16px;
}

.chapter:last-child { border-bottom: none; }

.chapter-num {
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    min-width: 76px;
    flex-shrink: 0;
    padding-top: 4px;
    font-weight: 400;
    text-transform: lowercase;
}

.chapter-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ivory);
    display: block;
    margin-bottom: 3px;
}

.chapter-desc {
    font-size: 0.8rem;
    color: var(--ivory-faint);
    font-weight: 300;
    line-height: 1.5;
}

/* --- Footer --- */
footer {
    padding: 36px 0 48px;
    border-top: 1px solid var(--hairline);
    text-align: center;
}

footer p {
    font-size: 0.74rem;
    color: var(--ivory-faint);
    line-height: 2;
    letter-spacing: 0.04em;
}

footer a { color: var(--ivory-faint); border: none; }
footer a:hover { color: var(--gold); }

@media (max-width: 480px) {
    header { padding: 40px 0 24px; }
    h1 { font-size: 1.6rem; }
    .header-mark img { height: 52px; }
}
