* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: white;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
}


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

.site-header {
    position: sticky;
    top: 0;

    z-index: 100;

    height: 76px;

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

    border-bottom: 1px solid #ddd;

    backdrop-filter: blur(10px);
}

.header-inner {
    height: 100%;

    max-width: 1200px;

    margin: auto;

    padding: 0 24px;

    display: flex;

    align-items: center;

    gap: 15px;
}

.logo {
    width: 45px;
    height: 45px;

    object-fit: contain;

    border-radius: 15%;
}

.site-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
}


/* =========================
   INTRO
   ========================= */

.intro {
    max-width: 1200px;

    margin: auto;

    padding: 90px 24px 50px;
}

.intro h1 {
    margin: 0;

    font-size: clamp(42px, 7vw, 82px);
}

.intro p {
    color: #666;

    font-size: 20px;
}


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

.section {
    max-width: 1200px;

    margin: auto;

    padding: 30px 24px 70px;
}

.section h2 {
    font-size: 34px;

    margin-bottom: 25px;
}


/* =========================
   ARTICLES
   ========================= */

.articles {
    display: grid;

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

    gap: 20px;
}

.article {
    border: 1px solid #ddd;

    border-radius: 18px;

    overflow: hidden;

    background: white;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.article:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.article img {
    width: 100%;

    display: block;

    aspect-ratio: 16 / 10;

    object-fit: cover;
}

.article-number {
    padding: 14px;

    font-weight: bold;
}

.article-description {
    padding: 0 14px 16px;

    color: #666;

    line-height: 1.5;

    font-size: 15px;
}

.article-description.loading {
    color: #999;
}

.article-description.error {
    color: #999;
}


/* =========================
   BOOKS
   ========================= */

.books {
    display: grid;

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

    gap: 25px;
}

.book {
    position: relative;

    border: 1px solid #ddd;

    border-radius: 22px;

    padding: 15px;

    background: #fafafa;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.book:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.book img {
    width: 100%;

    aspect-ratio: 2 / 3;

    object-fit: cover;

    border-radius: 14px;

    display: block;
}

.book h3 {
    margin: 15px 5px 12px;

    font-size: 22px;
}

.book-description {
    margin: 0 5px 15px;

    color: #666;

    line-height: 1.5;

    font-size: 15px;
}

.book-description.loading {
    color: #999;
}

.book-description.error {
    color: #999;
}


/* =========================
   COMING SOON BADGE
   ========================= */

.coming-soon {
    position: absolute;

    top: 28px;
    left: 28px;

    padding: 11px 16px;

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

    color: black;

    border-radius: 50%;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 0.08em;
}


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

.black-button,
.order-button {
    width: 100%;

    padding: 13px;

    border: 0;

    border-radius: 12px;

    background: #111;

    color: white;

    font-weight: bold;

    cursor: pointer;
}

.show-more {
    display: block;

    margin: 28px auto 0;

    padding: 13px 30px;

    background: white;

    color: #111;

    border: 1px solid #111;

    border-radius: 999px;

    font-weight: bold;

    cursor: pointer;
}

.show-more:hover {
    background: #111;

    color: white;
}


/* =========================
   REMINDER MODAL
   ========================= */

.modal {
    position: fixed;

    inset: 0;

    z-index: 200;

    background: rgba(0, 0, 0, 0.55);

    display: grid;

    place-items: center;
}

.hidden {
    display: none;
}

.modal-box {
    width: min(430px, calc(100% - 30px));

    background: white;

    border-radius: 24px;

    padding: 30px;

    position: relative;
}

.close-button {
    position: absolute;

    top: 10px;
    right: 15px;

    border: 0;

    background: transparent;

    font-size: 30px;

    cursor: pointer;
}

.modal-box input {
    width: 100%;

    padding: 13px;

    margin: 10px 0 14px;

    border: 1px solid #bbb;

    border-radius: 10px;

    font-size: 16px;
}


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

@media (max-width: 750px) {

    .articles,
    .books {
        grid-template-columns: 1fr;
    }

    .intro,
    .section {
        padding-left: 16px;
        padding-right: 16px;
    }

}