:root {
    --ink: #17231d;
    --muted: #718078;
    --soft: #f4f7f5;
    --line: #e2e9e5;
    --green: #356b51;
    --red: #d64545;
    --red-light: #fdf0f0;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}

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

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


/* HEADER */

.site-header {
    height: 72px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--green);
    color: white;
    font-size: 15px;
    font-weight: 800;
}

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

.main-nav a {
    color: var(--muted);
    font-size: 14px;
    transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ink);
}


/* HERO */

.hero {
    padding: 34px 0 55px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 38px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a:hover {
    color: var(--green);
}

.hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
}

.eyebrow,
.section-label {
    display: block;
    margin-bottom: 10px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -2.8px;
    font-weight: 750;
}

.hero-description {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.hero-stat {
    min-width: 150px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.hero-stat strong {
    display: block;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -2px;
}

.hero-stat span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}


/* PROVINCES */

.province-section {
    padding: 70px 0 85px;
}

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

.section-top h2,
.info-content h2,
.faq-heading h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.search-box {
    width: 270px;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

.search-box:focus-within {
    border-color: var(--green);
}

.search-box svg {
    width: 18px;
    height: 18px;
    fill: var(--muted);
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #9aa59f;
}


/* GRID */

.province-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.province-card {
    display: block;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--white);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.province-card:hover {
    transform: translateY(-2px);
    border-color: #cbd8d1;
    box-shadow: 0 8px 24px rgba(23, 35, 29, .06);
}

.province-card.hidden {
    display: none;
}

.province-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.province-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.arrow {
    color: var(--muted);
    font-size: 19px;
    transition: transform .2s ease;
}

.province-card:hover .arrow {
    transform: translateX(3px);
    color: var(--green);
}

.province-main-stat {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 19px 0 15px;
}

.province-main-stat strong {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -1px;
}

.province-main-stat span {
    color: var(--muted);
    font-size: 12px;
}

.province-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail {
    padding: 10px 11px;
    border-radius: 8px;
    background: var(--soft);
}

.detail-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.detail-value {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 700;
}

.detail-value.magnitude {
    color: var(--red);
}

.last-earthquake {
    margin-top: 12px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.last-earthquake-label {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
}

.last-earthquake-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.last-earthquake-info span {
    color: var(--ink);
    font-weight: 700;
}

.last-earthquake-info time {
    color: var(--muted);
    white-space: nowrap;
}

.last-earthquake.empty {
    color: var(--muted);
    font-size: 12px;
}

.no-results {
    display: none;
    padding: 45px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 12px;
}

.no-results.visible {
    display: block;
}


/* INFO */

.info-section {
    padding: 75px 0;
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.info-grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr;
    gap: 80px;
    align-items: center;
}

.info-content p {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.info-box-number {
    color: var(--green);
    font-size: 46px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: -2px;
}

.info-box strong {
    display: block;
    font-size: 15px;
}

.info-box span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}


/* FAQ */

.faq-section {
    padding: 80px 0 90px;
}

.faq-heading {
    margin-bottom: 28px;
}

.faq-list {
    max-width: 850px;
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 650;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary span {
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
}

.faq-list details[open] summary span {
    transform: rotate(45deg);
}

.faq-list p {
    max-width: 760px;
    margin: -4px 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}


/* FOOTER */

.site-footer {
    padding: 35px 0;
    border-top: 1px solid var(--line);
}

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

.footer-brand strong {
    display: block;
    font-size: 14px;
}

.footer-brand span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--muted);
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--green);
}


/* RESPONSIVE */

@media (max-width: 900px) {

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

    .info-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

}

@media (max-width: 650px) {

   

    .container {
        width: min(100% - 24px, 1140px);
    }
    .site-header {
        height: auto;
        padding: 15px 0;
    }

    .header-inner {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .hero {
        padding: 25px 0 40px;
    }

    .breadcrumb {
        margin-bottom: 28px;
    }

    .hero-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-stat {
        min-width: 130px;
    }

    .province-section {
        padding: 50px 0 65px;
    }

    .section-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

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

    .info-section {
        padding: 55px 0;
    }

    .faq-section {
        padding: 60px 0 70px;
    }

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

    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }

}