:root {
    color-scheme: dark;
    --bg: #171b20;
    --fg: #e8e3da;
    --muted: #adb2b7;
    --border: #454b50;
    --accent: #d5b77d;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f2eb;
    --fg: #302f2c;
    --muted: #77716b;
    --border: #d8d2c7;
    --accent: #866636;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.65;
}

main {
    max-width: 1100px;
    margin: auto;
    padding: 24px 18px 80px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
}

a { color: var(--accent); }

.controls {
    display: flex;
    gap: 8px;
}

button {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--fg);
    border-radius: 24px;
    min-width: 48px;
    min-height: 42px;
    padding: 8px 14px;
    cursor: pointer;
}

button:focus-visible, a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

header {
    text-align: center;
    margin-bottom: 35px;
}

.kicker {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: .09em;
    text-transform: uppercase;
}

h1 {
    font-weight: normal;
    font-size: clamp(36px, 6vw, 66px);
    margin: 10px 0 5px;
    line-height: 1.2;
}

.location {
    color: var(--muted);
    font-size: 16px;
}

figure {
    margin: 0 auto;
    max-width: 1000px;
}

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

figcaption {
    margin-top: 14px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.details {
    max-width: 760px;
    margin: 60px auto 0;
}

.details h2 {
    font-size: 28px;
    font-weight: normal;
}

.details p { color: var(--muted); }

footer {
    margin-top: 75px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 600px) {
    nav { margin-bottom: 32px; }
    .details { margin-top: 38px; }
}


/* BDRX STICKY PAINTING NAV 2026 */

/* Navigation stays visible while reading */
main > nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Coordinates are internal atlas metadata */
#coordinates {
    display: none !important;
}

@supports (backdrop-filter: blur(10px)) {
    main > nav {
        background: var(--bg);
    }
}
