
/* =====================================
   1. GLOBAL DESIGN SETTINGS
===================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --ivory: #F5F2EB;
    --forest: #34483D;
    --sage: #A7B49A;
    --clay: #C58D72;
    --charcoal: #292C28;
    --white: #FFFFFF;
    --muted: #77786F;
    --line: #DEDCD3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ivory);
    color: var(--charcoal);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1120px, 88%);
    margin: auto;
}

.section {
    padding: 90px 0;
}

.eyebrow {
    color: var(--forest);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.2;
    color: var(--forest);
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

p {
    color: var(--muted);
}

/* =====================================
   2. NAVIGATION
===================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 242, 235, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.navbar {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo {
    font-family: 'Playfair Display', serif;
    color: var(--forest);
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
}

.nav-links a {
    font-size: 0.82rem;
    color: var(--charcoal);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--clay);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--forest);
    font-size: 1.7rem;
    cursor: pointer;
}

/* =====================================
   3. BUTTONS
===================================== */

.button {
    display: inline-block;
    padding: 13px 22px;
    background: var(--forest);
    color: var(--white);
    border: 1px solid var(--forest);
    font-size: 0.85rem;
    transition: 0.25s;
}

.button:hover {
    background: transparent;
    color: var(--forest);
}

.button-outline {
    background: transparent;
    color: var(--forest);
}

.button-outline:hover {
    background: var(--forest);
    color: var(--white);
}

/* =====================================
   4. PAGE INTRODUCTION
===================================== */

.page-intro {
    padding: 105px 0 70px;
    border-bottom: 1px solid var(--line);
}

.page-intro h1 {
    max-width: 850px;
    margin: 16px 0;
}

.page-intro p {
    max-width: 650px;
    font-size: 1rem;
}

.breadcrumb {
    margin-bottom: 22px;
    font-size: 0.78rem;
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--clay);
}

/* =====================================
   5. HOMEPAGE
===================================== */

.hero {
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
    padding: 80px 0;
}

.hero-content h1 {
    margin: 18px 0;
}

.hero-content p {
    max-width: 520px;
    margin-bottom: 28px;
}

.hero-image {
    position: relative;
    min-height: 470px;
    background: #E4E0D5;
    border: 1px solid var(--line);
}

.hero-image img {
    width: 100%;
    height: 470px;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--forest);
    color: var(--white);
    padding: 18px 25px;
    font-size: 0.78rem;
}

/* =====================================
   6. ABOUT ME
===================================== */

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.about-image {
    background: #E4E0D5;
    padding: 15px;
    border: 1px solid var(--line);
}

.about-image img {
    width: 100%;
    min-height: 430px;
    object-fit: cover;
}

.about-content h2 {
    margin: 15px 0 25px;
}

.about-content p {
    margin-bottom: 18px;
}

.interest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.interest-list span {
    padding: 8px 14px;
    border: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--forest);
}

/* =====================================
   7. ACTIVITY ARCHIVE CARDS
===================================== */

.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.activity-card {
    display: block;
    background: #EEEAE1;
    padding: 25px;
    border: 1px solid var(--line);
    transition: 0.25s;
}

.activity-card:hover {
    transform: translateY(-5px);
    border-color: var(--sage);
}

.activity-number {
    font-size: 0.72rem;
    color: var(--clay);
    font-weight: 700;
    letter-spacing: 2px;
}

.activity-card h3 {
    font-size: 1.7rem;
    margin: 20px 0 10px;
}

.activity-card p {
    font-size: 0.9rem;
}

.activity-icon {
    width: 65px;
    height: 65px;
    background: #DCE2D5;
    color: var(--forest);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.view-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--forest);
    font-size: 0.82rem;
    font-weight: 700;
}

/* =====================================
   8. INDIVIDUAL ACTIVITY PAGE
===================================== */

.activity-hero {
    padding: 85px 0 65px;
    background: #EAE6DC;
    border-bottom: 1px solid var(--line);
}

.activity-hero h1 {
    max-width: 850px;
    margin: 15px 0;
}

.activity-hero p {
    max-width: 650px;
}

.activity-section {
    padding: 75px 0;
    border-bottom: 1px solid var(--line);
}

.activity-section h2 {
    margin: 12px 0 20px;
}

.activity-section p {
    max-width: 800px;
    margin-bottom: 15px;
}

.activity-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.activity-heading span {
    color: var(--clay);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

/* =====================================
   9. WORKSHEET DISPLAY
===================================== */

.worksheet-frame {
    background: #EAE6DC;
    padding: 20px;
    border: 1px solid var(--line);
}

.worksheet-frame iframe {
    width: 100%;
    height: 750px;
    border: none;
    background: var(--white);
}

.worksheet-image {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    background: var(--white);
}

.worksheet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* =====================================
   10. DOCUMENTATION GALLERY
===================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.gallery-item {
    background: #EEEAE1;
    padding: 12px;
    border: 1px solid var(--line);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: 14px 5px 5px;
    color: var(--muted);
    font-size: 0.8rem;
}

/* =====================================
   11. REFLECTION
===================================== */

.reflection-box {
    background: #EAE6DC;
    border-left: 4px solid var(--clay);
    padding: 35px;
    min-height: 200px;
}

/* =====================================
   12. CONTACT
===================================== */

.contact-list {
    display: grid;
    gap: 18px;
    max-width: 650px;
}

.contact-item {
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.contact-item strong {
    display: block;
    color: var(--forest);
    margin-bottom: 5px;
}

/* =====================================
   13. FOOTER
===================================== */

.site-footer {
    background: var(--forest);
    color: var(--white);
    padding: 35px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-footer p {
    color: #D6DED4;
    font-size: 0.78rem;
}

/* =====================================
   14. RESPONSIVE DESIGN
===================================== */

@media (max-width: 800px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        padding: 25px 6%;
        background: var(--ivory);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-image {
        min-height: 350px;
    }

    .hero-image img {
        height: 350px;
    }

    .activity-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 65px 0;
    }

    .page-intro {
        padding: 75px 0 50px;
    }

    .worksheet-frame iframe {
        height: 550px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {

    .container {
        width: 90%;
    }

    h1 {
        font-size: 2.6rem;
    }

    .image-caption {
        right: -5px;
    }

    .worksheet-frame {
        padding: 8px;
    }

    .worksheet-frame iframe {
        height: 450px;
    }
}

/* =================================
   INTERACTIVE WORKSHEET VIEWER
================================= */

.worksheet-viewer {
    background: #fffefa;
    border: 1px solid #dedbd2;
    border-radius: 12px;
    padding: 24px;
    margin-top: 28px;
}

.viewer-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.viewer-label {
    color: #34483D;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.page-counter {
    color: #686b63;
    font-size: 0.9rem;
}

.worksheet-stage {
    min-height: 420px;
    background: #eae8e1;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow: hidden;
}

.worksheet-page {
    display: none;
    max-width: 100%;
    max-height: 650px;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.worksheet-page.current-page {
    display: block;
}

.viewer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.viewer-button {
    background: #34483D;
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
    transition: background 0.2s ease;
}

.viewer-button:hover {
    background: #526c5b;
}

.viewer-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 2px 8px;
}

.page-thumbnail {
    flex: 0 0 75px;
    height: 95px;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    padding: 3px;
    background: #f5f2eb;
    cursor: pointer;
}

.page-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-thumbnail.selected {
    border-color: #C58D72;
}

.viewer-note {
    color: #77796f;
    font-size: 0.85rem;
    margin-top: 14px;
    text-align: center;
}

/* Enlarged worksheet window */

.worksheet-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(25, 29, 26, 0.94);
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.worksheet-lightbox.open {
    display: flex;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.lightbox-image-area {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.lightbox-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lightbox-button {
    background: #F5F2EB;
    color: #292C28;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font: inherit;
}

.lightbox-button:hover {
    background: #A7B49A;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 30px;
}

/* Documentation photo gallery */

.documentation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.documentation-card {
    background: #fffefa;
    padding: 12px;
    border: 1px solid #dedbd2;
    border-radius: 8px;
}

.documentation-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 5px;
    cursor: zoom-in;
}

.documentation-card p {
    color: #686b63;
    font-size: 0.9rem;
    margin: 12px 4px 4px;
}

@media (max-width: 600px) {
    .worksheet-viewer {
        padding: 14px;
    }

    .worksheet-stage {
        min-height: 300px;
        padding: 12px;
    }

    .documentation-grid {
        grid-template-columns: 1fr;
    }

    .viewer-controls {
        justify-content: center;
    }
}
/* Fix worksheet zoom and scrolling */
.lightbox-image-area {
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.lightbox-image {
    transform-origin: top center;
}