:root {
    color-scheme: light;
    --ink: #16201e;
    --muted: #60706b;
    --paper: #fffaf2;
    --surface: #ffffff;
    --line: rgba(22, 32, 30, 0.12);
    --gold: #d39d3f;
    --teal: #1f7a76;
    --terra: #bd5743;
    --shadow: 0 24px 70px rgba(27, 38, 34, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 250, 242, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.site-header[data-scrolled] {
    box-shadow: 0 14px 34px rgba(27, 38, 34, 0.08);
}

.brand,
.nav,
.hero-actions,
.hero-facts,
.card-top,
.highlight,
.footer {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--ink);
    color: #fffaf2;
}

.nav {
    gap: 8px;
}

.nav a {
    padding: 10px 14px;
    border-radius: 8px;
    color: #354540;
    font-size: 15px;
    font-weight: 650;
}

.nav a:hover {
    background: rgba(31, 122, 118, 0.1);
    color: var(--teal);
}

.hero {
    position: relative;
    min-height: calc(100svh - 65px);
    display: grid;
    align-items: end;
    padding: clamp(64px, 8vw, 118px) clamp(18px, 4vw, 56px) clamp(24px, 5vw, 54px);
    overflow: hidden;
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(255, 250, 242, 0), var(--paper) 86%);
    z-index: -1;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 15, 13, 0.74), rgba(10, 15, 13, 0.28) 50%, rgba(10, 15, 13, 0.48)),
        url("/assets/seven-wonders-hero.png") center / cover no-repeat;
    z-index: -2;
}

.hero-content {
    width: min(760px, 100%);
    color: #fffaf2;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    max-width: 760px;
    font-size: clamp(56px, 12vw, 136px);
    line-height: 0.9;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-copy {
    width: min(640px, 100%);
    margin-bottom: 28px;
    color: rgba(255, 250, 242, 0.9);
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 250, 242, 0.6);
    border-radius: 8px;
    font-weight: 800;
    text-shadow: none;
}

.button.primary {
    background: #fffaf2;
    border-color: #fffaf2;
    color: var(--ink);
}

.button.ghost {
    color: #fffaf2;
}

.button:hover {
    transform: translateY(-1px);
}

.hero-facts {
    width: min(960px, 100%);
    align-items: stretch;
    gap: 1px;
    margin-top: clamp(42px, 9vw, 92px);
    background: rgba(255, 250, 242, 0.3);
    border: 1px solid rgba(255, 250, 242, 0.32);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-facts div {
    flex: 1;
    min-width: 170px;
    padding: 18px;
    background: rgba(255, 250, 242, 0.9);
}

.hero-facts strong {
    display: block;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.1;
}

.hero-facts span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
}

.section-band,
.wonders {
    padding: clamp(62px, 8vw, 110px) clamp(18px, 4vw, 56px);
}

.intro,
.route {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
    gap: clamp(28px, 6vw, 84px);
    align-items: start;
    background: #f4eadb;
}

.intro > p,
.route > p {
    margin-bottom: 0;
    color: #45534f;
    font-size: clamp(18px, 2vw, 22px);
}

.section-heading {
    max-width: 820px;
}

.section-heading.wide {
    max-width: 1120px;
    margin-bottom: 34px;
}

.wonder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wonder-card {
    position: relative;
    min-height: 430px;
    padding: 24px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent), transparent 68%), transparent 42%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(34, 36, 31, 0.08);
    overflow: hidden;
}

.wonder-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--accent);
}

.card-top {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.card-number {
    color: color-mix(in srgb, var(--accent), #101715 20%);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.country {
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--accent), transparent 58%);
    border-radius: 8px;
    color: #34413d;
    font-size: 13px;
    font-weight: 800;
}

.period {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.tagline {
    margin-bottom: 12px;
    color: color-mix(in srgb, var(--accent), #111 24%);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.wonder-card p:not(.period):not(.tagline) {
    color: #4d5a55;
}

.highlight {
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.highlight span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.highlight strong {
    max-width: 58%;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
    text-align: right;
}

.timeline {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: route;
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 72px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 8px;
    counter-increment: route;
}

.timeline li::before {
    content: counter(route, decimal-leading-zero);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: var(--ink);
    border-radius: 8px;
    color: #fffaf2;
    font-weight: 900;
    grid-row: 1 / 3;
}

.timeline span {
    grid-column: 2;
    color: var(--teal);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.timeline strong {
    display: block;
    grid-column: 2;
    margin-top: -10px;
    font-size: 20px;
}

.footer {
    justify-content: space-between;
    gap: 20px;
    padding: 28px clamp(18px, 4vw, 56px);
    background: var(--ink);
    color: rgba(255, 250, 242, 0.78);
}

.footer p {
    margin-bottom: 0;
}

.footer a {
    color: #fffaf2;
    font-weight: 800;
}

@media (max-width: 980px) {
    .wonder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .intro,
    .route {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav a {
        white-space: nowrap;
    }

    .hero {
        min-height: 760px;
        padding-top: 72px;
    }

    .hero-facts {
        flex-direction: column;
    }

    .wonder-grid {
        grid-template-columns: 1fr;
    }

    .wonder-card {
        min-height: auto;
    }

    .highlight {
        align-items: flex-start;
        flex-direction: column;
    }

    .highlight strong {
        max-width: 100%;
        text-align: left;
    }

    .timeline li {
        grid-template-columns: 58px 1fr;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .wonder-card,
    .button {
        transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .wonder-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 60px rgba(34, 36, 31, 0.13);
    }
}
