@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");


/* ==========================================================
   DESIGN TOKENS
   ========================================================== */

:root {
    --ivory: #FAF9F6;
    --silk: #F4F3F0;
    --white: #FFFFFF;

    --navy: #0B192C;
    --navy-soft: #16263B;

    --gold: #C5A880;
    --gold-light: #D9C5A8;

    --text: #0B192C;
    --text-soft: #586576;

    --line: rgba(11, 25, 44, 0.12);
    --line-light: rgba(255, 255, 255, 0.14);

    --container: 1240px;

    --radius: 16px;
    --radius-large: 24px;

    --shadow-small:
        0 6px 20px rgba(11, 25, 44, 0.06);

    --shadow-medium:
        0 18px 45px rgba(11, 25, 44, 0.09),
        0 4px 12px rgba(11, 25, 44, 0.04);

    --shadow-large:
        0 28px 70px rgba(11, 25, 44, 0.12),
        0 6px 20px rgba(11, 25, 44, 0.05);

    --ease:
        cubic-bezier(0.16, 1, 0.3, 1);
}


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

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;

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

    font-family:
        "Plus Jakarta Sans",
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;

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

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

a {
    color: inherit;
}

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

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.025em;
}

em {
    color: var(--gold);
    font-style: normal;
}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);

    white-space: nowrap;

    border: 0;
}


/* ==========================================================
   LAYOUT
   ========================================================== */

.container {
    width: 100%;
    max-width: var(--container);

    margin-inline: auto;

    padding-inline:
        clamp(20px, 5vw, 64px);
}


/* ==========================================================
   CSS-ONLY MENU STATE
   ========================================================== */

.menu-toggle {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);

    white-space: nowrap;

    border: 0;
}


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

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

.navigation {
    position: sticky;
    top: 0;

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

    background:
        rgba(250, 249, 246, 0.86);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navigation__inner {
    min-height: 76px;

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

    gap: 24px;
}


/* ==========================================================
   BRAND
   ========================================================== */

.brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    color: var(--navy);

    text-decoration: none;
    white-space: nowrap;
}

.brand__mark {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid var(--gold);
    border-radius: 50%;

    color: var(--gold);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 1.2rem;
}

.brand__name {
    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 2rem;
    font-weight: 600;
}


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

.navigation__menu {
    display: flex;
    align-items: center;

    gap:
        clamp(22px, 3vw, 44px);
}

.navigation__menu a {
    position: relative;

    padding-block: 8px;

    color: var(--navy);

    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 600;

    letter-spacing: 0.06em;

    transition:
        color 0.3s ease;
}

.navigation__menu a::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 1px;

    background: var(--gold);

    transform:
        scaleX(0);

    transform-origin: right;

    transition:
        transform 0.4s var(--ease);
}

.navigation__menu a:hover {
    color: var(--gold);
}

.navigation__menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


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

.menu-button {
    display: none;

    width: 48px;
    height: 48px;

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

    flex-direction: column;

    gap: 5px;

    border: 1px solid var(--line);
    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.65);

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

.menu-button > span:not(.visually-hidden) {
    display: block;

    width: 22px;
    height: 1.5px;

    background: var(--navy);

    transform-origin: center;

    transition:
        transform 0.4s var(--ease),
        opacity 0.25s ease;
}


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

.hero {
    position: relative;

    min-height:
        calc(100vh - 76px);

    display: flex;
    align-items: center;

    padding-block:
        clamp(90px, 13vw, 170px);

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    top: -280px;
    right: -280px;

    width: 600px;
    height: 600px;

    border:
        1px solid
        rgba(197, 168, 128, 0.16);

    border-radius: 50%;

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;

    right: 13%;
    bottom: 7%;

    width: 180px;
    height: 180px;

    border:
        1px solid
        rgba(197, 168, 128, 0.08);

    border-radius: 50%;

    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;

    max-width: 1080px;

    animation:
        fade-in-up 0.9s var(--ease) both;
}

.eyebrow {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 22px;

    color: var(--gold);

    font-size: 0.75rem;
    font-weight: 700;

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

.eyebrow::before {
    content: "";

    width: 60px;
    height: 1px;

    flex: 0 0 auto;

    background: var(--gold);
}

.hero h1 {
    max-width: 1000px;

    font-size:
        clamp(3.2rem, 10vw, 7.5rem);
}

.hero__intro {
    max-width: 760px;

    margin-top: 34px;

    color: var(--text-soft);

    font-size:
        clamp(1rem, 1.8vw, 1.2rem);

    line-height: 1.9;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 42px;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.button {
    min-height: 52px;

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

    padding-inline: 28px;

    border-radius: 999px;

    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 700;

    transition:
        transform 0.4s var(--ease),
        background 0.4s var(--ease),
        color 0.4s var(--ease),
        border-color 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
}

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

.button--primary {
    background: var(--navy);
    color: var(--white);

    box-shadow: var(--shadow-small);
}

.button--primary:hover {
    background: var(--navy-soft);

    box-shadow: var(--shadow-medium);
}

.button--quiet {
    border: 1px solid var(--line);

    background:
        rgba(255, 255, 255, 0.45);

    color: var(--navy);
}

.button--quiet:hover {
    border-color: var(--gold);
    background: var(--white);
}


/* ==========================================================
   SECTIONS
   ========================================================== */

.section {
    padding-block:
        clamp(80px, 10vw, 150px);
}

.section--soft {
    background: var(--silk);
}

.section-header {
    max-width: 820px;

    margin-bottom:
        clamp(42px, 6vw, 76px);
}

.section-header h2 {
    font-size:
        clamp(2.7rem, 6vw, 5.2rem);
}

.section-header > p:last-child {
    max-width: 720px;

    margin-top: 26px;

    color: var(--text-soft);

    font-size:
        clamp(1rem, 1.7vw, 1.15rem);
}


/* ==========================================================
   BOOK GRID
   ========================================================== */

.books-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        clamp(18px, 2.5vw, 32px);
}

.book-card {
    min-width: 0;

    animation:
        fade-in-up 0.7s var(--ease) both;

    transition:
        transform 0.45s var(--ease);
}

.book-card:nth-child(2) {
    animation-delay: 0.08s;
}

.book-card:nth-child(3) {
    animation-delay: 0.16s;
}

.book-card:nth-child(4) {
    animation-delay: 0.24s;
}

.book-card:hover {
    transform: translateY(-7px);
}

.book-card__cover {
    display: block;

    aspect-ratio: 2 / 3;

    margin-bottom: 20px;

    overflow: hidden;

    border-radius: var(--radius);

    background: var(--white);

    box-shadow: var(--shadow-medium);

    text-decoration: none;
}

.book-card__cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s var(--ease);
}

.book-card:hover .book-card__cover img {
    transform: scale(1.035);
}

.book-card__meta {
    margin-bottom: 8px;

    color: var(--gold);

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.15em;
}

.book-card h3 {
    font-size:
        clamp(1.7rem, 3vw, 2.25rem);
}

.book-card__author {
    margin-top: 4px;

    color: var(--text-soft);

    font-size: 0.88rem;
}

.text-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 18px;

    color: var(--navy);

    text-decoration: none;

    font-size: 0.8rem;
    font-weight: 700;
}

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

    transition:
        transform 0.35s var(--ease);
}

.text-link:hover span {
    transform:
        translate(3px, -3px);
}

.section-action {
    margin-top: 48px;
}


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

.about {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(220px, 0.4fr);

    align-items: center;

    gap:
        clamp(50px, 9vw, 150px);
}

.about__content {
    max-width: 760px;
}

.about__content h2 {
    font-size:
        clamp(2.7rem, 6vw, 5.2rem);
}

.about__content > p:not(.eyebrow) {
    max-width: 680px;

    margin-top: 18px;

    color: var(--text-soft);
}

.about__aside {
    padding:
        clamp(32px, 5vw, 56px);

    border: 1px solid var(--line);
    border-radius: var(--radius-large);

    background: var(--silk);

    box-shadow: var(--shadow-small);

    animation:
        gentle-float 6s ease-in-out infinite;
}

.about__aside strong {
    display: block;

    color: var(--navy);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(4rem, 8vw, 7rem);

    font-weight: 500;

    line-height: 0.8;
}

.about__aside p {
    margin-top: 26px;

    color: var(--gold);

    font-size: 0.72rem;
    font-weight: 700;

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


/* ==========================================================
   UPCOMING TITLES
   ========================================================== */

.upcoming-list {
    border-top: 1px solid var(--line);
}

.upcoming-item {
    min-height: 110px;

    display: grid;

    grid-template-columns:
        70px
        minmax(0, 1fr)
        minmax(130px, 0.4fr)
        40px;

    align-items: center;

    gap: 20px;

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

    text-decoration: none;

    transition:
        padding 0.45s var(--ease),
        background 0.35s ease;
}

.upcoming-item:hover {
    padding-inline: 18px;

    background:
        rgba(255, 255, 255, 0.55);
}

.upcoming-item__number {
    color: var(--gold);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.upcoming-item__title {
    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(1.5rem, 3vw, 2.25rem);
}

.upcoming-item__author {
    color: var(--text-soft);

    font-size: 0.82rem;
}

.upcoming-item__arrow {
    color: var(--gold);

    transition:
        transform 0.35s var(--ease);
}

.upcoming-item:hover .upcoming-item__arrow {
    transform:
        translate(4px, -4px);
}


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

.site-footer {
    padding-top:
        clamp(70px, 9vw, 120px);

    padding-bottom: 28px;

    background: var(--navy);

    color: var(--gold);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        repeat(3, 1fr);

    gap:
        clamp(36px, 6vw, 90px);

    padding-bottom: 80px;
}

.footer-brand__name {
    color: var(--white);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 2.5rem;
    font-weight: 600;
}

.footer-brand__description {
    max-width: 340px;

    margin-top: 18px;

    color:
        rgba(255, 255, 255, 0.62);

    font-size: 0.88rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 10px;
}

.footer-column h2 {
    margin-bottom: 12px;

    color: var(--white);

    font-family:
        "Plus Jakarta Sans",
        Arial,
        sans-serif;

    font-size: 0.72rem;
    font-weight: 700;

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

.footer-column a,
.footer-column span {
    color:
        rgba(255, 255, 255, 0.62);

    text-decoration: none;

    font-size: 0.82rem;

    transition:
        color 0.3s ease,
        transform 0.3s var(--ease);
}

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

    transform:
        translateX(3px);
}


/* ==========================================================
   SOCIAL MEDIA
   ========================================================== */

.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 10px;

    margin-top: 28px;
}

.social-link {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: grid;
    place-items: center;

    border: 1px solid
        rgba(197, 168, 128, 0.4);

    border-radius: 50%;

    color: var(--gold);

    text-decoration: none;

    transition:
        transform 0.4s var(--ease),
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.social-link svg {
    display: block;

    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-link .icon-fill {
    fill: currentColor;
    stroke: none;
}

.social-link:hover {
    transform:
        translateY(-4px);

    background: var(--gold);

    border-color: var(--gold);

    color: var(--navy);
}


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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding-top: 26px;

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

    color:
        rgba(255, 255, 255, 0.42);

    font-size: 0.7rem;
}

.footer-bottom__links {
    display: flex;
    flex-wrap: wrap;

    gap: 20px;
}

.footer-bottom a {
    color: inherit;

    text-decoration: none;

    transition:
        color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--gold);
}


/* ==========================================================
   ANIMATIONS
   ========================================================== */

@keyframes fade-in-up {

    from {
        opacity: 0;

        transform:
            translateY(28px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

@keyframes gentle-float {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-8px);
    }
}


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

@media (max-width: 1024px) {

    .books-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


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

@media (max-width: 768px) {

    .navigation__inner {
        min-height: 70px;
    }

    .menu-button {
        display: flex;
    }


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

    .navigation__menu {
        position: absolute;

        top:
            calc(100% + 10px);

        right: 14px;
        left: 14px;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 4px;

        padding: 10px;

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

        border-radius: 18px;

        background:
            rgba(250, 249, 246, 0.97);

        box-shadow: var(--shadow-large);

        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform:
            translateY(-14px)
            scale(0.98);

        transform-origin: top center;

        transition:
            opacity 0.35s ease,
            visibility 0.35s ease,
            transform 0.4s var(--ease);
    }

    .navigation__menu a {
        min-height: 52px;

        display: flex;
        align-items: center;

        padding-inline: 18px;

        border-radius: 12px;

        font-size: 0.9rem;
    }

    .navigation__menu a:hover {
        padding-left: 24px;

        background:
            rgba(197, 168, 128, 0.12);
    }

    .navigation__menu a::after {
        display: none;
    }


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

    .menu-toggle:checked
        ~ .site-header
        .navigation__menu {

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform:
            translateY(0)
            scale(1);
    }


    /* ----------------------------------------------
       HAMBURGER → X
       ---------------------------------------------- */

    .menu-toggle:checked
        ~ .site-header
        .menu-button
        > span:nth-child(2) {

        transform:
            translateY(6.5px)
            rotate(45deg);
    }

    .menu-toggle:checked
        ~ .site-header
        .menu-button
        > span:nth-child(3) {

        opacity: 0;

        transform:
            scaleX(0);
    }

    .menu-toggle:checked
        ~ .site-header
        .menu-button
        > span:nth-child(4) {

        transform:
            translateY(-6.5px)
            rotate(-45deg);
    }


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

    .hero {
        min-height: auto;

        padding-block:
            82px 90px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }


    /* ----------------------------------------------
       BOOKS
       ---------------------------------------------- */

    .books-grid {
        grid-template-columns: 1fr;

        gap: 42px;
    }

    .book-card {
        max-width: 520px;
    }


    /* ----------------------------------------------
       ABOUT
       ---------------------------------------------- */

    .about {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    /* ----------------------------------------------
       UPCOMING
       ---------------------------------------------- */

    .upcoming-item {
        min-height: auto;

        grid-template-columns:
            42px
            minmax(0, 1fr)
            30px;

        gap: 12px;

        padding-block: 24px;
    }

    .upcoming-item__author {
        grid-column: 2;
    }

    .upcoming-item__arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }


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

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

        gap: 48px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}


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

@media (max-width: 480px) {

    .container {
        padding-inline: 18px;
    }

    .navigation__inner {
        padding-inline: 18px;
    }

    .brand__mark {
        width: 36px;
        height: 36px;
    }

    .brand__name {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 68px;
    }

    .eyebrow {
        gap: 10px;
    }

    .eyebrow::before {
        width: 42px;
    }

    .section {
        padding-block: 76px;
    }

    .about__aside {
        padding: 32px;
    }

    .footer-bottom__links {
        gap: 14px;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
               } 
