/* =========================================================
   CAMBRIDGE CURIO CUBBYHOLE
   OUR STORY PAGE
   ========================================================= */


/* =========================================================
   COLOUR & FONT VARIABLES
   ========================================================= */

:root {
    --navy: #061724;
    --navy-dark: #031019;
    --navy-light: #0b2435;

    --gold: #b88736;
    --gold-light: #d7ad60;
    --gold-pale: #e5c985;

    --cream: #f4ead5;
    --paper: #eadcbd;
    --paper-light: #f4ead4;

    --text-light: #d4cbbb;
    --text-muted: #a99f90;

    --ink: #241d15;
    --ink-light: #554838;

    --heading-font: "Cormorant Garamond", Georgia, serif;
    --body-font: "Libre Baskerville", Georgia, serif;

    --page-width: 1240px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--navy);
    color: var(--cream);

    font-family: var(--body-font);
    line-height: 1.8;
}

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

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

button {
    font: inherit;
}


/* =========================================================
   GENERAL CONTAINER
   ========================================================= */

.content-container {
    width: min(var(--page-width), 88%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 116px;

    background: rgba(3, 16, 25, 0.98);

    border-bottom: 1px solid var(--gold);

    backdrop-filter: blur(8px);
}

.header-inner {
    width: min(1450px, 94%);
    height: 100%;
    margin: auto;

    display: flex;
    align-items: center;

    gap: 30px;
}


/* ---------- LOGO ---------- */

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

.logo img {
    display: block;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
}


/* ---------- NAVIGATION ---------- */

.main-nav {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 42px;
}

.main-nav a {
    position: relative;

    padding: 8px 0;

    color: var(--cream);

    font-family: var(--heading-font);
    font-size: 17px;
    letter-spacing: 0.3px;

    transition: color 0.25s ease;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    right: 50%;
    bottom: 0;

    height: 1px;

    background: var(--gold-light);

    transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold-light);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    left: 0;
    right: 0;
}


/* ---------- HEADER ICONS ---------- */

.header-icons {
    display: flex;
    align-items: center;

    gap: 18px;
}

.header-icons a {
    color: var(--cream);

    font-family: var(--heading-font);
    font-size: 25px;

    transition: 0.2s ease;
}

.header-icons a:hover {
    color: var(--gold-light);
    transform: translateY(-2px);
}

@media (min-width: 861px) {
    .site-header .header-inner::after {
        content: "";
        width: 104px;
        flex: 0 0 104px;
    }
}


/* ---------- MOBILE MENU ---------- */

.mobile-menu {
    display: none;

    margin-left: auto;

    border: 0;
    background: transparent;

    color: var(--cream);

    font-size: 28px;

    cursor: pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.story-hero {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-bottom: 1px solid var(--gold);
}


/* ---------- HERO IMAGE ---------- */

.hero-image {
    position: absolute;
    inset: 0;

    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1.02);
}


/* ---------- HERO OVERLAY ---------- */

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            90deg,
            rgba(3, 15, 24, 0.88),
            rgba(3, 15, 24, 0.45),
            rgba(3, 15, 24, 0.82)
        ),
        linear-gradient(
            rgba(3, 15, 24, 0.15),
            rgba(3, 15, 24, 0.45)
        );
}


/* ---------- HERO CONTENT ---------- */

.hero-content {
    position: relative;
    z-index: 3;

    width: min(850px, calc(100% - 32px));
    min-width: 0;

    padding: 100px 0;

    text-align: center;
}

.eyebrow {
    margin: 0;

    color: var(--gold-light);

    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 600;

    letter-spacing: 5px;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 12px 0 20px;

    color: var(--cream);

    font-family: var(--heading-font);
    font-size: clamp(60px, 8vw, 105px);
    font-weight: 500;

    line-height: 0.88;
    letter-spacing: 2px;
    overflow-wrap: break-word;

    text-transform: uppercase;

    text-shadow:
        0 4px 25px rgba(0, 0, 0, 0.6);
}

.hero-content h1 em {
    color: var(--gold-light);

    font-weight: 400;

    text-transform: none;
}

.hero-subtitle {
    width: min(600px, 90%);
    margin: 30px auto 0;

    color: var(--cream);

    font-family: var(--heading-font);
    font-size: 21px;
    font-style: italic;
}


/* =========================================================
   ORNAMENTS
   ========================================================= */

.ornament {
    width: min(360px, 80%);
    margin: 20px auto;

    display: flex;
    align-items: center;

    gap: 14px;

    color: var(--gold-light);
}

.ornament span {
    flex: 1;

    height: 1px;

    background: var(--gold);
}

.ornament b {
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 400;
}

.ornament.small {
    width: 180px;

    margin: 12px 0 25px;
}


/* =========================================================
   SECTION LABEL
   ========================================================= */

.section-label {
    margin: 0;

    color: var(--gold-light);

    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 600;

    letter-spacing: 4px;
    text-transform: uppercase;
}


/* =========================================================
   GOLD DIVIDER
   ========================================================= */

.gold-line {
    width: 80px;
    height: 1px;

    margin: 25px 0;

    background: var(--gold);
}

.gold-line.centre {
    margin: 25px auto;
}


/* =========================================================
   IMAGE FRAMES
   ========================================================= */

.story-image {
    position: relative;

    padding: 7px;

    background: var(--paper);

    border: 1px solid var(--gold);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.3);
}

.story-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: saturate(0.9);
}


/* ---------- PHOTO CAPTION ---------- */

.image-caption {
    position: absolute;

    right: 17px;
    bottom: 17px;

    padding: 5px 11px;

    background: rgba(3, 16, 25, 0.9);

    border: 1px solid var(--gold);

    color: var(--gold-pale);

    font-family: var(--heading-font);
    font-size: 11px;

    letter-spacing: 1px;
}

.image-caption.dark {
    background: rgba(3, 16, 25, 0.95);
}


/* ---------- SLIGHTLY ROTATED PHOTOS ---------- */

.tilted {
    transform: rotate(1.2deg);
}


/* =========================================================
   INTRODUCTION
   ========================================================= */

.story-introduction {
    padding: 115px 0;

    background: var(--navy);
}

.intro-grid {
    display: grid;

    grid-template-columns: 1fr 0.85fr;

    align-items: center;

    gap: 100px;
}

.story-text h2 {
    margin: 12px 0;

    color: var(--gold-light);

    font-family: var(--heading-font);
    font-size: clamp(34px, 8vw, 68px);

    font-weight: 500;

    line-height: 0.95;

    overflow-wrap: break-word;
}

.story-text p:not(.section-label) {
    max-width: 650px;

    color: var(--text-light);

    font-size: 15px;
}

.intro-grid .story-image {
    height: 550px;
}


/* =========================================================
   THE BEGINNING
   ========================================================= */

.beginning-section {
    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(140, 100, 40, 0.08),
            transparent 35%
        ),
        var(--paper);

    color: var(--ink);

    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

.beginning-grid {
    min-height: 720px;

    display: grid;

    grid-template-columns: 0.9fr 1fr;

    align-items: center;

    gap: 100px;

    padding-top: 105px;
    padding-bottom: 105px;
}

.beginning-grid .story-image {
    height: 570px;

    transform: rotate(-1.2deg);
}


/* ---------- PARCHMENT TEXT ---------- */

.parchment-text h2 {
    color: var(--ink);
}

.parchment-text p:not(.section-label) {
    color: var(--ink-light);
}

.parchment-text .section-label {
    color: #866426;
}


/* ---------- BLOCKQUOTE ---------- */

.story-text blockquote {
    margin: 35px 0 0;

    padding-left: 25px;

    border-left: 2px solid var(--gold);

    color: #715d3e;

    font-family: var(--heading-font);
    font-size: 25px;
    font-style: italic;

    line-height: 1.35;
}


/* =========================================================
   NEW CHAPTER
   ========================================================= */

.new-chapter-section {
    padding: 115px 0;

    background: var(--navy);
}

.chapter-grid {
    display: grid;

    grid-template-columns: 1fr 0.85fr;

    align-items: center;

    gap: 100px;
}

.chapter-grid .story-image {
    height: 560px;
}


/* =========================================================
   QUOTE SECTION
   ========================================================= */

.quote-section {
    position: relative;

    padding: 120px 20px;

    background:
        linear-gradient(
            rgba(3, 15, 24, 0.94),
            rgba(3, 15, 24, 0.94)
        ),
        url("YOUR-QUOTE-BACKGROUND-IMAGE-URL-HERE.jpg");

    background-position: center;
    background-size: cover;

    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);

    text-align: center;
}

.quote-container {
    width: min(850px, 90%);

    margin: auto;
}

.quote-section .section-label {
    color: var(--gold-light);
}

.quote-section h2 {
    margin: 30px 0;

    color: var(--cream);

    font-family: var(--heading-font);
    font-size: clamp(40px, 5vw, 64px);

    font-weight: 400;

    line-height: 1.05;
}

.quote-description {
    width: min(650px, 100%);

    margin: 15px auto;

    color: var(--text-muted);

    font-family: var(--heading-font);
    font-size: 19px;

    font-style: italic;
}


/* =========================================================
   THE HUNT
   ========================================================= */

.hunt-section {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.hunt-background {
    position: absolute;
    inset: 0;

    z-index: 1;
}

.hunt-background img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.hunt-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            rgba(3, 15, 24, 0.72),
            rgba(3, 15, 24, 0.87)
        );
}

.hunt-content {
    position: relative;
    z-index: 3;

    width: min(750px, 88%);

    text-align: center;
}

.hunt-content h2 {
    margin: 12px 0;

    color: var(--gold-light);

    font-family: var(--heading-font);
    font-size: clamp(50px, 6vw, 78px);

    font-weight: 500;

    line-height: 0.95;
}

.hunt-content p:not(.section-label) {
    width: min(650px, 100%);

    margin: 15px auto;

    color: var(--cream);

    font-family: var(--heading-font);
    font-size: 19px;
}


/* =========================================================
   SOMETHING PARTICULAR
   ========================================================= */

.something-section {
    padding: 115px 0;

    background: var(--navy);
}

.something-grid {
    display: grid;

    grid-template-columns: 0.85fr 1fr;

    align-items: center;

    gap: 100px;
}

.something-grid .story-image {
    height: 520px;
}

.something-grid .story-text h2 {
    font-size: clamp(45px, 5vw, 66px);
}


/* =========================================================
   GOLD BUTTON
   ========================================================= */

.gold-button {
    display: inline-flex;

    align-items: center;

    gap: 20px;

    margin-top: 20px;

    padding: 12px 25px;

    border: 1px solid var(--gold-light);

    color: var(--cream);

    font-family: var(--heading-font);
    font-size: 15px;

    letter-spacing: 1px;
    text-transform: uppercase;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.gold-button span {
    color: var(--gold-light);

    font-size: 21px;

    transition: color 0.25s ease;
}

.gold-button:hover {
    background: var(--gold);

    color: var(--navy);

    transform: translateY(-2px);
}

.gold-button:hover span {
    color: var(--navy);
}


/* =========================================================
   CLOSING SECTION
   ========================================================= */

.closing-section {
    padding: 120px 20px;

    background: var(--paper);

    color: var(--ink);

    text-align: center;

    border-top: 1px solid var(--gold);
}

.closing-section .section-label {
    color: #806026;
}

.closing-section h2 {
    margin: 20px 0;

    font-family: var(--heading-font);
    font-size: clamp(50px, 6vw, 78px);

    font-weight: 500;

    line-height: 0.95;
}

.closing-section h2 em {
    color: #96702f;

    font-weight: 400;
}

.closing-section > p:not(.section-label) {
    width: min(650px, 90%);

    margin: auto;

    color: #5c503f;

    font-size: 15px;
}

.gold-button.dark {
    background: var(--navy);

    color: var(--cream);
}

.gold-button.dark:hover {
    background: var(--gold);

    color: var(--navy);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;

    gap: 30px;

    padding: 45px 5% 25px;

    background: var(--navy-dark);

    border-top: 1px solid var(--gold);
}


/* ---------- FOOTER LOGO ---------- */

.footer-logo img {
    display: block;
    width: 112px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}


/* ---------- FOOTER MESSAGE ---------- */

.footer-message {
    text-align: center;

    font-family: var(--heading-font);
    font-size: 19px;

    font-style: italic;
}

.footer-message p {
    margin: 0;

    color: var(--cream);
}

.footer-message span {
    color: var(--gold-light);
}


/* ---------- SOCIALS ---------- */

.footer-socials {
    display: flex;

    justify-content: flex-end;

    gap: 22px;
}

.footer-socials a {
    color: var(--gold-light);

    font-family: var(--heading-font);
    font-size: 24px;

    transition: 0.2s ease;
}

.footer-socials a:hover {
    color: var(--cream);

    transform: translateY(-2px);
}


/* ---------- FOOTER BOTTOM ---------- */

.footer-bottom {
    grid-column: 1 / -1;

    display: flex;

    justify-content: space-between;

    padding-top: 22px;

    border-top: 1px solid rgba(201, 154, 67, 0.4);

    color: #928a7a;

    font-family: var(--heading-font);
    font-size: 13px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .main-nav {
        gap: 25px;
    }

    .main-nav a {
        font-size: 15px;
    }

    .intro-grid,
    .beginning-grid,
    .chapter-grid,
    .something-grid {
        gap: 55px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    /* ---------- HEADER ---------- */

    .site-header {
        height: 84px;
    }

    .header-inner {
        width: 92%;
    }

    .logo img {
        width: 72px;
        height: 72px;
    }

    .main-nav,
    .header-icons {
        display: none;
    }

    .mobile-menu {
        display: block;
    }


    /* ---------- HERO ---------- */

    .story-hero {
        min-height: 520px;
    }

    .hero-content {
        padding: 70px 0;
    }

    .hero-content h1 {
        font-size: clamp(40px, 12vw, 56px);
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 18px;
    }


    /* ---------- GENERAL SECTIONS ---------- */

    .story-introduction,
    .new-chapter-section,
    .something-section {
        padding: 80px 0;
    }


    /* ---------- GRIDS ---------- */

    .intro-grid,
    .beginning-grid,
    .chapter-grid,
    .something-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    /* ---------- IMAGES ---------- */

    .intro-grid .story-image,
    .beginning-grid .story-image,
    .chapter-grid .story-image,
    .something-grid .story-image {
        height: 430px;
    }


    /* ---------- BEGINNING ORDER ---------- */

    .beginning-grid .story-image {
        order: 2;
    }

    .beginning-grid .story-text {
        order: 1;
    }


    /* ---------- QUOTE ---------- */

    .quote-section {
        padding: 85px 20px;
    }

    .quote-section h2 {
        font-size: 40px;
    }


    /* ---------- HUNT ---------- */

    .hunt-section {
        min-height: 500px;
    }

    .hunt-content h2 {
        font-size: 55px;
    }


    /* ---------- CLOSING ---------- */

    .closing-section {
        padding: 85px 20px;
    }


    /* ---------- FOOTER ---------- */

    .site-footer {
        grid-template-columns: 1fr;

        justify-items: center;

        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 5px;

        text-align: center;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .content-container {
        width: 88%;
    }


    .hero-content h1 {
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 17px;
    }


    .story-text h2 {
        font-size: 45px;
    }


    .intro-grid .story-image,
    .beginning-grid .story-image,
    .chapter-grid .story-image,
    .something-grid .story-image {
        height: 350px;
    }


    .quote-section h2 {
        font-size: 36px;
    }


    .hunt-content h2 {
        font-size: 48px;
    }


    .closing-section h2 {
        font-size: 50px;
    }


    .gold-button {
        font-size: 13px;

        padding: 11px 18px;
    }

}