/* =========================================================
   THE EXPAT EDITS
   NEW SITE — MASTER STYLE
   VERSION 1.1
========================================================= */


/* =========================================================
   01. DESIGN SYSTEM
========================================================= */

:root {

    /* Core palette */

    --bg: #11100F;
    --bg-soft: #151412;
    --bg-card: #1A1816;

    --ivory: #F1EDE4;
    --text: #E5E0D7;
    --muted: #9D9990;

    /* Richer gold — new preferred accent */

    --gold: #D4A83A;
    --gold-soft: rgba(212, 168, 58, 0.55);
    --gold-faint: rgba(212, 168, 58, 0.20);

    --line: rgba(212, 168, 58, 0.28);
    --line-soft: rgba(241, 237, 228, 0.08);


    /* Typography */

    --font-display: "Cormorant Garamond", serif;
    --font-body: "Inter", sans-serif;


    /* Layout */

    --content-width: 1240px;

    --page-padding: clamp(24px, 5vw, 72px);

    --section-space: clamp(80px, 9vw, 140px);

    --header-height: 88px;


    /* Animation */

    --transition: 0.3s ease;
}


/* =========================================================
   02. RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--bg);
    color: var(--text);

    font-family: var(--font-body);
    font-weight: 400;

    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   03. TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4 {
    margin: 0;

    font-family: var(--font-display);
    font-weight: 500;

    color: var(--ivory);

    line-height: 1.05;
}

p {
    margin: 0;
}


/* Small gold editorial labels */

.eyebrow,
.section-label {
    margin-bottom: 16px;

    color: var(--gold);

    font-family: var(--font-body);
    font-size: 0.70rem;
    font-weight: 500;

    letter-spacing: 0.24em;
    text-transform: uppercase;
}


/* =========================================================
   04. GLOBAL LAYOUT
========================================================= */

.container {
    width: min(
        calc(100% - (var(--page-padding) * 2)),
        var(--content-width)
    );

    margin-inline: auto;
}

.section {
    padding-block: var(--section-space);
}

.section-heading {
    margin-bottom: 42px;
}

.section-heading h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.section-intro {
    max-width: 620px;

    margin-top: 18px;

    color: var(--muted);

    font-size: 0.94rem;
    line-height: 1.85;
}


/* =========================================================
   05. FIXED HEADER
========================================================= */

.site-header {
    position: relative;
    z-index: 1000;

    width: 100%;

    background: var(--bg);

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

.site-header-inner {
    min-height: var(--header-height);

    width: min(
        calc(100% - (var(--page-padding) * 2)),
        var(--content-width)
    );

    margin-inline: auto;

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

    gap: 30px;
}


/* =========================================================
   MASTHEAD
========================================================= */

.site-logo {
    flex-shrink: 0;

    color: var(--gold);

    font-family: var(--font-display);

    font-size: clamp(
        1.65rem,
        2.5vw,
        2.05rem
    );

    font-weight: 500;

    letter-spacing: 0.13em;

    line-height: 1;

    white-space: nowrap;

    transition: color var(--transition);
}

.site-logo:hover {
    color: var(--ivory);
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.site-nav {
    display: flex;
    align-items: center;

    gap: clamp(
        20px,
        3vw,
        40px
    );
}

.site-nav a {
    position: relative;

    color: var(--gold);

    font-family: var(--font-body);

    font-size: 0.67rem;

    font-weight: 500;

    letter-spacing: 0.16em;

    text-transform: uppercase;

    transition: color var(--transition);
}

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

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--gold);

    transition: width var(--transition);
}

.site-nav a:hover {
    color: var(--ivory);
}

.site-nav a:hover::after {
    width: 100%;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--gold);

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 25px;
    height: 1px;

    margin: 6px auto;

    background: var(--gold);
}


/* =========================================================
   06. GOLD DIVIDERS
========================================================= */

.gold-rule {
    width: 100%;
    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        var(--gold-soft),
        transparent
    );
}


/* =========================================================
   07. TEXT LINKS
========================================================= */

.text-link {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--gold);

    font-family: var(--font-body);

    font-size: 0.70rem;

    font-weight: 500;

    letter-spacing: 0.15em;

    text-transform: uppercase;

    transition:
        color var(--transition),
        gap var(--transition);
}

.text-link:hover {
    color: var(--ivory);

    gap: 13px;
}


/* =========================================================
   08. EDITORIAL IMAGE TREATMENT
========================================================= */

.editorial-image {
    overflow: hidden;
}

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

    object-fit: cover;

    /*
       Gentle treatment only.
       We want the original photography to remain visible.
    */

    filter:
        saturate(0.93)
        contrast(0.96);

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}

.editorial-image:hover img {
    transform: scale(1.025);

    filter:
        saturate(0.99)
        contrast(0.98);
}


/* =========================================================
   09. FIXED FOOTER
========================================================= */

.site-footer {
    margin-top: var(--section-space);

    padding-block: 72px 34px;

    border-top: 1px solid var(--line);

    text-align: center;
}

.site-footer-inner {
    width: min(
        calc(100% - (var(--page-padding) * 2)),
        var(--content-width)
    );

    margin-inline: auto;
}


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

.footer-logo {
    color: var(--gold);

    font-family: var(--font-display);

    font-size: 2rem;

    font-weight: 500;

    letter-spacing: 0.14em;
}


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

.footer-description {
    max-width: 520px;

    margin: 16px auto 30px;

    color: var(--ivory);

    font-size: 0.78rem;

    line-height: 1.7;
}


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

.footer-nav {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 28px;

    margin-bottom: 28px;
}

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

    font-size: 0.65rem;

    font-weight: 500;

    letter-spacing: 0.16em;

    text-transform: uppercase;

    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--ivory);
}


/* =========================================================
   INSTAGRAM
========================================================= */

.footer-social {
    color: var(--gold);

    font-size: 0.65rem;

    font-weight: 500;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    transition: color var(--transition);
}

.footer-social:hover {
    color: var(--ivory);
}


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

.footer-copyright {
    margin-top: 44px;

    color: #77736C;

    font-size: 0.62rem;

    letter-spacing: 0.08em;
}


/* =========================================================
   10. RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {

    :root {
        --header-height: 78px;
    }

    .site-nav {
        gap: 22px;
    }

    .site-nav a {
        font-size: 0.62rem;
    }
}


/* =========================================================
   11. RESPONSIVE — PHONE
========================================================= */

@media (max-width: 700px) {

    :root {
        --page-padding: 42px;
        --header-height: 76px;
    }


    /* Header */

    .site-header-inner {
        min-height: var(--header-height);
    }

    .site-logo {
        font-size: 1.55rem;

        letter-spacing: 0.10em;
    }


    /* Hide desktop navigation */

    .site-nav {
        display: none;
    }


    /* Show mobile menu */

    .menu-toggle {
        display: block;
    }


    /* Sections */

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 2.55rem;
    }

    .section-intro {
        font-size: 0.88rem;
    }


    /* Footer */

    .site-footer {
        padding-block: 58px 28px;
    }

    .footer-logo {
        font-size: 1.65rem;
    }

    .footer-description {
        font-size: 0.76rem;
    }

    .footer-nav {
        gap: 18px 24px;
    }
}


/* =========================================================
   12. ACCESSIBILITY
========================================================= */

:focus-visible {
    outline: 1px solid var(--gold);

    outline-offset: 5px;
}


/* =========================================================
   END — MASTER STYLE
========================================================= */


/* =========================================================
   HOMEPAGE — LEAD STORY
========================================================= */

.lead-story {
    padding-block: clamp(30px, 4vw, 55px);
}

.lead-story-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(280px, 0.65fr);

    align-items: center;

    gap: clamp(42px, 7vw, 100px);
}


/* Lead photograph */

.lead-story-image {
    aspect-ratio: 16 / 9;

    background: var(--bg-card);
}

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

    object-fit: cover;
}


/* Lead text */

.lead-story-content {
    max-width: 430px;
}

.lead-story-content h1 {
    margin-bottom: 10px;

    font-size: clamp(
        3.4rem,
        6vw,
        5.5rem
    );

    color: var(--ivory);
}

.lead-story-subtitle {
    margin-bottom: 24px;

    color: var(--gold);

    font-family: var(--font-body);

    font-size: 0.72rem;

    font-weight: 500;

    letter-spacing: 0.17em;

    text-transform: uppercase;
}

.lead-story-text {
    margin-bottom: 30px;

    color: var(--muted);

    font-size: 0.91rem;

    line-height: 1.85;
}


/* =========================================================
   HOMEPAGE — LEAD STORY
========================================================= */

.lead-story {
    padding-block: clamp(30px, 4vw, 55px);
}

.lead-story-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(280px, 0.65fr);

    align-items: center;

    gap: clamp(42px, 7vw, 100px);
}


/* =========================================================
   LEAD PHOTOGRAPH
========================================================= */

.lead-story-image {
    position: relative;

    width: 100%;

    /*
       Deliberately tall rather than a conventional
       landscape card.
    */

    height: min(58vw, 560px);

    overflow: hidden;

    background: var(--bg);
}


/*
   The photograph itself
*/

.lead-story-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
       Slightly bias the crop towards the
       centre of the Pink Beach photograph.
    */

    object-position: center center;

    filter:
        saturate(0.91)
        contrast(0.95);

    /*
       This is the important part.

       The photograph itself fades to transparent,
       revealing the charcoal background underneath.
    */

    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 62%,
        rgba(0, 0, 0, 0.92) 70%,
        rgba(0, 0, 0, 0.60) 82%,
        rgba(0, 0, 0, 0.20) 94%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 62%,
        rgba(0, 0, 0, 0.92) 70%,
        rgba(0, 0, 0, 0.60) 82%,
        rgba(0, 0, 0, 0.20) 94%,
        transparent 100%
    );

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}


/*
   Very subtle darkening at the very top.
   This is intentionally almost invisible.
*/

.lead-story-image::before {
    content: "";

    position: absolute;

    z-index: 2;

    top: 0;
    left: 0;
    right: 0;

    height: 14%;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(17, 16, 15, 0.12),
        transparent
    );
}


/*
   Do NOT use a solid overlay at the bottom.
   The mask on the image creates the fade.
*/


.lead-story-image:hover img {
    transform: scale(1.015);

    filter:
        saturate(0.97)
        contrast(0.97);
}


/* =========================================================
   LEAD STORY CONTENT
========================================================= */

.lead-story-content {
    max-width: 430px;
}

.lead-story-content h1 {
    margin-bottom: 10px;

    font-size: clamp(
        3.4rem,
        6vw,
        5.5rem
    );

    color: var(--ivory);
}

.lead-story-subtitle {
    margin-bottom: 24px;

    color: var(--gold);

    font-family: var(--font-body);

    font-size: 0.72rem;

    font-weight: 500;

    letter-spacing: 0.17em;

    text-transform: uppercase;
}

.lead-story-text {
    margin-bottom: 30px;

    color: var(--muted);

    font-size: 0.91rem;

    line-height: 1.85;
}


/* =========================================================
   LEAD STORY — PHONE
========================================================= */

@media (max-width: 700px) {

    .lead-story {
        padding-top: 48px;
        padding-bottom: 70px;
    }


    .lead-story-grid {
        display: block;
    }


    /*
       This is the key change.

       The image is now deliberately tall on
       the phone and allowed to feel like a
       photographic feature rather than a card.
    */

    .lead-story-image {
        width: 100%;

        height: 570px;

        margin-bottom: -35px;
    }


    /*
       Keep the full Pink Beach composition
       as much as possible.

       If we decide we want more sky or more
       beach after seeing this, we only change
       object-position.
    */

    .lead-story-image img {
        object-position: center center;

        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 55%,
            rgba(0, 0, 0, 0.92) 65%,
            rgba(0, 0, 0, 0.62) 78%,
            rgba(0, 0, 0, 0.25) 91%,
            transparent 100%
        );

        mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 55%,
            rgba(0, 0, 0, 0.92) 65%,
            rgba(0, 0, 0, 0.62) 78%,
            rgba(0, 0, 0, 0.25) 91%,
            transparent 100%
        );
    }


    .lead-story-content {
        position: relative;

        z-index: 3;

        max-width: none;

        padding-inline: 0;
    }


    .lead-story-content h1 {
        font-size: 3.35rem;
    }


    .lead-story-subtitle {
        margin-bottom: 20px;
    }


    .lead-story-text {
        max-width: 520px;

        font-size: 0.88rem;
    }
}


/* =========================================================
   HOMEPAGE — FEATURED EDITIONS
========================================================= */

.featured-editions {
    padding-top: 55px;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.featured-editions .section-heading {
    margin-bottom: 38px;
}

.featured-editions .section-heading h2 {
    font-family: var(--font-display);
    font-weight: 500;
}


/* =========================================================
   DESKTOP EDITION GRID
========================================================= */

.edition-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 220px);

    gap: 22px;

    justify-content: center;

    width: 100%;

    margin-inline: auto;
}


/* =========================================================
   EDITION CARD
========================================================= */

.edition-card {

    display: block;

    width: 220px;

    color: inherit;

    text-decoration: none;

    transition:
        transform 0.35s ease;
}

.edition-card:hover {
    transform: translateY(-3px);
}


/* =========================================================
   EDITION IMAGE
========================================================= */

.edition-card-image {

    position: relative;

    width: 220px;

    height: 145px;

    overflow: hidden;

    background: var(--bg-card);
}

.edition-card-image img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(0.93)
        contrast(0.96);

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.edition-card:hover .edition-card-image img {

    transform: scale(1.025);

    filter:
        saturate(0.98)
        contrast(0.98);
}


/* =========================================================
   CARD TEXT
========================================================= */

.edition-card-content {

    padding-top: 14px;
}

.edition-card-country {

    margin: 0 0 5px;

    color: var(--gold);

    font-family: var(--font-body);

    font-size: 0.62rem;

    font-weight: 500;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.edition-card h3 {

    margin: 0;

    color: var(--ivory);

    font-family: var(--font-display);

    font-size: 2rem;

    font-weight: 500;

    line-height: 1;
}

.edition-card-link {

    display: inline-block;

    margin-top: 9px;

    color: var(--muted);

    font-family: var(--font-body);

    font-size: 0.62rem;

    font-weight: 400;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    transition:
        color var(--transition);
}

.edition-card:hover .edition-card-link {
    color: var(--gold);
}


/* =========================================================
   VIEW ALL EDITIONS
========================================================= */

.editions-archive-link {

    display: flex;

    justify-content: center;

    margin-top: 55px;
}


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

@media (max-width: 1000px) {

    .edition-grid {

        grid-template-columns:
            repeat(2, 220px);

        gap: 38px 24px;
    }

}


/* =========================================================
   PHONE
========================================================= */

@media (max-width: 700px) {

    .featured-editions {

        padding-top: 45px;

        padding-bottom: 65px;
    }


    .featured-editions .section-heading {

        margin-bottom: 28px;
    }


    .edition-grid {

        grid-template-columns: 1fr;

        gap: 42px;
    }


    .edition-card {

        width: 100%;
    }


    .edition-card-image {
        width: calc(100% + 24px);

        margin-left: -12px;

        height: auto;

        aspect-ratio: 16 / 10;
    }


    .edition-card-content {

        padding-top: 12px;
    }


    .edition-card h3 {

        font-size: 2.15rem;
    }


    .edition-card-link {

        margin-top: 7px;
    }


    .editions-archive-link {

        margin-top: 45px;
    }

}


/* =========================================================
   FEATURED EDITIONS — DESKTOP SIX ACROSS
========================================================= */

@media screen and (min-width: 1101px) {

    .featured-editions .edition-grid {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 28px !important;
    }

    .featured-editions .edition-card {
        width: 100%;
        min-width: 0;
    }

    .featured-editions .edition-card-image {
        width: 100%;
    }

}


/* =========================================
   SINGAPORE HERO — SOFT EDGE FADE
   ========================================= */

.singapore-hero-image {
    position: relative;
    overflow: hidden;
    background: #11100F;
}

.singapore-hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

.singapore-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        /* Top fade */
        linear-gradient(
            to bottom,
            #11100F 0%,
            rgba(17,16,15,0.82) 5%,
            rgba(17,16,15,0.35) 13%,
            transparent 24%
        ),

        /* Left fade */
        linear-gradient(
            to right,
            #11100F 0%,
            rgba(17,16,15,0.70) 5%,
            rgba(17,16,15,0.25) 12%,
            transparent 21%
        ),

        /* Right fade */
        linear-gradient(
            to left,
            #11100F 0%,
            rgba(17,16,15,0.70) 5%,
            rgba(17,16,15,0.25) 12%,
            transparent 21%
        );
}


/* =========================================================
   HOMEPAGE POLISH — FINAL
========================================================= */


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

.homepage-intro {
    padding-top: 0;
    padding-bottom: 25px;
}

.homepage-intro-inner {
    max-width: 760px;
    text-align: center;
}


/* Welcome heading */

.homepage-intro h1 {
    margin-bottom: 14px;

    color: var(--gold);

    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 500;

    line-height: 1.1;
}


/* Welcome body — matched to Singapore */

.homepage-intro p {
    max-width: 620px;

    margin: 0 auto 22px;

    color: var(--muted);

    font-family: var(--font-body);
    font-size: 0.91rem;
    font-weight: 400;

    line-height: 1.85;
}

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


/* =========================================================
   VIEW ALL EDITIONS
========================================================= */

.editions-archive-link {
    display: flex;
    justify-content: center;

    margin-top: 55px;
}

.editions-archive-link .text-link {
    color: var(--gold);

    font-family: var(--font-body);
    font-size: 0.70rem;
    font-weight: 500;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.editions-archive-link .text-link:hover {
    color: var(--ivory);
}


/* =========================================================
   SINGAPORE IMAGE — REDUCED EDGE FADE
========================================================= */

.singapore-hero-image::after {
    background:
        linear-gradient(
            to bottom,
            rgba(17, 16, 15, 0.72) 0%,
            rgba(17, 16, 15, 0.42) 4%,
            rgba(17, 16, 15, 0.14) 10%,
            transparent 18%
        ),

        linear-gradient(
            to right,
            rgba(17, 16, 15, 0.72) 0%,
            rgba(17, 16, 15, 0.38) 4%,
            rgba(17, 16, 15, 0.12) 10%,
            transparent 18%
        ),

        linear-gradient(
            to left,
            rgba(17, 16, 15, 0.72) 0%,
            rgba(17, 16, 15, 0.38) 4%,
            rgba(17, 16, 15, 0.12) 10%,
            transparent 18%
        );
}


/* =========================================================
   PHONE
========================================================= */

@media (max-width: 700px) {

    .homepage-intro {
        padding-top: 0;
        padding-bottom: 45px;
    }

    .homepage-intro-inner {
        max-width: none;
    }

    .homepage-intro h1 {
        margin-bottom: 12px;

        /*
           Deliberately smaller than the fixed
           masthead for a quieter introduction.
        */

        font-size: 1.9rem;
        line-height: 1.1;
    }

    .homepage-intro p {
        max-width: none;

        font-size: 0.88rem;
        line-height: 1.85;

        margin-bottom: 20px;
    }

    .editions-archive-link {
        margin-top: 45px;
    }

}
