* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8f7f1;
    color: #304638;
    font-family: 'Poppins', sans-serif;
}

/* HEADER */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    border-bottom: 1px solid #e9e9df;
}

.logo {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 2px;
}

.logo span {
    color: #91a58e;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #58685b;
    font-size: 12px;
}

nav a:hover {
    color: #a18d64;
}

/* HERO */

.hero {
    min-height: 580px;
    padding: 100px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.subtitle {
    font-size: 10px;
    letter-spacing: 3px;
    color: #91a58e;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 57px;
    line-height: 1.3;
    font-weight: 500;
}

i {
    color: #91a58e;
    font-weight: 400;
}

.description {
    max-width: 430px;
    color: #81877d;
    font-size: 13px;
    line-height: 2;
    margin: 20px 0 30px;
}

.main-btn {
    display: inline-block;
    background: #304f3b;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: .3s;
}

.main-btn:hover {
    background: #52735b;
    transform: translateY(-3px);
}

.hero-quote {
    background: #e9ece3;
    width: 320px;
    min-height: 270px;
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 5px;
    transform: rotate(2deg);
}

.ornament {
    font-size: 30px;
    color: #9aaa8e;
    margin-bottom: 20px;
}

.hero-quote p {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    line-height: 1.7;
}

.hero-quote span {
    font-size: 10px;
    color: #899184;
    margin-top: 20px;
}

/* JELAJAHI */

.explore {
    background: #eeefe8;
    padding: 90px 8%;
    text-align: center;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 500;
}

.section-desc {
    font-size: 12px;
    color: #899085;
    margin-top: 15px;
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0;
}

.category {
    border: 1px solid #cdd5ca;
    background: transparent;
    color: #596b5c;
    padding: 11px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 11px;
    transition: .3s;
}

.category:hover,
.category.active {
    background: #304f3b;
    color: white;
    border-color: #304f3b;
}

/* KARTU KATA-KATA */

.quote-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}

.quote-card {
    background: #faf9f4;
    padding: 30px;
    min-height: 205px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .3s;
    border: 1px solid #e6e8df;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px #304f3b12;
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: 35px;
    color: #9aaa8e;
}

.quote-card p {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.7;
    margin: 12px 0 25px;
}

.quote-card small {
    color: #91a58e;
    font-size: 9px;
    letter-spacing: 2px;
}

/* RUANG MENULIS */

.writing-section {
    padding: 100px 10%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px;
}

.writing-heading h2 {
    margin-bottom: 20px;
}

.writing-heading > p:last-child {
    color: #899085;
    font-size: 13px;
    line-height: 2;
}

.writing-box {
    background: #eeefe8;
    padding: 35px;
    border-radius: 8px;
}

.writing-box label {
    display: block;
    font-size: 11px;
    margin: 18px 0 9px;
    color: #526455;
}

.writing-box input,
.writing-box select,
.writing-box textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d9dfd5;
    background: #faf9f4;
    border-radius: 5px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #304638;
}

.writing-box input:focus,
.writing-box select:focus,
.writing-box textarea:focus {
    border-color: #91a58e;
}

.writing-box textarea {
    height: 150px;
    resize: vertical;
}

.word-count {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #939a8e;
    margin: 10px 0 20px;
}

.writing-box .main-btn {
    width: 100%;
}

/* KOLEKSI */

.collection {
    padding: 90px 8%;
    background: #eeefe8;
    text-align: center;
}

.my-collection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    text-align: left;
}

.my-card {
    background: #faf9f4;
    padding: 25px;
    border: 1px solid #e4e7dc;
    border-radius: 5px;
}

.my-card p {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    line-height: 1.8;
    margin: 20px 0;
    white-space: pre-wrap;
}

.my-card small {
    color: #91a58e;
    font-size: 10px;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-actions button {
    border: 1px solid #d0d8ce;
    background: transparent;
    padding: 8px 13px;
    border-radius: 20px;
    font-size: 10px;
    color: #526455;
    cursor: pointer;
}

.card-actions button:hover {
    background: #e9ece3;
}

.empty {
    grid-column: 1 / -1;
    color: #899085;
    padding: 40px;
    font-size: 12px;
}

/* PENUTUP */

.closing {
    background: #304f3b;
    color: white;
    padding: 75px 20px;
    text-align: center;
}

.closing h2 {
    font-size: 35px;
    line-height: 1.5;
}

.closing p {
    font-size: 11px;
    color: #d2dacf;
    margin-top: 20px;
}

/* FOOTER */

footer {
    padding: 30px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: #899085;
    font-size: 10px;
}

/* RESPONSIVE HP */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 10px;
    }

    .hero {
        flex-direction: column;
        padding: 65px 25px;
        text-align: center;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-quote {
        width: 100%;
    }

    .explore {
        padding: 70px 20px;
    }

    h2 {
        font-size: 32px;
    }

    .quote-container {
        grid-template-columns: 1fr;
    }

    .writing-section {
        grid-template-columns: 1fr;
        padding: 70px 20px;
        gap: 30px;
    }

    .writing-box {
        padding: 22px;
    }

    .my-collection {
        grid-template-columns: 1fr;
    }

    .collection {
        padding: 70px 20px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}