/* ═══════════════════════════════════════════
   base.css — Innatraea's shared design, copied verbatim from innatraea.com/shared.css
   (CSS VARIABLES through the shared page components) on 2026-10-20, so Mira's site and
   Innatraea read as one family. Do not edit here: re-copy from Innatraea when it changes.
   Only the font files differ: the same Veilstone fonts, served as WOFF2.
   ═══════════════════════════════════════════ */
@font-face { font-family: 'Veilstone Text'; src: url('/assets/fonts/VeilstoneText-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Veilstone Text'; src: url('/assets/fonts/VeilstoneText-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Veilstone Text'; src: url('/assets/fonts/VeilstoneText-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Veilstone Text'; src: url('/assets/fonts/VeilstoneText-BoldItalic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Veilstone Sans'; src: url('/assets/fonts/VeilstoneSans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Veilstone Sans'; src: url('/assets/fonts/VeilstoneSans-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Veilstone Sans'; src: url('/assets/fonts/VeilstoneSans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Veilstone Sans'; src: url('/assets/fonts/VeilstoneSans-BoldItalic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }

/* ── CSS VARIABLES ── */
:root {
    --bg-dark: #1a1510;
    --bg-frame: #2a1f14;
    --parchment: #e8dcc4;
    --parchment-dark: #d4c4a8;
    --gold: #c9a227;
    --gold-light: #e8c547;
    --text-dark: #2a1f14;
    --text-light: #f5f0e6;
    --border-ornate: #8b7355;
    --wood-dark: #3d2b1f;
    --wood-light: #5c4033;
    --seal-crimson: #771819;
}

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

body {
    font-family: 'Veilstone Text', Georgia, serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── LOGO CONTAINER LINK ── */
.logo-container a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

/* ── HEADER / NAVIGATION ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-dark);
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border-ornate);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.site-title {
    font-family: 'Veilstone Sans', serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--parchment);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--parchment);
    margin: 5px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: 'Veilstone Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--parchment);
    text-decoration: none;
    padding: 0.5rem 0.6rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--gold-light);
}

.nav-link .arrow {
    font-size: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-dark);
    border: 1px solid var(--border-ornate);
    border-top: 2px solid var(--gold);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 0.75rem 1rem;
    font-family: 'Veilstone Text', serif;
    font-size: 0.95rem;
    color: var(--parchment);
    text-decoration: none;
    border-bottom: 1px solid rgba(139,115,85,0.3);
    transition: all 0.3s ease;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background: rgba(201,162,39,0.15);
    color: var(--gold-light);
    padding-left: 1.25rem;
}

/* ── MEGA MENU ── */
.has-mega {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 2px solid var(--gold);
    border-bottom: 1px solid var(--border-ornate);
    display: flex;
    padding: 2rem 3rem;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-col {
    flex: 1;
    min-width: 0;
}

.mega-col-wide {
    flex: 2;
}

.mega-heading {
    font-family: 'Veilstone Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139,115,85,0.4);
}

.mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col ul li a {
    display: block;
    padding: 0.4rem 0;
    font-family: 'Veilstone Text', serif;
    font-size: 0.95rem;
    color: var(--parchment);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mega-col ul li a:hover {
    color: var(--gold-light);
}

.mega-stories-grid {
    display: flex;
    gap: 2rem;
}

.mega-stories-grid ul {
    flex: 1;
}

/* ── FOOTER ── */
footer {
    background: var(--bg-dark);
    border-top: 2px solid var(--border-ornate);
    padding: 1.5rem 2rem;
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-logo {
    height: 60px;
    opacity: 0.9;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.footer-company {
    font-family: 'Veilstone Sans', serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--parchment);
    letter-spacing: 0.08em;
}

.footer-copyright {
    font-family: 'Veilstone Text', serif;
    font-size: 0.8rem;
    color: var(--parchment);
    opacity: 0.6;
}

.footer-credit {
    font-family: 'Veilstone Text', serif;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--gold);
    opacity: 0.9;
}

.footer-credit a {
    color: var(--gold-light);
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.newsletter-title {
    font-family: 'Veilstone Text', serif;
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--parchment);
    opacity: 0.9;
}

/* ── NEWSLETTER SIGNUP ── */
.newsletter-form {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-ornate);
    background: rgba(232,220,196,0.08);
}

.newsletter-input {
    padding: 0.6rem 1rem;
    font-family: 'Veilstone Text', serif;
    font-size: 0.95rem;
    border: none;
    background: transparent;
    color: var(--parchment);
    outline: none;
    width: 240px;
}

.newsletter-input::placeholder {
    color: var(--border-ornate);
    opacity: 0.7;
}

.newsletter-btn {
    padding: 0.6rem 1.25rem;
    font-family: 'Veilstone Sans', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--border-ornate);
    color: var(--parchment);
    border: none;
    border-left: 1px solid var(--border-ornate);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--gold);
    color: var(--text-dark);
}

.newsletter-msg {
    display: none;
    font-family: 'Veilstone Text', serif;
    font-size: 0.85rem;
    color: var(--gold);
}

/* ── RESPONSIVE: FOOTER ── */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-left {
        flex-direction: column;
        align-items: center;
    }

    .footer-info {
        align-items: center;
    }

    .footer-right {
        align-items: center;
    }

    .newsletter-input {
        width: 200px;
    }
}

@media (max-width: 400px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        border-left: none;
        border-top: 1px solid var(--border-ornate);
    }

    .newsletter-input {
        width: 100%;
    }
}

/* ── RESPONSIVE: NAV ── */
@media (max-width: 1024px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-ornate);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 0.8125rem;
        padding: 0.75rem 0;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item.open .dropdown {
        max-height: none;
        overflow-y: visible;
    }

    .dropdown li a {
        padding: 0.5rem 0;
        border-bottom: none;
    }

    /* Mobile mega menu accordion */
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        flex-direction: column;
        padding: 0;
        gap: 0;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-mega.open .mega-menu {
        max-height: none;
        overflow-y: visible;
        padding-left: 1rem;
    }

    .mega-col-wide {
        flex: 1;
    }

    .mega-heading {
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.3rem;
    }

    .mega-col ul li a {
        padding: 0.35rem 0;
        font-size: 0.9rem;
    }

    .mega-stories-grid {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 600px) {
    header {
        padding: 0.75rem 1rem;
    }

    .site-title {
        font-size: 0.9rem;
    }
}


/* Buttons and form fields are interface, so they default to Veilstone Sans (brand guidelines).
   Browsers don't pass the page font to them on their own. A page's own styles still win. */
button, input, select, textarea {
    font-family: 'Veilstone Sans', sans-serif;
}

/* =====================================================================
   SHARED PAGE COMPONENTS
   One definition of each building block used across the site.
   A page's own <style> still wins, so page-specific touches (like a
   hero image's position) stay on that page.
   ===================================================================== */

/* ── Hero, sections, dividers, story layout, back to top ── */
.hero-map {
    margin-top: 70px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-map img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    filter: brightness(0.55) saturate(0.8);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(26,21,16,0.3) 0%, rgba(26,21,16,0.1) 40%, rgba(26,21,16,0.1) 60%, rgba(26,21,16,0.5) 100%);
    padding: 2rem;
    text-align: center;
}

.hero-overlay h1 {
    font-family: 'Veilstone Sans', sans-serif;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--parchment);
    text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-overlay p:where(:not([class])) {
    font-family: 'Veilstone Text', Georgia, serif;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-style: italic;
    color: var(--parchment);
    text-shadow: 0 1px 10px rgba(0,0,0,0.8);
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: normal;
}

.story-section {
    padding: 4rem 2rem;
}

.story-section .section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-dark {
    background: var(--bg-dark);
}

.section-parchment {
    background:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="30" cy="40" r="1" fill="%23b4a488" opacity="0.15"/><circle cx="120" cy="80" r="1.5" fill="%23a49478" opacity="0.1"/><circle cx="170" cy="150" r="1" fill="%23c4b498" opacity="0.12"/><circle cx="60" cy="180" r="0.8" fill="%23b4a488" opacity="0.1"/></svg>'),
    linear-gradient(135deg, var(--parchment) 0%, var(--parchment-dark) 50%, var(--parchment) 100%);
    background-size: 200px 200px, 100% 100%;
}

.divider-row {
    text-align: center;
    padding: 1.5rem 0;
    background: var(--bg-dark);
}

.divider-row-parchment {
    text-align: center;
    padding: 1.5rem 0;
    background:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="30" cy="40" r="1" fill="%23b4a488" opacity="0.15"/><circle cx="120" cy="80" r="1.5" fill="%23a49478" opacity="0.1"/><circle cx="170" cy="150" r="1" fill="%23c4b498" opacity="0.12"/><circle cx="60" cy="180" r="0.8" fill="%23b4a488" opacity="0.1"/></svg>'),
    linear-gradient(135deg, var(--parchment) 0%, var(--parchment-dark) 50%, var(--parchment) 100%);
    background-size: 200px 200px, 100% 100%;
}

.section-divider {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto;
    opacity: 0.5;
}

.story-feature {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.story-image {
    flex-shrink: 0;
    width: 260px;
}

.story-image a {
    display: block;
}

.story-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    display: block;
    transition: transform 0.3s ease;
}

.story-image img:hover {
    transform: translateY(-4px);
}

.story-text {
    flex: 1;
    min-width: 0;
}

.story-season-label {
    font-family: 'Veilstone Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.section-dark .story-season-label {
    color: var(--gold);
}

.section-parchment .story-season-label {
    color: var(--wood-light);
}

.story-title:where(:not(.story-card .story-title)) {
    font-family: 'Veilstone Sans', sans-serif;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: normal;
    margin-bottom: 1rem;
    text-transform: none;
}

.section-dark .story-title:where(:not(.story-card .story-title)) {
    color: var(--parchment);
}

.section-parchment .story-title:where(:not(.story-card .story-title)) {
    color: var(--text-dark);
}

.story-desc {
    font-family: 'Veilstone Text', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.section-dark .story-desc {
    color: var(--parchment);
    opacity: 0.85;
}

.section-parchment .story-desc {
    color: var(--text-dark);
}

.story-download {
    display: inline-block;
    font-family: 'Veilstone Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
}

.section-dark .story-download {
    border: 2px solid var(--parchment);
    color: var(--parchment);
}

.section-dark .story-download:hover {
    background: var(--parchment);
    color: var(--bg-dark);
}

.section-parchment .story-download {
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}

.section-parchment .story-download:hover {
    background: var(--text-dark);
    color: var(--parchment);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-ornate);
    background: var(--bg-dark);
    color: var(--gold);
    font-size: 1.2rem;
    line-height: 44px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-map img {
        height: 350px;
    }

    .story-section {
        padding: 3rem 1.5rem;
    }

    .story-feature {
        flex-direction: column;
        align-items: center;
    }

    .story-image {
        width: 220px;
    }

    .story-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-map img {
        height: 280px;
        object-position: center center;
    }

    .story-section {
        padding: 2.5rem 1rem;
    }

    .story-image {
        width: 180px;
    }
}
