:root {
    --sepia-dark: #2c2520;
    --sepia-mid: #5d4d42;
    --sepia-light: #d4c1b3;
    --clay: #a67b5b;
    --off-white: #fdfaf7;
    --glass-white: rgba(253, 250, 247, 0.05);
    --border-sepia: rgba(93, 77, 66, 0.2);
    --accent-red: #8b0000;
    /* Deep historical red */
}

/* Force Numbers to Times New Roman and make them half size */
@font-face {
    font-family: 'OdysseyNumbers';
    src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Times');
    unicode-range: U+0030-0039;
    size-adjust: 60%;
    /* Modern CSS property to scale specific font faces */
}

@font-face {
    font-family: 'OdysseyNumbersZH';
    src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Times');
    unicode-range: U+0030-0039;
    size-adjust: 120%;
}

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

body {
    font-family: 'OdysseyNumbers', 'IrisUPC', serif;
    font-size: 2rem;
    /* Doubled base size */
    background-color: var(--sepia-dark);
    color: var(--off-white);
    line-height: 1.4;
    /* Adjusted from 0.8 which was likely causing the cramping */
    overflow-x: hidden;
}

/* Language Specific Overrides */
html[lang^="zh"] body {
    line-height: 1.8 !important;
    letter-spacing: 0.02em;
    font-family: 'OdysseyNumbersZH', "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-weight: 300;
}

html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3,
html[lang^="zh"] .year,
html[lang^="zh"] .cost-value,
html[lang^="zh"] .sub-heading,
html[lang^="zh"] .logo {
    font-family: 'OdysseyNumbersZH', "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

html[lang="en"] body,
html[lang="en"] p,
html[lang="en"] .lead {
    font-family: 'OdysseyNumbers', 'IrisUPC', serif !important;
}

html[lang="vi"] body,
html[lang="vi"] p,
html[lang="vi"] .lead {
    line-height: 1.6;
    font-family: 'Outfit', sans-serif !important;
}

html[lang="vi"] h1,
html[lang="vi"] h2,
html[lang="vi"] h3 {
    font-family: 'EB Garamond', serif;
}

html[lang="vi"] nav a,
html[lang="vi"] .logo,
html[lang="vi"] .year,
html[lang="vi"] .sub-heading {
    font-family: 'Outfit', sans-serif;
}

p+p {
    margin-top: 2.5rem;
    display: block;
}

h1,
h2,
h3,
.logo,
.year,
.sub-heading,
.cost-value,
.cost-label,
nav a {
    font-family: 'OdysseyNumbers', 'IrisUPC', serif;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Narrative Header */
.narrative-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(44, 37, 32, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-sepia);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    flex-wrap: wrap;
}

nav br {
    flex-basis: 100%;
    height: 0;
}

.logo {
    font-size: 2.4rem;
    /* Adjusted for better fit */
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--clay);
    white-space: nowrap;
    /* Prevent logo from wrapping to two lines */
    flex-shrink: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    /* Reduced gap */
    flex-wrap: nowrap;
}

nav a {
    text-decoration: none;
    color: var(--sepia-light);
    font-weight: 400;
    font-size: 1.2rem;
    /* More elegant size */
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    color: var(--off-white);
}

.lang-switcher {
    display: flex;
    gap: 0.8rem;
    margin-left: 2rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(166, 123, 91, 0.3);
}

.lang-switcher a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clay);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    opacity: 1;
    color: var(--off-white);
}

/* Hero Section - Narrative Style */
.hero {
    height: 100vh;
    background: url('hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 37, 32, 0.2), rgba(44, 37, 32, 0.9));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 2rem;
}

.sub-heading {
    display: block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.6rem;
    /* Doubled from 0.8rem */
    color: var(--clay);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 8rem;
    font-weight: 700;
    margin: 2rem 0;
    font-style: italic;
    line-height: 1.2;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 2.2rem;
    /* Doubled from 1.1rem */
    color: var(--sepia-light);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* Timeline Sections */
.timeline-section {
    padding: 10rem 0;
    text-align: center;
}

.timeline-section.alternate {
    background-color: #24201c;
}

.narrative-block {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.narrative-block.reverse {
    flex-direction: row-reverse;
}

.narrative-text {
    flex: 1;
}

.year {
    display: block;
    font-size: 3rem;
    color: var(--clay);
    margin-bottom: 1rem;
}

.timeline-section h2,
.boat-timeline h2 {
    font-size: 5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.narrative-text p,
.intense-narrative p {
    font-size: 2.2rem;
    color: var(--sepia-light);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.narrative-image {
    flex: 1;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    filter: sepia(0.3) contrast(1.1);
    position: relative;
}

.narrative-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.ny-city-placeholder {
    background-color: var(--sepia-mid);
    background-image: linear-gradient(45deg, #333, #555);
}

.lead {
    font-size: 2.8rem;
    /* Doubled from 1.4rem */
    font-family: 'OdysseyNumbers', 'IrisUPC', serif;
    font-style: italic;
    font-weight: 300;
    color: var(--sepia-light);
    max-width: 900px;
    margin: 0 auto 3rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeInUp 1.2s ease forwards;
}

.fade-in-delay {
    animation: fadeInUp 1.2s ease 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-more {
    animation: fadeInUp 1.2s ease 0.8s forwards;
    opacity: 0;
}

footer {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid var(--border-sepia);
    color: var(--sepia-mid);
    font-size: 1.6rem;
    /* Doubled from 0.8rem */
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .narrative-block {
        flex-direction: column;
        gap: 3rem;
    }

    .narrative-block.reverse {
        flex-direction: column;
    }

    .narrative-image,
    .boat-image {
        width: 100%;
        height: auto !important;
        /* Override inline height: 600px */
        min-height: 250px;
        aspect-ratio: 4 / 3;
        display: block;
        background-position: center;
        background-size: cover;
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    nav ul {
        display: none;
    }
}

/* Expanded Narrative Styles */
.intense-narrative {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.gold-cost-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.gold-cost {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2.5rem;
    border: 1px solid var(--clay);
    background: rgba(166, 123, 91, 0.1);
    border-radius: 8px;
    flex: 1;
    max-width: 250px;
}

.gold-cost.child {
    border-color: var(--sepia-light);
    background: rgba(212, 193, 179, 0.05);
}

.cost-value {
    font-size: 2.5rem;
    color: var(--clay);
    font-weight: 700;
}

.cost-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.6rem;
    /* Doubled from 0.8rem */
    color: var(--sepia-light);
}

.boat-image {
    width: 100%;
    height: 400px;
    margin-top: 4rem;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    filter: contrast(1.2) brightness(0.9);
}

.timeline-section.intense {
    background: linear-gradient(to bottom, #2c2520, #1a1613);
}

/* Micro-animations for text */
.narrative-text p {
    margin-bottom: 1.5rem;
}

/* Boat Timeline Section */
.boat-timeline {
    padding: 10rem 0;
    background: linear-gradient(to bottom, #1a1613, #24201c);
    position: relative;
    overflow: hidden;
}

.timeline-path {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--clay), transparent);
    z-index: 1;
    transform: translateY(-50%);
    opacity: 0.3;
}

.boats-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    gap: 4rem;
    padding: 4rem 0;
    flex-wrap: wrap;
}

.boat-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: var(--glass-white);
    border: 1px solid var(--border-sepia);
    padding: 2rem;
    border-radius: 4px;
    position: relative;
    clip-path: polygon(0% -30px, 100% -30px, 100% 85%, 50% 100%, 0% 85%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
    padding-bottom: 4rem;
}

.boat-card::before {
    content: '⛴';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    filter: sepia(1) saturate(2);
}

.boat-card:hover {
    transform: translateY(-15px) rotate(1deg);
    border-color: var(--clay);
    background: rgba(166, 123, 91, 0.05);
}

.boat-card h3 {
    font-size: 2.2rem;
    /* Doubled from 1.1rem */
    color: var(--clay);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.boat-photos {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.boat-photos img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 2px;
    filter: sepia(0.3) contrast(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.boat-photos img:hover {
    transform: scale(1.05);
    filter: sepia(0) contrast(1.2);
}

/* Lightbox Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid #000;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.boat-info {
    text-align: center;
    font-size: 1.8rem;
    /* Doubled from 0.9rem */
    color: var(--sepia-light);
    font-weight: 300;
}

@media (max-width: 900px) {
    .boats-container {
        flex-direction: column;
        align-items: center;
    }

    .boat-card {
        width: 100%;
    }
}