* {
    border: 0px solid red;
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

:root {
    /* Core neutrals — warm gallery */
    --absolute: #000;
    --ink: #1c140c;
    --paper: #f6f1e7;
    --paper-dark: #ebe3d3;
    --panel-bg: #e4dcc9;
    --rule: #1c140c;
    --muted: #8a7d67;

    /* Primary brand accent — muted ultramarine */
    --accent: #5c79b4;
    --accent-light: #cfd8ee;

    /* Secondary artistic accents */
    --accent-red: #a6533a;
    /* iron oxide */
    --accent-purple: #6e5a7f;
    /* dusty violet */
    --accent-yellow: #c9a646;
    /* ochre */
    --accent-green: #6f8b6b;
    /* sage */

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Libre Baskerville', Georgia, serif;
    --font-sans: 'Oswald', 'Arial Narrow', sans-serif;
    --font-monospace: 'Courier New', Courier, monospace;
}

:root.dark {
    --absolute: #FFF;
    --ink: #eee6d8;
    --paper: #1a1611;
    --paper-dark: #231d16;
    --panel-bg: #2a241c;
    --rule: #d9cfbf;
    --muted: #a89c87;

    --accent: #5787cf;
    --accent-light: #5c6fa8;

    --accent-red: #c46a4f;
    --accent-purple: #8c79a2;
    --accent-yellow: #d8b85a;
    --accent-green: #8faa86;
}

@font-face {
    font-family: 'NextArtBold';
    src: url('/static/fonts/NEXT ART_Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'NextArtRegular';
    src: url('/static/fonts/NEXT\ ART_Regular.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

.text-flow p {
    text-align: justify;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ── Header ────────────────────────────────── */
.site-header {
    background-image: url('../images/graphics/header-image.png');
    background-size: 1100px;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    height: 85px;
}

.header-inner {
    min-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-flag, .header-flag a {
    display: flex;
    align-items: center;
}

.header-flag img {
    margin-right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    user-select: none;
    image-rendering: crisp-edges;
    opacity: 0.85;
    transition: opacity 0.15s, transform 0.15s;
}

.header-flag img:hover {
    opacity: 1;
    transform: scale(103%);
}

.site-title {
    font-family: "NextArtBold";
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
    line-height: 1;
}

.site-title span {
    font-family: "NextArtRegular";
    color: var(--ink);
}

.site-tagline {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.25rem;
}

.main-nav {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fancy-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    color: var(--ink);
    transition: color 0.15s;
    position: relative;
}

.fancy-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-light);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.fancy-link:hover {
    color: var(--accent-light);
}

.fancy-link:hover::after {
    transform: scaleX(1);
}

.theme-toggle {
    border: 2px solid var(--ink);
    background: transparent;
    color: var(--ink);
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    position: relative;
    border: 0;
}

/* SVG inherits text color */
.theme-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
}

/* stack icons */
.icon {
    position: absolute;
    display: grid;
    place-items: center;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* default = light mode → moon visible */
.icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

.icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* dark mode → sun visible */
:root.dark .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

:root.dark .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

/* hover */
.theme-toggle:hover {
    background: var(--ink);
    color: var(--paper);
}

.socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 0.75rem;
}

#twitter-link svg {
    display: block;
    width: 28px;
    height: 28px;
}

#bluesky-link svg,
#kofi-link svg {
    display: block;
    width: 32px;
    height: 32px;
}

#bluesky-link {
    color: #1184FD;
}

#kofi-link {
    color: #FF6433;
}

/* ── Main ───────────────────────────────────── */
.site-main {
    flex: 1;
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
    background: var(--paper-dark);
    color: var(--muted);
    padding: 2.5rem 2rem;
    margin-top: 5rem;
    border-top: 4px solid var(--ink);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--paper);
    display: block;
    margin-bottom: 0.4rem;
}

.footer-brand p {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.footer-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-nav a {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--muted);
    transition: color 0.15s;
}

.footer-nav a:hover {
    color: var(--ink);
}

/* ── Buttons ─────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--paper);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.85rem 2.2rem;
    border: 2px solid var(--accent);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

.btn-secondary {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border: 2px solid var(--ink);
    color: var(--ink);
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

/* ── Section Divider ─────────────────────────── */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 3rem auto 2rem;
    padding: 0 2rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ink);
}

.section-divider span {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 700px) {
    html {
        font-size: 15px;
    }

    body {
        overflow-x: hidden;
    }

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

    .site-header {
        height: 70px;
        background-size: cover;
    }

    .header-inner {
        min-width: 0;
        width: 100%;
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .main-nav {
        margin-top: 1rem 0;
        flex-wrap: wrap;
        gap: 1.5rem;
        font-size: 0.75rem;
    }

    .socials {
        order: 2;
    }

    .theme-toggle {
        position: absolute;
        top: 12px;
        right: 12px;
    }

    .section-divider {
        margin: 2rem auto 1.25rem;
        padding: 0 1rem;
    }

    .site-main {
        padding: 0;
    }

    main {
        padding: 0 1.25rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ── Slideshow ─────────────────────────── */

.slideshow {
    width: 1100px;
    height: max-content;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.dots {
    position: absolute;
    bottom: 12px;
    width: 100%;
    text-align: center;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background: white;
}