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

:root {
    --cream: #F5F1E8;
    --charcoal: #2A2420;
    --temple-orange: #C15A3B;
    --forest-green: #4A5D52;
    --gold-ochre: #D4A574;
    --light-line: rgba(42, 36, 32, 0.08);
}

body {
    font-family: 'Crimson Text', serif;
    font-size: 20px;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--cream);
    position: relative;
}


.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Header */
header {
    margin-bottom: 80px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--forest-green);
    font-weight: 400;
    margin-bottom: 16px;
}

h1 {
    font-family: 'EB Garamond', serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 24px;
    font-style: italic;
    color: var(--temple-orange);
    font-weight: 400;
}

/* Hero image */
.hero-image {
    margin: 60px 0 80px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow:
        0 30px 80px rgba(42, 36, 32, 0.2),
        0 8px 20px rgba(42, 36, 32, 0.15);
}

.hero-caption {
    margin-top: 16px;
    font-size: 16px;
    font-style: italic;
    color: var(--forest-green);
    text-align: center;
}

/* Introduction section - asymmetric layout */
.intro-section {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    margin-bottom: 100px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.intro-left-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.intro-sidebar {
    position: relative;
    padding-top: 20px;
}

.intro-sidebar::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 4px;
    height: 120px;
    background: linear-gradient(to bottom, var(--temple-orange), transparent);
}

.intro-sidebar h2 {
    font-family: 'EB Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--forest-green);
}

.intro-sidebar p {
    font-size: 18px;
    line-height: 1.6;
}

.intro-main h2 {
    font-family: 'EB Garamond', serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--charcoal);
}

.intro-main p {
    margin-bottom: 24px;
}

.intro-main p:last-child {
    margin-bottom: 0;
}

/* Pull quote */
.pull-quote {
    margin: 80px 0;
    padding: 40px 60px;
    background: rgba(193, 90, 59, 0.05);
    border-left: 6px solid var(--temple-orange);
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'EB Garamond', serif;
    font-size: 120px;
    color: var(--temple-orange);
    opacity: 0.2;
    line-height: 1;
}

.pull-quote-text {
    font-family: 'Caveat', cursive;
    font-size: 32px;
    line-height: 1.4;
    color: var(--charcoal);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.pull-quote-attribution {
    margin-top: 20px;
    font-family: 'Crimson Text', serif;
    font-size: 18px;
    font-style: italic;
    color: var(--forest-green);
}

/* Video section */
.video-section {
    margin: 100px 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.video-section h2 {
    font-family: 'EB Garamond', serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--charcoal);
}

.video-intro {
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 40px;
    font-style: italic;
    color: var(--forest-green);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: var(--charcoal);
    box-shadow:
        0 20px 60px rgba(42, 36, 32, 0.15),
        0 4px 12px rgba(42, 36, 32, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Vocabulary grid */
.vocab-section {
    margin: 100px 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.vocab-section h2 {
    font-family: 'EB Garamond', serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 50px;
    color: var(--charcoal);
}

.vocab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.vocab-item {
    background: rgba(212, 165, 116, 0.08);
    padding: 30px;
    border-radius: 2px;
    border-top: 3px solid var(--gold-ochre);
}

.vocab-term {
    font-family: 'EB Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--temple-orange);
    margin-bottom: 12px;
}

.vocab-definition {
    font-size: 18px;
    line-height: 1.6;
}

/* Timeline callout - elevated card design */
.timeline-callout {
    display: block;
    position: relative;
    background: linear-gradient(135deg,
        rgba(245, 241, 232, 0.95) 0%,
        rgba(212, 165, 116, 0.08) 100%);
    border: 3px solid var(--gold-ochre);
    border-left: 8px solid var(--temple-orange);
    padding: 24px 28px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(42, 36, 32, 0.12),
        0 2px 6px rgba(193, 90, 59, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.timeline-callout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(212, 165, 116, 0.15) 0%,
        rgba(193, 90, 59, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.timeline-callout:hover {
    transform: translateY(-4px) translateX(2px);
    border-color: var(--temple-orange);
    box-shadow:
        0 12px 28px rgba(42, 36, 32, 0.18),
        0 6px 12px rgba(193, 90, 59, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.timeline-callout:hover::before {
    opacity: 1;
}

.timeline-callout:active {
    transform: translateY(-2px) translateX(1px);
    transition: all 0.15s ease;
}

.timeline-callout-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.timeline-icon {
    font-size: 24px;
    line-height: 1;
    filter: grayscale(0.3) brightness(0.9);
}

.timeline-title {
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--forest-green);
    letter-spacing: -0.3px;
}

.timeline-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--charcoal);
    margin: 0 0 16px 0;
    opacity: 0.9;
}

.timeline-arrow {
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    color: var(--temple-orange);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 4px;
}

.timeline-callout:hover .timeline-arrow {
    transform: translateX(6px);
}

/* Footer */
footer {
    margin-top: 120px;
    padding-top: 60px;
    border-top: 2px solid var(--light-line);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--forest-green);
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--temple-orange);
    text-decoration: none;
    font-size: 18px;
}

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

.footer-cta {
    text-align: center;
    padding: 40px 0 20px;
}

.footer-cta a {
    display: inline-block;
    padding: 16px 32px;
    background: var(--temple-orange);
    color: var(--cream);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.footer-cta a:hover {
    background: var(--forest-green);
}

.footer-credits {
    text-align: center;
    font-size: 15px;
    color: var(--forest-green);
    padding-top: 20px;
    border-top: 1px solid var(--light-line);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 40px 24px;
    }

    h1 {
        font-size: 48px;
    }

    .intro-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vocab-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-image {
        margin: 40px 0 60px;
    }

    .pull-quote {
        padding: 30px 40px;
    }

    .pull-quote-text {
        font-size: 26px;
    }
}

/* Additional mobile refinements */
@media (max-width: 600px) {
    body {
        font-size: 18px;
    }

    h1 {
        font-size: 36px;
    }

    .container {
        padding: 24px 20px;
    }

    .intro-section {
        gap: 30px;
    }

    .intro-sidebar::before {
        left: -10px;
    }

    .pull-quote {
        padding: 24px 30px;
        margin: 60px 0;
    }

    .pull-quote-text {
        font-size: 24px;
    }

    .pull-quote::before {
        font-size: 80px;
        top: 10px;
        left: 10px;
    }

    .video-section h2,
    .vocab-section h2 {
        font-size: 32px;
    }

    .video-intro {
        font-size: 19px;
    }
}

/* Teacher resources page */
.teacher-intro {
    margin: 60px 0 80px;
}

.intro-text {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.intro-text a {
    color: var(--temple-orange);
    text-decoration: none;
    font-weight: 600;
}

.intro-text a:hover {
    text-decoration: underline;
}

.materials-category {
    margin: 80px 0;
}

.materials-category h2 {
    font-family: 'EB Garamond', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.category-description {
    font-size: 18px;
    font-style: italic;
    color: var(--forest-green);
    margin-bottom: 32px;
}

.materials-list {
    display: grid;
    gap: 24px;
}

.material-item {
    background: rgba(212, 165, 116, 0.08);
    padding: 28px;
    border-left: 4px solid var(--gold-ochre);
    border-radius: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.material-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(42, 36, 32, 0.1);
}

.material-item h3 {
    font-family: 'EB Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--temple-orange);
    margin-bottom: 12px;
}

.material-item p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.material-item a {
    display: inline-block;
    color: var(--temple-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
}

.material-item a::before {
    content: '📄 ';
}

.material-item a:hover {
    text-decoration: underline;
}

.external-link::before {
    content: '🔗 ';
}
