/* ==========================================================================
   Cape Verde Atlas: design system
   Palette drawn from the national flag: ocean blue, sand white,
   red stripe, and the circle of ten yellow stars (one per island).
   Type: Fraunces (display) + Inter (text), self-hosted variable fonts.
   ========================================================================== */

@import url('/assets/fonts/fonts.css');

:root {
    /* Flag-derived palette */
    --ocean-deep: #052950;
    --ocean: #003893;
    --ocean-bright: #0a56c2;
    --lagoon: #1279b5;
    --sand: #f7f1e6;
    --sand-deep: #efe6d3;
    --paper: #fffdf8;
    --ink: #12233c;
    --ink-soft: #44536b;
    --red: #cf2027;
    --star: #f7d116;
    --star-soft: #fce98a;

    --font-display: 'Fraunces', Georgia, serif;
    --font-text: 'Inter', system-ui, -apple-system, sans-serif;

    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 10px 40px -12px rgba(5, 41, 80, 0.22);
    --shadow-soft: 0 6px 24px -10px rgba(5, 41, 80, 0.14);
    --wrap: 1180px;
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.72;
    color: var(--ink);
    background: var(--sand);
    overflow-x: hidden;
}

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

a { color: var(--ocean); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ocean-bright); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 560;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-variation-settings: 'opsz' 120; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-variation-settings: 'opsz' 90; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
p { margin: 0 0 1.1em; }
p, h1, h2, h3, h4, li, dd { overflow-wrap: break-word; }

/* tiny star bullet used in fact lists */
.li-star { width: 14px; height: 14px; flex: none; margin-top: 7px; }

::selection { background: var(--star); color: var(--ocean-deep); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

/* --------------------------------------------------------------- utilities */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: '';
    width: 34px; height: 2px;
    background: var(--red);
}
.eyebrow.on-dark { color: var(--star); }
.eyebrow.on-dark::before { background: var(--star); }

.lead { font-size: clamp(1.12rem, 1.9vw, 1.32rem); line-height: 1.65; color: var(--ink-soft); }

.kicker-star { color: var(--star); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.7rem;
    border-radius: 999px;
    background: var(--ocean);
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 2px solid var(--ocean);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--ocean-bright); color: #fff; }
.btn .arr { transition: transform 0.25s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ocean); }
.btn.ghost:hover { background: var(--ocean); color: #fff; }
.btn.on-dark { background: var(--star); border-color: var(--star); color: var(--ocean-deep); }
.btn.on-dark:hover { background: var(--star-soft); border-color: var(--star-soft); }
.btn.on-dark.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn.on-dark.ghost:hover { border-color: var(--star); color: var(--star); }

/* Scroll reveals (activated by .js body class; no-JS users see everything) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal-scale.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal, .js .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
    * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

/* ------------------------------------------------------------------ header */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 60;
    display: flex;
    align-items: center;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.site-header.scrolled {
    background: rgba(247, 241, 230, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(5, 41, 80, 0.08);
}
.site-header.hidden { transform: translateY(-100%); }
.site-header .wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: -0.01em;
}
.brand .brand-star { width: 30px; height: 30px; flex: none; transition: transform 0.6s ease; }
.brand:hover .brand-star { transform: rotate(72deg); }
.brand em { font-family: var(--font-display); font-style: italic; font-weight: 500; }
.on-hero .brand { color: #fff; }
.site-header.scrolled .brand { color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 550;
    color: var(--ink);
    padding: 0.3rem 0;
}
.on-hero .main-nav a { color: rgba(255, 255, 255, 0.92); }
.site-header.scrolled .main-nav a { color: var(--ink); }
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%; bottom: -2px;
    height: 2px;
    background: var(--red);
    transition: right 0.28s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.6rem;
    z-index: 75;
}
.nav-toggle .bar {
    display: block;
    width: 26px; height: 2.5px;
    border-radius: 2px;
    background: var(--ink);
    margin: 5.5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.on-hero .nav-toggle .bar { background: #fff; }
.site-header.scrolled .nav-toggle .bar { background: var(--ink); }
body.nav-open .nav-toggle .bar { background: #fff; }
body.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Full-screen mobile menu: deep ocean with the star circle */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 70;
    background:
        radial-gradient(120% 90% at 85% 110%, rgba(247, 209, 22, 0.14), transparent 55%),
        linear-gradient(160deg, var(--ocean-deep), var(--ocean) 130%);
    display: grid;
    place-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
body.nav-open .mobile-menu { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }
.mobile-menu a {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 6.5vh, 2.5rem);
    color: #fff;
    text-decoration: none;
    padding: 0.42rem 1rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s ease;
}
.mobile-menu a:hover { color: var(--star); }
body.nav-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu .menu-stars { margin: 0 auto 1.4rem; width: 74px; opacity: 0.9; }

@media (max-width: 900px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
}

/* -------------------------------------------------------------------- hero */

.hero {
    position: relative;
    min-height: min(100svh, 940px);
    display: flex;
    align-items: center;
    color: #fff;
    isolation: isolate;
    overflow: hidden;
    background: var(--ocean-deep);
}
.hero-media {
    position: absolute;
    inset: -12% 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    will-change: transform;
}
.hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 41, 80, 0.55), rgba(5, 41, 80, 0.28) 40%, rgba(5, 41, 80, 0.78) 100%);
}
.hero-inner { padding: calc(var(--header-h) + 4vh) 0 16vh; max-width: 60rem; }
.hero h1, .page-hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero h1 em { font-style: italic; color: var(--star); font-weight: 480; }
.hero .lead, .page-hero .lead { color: rgba(255, 255, 255, 0.88); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero-stars {
    position: absolute;
    right: clamp(-60px, 4vw, 90px);
    top: 18%;
    width: clamp(180px, 24vw, 330px);
    opacity: 0.5;
    animation: slow-spin 90s linear infinite;
    pointer-events: none;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }

/* animated waves at the hero base */
.waves {
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: clamp(70px, 12vw, 150px);
    pointer-events: none;
}
.waves svg { width: 100%; height: 100%; display: block; }
.wave-a, .wave-b, .wave-c { animation: drift 14s ease-in-out infinite alternate; }
.wave-b { animation-duration: 19s; animation-delay: -6s; }
.wave-c { animation-duration: 24s; animation-delay: -12s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-56px); } }

.scroll-cue {
    position: absolute;
    bottom: clamp(80px, 14vw, 160px);
    left: 50%;
    translate: -50% 0;
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.scroll-cue::after {
    content: '';
    width: 1.5px; height: 42px;
    background: linear-gradient(var(--star), transparent);
    animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(0.5); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* inner page hero (smaller) */
.page-hero {
    position: relative;
    min-height: clamp(400px, 62vh, 640px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: var(--ocean-deep);
    isolation: isolate;
    overflow: hidden;
}
.page-hero .hero-inner { padding: calc(var(--header-h) + 3vh) 0 12vh; }

/* --------------------------------------------------------------- sections */

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section.tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section.on-ocean {
    background:
        radial-gradient(110% 80% at 12% -10%, rgba(18, 121, 181, 0.35), transparent 60%),
        linear-gradient(170deg, var(--ocean-deep) 0%, #063567 100%);
    color: rgba(255, 255, 255, 0.9);
}
.section.on-ocean h2, .section.on-ocean h3 { color: #fff; }
.section.on-sand-deep { background: var(--sand-deep); }
.section.on-paper { background: var(--paper); }

.section-head { max-width: 46em; margin-bottom: clamp(2rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* star divider between big page blocks */
.star-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 0.5rem 0;
    color: var(--star);
}
.star-divider::before, .star-divider::after {
    content: '';
    height: 1px;
    width: min(200px, 26vw);
    background: linear-gradient(90deg, transparent, currentColor);
    opacity: 0.55;
}
.star-divider::after { background: linear-gradient(270deg, transparent, currentColor); }
.star-divider svg { width: 20px; height: 20px; }

/* Kriolu marquee ribbon */
.ribbon {
    overflow: hidden;
    background: var(--red);
    color: #fff;
    padding: 0.9rem 0;
    transform: rotate(-1.2deg) scale(1.02);
    box-shadow: var(--shadow-soft);
}
.ribbon .track {
    display: flex;
    gap: 3.2rem;
    width: max-content;
    animation: marquee 36s linear infinite;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.18rem;
    white-space: nowrap;
}
.ribbon .track span { display: inline-flex; align-items: center; gap: 3.2rem; }
.ribbon .track .sep { color: var(--star); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------- stat band */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 42vw), 1fr));
    gap: clamp(1.2rem, 3vw, 2.6rem);
    text-align: center;
}
.stat { min-width: 0; }
.stat .num {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 8vw, 3.8rem);
    font-weight: 600;
    color: var(--star);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat .num small { font-size: 55%; }
.stat .lbl { margin-top: 0.55rem; font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); }

/* ---------------------------------------------------------- island cards */

.island-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(255px, 30vw, 330px);
    gap: 1.4rem;
    overflow-x: auto;
    padding: 0.6rem 0.2rem 1.6rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--ocean) transparent;
}
.island-rail::-webkit-scrollbar { height: 8px; }
.island-rail::-webkit-scrollbar-thumb { background: var(--ocean); border-radius: 99px; }

.island-card {
    position: relative;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: flex-end;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transform: translateZ(0);
}
.island-card img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.island-card:hover img { transform: scale(1.06); }
.island-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(185deg, transparent 30%, rgba(5, 41, 80, 0.88));
}
.island-card .card-body { position: relative; z-index: 1; padding: 1.5rem; width: 100%; }
.island-card .idx {
    position: absolute;
    top: 1.05rem; left: 1.3rem;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--star);
    letter-spacing: 0.08em;
    display: flex; align-items: center; gap: 0.45rem;
}
.island-card .idx svg { width: 13px; height: 13px; }
.island-card h3 { color: #fff; margin: 0 0 0.15em; }
.island-card .tag { display: block; font-size: 0.92rem; color: rgba(255,255,255,0.85); font-style: italic; font-family: var(--font-display); }
.island-card .meta { display: block; margin-top: 0.7rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--star-soft); }

/* islands overview grid */
.island-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.6rem;
}

/* ------------------------------------------------------------ media split */

.split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.split.flip > .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    width: 100%;
    aspect-ratio: 4 / 3.1;
    object-fit: cover;
}
.split-media .stamp {
    position: absolute;
    bottom: -22px;
    right: -14px;
    background: var(--paper);
    border: 2px dashed rgba(207, 32, 39, 0.55);
    border-radius: 14px;
    padding: 0.8rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--red);
    transform: rotate(3deg);
    box-shadow: var(--shadow-soft);
    max-width: 240px;
}
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split.flip > .split-media { order: 0; }
    .split-media .stamp { right: 8px; }
}

/* ------------------------------------------------------------ tile mosaic */

.mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.tile {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 1.9rem;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--ocean);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tile.accent-red { border-top-color: var(--red); }
.tile.accent-star { border-top-color: var(--star); }
.tile h3 { margin-bottom: 0.4em; }
.tile .tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lagoon);
    margin-bottom: 0.7rem;
}
.tile p:last-child { margin-bottom: 0; }
.tile ul { margin: 0; padding-left: 1.1rem; }
.tile li { margin-bottom: 0.45em; }

/* photo tiles */
.photo-tile {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-soft);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 2.2rem 1.2rem 0.95rem;
    background: linear-gradient(transparent, rgba(5, 41, 80, 0.85));
    color: #fff;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------- timeline */

.timeline { position: relative; max-width: 46rem; margin-inline: auto; }
.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px; bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--star), var(--ocean) 30%, var(--red));
    opacity: 0.5;
}
.tl-item { position: relative; padding: 0 0 2.6rem 3rem; }
.tl-item::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--sand);
    border: 3px solid var(--ocean);
    z-index: 1;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.tl-item:hover::before { background: var(--star); border-color: var(--red); transform: scale(1.15); }
.tl-item .year {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 620;
    color: var(--red);
    line-height: 1;
}
.tl-item h3 { margin: 0.3em 0 0.35em; }
.tl-item p { margin: 0; color: var(--ink-soft); }
.tl-item.milestone .year { font-size: 2.1rem; }
.tl-item.milestone::before { background: var(--star); border-color: var(--red); width: 24px; height: 24px; left: -2px; }

/* --------------------------------------------------------------- worldcup */

.match-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.3rem 1.6rem;
    margin-bottom: 1rem;
}
.match-line .teams { font-weight: 650; font-size: 1.06rem; }
.match-line .score {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 650;
    color: var(--ocean);
    white-space: nowrap;
}
.match-line .note { color: var(--ink-soft); font-size: 0.95rem; max-width: 46%; text-align: right; }
@media (max-width: 700px) {
    .match-line { flex-wrap: wrap; }
    .match-line .note { max-width: 100%; text-align: left; }
}

.moment { display: flex; gap: 1.3rem; padding: 1rem 0; align-items: flex-start; }
.moment .min {
    flex: none;
    width: 74px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 1.15rem;
    padding: 0.5rem 0.3rem;
    border-radius: 12px;
}
.moment.cv .min { background: var(--star); color: var(--ocean-deep); }
.moment.arg .min { background: rgba(255,255,255,0.12); color: #9fd3ff; }
.moment p { margin: 0.4em 0 0; }
.on-ocean .moment p { color: rgba(255,255,255,0.88); }

/* --------------------------------------------------------------- visas etc */

.visa-block {
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.6rem, 3.5vw, 2.6rem);
    margin-bottom: 1.6rem;
    border-left: 6px solid var(--ocean);
}
.visa-block.days-90 { border-left-color: #1b7a4b; }
.visa-block.days-60 { border-left-color: var(--lagoon); }
.visa-block.days-30 { border-left-color: var(--ocean); }
.visa-block.pk { border-left-color: var(--red); }
.visa-block h3 { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--sand-deep);
    color: var(--ink);
    border-radius: 99px;
    padding: 0.32rem 0.85rem;
}
.pill.green { background: #d9eede; color: #145c38; }
.pill.blue { background: #dbeafe; color: #123f8f; }
.pill.red { background: #fbdcdd; color: #8f1216; }
.country-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.9rem 0 0.4rem; padding: 0; list-style: none; }
.country-chips li {
    background: var(--sand);
    border: 1px solid rgba(5, 41, 80, 0.12);
    border-radius: 99px;
    padding: 0.35rem 0.95rem;
    font-size: 0.9rem;
}

/* fact sheet (island pages) */
.fact-sheet {
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(0, 56, 147, 0.3);
    padding: 1.8rem;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}
.fact-sheet dl { margin: 0; display: grid; gap: 0.85rem; }
.fact-sheet dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.fact-sheet dd { margin: 0.1rem 0 0; font-weight: 600; font-size: 1.02rem; }

.island-layout {
    display: grid;
    grid-template-columns: 1fr minmax(250px, 320px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
@media (max-width: 900px) {
    .island-layout { grid-template-columns: 1fr; }
    .fact-sheet { position: static; }
}

.big-index {
    font-family: var(--font-display);
    font-size: clamp(6rem, 16vw, 11rem);
    line-height: 0.8;
    font-weight: 650;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
    position: absolute;
    right: clamp(0.5rem, 4vw, 3rem);
    bottom: 8vh;
    pointer-events: none;
}

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.prevnext a {
    display: block;
    background: var(--paper);
    border-radius: var(--radius);
    padding: 1.5rem 1.7rem;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.prevnext a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prevnext .dir { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.prevnext .name { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); margin-top: 0.3rem; }
@media (max-width: 640px) { .prevnext { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- blog */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem; }
.post-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-deep); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.5rem 1.6rem 1.7rem; }
.post-card time { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.post-card h3 { margin: 0.5rem 0 0.4rem; }
.post-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

.article-body {
    max-width: 44rem;
    margin-inline: auto;
    font-size: 1.11rem;
}
.article-body img { border-radius: var(--radius); margin: 1.6rem 0; }
.article-body h2 { margin-top: 1.6em; }
.article-body blockquote {
    margin: 1.8rem 0;
    padding: 0.4rem 0 0.4rem 1.6rem;
    border-left: 4px solid var(--star);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.24rem;
    color: var(--ocean-deep);
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--ink-soft);
}
.empty-state svg { width: 60px; margin-bottom: 1.2rem; opacity: 0.6; }

/* -------------------------------------------------------------------- map */

.map-shell {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 4px solid var(--paper);
}
#atlas-map { height: clamp(420px, 68vh, 720px); background: #bcd6e8; }
.leaflet-popup-content-wrapper {
    border-radius: 14px !important;
    font-family: var(--font-text) !important;
    box-shadow: var(--shadow) !important;
}
.map-pop { width: 220px; }
.map-pop img { border-radius: 8px; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 0.5rem; }
.map-pop .t { font-family: var(--font-display); font-size: 1.12rem; font-weight: 620; color: var(--ink); }
.map-pop .s { color: var(--ink-soft); font-size: 0.85rem; margin: 0.15rem 0 0.5rem; }
.map-pop a { font-weight: 650; font-size: 0.9rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.4rem; font-size: 0.92rem; color: var(--ink-soft); }
.map-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 0.45rem; vertical-align: -1px; }

/* ------------------------------------------------------------- FAQ / misc */

details.faq {
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem 1.6rem;
    margin-bottom: 0.9rem;
}
details.faq summary {
    cursor: pointer;
    font-weight: 650;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-family: var(--font-display); font-size: 1.5rem; color: var(--red); transition: transform 0.25s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0.9rem 0 0.2rem; color: var(--ink-soft); }

.credit-list { columns: 2; gap: 2.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.credit-list li { break-inside: avoid; margin-bottom: 0.7rem; }
@media (max-width: 700px) { .credit-list { columns: 1; } }

/* ------------------------------------------------------------------ footer
   The flag footer: deep ocean field, the white-red-white stripes,
   the circle of ten stars, and a giant outlined wordmark. */

.site-footer {
    position: relative;
    background: var(--ocean-deep);
    color: rgba(255, 255, 255, 0.82);
    overflow: hidden;
    margin-top: 0;
}
.footer-stripes { height: 26px; display: flex; flex-direction: column; }
.footer-stripes .s-white { flex: 1; background: #fff; }
.footer-stripes .s-red { flex: 1.4; background: var(--red); }

.footer-main { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 1.5rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: clamp(1.6rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand { color: #fff; font-size: 1.2rem; }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 0.95rem; max-width: 30em; margin-top: 1rem; }
.footer-col h4 {
    color: var(--star);
    font-family: var(--font-text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.97rem; }
.footer-col a:hover { color: var(--star); }

.footer-stars-bg {
    position: absolute;
    right: -70px;
    top: -40px;
    width: 380px;
    opacity: 0.13;
    animation: slow-spin 120s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.footer-wordmark {
    font-family: var(--font-display);
    font-weight: 650;
    font-size: clamp(2.4rem, 10.5vw, 11rem);
    line-height: 0.9;
    letter-spacing: 0.01em;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22);
    user-select: none;
    white-space: nowrap;
    margin-top: clamp(2rem, 5vw, 3.6rem);
    transition: -webkit-text-stroke-color 0.6s ease;
}
.footer-wordmark:hover { -webkit-text-stroke-color: rgba(247, 209, 22, 0.55); }

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1.4rem 0 1.8rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.footer-legal a { color: rgba(255,255,255,0.65); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }

/* ------------------------------------------------------------ breadcrumbs */

.crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,0.9); text-decoration: none; }
.crumbs a:hover { color: var(--star); }
.crumbs .sep { margin: 0 0.5rem; color: var(--star); }

/* --------------------------------------------------------------- keyboard */

:focus-visible { outline: 3px solid var(--star); outline-offset: 2px; border-radius: 4px; }
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--star);
    color: var(--ocean-deep);
    padding: 0.8rem 1.4rem;
    font-weight: 700;
    border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }
