:root {
    --primary: #153f59;
    --primary-dark: #0b2e43;
    --green: #23766f;
    --gold: #c89a34;
    --red: #a8564c;
    --purple: #65517c;
    --teal: #2d7180;
    --text: #202d34;
    --muted: #6f7b82;
    --line: #e1e7ea;
    --soft: #f6f8f9;
    --white: #ffffff;
    --hero-start: #0d3b52;
    --hero-middle: #12566a;
    --hero-end: #1d6d68;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

body,
button,
input {
    font: inherit;
}

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

button,
input {
    border: 0;
}

img {
    max-width: 100%;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-logo {
    width: 42px;
    height: 42px;
}

.brand > span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand strong {
    color: var(--primary-dark);
    font-size: 1.02rem;
}

.brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.69rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 27px;
}

.main-nav a {
    color: #48565e;
    font-size: 0.87rem;
    font-weight: 650;
}

.main-nav a:hover {
    color: var(--primary);
}

.login-link {
    padding: 9px 16px;
    color: var(--primary) !important;
    border: 1px solid #cfdcdf;
    border-radius: 8px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--primary-dark);
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.10), transparent 27%),
        linear-gradient(
            135deg,
            var(--hero-start) 0%,
            var(--hero-middle) 55%,
            var(--hero-end) 100%
        );
}

.hero-grid {
    position: relative;
    z-index: 1;
    min-height: 500px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 70px;
    padding-block: 72px;
}

.overline,
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.overline {
    color: #b9e9e1;
}

.section-label {
    color: var(--green);
}

.hero h1 {
    max-width: 720px;
    margin: 14px 0 18px;
    color: var(--white);
    font-size: clamp(2.6rem, 5vw, 4.25rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero-copy > p {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.8;
}

.search-form {
    width: min(680px, 100%);
    min-height: 60px;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 7px 7px 7px 17px;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 10px;
    box-shadow: 0 16px 35px rgba(4, 29, 41, 0.20);
}

.search-form:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(35, 118, 111, 0.08);
}

.search-form svg {
    width: 21px;
    fill: none;
    stroke: #78868d;
    stroke-linecap: round;
    stroke-width: 2;
}

.search-form input {
    min-width: 0;
    height: 44px;
    color: var(--text);
    outline: none;
    background: transparent;
}

.search-form button {
    height: 46px;
    padding-inline: 23px;
    color: var(--white);
    cursor: pointer;
    background: var(--primary);
    border-radius: 7px;
    font-weight: 750;
}

.featured-books {
    min-height: 330px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 13px;
    padding-top: 25px;
}

.featured-cover {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: var(--white);
    border-radius: 4px 10px 10px 4px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow:
        -6px 8px 0 rgba(4, 28, 40, 0.14),
        0 18px 35px rgba(3, 25, 36, 0.24);
}

.featured-cover::before {
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 130px;
    height: 130px;
    content: "";
    border: 18px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.featured-cover::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9px;
    width: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.22);
}

.featured-cover-main {
    width: 190px;
    height: 285px;
    padding: 24px 22px 22px 28px;
}

.featured-cover-small {
    width: 128px;
    height: 225px;
    padding: 20px 15px 18px 21px;
}

.featured-cover span,
.featured-cover small {
    position: relative;
    z-index: 1;
    font-size: 0.55rem;
    font-weight: 750;
    letter-spacing: 0.11em;
}

.featured-cover strong {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.featured-cover-main strong {
    font-size: 1.35rem;
}

.theme-blue {
    background: linear-gradient(145deg, #1c5677, #102f47);
}

.theme-green {
    background: linear-gradient(145deg, #39847d, #1f5b56);
}

.theme-gold {
    background: linear-gradient(145deg, #d0a647, #9b6f1f);
}

.theme-merah {
    background: linear-gradient(145deg, #b9675d, #82413a);
}

.theme-ungu {
    background: linear-gradient(145deg, #75608d, #4e3c65);
}

.theme-teal {
    background: linear-gradient(145deg, #3d8090, #245964);
}

.theme-biru {
    background: linear-gradient(145deg, #1c5677, #102f47);
}

.theme-hijau {
    background: linear-gradient(145deg, #39847d, #1f5b56);
}

.theme-emas {
    background: linear-gradient(145deg, #d0a647, #9b6f1f);
}

/* Summary */

.summary {
    position: relative;
    z-index: 5;
    margin-top: -28px;
    background: transparent;
}

.summary-grid {
    min-height: 92px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(21, 63, 89, 0.10);
}

.summary-item {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 9px;
    padding: 22px 16px;
}

.summary-item:not(:last-child) {
    border-right: 1px solid var(--line);
}

.summary-item strong {
    color: var(--primary);
    font-size: 1.55rem;
    line-height: 1;
}

.summary-item span {
    color: var(--muted);
    font-size: 0.79rem;
}

/* Filter */

.collection-section {
    padding-top: 52px;
    background: var(--white);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 17px;
    overflow-x: auto;
    padding-bottom: 7px;
}

.filter-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.filter-list {
    display: flex;
    align-items: center;
    gap: 7px;
}

.filter-list a {
    padding: 7px 12px;
    color: #596970;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.filter-list a:hover,
.filter-list a.active {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.search-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 22px;
    padding: 14px 16px;
    background: var(--soft);
    border-left: 3px solid var(--green);
}

.search-info > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.search-info strong {
    color: var(--primary-dark);
    font-size: 0.82rem;
}

.search-info span {
    color: var(--muted);
    font-size: 0.76rem;
}

.search-info a {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
}

/* Sections */

.section {
    padding-block: 78px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.section-header h2,
.about h2 {
    margin: 7px 0 0;
    color: var(--primary-dark);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.result-count {
    color: var(--muted);
    font-size: 0.76rem;
}

/* Books */

.book-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.book-card {
    min-width: 0;
}

.book-cover {
    position: relative;
    aspect-ratio: 0.69;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 18px 15px 16px 21px;
    color: var(--white);
    border-radius: 3px 8px 8px 3px;
    box-shadow:
        -5px 7px 0 rgba(18, 47, 63, 0.06),
        0 12px 24px rgba(24, 49, 63, 0.09);
    transition: transform 170ms ease;
}

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

.book-cover::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    width: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.23);
}

.book-cover::after {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 110px;
    height: 110px;
    content: "";
    border: 15px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.book-cover span,
.book-cover strong,
.book-cover small {
    position: relative;
    z-index: 1;
}

.book-cover span,
.book-cover small {
    font-size: 0.5rem;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.book-cover strong {
    font-size: 0.92rem;
    line-height: 1.25;
}

.book-info {
    padding-top: 15px;
}

.tag {
    color: var(--green);
    font-size: 0.66rem;
    font-weight: 800;
}

.book-info h3 {
    min-height: 48px;
    margin: 6px 0 5px;
    color: var(--primary-dark);
    font-size: 0.9rem;
    line-height: 1.42;
}

.book-info p {
    min-height: 38px;
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.book-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.book-meta span {
    color: var(--muted);
    font-size: 0.68rem;
}

.book-meta button {
    padding: 0;
    color: #8d989e;
    cursor: not-allowed;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 750;
}

/* Reports */

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

.report-list {
    background: var(--white);
    border: 1px solid var(--line);
}

.report-card {
    display: grid;
    grid-template-columns: 67px minmax(0, 1fr) auto;
    align-items: center;
    gap: 21px;
    padding: 23px 25px;
}

.report-card:not(:last-child) {
    border-bottom: 1px solid var(--line);
}

.file-mark {
    width: 56px;
    height: 67px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--primary);
    background: #edf3f5;
    border: 1px solid #d5e0e4;
    border-radius: 5px;
}

.file-mark strong {
    font-size: 0.82rem;
}

.file-mark span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.6rem;
}

.report-category {
    color: var(--green);
    font-size: 0.66rem;
    font-weight: 800;
}

.report-content h3 {
    margin: 5px 0 4px;
    color: var(--primary-dark);
    font-size: 1rem;
    line-height: 1.4;
}

.report-content > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    color: #87939a;
    font-size: 0.67rem;
}

.detail-button {
    min-width: 94px;
    padding: 9px 12px;
    color: #839097;
    cursor: not-allowed;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 0.7rem;
    font-weight: 750;
}

/* About */

.about {
    padding-block: 70px;
    border-top: 1px solid var(--line);
}

.about-inner {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    align-items: start;
    gap: 75px;
}

.about p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.85;
}

/* Empty state */

.empty-state {
    padding: 42px 25px;
    text-align: center;
    color: var(--muted);
    background: var(--soft);
    border: 1px dashed #ccd7db;
}

.empty-state h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1rem;
}

.empty-state p {
    margin: 7px 0 0;
    font-size: 0.8rem;
}

/* Footer */

.site-footer {
    color: #c9d3d8;
    background: var(--primary-dark);
}

.footer-inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-brand img {
    width: 38px;
    height: 38px;
}

.footer-brand > div {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    color: var(--white);
    font-size: 0.88rem;
}

.footer-brand span,
.site-footer p {
    margin: 0;
    color: #91a6b1;
    font-size: 0.67rem;
}

/* Responsive */

@media (max-width: 1050px) {
    .book-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-grid {
        gap: 35px;
    }

    .featured-cover-small {
        display: none;
    }
}

@media (max-width: 800px) {
    .brand small {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 9px;
        background: var(--white);
        border: 1px solid var(--line);
        box-shadow: 0 15px 35px rgba(23, 51, 65, 0.1);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 11px 12px;
    }

    .login-link {
        margin-top: 5px;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-block: 58px 76px;
    }

    .summary {
        margin-top: -22px;
    }

    .hero-copy {
        max-width: 740px;
    }

    .featured-books {
        min-height: 290px;
        padding-top: 5px;
    }

    .featured-cover-small {
        display: flex;
    }

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

    .summary-item:nth-child(2) {
        border-right: 0;
    }

    .summary-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .book-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 580px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-copy > p {
        font-size: 0.9rem;
    }

    .search-form {
        grid-template-columns: 21px 1fr;
        padding: 10px 11px;
    }

    .search-form button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .featured-books {
        min-height: 260px;
        gap: 8px;
    }

    .featured-cover-main {
        width: 156px;
        height: 238px;
    }

    .featured-cover-small {
        width: 102px;
        height: 185px;
    }

    .featured-cover-main strong {
        font-size: 1.05rem;
    }

    .featured-cover-small strong {
        font-size: 0.78rem;
    }

    .summary {
        margin-top: -18px;
    }

    .summary-item {
        align-items: center;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .summary-item strong {
        font-size: 1.35rem;
    }

    .filter-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .filter-list {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 5px;
    }

    .search-info,
    .section-header,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .section {
        padding-block: 62px;
    }

    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 16px;
    }

    .book-info h3 {
        min-height: auto;
        font-size: 0.83rem;
    }

    .book-info p {
        min-height: auto;
    }

    .report-card {
        grid-template-columns: 54px 1fr;
        gap: 15px;
        padding: 19px 16px;
    }

    .file-mark {
        width: 48px;
        height: 58px;
    }

    .detail-button {
        grid-column: 2;
        justify-self: start;
    }

    .about {
        padding-block: 60px;
    }

    .footer-inner {
        min-height: auto;
        gap: 20px;
        padding-block: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
