/* ── DESIGN TOKENS ── */
:root {
    --bg: #00524a;
    --fg: #fff;
    --silver: linear-gradient(135deg, #C0C0C0 0%, #F5F5F5 25%, #808080 50%, #C0C0C0 75%, #F5F5F5 100%);
    --chrome: linear-gradient(180deg, #ebebeb 0%, #c4c4c4 18%, #a2a2a2 42%, #b6b6b6 62%, #d9d9d9 82%, #f0f0f0 100%);
    --chrome-border-top: 2px solid #b8b8b8;
    --chrome-border-bottom: 2px solid #555;
    --chrome-border-side: 1px solid #888;
    --chrome-text-shadow: 0 1px 0 #f2f2f2, 0 -1px 0 #888;
}

@font-face {
    font-family: 'Alien';
    src: url('/fonts/Alien/Alien Edifice Bold 10 20 .ttf') format('truetype');
    font-display: swap;
}

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

/* ── BASE ── */
html { scroll-behavior: smooth; }

html, body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Geist', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

::selection { background: #fff; color: #000; }

/* ── TYPOGRAPHY ── */
h1, h2 {
    font-family: 'Alien', Courier, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    background: var(--silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }

h3 {
    font-family: 'Alien', Courier, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

h4 {
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

p {
    color: var(--fg);
    max-width: 65ch;
    margin: 0 auto 1rem;
    text-align: justify;
    hyphens: auto;
    letter-spacing: 0.02em;
}

a { color: #ddd; text-decoration: none; }
a:hover { color: #fff; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--fg); }
li { margin-bottom: 0.3rem; }

/* ── LAYOUT ── */
main {
    flex: 1;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ── CHROME NAV ── */
.chrome-nav {
    display: flex;
    flex-shrink: 0;
    border-top: var(--chrome-border-top);
    border-bottom: var(--chrome-border-bottom);
    background: var(--chrome);
}

.chrome-nav a {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: var(--chrome-border-side);
    font-family: 'Alien', Courier, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #1a1a1a;
    font-weight: 700;
    text-shadow: var(--chrome-text-shadow);
    text-decoration: none;
    transition: background 0.12s;
    user-select: none;
}

.chrome-nav a:last-child { border-right: none; }
.chrome-nav a:hover { background: rgba(0, 0, 0, 0.07); color: #1a1a1a; }
.chrome-nav a.active { background: rgba(0, 0, 0, 0.13); box-shadow: inset 0 -3px 0 #333; }

/* ── BLOG HEADER IMAGE ── */
#blogheader {
    display: block;
    margin: 1.5rem auto 0.5rem;
    width: 90%;
    max-width: 420px;
    height: auto;
}

/* ── COLLAPSIBLES ── */
.collapsible {
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 0.5rem auto;
    padding: 0.85rem 2.5rem 0.85rem 1.5rem;
    background: var(--chrome);
    color: #1a1a1a;
    border-top: var(--chrome-border-top);
    border-bottom: var(--chrome-border-bottom);
    border-left: var(--chrome-border-side);
    border-right: var(--chrome-border-side);
    text-shadow: var(--chrome-text-shadow);
    font-family: 'Alien', Courier, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: filter 0.12s;
    outline: none;
    user-select: none;
    min-height: 44px;
}

.collapsible::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
}

.collapsible.active::after { content: '▲'; }
.collapsible:hover { filter: brightness(1.07); }

.collapsible.active {
    background: linear-gradient(180deg, #a2a2a2 0%, #b6b6b6 38%, #c4c4c4 62%, #ebebeb 100%);
    box-shadow: inset 0 -3px 0 #333;
}

/* ── COLLAPSIBLE CONTENT ── */
.content {
    display: none;
    max-width: 560px;
    margin: 0 auto 0.5rem;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border-left: var(--chrome-border-side);
    border-right: var(--chrome-border-side);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content p {
    font-size: 0.88rem;
    max-width: none;
    margin: 0 0 0.8rem;
    text-align: left;
}

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

.content a { color: #ccc; font-weight: bold; }
.content a:hover { color: #fff; }

/* ── BUTTON SECTION ── */
.button-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.button-section > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    flex: 0 0 auto;
}

.button-section img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    transition: filter 0.3s, border-color 0.3s;
}

.button-section img:hover {
    filter: grayscale(30%) brightness(1.1);
    border-color: #555;
}

.button-section h2 {
    margin-top: 0.6rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.button-section p {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0.2rem 0 0;
    max-width: none;
    text-align: center;
}

/* ── INTRO TEXT ── */
#intro-text {
    max-width: 560px;
    margin: 1rem auto 1.5rem;
    text-align: justify;
}

/* ── FOOTER ── */
footer {
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    text-align: center;
}

footer a { color: var(--fg); }
footer a:hover { color: #888; }

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
    main { padding: 1.4rem 1rem; }
    .collapsible { font-size: 0.62rem; letter-spacing: 0.05em; }
}
