:root {
    color-scheme: light;
    --ink: #1d2430;
    --muted: #647084;
    --line: #d8dee8;
    --surface: #ffffff;
    --soft: #f5f7fb;
    --gold: #c7922b;
    --green: #15803d;
    --red: #b42318;
    --blue: #274c77;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--soft);
}

a {
    color: inherit;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.nav {
    width: min(1120px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--ink);
    color: #f5c66a;
    font-weight: 700;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.nav-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.hero {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: .95;
}

h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.lead {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.55;
}

.market-pulse {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 8px;
    background: #edf8f1;
    color: var(--green);
    font-weight: 700;
    white-space: nowrap;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(21, 128, 61, .12);
}

.prices-section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 34px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

.update-box {
    min-width: 190px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.update-box span,
.update-box strong {
    display: block;
}

.update-box span {
    color: var(--muted);
    font-size: 13px;
}

.update-box strong {
    margin-top: 3px;
}

.status {
    margin-bottom: 14px;
    color: var(--muted);
}

.status.error {
    color: var(--red);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    background: var(--surface);
}

.price-table th,
.price-table td {
    padding: 16px;
    text-align: right;
    border-bottom: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
}

.price-table th:first-child,
.price-table td:first-child {
    text-align: left;
}

.price-table th {
    background: #f0f3f8;
    color: #3a4556;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.price-table tr:last-child td {
    border-bottom: 0;
}

.price-name {
    display: grid;
    gap: 4px;
}

.price-name strong {
    font-size: 16px;
}

.price-name span {
    color: var(--muted);
    font-size: 13px;
}

.change-up {
    color: var(--green);
    font-weight: 700;
}

.change-down {
    color: var(--red);
    font-weight: 700;
}

.empty {
    color: var(--muted);
    text-align: center !important;
}

.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 34px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 760px) {
    .hero,
    .section-heading {
        grid-template-columns: 1fr;
        display: grid;
        align-items: start;
    }

    .hero {
        padding-top: 36px;
    }

    .prices-section {
        padding: 18px;
    }

    .market-pulse {
        justify-self: start;
    }
}
