@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --ink: #17191b;
    --muted: #65676a;
    --gold: #b8893d;
    --gold-dark: #946d2d;
    --cream: #f7f1e8;
    --line: #e6dfd3;
    --white: #ffffff;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "DM Sans", Arial, sans-serif;
}

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

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

.site-header {
    width: min(var(--max), calc(100% - 48px));
    height: 114px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
}

.logo {
    display: flex;
    align-items: center;
    height: 96px;
    overflow: visible;
}

.logo img {
    width: 275px;
    max-height: 150px;
    height: auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply;
}

nav {
    display: flex;
    align-items: center;
    gap: 45px;
    font-size: 15px;
    font-weight: 600;
}

nav a {
    position: relative;
    padding: 17px 0;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .25s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

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

.hero {
    min-height: 425px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(250, 247, 241, .98) 0%,
            rgba(250, 247, 241, .95) 34%,
            rgba(250, 247, 241, .60) 58%,
            rgba(250, 247, 241, .10) 80%
        ),
        url("img/hero-products.png") right center / cover no-repeat;
}

.hero-content {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0 60px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .10em;
}

.hero h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(58px, 6.5vw, 78px);
    line-height: .96;
    letter-spacing: -.045em;
}

.hero-copy {
    margin: 20px 0 0;
    color: #303438;
    font-size: 17px;
    line-height: 1.65;
}

/* =========================================================
   CATEGORIES
   ========================================================= */

.categories {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0;
}

.section-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 38px;
    margin-bottom: 21px;
}

.section-title > span {
    height: 1px;
    background: var(--line);
}

.section-title h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space: nowrap;
}

.category-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 20px;
}

.category-card {
    min-height: 187px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f8f3eb;
}

.category-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform .35s ease;
}

.beauty .category-image {
    background-image: url("img/beauty-category.png");
}

.music .category-image {
    background-image: url("img/music-category.png");
}

.category-card.beauty:hover .category-image,
.category-card.music:hover .category-image {
    transform: scale(1.02);
}

/* =========================================================
   MORE CATEGORIES
   ========================================================= */

.more {
    display: flex;
    align-items: center;
    gap: 27px;
    padding: 30px 36px;
    background: linear-gradient(
        135deg,
        #fbf8f2 0%,
        #f6efe4 100%
    );
}

.more-icon {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.more-copy h3 {
    margin: 0 0 14px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 19px;
    line-height: 1.15;
    font-weight: 600;
}

.more-copy span {
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   BENEFITS
   ========================================================= */

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 27px max(24px, calc((100% - var(--max)) / 2));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fbfaf7;
}

.benefit {
    min-height: 67px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 4px 42px;
    border-right: 1px solid var(--line);
}

.benefit:first-child {
    padding-left: 0;
}

.benefit:last-child {
    padding-right: 0;
    border-right: 0;
}

.benefit h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
}

.benefit p {
    margin: 0;
    color: #44474a;
    font-size: 12px;
    line-height: 1.55;
}

.benefit-icon {
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   ABOUT
   ========================================================= */

.about {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    padding: 52px 0 58px;
    text-align: center;
}

.about .eyebrow {
    margin-bottom: 11px;
}

.about h2 {
    margin: 0 0 15px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 39px;
    line-height: 1.03;
    letter-spacing: -.035em;
}

.about p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

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

footer {
    background: var(--cream);
    border-top: 1px solid var(--line);
    padding: 19px 24px 22px;
    text-align: center;
    color: #343638;
    font-size: 12px;
}

footer strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 14px;
}

footer span {
    display: block;
}

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

@media (max-width: 900px) {

    .site-header {
        height: 92px;
    }

    .logo img {
        width: 220px;
        max-height: 80px;
    }

    nav {
        gap: 22px;
        font-size: 13px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .more {
        grid-column: 1 / -1;
    }

    .benefits {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .benefit,
    .benefit:first-child,
    .benefit:last-child {
        padding: 17px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .benefit:last-child {
        border-bottom: 0;
    }
}

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

@media (max-width: 600px) {

    .site-header {
        width: calc(100% - 32px);
        height: 78px;
    }

    .logo {
        height: 68px;
    }

    .logo img {
        width: 165px;
        max-height: 65px;
    }

    nav {
        gap: 13px;
        font-size: 11px;
    }

    nav a:nth-child(4) {
        display: none;
    }

    .hero {
        min-height: 510px;
        background:
            linear-gradient(
                90deg,
                rgba(250, 247, 241, .98) 0%,
                rgba(250, 247, 241, .90) 57%,
                rgba(250, 247, 241, .35) 100%
            ),
            url("img/hero-products.png") 65% center / cover no-repeat;
    }

    .hero-content,
    .categories,
    .about {
        width: calc(100% - 32px);
    }

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

    .hero h1 {
        font-size: 55px;
    }

    .hero-copy {
        font-size: 15px;
    }

    .categories {
        padding: 30px 0 34px;
    }

    .section-title {
        gap: 12px;
    }

    .section-title h2 {
        font-size: 18px;
        letter-spacing: .04em;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .more {
        grid-column: auto;
        min-height: 185px;
    }

    .category-card {
        min-height: 185px;
    }

    .about {
        padding: 43px 0 48px;
    }

    .about h2 {
        font-size: 36px;
    }

    .benefit {
        padding: 16px 0 !important;
    }
}
