:root {
    --bg-dark: #0b120e;
    --bg-pine: #13201a;
    --bg-card: #0f1a14;
    --border-moss: #2f4a3a;
    --text-bone: #e6e2d6;
    --text-muted: #b9c0b5;
    --fog-grey: #9aa79f;
    --amber-eye: #ffb347;
    --amber-glow: rgba(255, 179, 71, 0.45);
    --accent-cold: #9fd4c4;
    --font-heading: "Georgia", "Times New Roman", serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --max-w: 1100px;
}

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

html {
    background-color: var(--bg-dark);
    color: var(--text-bone);
    font-family: var(--font-body);
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--bg-dark);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    z-index: 999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.skip-link {
    position: absolute;
    top: -999px;
    left: 1rem;
    background: var(--amber-eye);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    font-weight: 700;
    z-index: 1000;
    text-decoration: none;
}
.skip-link:focus {
    top: 1rem;
}

a {
    color: var(--accent-cold);
    text-decoration: underline;
    text-underline-offset: 3px;
}
a:hover, a:focus {
    color: #c7f2e4;
}

:focus-visible {
    outline: 2px solid var(--amber-eye);
    outline-offset: 3px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
    color: var(--text-bone);
    margin-top: 0;
    line-height: 1.25;
}

p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}
p:last-child {
    margin-bottom: 0;
}

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

/* Site Header */
.site-header {
    background: rgba(11, 18, 14, 0.95);
    border-bottom: 1px solid var(--border-moss);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(6px);
}
.site-header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text-bone);
    text-decoration: none;
}
.eyeshine-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 2px;
}
.eyeshine-dots .dot {
    width: 4px;
    height: 4px;
    background: var(--amber-eye);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--amber-glow);
}

/* Nav: always visible, wraps under the wordmark on small screens (no JS, no details) */
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}
.site-nav a {
    display: inline-block;
    padding: 0.3rem 0;
    color: var(--text-bone);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover {
    border-bottom-color: var(--amber-eye);
}
.site-nav a[aria-current="page"] {
    border-bottom-color: var(--amber-eye);
    color: var(--amber-eye);
}
@media (min-width: 768px) {
    .site-nav ul {
        gap: 1.5rem;
    }
}

/* Layout */
main {
    flex: 1 0 auto;
}
.page-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}
.page-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-moss);
    padding-bottom: 1.5rem;
}
.page-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.5rem;
}
.page-lead {
    font-size: 1.15rem;
    color: var(--fog-grey);
    max-width: 760px;
}

/* Cards & Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid-two {
    grid-template-columns: 1fr;
}
.grid-three {
    grid-template-columns: 1fr;
}
@media (min-width: 680px) {
    .grid-two { grid-template-columns: repeat(2, 1fr); }
    .grid-three { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .grid-three { grid-template-columns: repeat(3, 1fr); }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-moss);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Hero */
.hero {
    position: relative;
    background: #050806;
    border-bottom: 1px solid var(--border-moss);
    overflow: hidden;
}
.hero-media {
    position: relative;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}
.hero-media picture img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.1);
}
.hero-banner {
    max-height: none;
    background: #000;
}
.hero-banner picture img {
    display: block;
    width: 100%;
    max-width: 1640px;
    height: auto;
    aspect-ratio: 1640 / 624;
    margin: 0 auto;
    object-fit: contain;
    filter: none;
}
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.hero-fog {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 30% 60%, rgba(154, 167, 159, 0.22) 0%, transparent 60%),
                radial-gradient(circle at 45% 45%, rgba(19, 32, 26, 0.15) 0%, rgba(11, 18, 14, 0.85) 90%);
    animation: fogDrift 22s ease-in-out infinite alternate;
}
.hero-eyes {
    position: absolute;
    top: 46%;
    left: 74%;
    display: flex;
    gap: 9px;
    pointer-events: none;
}
.hero-dot {
    width: 4px;
    height: 4px;
    background: var(--amber-eye);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--amber-glow);
    animation: eyeGleam 6s ease-in-out infinite;
}

@keyframes fogDrift {
    0% { transform: scale(1) translateX(0); opacity: 0.8; }
    100% { transform: scale(1.08) translateX(-20px); opacity: 1; }
}
@keyframes eyeGleam {
    0%, 90%, 100% { opacity: 0.9; }
    92%, 96% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-fog, .hero-dot {
        animation: none;
    }
}

.hero-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3.5rem;
    position: relative;
    z-index: 2;
}
.hero-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--amber-eye);
    margin-bottom: 0.5rem;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1.05;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}
.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--fog-grey);
    margin-bottom: 1.25rem;
    font-style: italic;
}
.hero-lead {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-style: italic;
    max-width: 720px;
    margin-bottom: 0.9rem;
    color: var(--text-bone);
}
.hero-intro {
    font-size: 1.1rem;
    max-width: 720px;
    margin-bottom: 2rem;
    color: var(--text-bone);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
    background: var(--amber-eye);
    color: var(--bg-dark);
    border: 1px solid var(--amber-eye);
}
.btn-primary:hover, .btn-primary:focus {
    background: #ffc46b;
    box-shadow: 0 0 15px var(--amber-glow);
    color: var(--bg-dark);
}
.btn-secondary {
    background: transparent;
    color: var(--text-bone);
    border: 1px solid var(--border-moss);
}
.btn-secondary:hover, .btn-secondary:focus {
    border-color: var(--text-bone);
    color: var(--text-bone);
    background: rgba(255,255,255,0.04);
}
.btn-ghost {
    background: transparent;
    color: var(--text-bone);
    border: 1px solid var(--border-moss);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}
.btn-ghost:hover, .btn-ghost:focus {
    border-color: var(--amber-eye);
    color: var(--amber-eye);
}

/* Sections */
.section {
    padding: 3rem 1.25rem;
    border-bottom: 1px solid var(--border-moss);
}
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.section-title {
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.section-head .section-title {
    margin-bottom: 0;
}
.section-block {
    margin-bottom: 3rem;
}
/* About: approved pitch, then the field guide */
.page-header .page-lead + p {
    max-width: 760px;
    margin-top: 0.9rem;
}
.pitch {
    max-width: 760px;
    margin-bottom: 3rem;
}
.pitch-section {
    margin-bottom: 2rem;
}
.pitch-section h2 {
    font-size: 1.5rem;
    color: var(--text-bone);
    margin-bottom: 0.6rem;
}
.pitch-coming {
    color: var(--amber-eye);
    font-size: 1.15rem;
}
.section-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--amber-eye);
    border-top: 1px solid var(--border-moss);
    padding-top: 2rem;
    margin-bottom: 1rem;
}
.section-block h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border-moss);
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
}

/* Shot Strip */
.strip-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-moss);
    border-radius: 4px;
    overflow: hidden;
}
.strip-item img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}
.strip-label {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-bone);
}
.strip-item:hover, .strip-item:focus {
    border-color: var(--amber-eye);
}

/* Devlog cards */
.devlog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}
.devlog-meta time {
    color: var(--fog-grey);
    font-family: monospace;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.tag {
    background: rgba(47, 74, 58, 0.5);
    border: 1px solid var(--border-moss);
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-bone);
}
.devlog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.devlog-title a {
    color: var(--text-bone);
    text-decoration: none;
}
.devlog-title a:hover, .devlog-title a:focus {
    color: var(--amber-eye);
}

/* About / Cryptid Cards */
.cryptid-grid {
    display: grid;
    gap: 2rem;
}
.cryptid-card {
    background: var(--bg-card);
    border: 1px solid var(--border-moss);
    border-radius: 4px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}
.cryptid-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.cryptid-body {
    padding: 1.5rem;
}
.cryptid-body h3 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}
.cryptid-meta {
    font-size: 0.9rem;
    color: var(--amber-eye);
    margin-bottom: 0.75rem;
}
.cryptid-evidence {
    font-size: 0.95rem;
    color: var(--accent-cold);
    margin-top: 0.75rem;
}
@media (min-width: 768px) {
    .cryptid-card {
        grid-template-columns: 340px 1fr;
    }
}

.atmosphere-list {
    padding-left: 1.25rem;
    color: var(--text-muted);
}
.atmosphere-list li {
    margin-bottom: 0.75rem;
}
.atmosphere-list strong {
    color: var(--text-bone);
}

/* Gallery & Lightbox */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 580px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-card {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-moss);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.gallery-thumb-link {
    display: block;
    overflow: hidden;
}
.gallery-thumb-link img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.gallery-thumb-link:hover img,
.gallery-thumb-link:focus img {
    transform: scale(1.03);
}
.gallery-card figcaption {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1 0 auto;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 6, 0.94);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.lightbox:target {
    display: flex;
}
.lightbox-dialog {
    max-width: 1000px;
    width: 100%;
    background: var(--bg-pine);
    border: 1px solid var(--border-moss);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}
.lightbox-close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    font-size: 2rem;
    color: var(--text-bone);
    text-decoration: none;
    line-height: 1;
}
.lightbox-close:hover, .lightbox-close:focus {
    color: var(--amber-eye);
}
.lightbox-media img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
}
.lightbox-bar {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--border-moss);
}
.lightbox-caption {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-bone);
    flex: 1 1 300px;
}
.lightbox-nav {
    display: flex;
    gap: 0.5rem;
}

/* Download Page */
.download-card {
    position: relative;
    margin-bottom: 2rem;
    border-color: var(--amber-eye);
}
.download-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--amber-eye);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@media (max-width: 600px) {
    .download-badge {
        position: static;
        display: inline-block;
        margin-bottom: 0.75rem;
    }
}
.download-meta {
    margin-bottom: 1.5rem;
}
.follow-line {
    margin: 1.25rem 0 1.5rem;
    font-size: 1.1rem;
    color: var(--amber-eye);
}
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.notice-box {
    background: rgba(19, 32, 26, 0.7);
    border-left: 4px solid var(--amber-eye);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}
.notice-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.warning-card {
    border-color: #5a4325;
    background: #14110b;
    margin: 1.5rem 0;
}
.steps-list {
    padding-left: 1.25rem;
    color: var(--text-muted);
}
.steps-list li {
    margin-bottom: 0.75rem;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-moss);
    border-radius: 4px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}
.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-moss);
}
.data-table th {
    background: var(--bg-pine);
    color: var(--text-bone);
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
}
.data-table tr:last-child td {
    border-bottom: none;
}
.data-table tr:hover td {
    background: rgba(255,255,255,0.02);
}
kbd {
    background: #1a2a22;
    border: 1px solid var(--border-moss);
    border-radius: 3px;
    padding: 0.15rem 0.45rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-bone);
    box-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
code, pre {
    font-family: Consolas, Menlo, Monaco, monospace;
}
pre {
    background: #080d0a;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-moss);
    border-radius: 3px;
    overflow-x: auto;
    color: var(--accent-cold);
}

/* Devlog Timeline */
.devlog-timeline {
    display: grid;
    gap: 2rem;
}
.devlog-entry {
    scroll-margin-top: 6rem;
}
.devlog-entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.devlog-entry-meta time {
    color: var(--fog-grey);
    font-family: monospace;
    font-size: 0.9rem;
}
.devlog-entry-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.devlog-entry-title a {
    color: var(--text-bone);
    text-decoration: none;
}
.devlog-entry-title a:hover, .devlog-entry-title a:focus {
    color: var(--amber-eye);
}
.devlog-figure {
    margin: 0 0 1.25rem 0;
    border: 1px solid var(--border-moss);
    border-radius: 3px;
    overflow: hidden;
}
.devlog-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
@media (min-width: 768px) {
    .devlog-entry-content {
        display: grid;
        grid-template-columns: 320px 1fr;
        gap: 1.5rem;
        align-items: start;
    }
    .devlog-entry-content > .devlog-paragraphs:only-child {
        grid-column: 1 / -1;
    }
    .devlog-figure {
        margin: 0;
    }
}

/* 404 */
.not-found-page {
    text-align: center;
    padding-top: 4rem;
}
.not-found-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
.not-found-box .hero-actions {
    justify-content: center;
}
.not-found-code {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--amber-eye);
    margin: 0 0 0.5rem;
    line-height: 1;
}

/* Footer */
.site-footer {
    background: #070c09;
    border-top: 1px solid var(--border-moss);
    padding: 3rem 1.25rem;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--fog-grey);
}
.site-footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}
.footer-nav ul {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-nav a {
    color: var(--text-bone);
    text-decoration: none;
}
.footer-nav a:hover, .footer-nav a:focus {
    color: var(--amber-eye);
}
.footer-copy {
    color: var(--text-bone);
    margin-bottom: 0.5rem;
}
.footer-note {
    font-size: 0.85rem;
    color: var(--fog-grey);
    margin-bottom: 0.5rem;
}
.footer-domain a {
    color: var(--accent-cold);
}

/* Small screens: crop the wide campfire banner to its centre so the title stays legible. */
@media (max-width: 600px) {
    .hero-banner picture img {
        aspect-ratio: 3 / 2;
        object-fit: cover;
        object-position: 50% 40%;
    }
}
