/* Arctic 81 shared stylesheet */

@font-face {
    font-family: 'another_mans_treasure_mib_2Md';
    src: url('anothermanstreasuremib2y-webfont.woff2') format('woff2'),
         url('anothermanstreasuremib2y-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'karmatic_arcade';
    src: url('ka1.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* ── Default (black/white) theme ── */
:root {
    --bg:         black;
    --border:     gray;
    --text:       white;
    --accent:     black;   /* used for hover text and figcaption bg */
    --link:       white;
    --nav-bg:     black;
    --nav-btn-bg: white;
    --nav-btn-fg: black;
    --nav-link-bg: white;
    --nav-link-fg: black;
    --mobile-menu-bg: #333;
    --mobile-item-border: #555;
}

/* ── MC-10 (green) theme ── */
body.mc10 {
    --bg:         #6cdd4d;
    --border:     #2c5f1e;
    --text:       #2c5f1e;
    --accent:     #6cdd4d;
    --link:       #2c5f1e;
    --nav-bg:     #6cdd4d;
    --nav-btn-bg: #2c5f1e;
    --nav-btn-fg: white;
    --nav-link-bg: #2c5f1e;
    --nav-link-fg: white;
    --mobile-menu-bg: #fff;
    --mobile-item-border: white;
}

body {
    background-color: var(--bg);
    border: 20px solid var(--border);
    padding: 20px;
    padding-top: 0;
    font-family: 'another_mans_treasure_mib_2Md';
    margin: 20px;
}

p {
    font-family: 'another_mans_treasure_mib_2Md';
    font-size: 32px;
    font-weight: lighter;
    color: var(--text);
    margin: 20px;
    margin-left: 15%;
    margin-right: 15%;
    line-height: 40px;
}

h1 {
    font-family: 'another_mans_treasure_mib_2Md';
    font-size: 36px;
    color: var(--text);
    margin: 15px;
    margin-top: 0;
    margin-bottom: 12px;
}

h2 {
    font-family: 'another_mans_treasure_mib_2Md';
    font-size: 20px;
    color: var(--text);
    margin: 15px;
}

h3 {
    font-family: 'another_mans_treasure_mib_2Md';
    font-size: 75px;
    color: var(--text);
    margin: 15px;
    margin-top: 80px;
    margin-bottom: 0;
    line-height: 80%;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

a:link {
    color: var(--link);
    text-decoration: underline;
}

a:visited {
    color: var(--link);
    text-decoration: underline;
}

a:hover {
    color: var(--bg);
    background-color: var(--link);
    text-decoration: none;
}

figure {
    margin: 20px;
    margin-top: 0;
    padding: 15px;
    border: 4px solid var(--text);
}

figcaption {
    font-family: 'another_mans_treasure_mib_2Md';
    background-color: var(--accent);
    color: var(--text);
    font-size: 25px;
    font-weight: 100;
    padding: 0;
    padding-top: 14px;
    text-wrap: wrap;
    max-width: 200px;
}

/* ── Navigation ── */

.navbar {
    background-color: var(--nav-bg);
    padding: 10px 20px 20px;
    font-family: 'another_mans_treasure_mib_2Md';
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'karmatic_arcade';
    color: var(--text) !important;
    font-size: 30px;
    font-weight: lighter;
    text-decoration: none !important;
    border: 0 !important;
    padding-top: 0 !important;
}

.logo:hover {
    color: var(--text) !important;
    background-color: var(--nav-bg);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background-color: var(--nav-btn-bg);
    border: none;
    color: var(--nav-btn-fg);
    font-size: 24px;
    font-family: 'another_mans_treasure_mib_2Md';
    padding: 10px 8px 0;
    margin-top: 6px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 8px;
}

.nav-link {
    color: var(--nav-link-fg) !important;
    background-color: var(--nav-link-bg);
    font-size: 24px;
    text-decoration: none !important;
    padding: 10px 8px 0;
    margin-top: 2px;
    display: inline-block;
}

.nav-link:hover {
    background-color: #555;
    color: white !important;
}

/* ── Mobile styles ── */

@media (max-width: 1210px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 200px;
        position: absolute;
        top: 60%;
        right: 0;
        background-color: var(--mobile-menu-bg);
        padding: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        margin: 0;
        border-bottom: 1px solid var(--mobile-item-border);
    }

    .nav-link {
        display: block;
        padding-top: 15px !important;
        padding-bottom: 8px !important;
    }

    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }
}

@media (max-width: 700px) {
    p {
        font-size: 40px;
        margin-left: 20px;
        margin-right: 20px;
        line-height: 46px;
    }

    .menu-toggle { font-size: 40px; }
    .nav-link    { font-size: 40px; }
    figcaption   { font-size: 40px; }
    .logo        { font-size: 40px; }
    h1           { font-size: 40px; }
    h2           { font-size: 30px; }
}
