:root {
    --color-navy: #071827;
    --color-navy-2: #0d2436;
    --color-ink: #17212b;
    --color-muted: #657483;
    --color-line: #d9e1e8;
    --color-paper: #ffffff;
    --color-soft: #f3f6f8;
    --color-soft-2: #eaf0f4;
    --color-orange: #f0831e;
    --color-orange-dark: #c96210;
    --layout-wide: 1180px;
    --layout-narrow: 980px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-soft);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.75;
    letter-spacing: 0;
}

a {
    color: var(--color-orange-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

img {
    max-width: 100%;
    height: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 20;
    background: var(--color-orange);
    color: #fff;
    padding: 8px 12px;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    border-bottom: 3px solid var(--color-orange);
    background: var(--color-navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header__inner,
.content-wrap,
.site-footer__inner {
    width: min(100% - 32px, var(--layout-wide));
    margin-inline: auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.site-brand__name {
    color: #fff;
    font-size: 1.24rem;
    font-weight: 900;
    text-decoration: none;
}

.site-brand__tagline {
    margin: 2px 0 0;
    color: #b7c5d1;
    font-size: 0.86rem;
}

.site-nav__list,
.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 10px;
    border-radius: 6px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
    background: var(--color-orange);
    color: #fff;
}

.site-main {
    min-height: 65vh;
}

.front-intro {
    background: var(--color-navy);
    color: #fff;
    border-bottom: 1px solid #173247;
}

.front-intro__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
    gap: 36px;
    align-items: center;
    min-height: 500px;
    padding: 68px 0;
}

.front-intro__copy {
    max-width: 790px;
}

.front-intro h1,
.article-header h1,
.section-heading h1,
.section-heading h2 {
    margin: 0;
    line-height: 1.22;
}

.front-intro h1 {
    font-size: 3.8rem;
}

.lead {
    max-width: 720px;
    color: #d3dde6;
    font-size: 1.08rem;
}

.front-intro__feature {
    border: 1px solid #244055;
    border-top: 6px solid var(--color-orange);
    border-radius: 8px;
    background: var(--color-navy-2);
    padding: 22px;
}

.front-intro__feature-label {
    margin: 0 0 4px;
    color: var(--color-orange);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.front-intro__feature h2 {
    margin: 0 0 18px;
    font-size: 1.42rem;
    line-height: 1.35;
}

.front-intro__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.front-intro__panel span {
    border: 1px solid #335268;
    background: #102b40;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-weight: 800;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--color-orange);
    border-radius: 6px;
    background: var(--color-orange);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.button:hover,
.button:focus {
    background: var(--color-orange-dark);
    border-color: var(--color-orange-dark);
    color: #fff;
}

.button--ghost {
    background: transparent;
    color: var(--color-orange);
}

.button--ghost:hover,
.button--ghost:focus {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: #fff;
}

.topic-strip {
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-line);
}

.topic-strip__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--color-line);
}

.topic-strip a {
    display: grid;
    gap: 2px;
    min-height: 82px;
    padding: 16px;
    background: var(--color-paper);
    color: var(--color-ink);
    font-weight: 900;
    text-decoration: none;
}

.topic-strip a:hover,
.topic-strip a:focus {
    background: var(--color-navy);
    color: #fff;
}

.topic-strip span {
    color: var(--color-orange);
    font-size: 0.78rem;
}

.content-band {
    padding: 58px 0;
    background: var(--color-paper);
}

.content-band--muted {
    background: var(--color-soft);
}

.content-wrap--narrow {
    width: min(100% - 32px, var(--layout-narrow));
}

.section-heading {
    display: grid;
    gap: 8px;
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
    margin: 0;
    color: var(--color-muted);
}

.section-note {
    margin: -8px 0 22px;
    border-left: 5px solid var(--color-orange);
    background: var(--color-soft);
    color: var(--color-muted);
    padding: 10px 14px;
}

.eyebrow {
    margin: 0;
    color: var(--color-orange);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.post-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-paper);
    overflow: hidden;
}

.post-card__link {
    display: grid;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.post-card__link:hover .post-card__title,
.post-card__link:focus .post-card__title {
    color: var(--color-orange-dark);
}

.post-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-soft-2);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.post-card__label {
    width: max-content;
    max-width: 100%;
    border-radius: 4px;
    background: var(--color-navy);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.5;
    padding: 2px 8px;
}

.post-card__meta {
    color: var(--color-muted);
    font-size: 0.84rem;
}

.post-card__title {
    color: var(--color-ink);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.45;
}

.empty-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--color-line);
    border-left: 6px solid var(--color-orange);
    border-radius: 8px;
    background: var(--color-soft);
    padding: 18px;
}

.empty-state p {
    margin: 0;
    color: var(--color-muted);
}

.article-header {
    padding: 58px 0 34px;
    background: var(--color-navy);
    color: #fff;
    border-bottom: 3px solid var(--color-orange);
}

.article-header h1 {
    font-size: 2.85rem;
}

.article-meta {
    color: #c2cfda;
}

.article-hero {
    width: min(100% - 32px, var(--layout-wide));
    margin: 32px auto 0;
}

.article-hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
}

.article-content {
    padding: 48px 0;
    background: var(--color-paper);
    font-size: 1.04rem;
}

.article-content h2,
.article-content h3 {
    line-height: 1.35;
    margin-top: 2em;
}

.article-content h2 {
    border-left: 6px solid var(--color-orange);
    padding-left: 12px;
}

.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    border: 1px solid var(--color-line);
    padding: 10px;
}

.spot-summary,
.spot-score,
.related-content {
    padding: 40px 0;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-paper);
}

.spot-summary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.spot-summary__grid div {
    border: 1px solid var(--color-line);
    border-left: 5px solid var(--color-orange);
    border-radius: 8px;
    padding: 14px;
}

.spot-summary dt {
    color: var(--color-muted);
    font-weight: 800;
}

.spot-summary dd {
    margin: 4px 0 0;
}

.spot-score__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1fr);
    gap: 32px;
    align-items: center;
}

.score-hex svg {
    width: min(100%, 420px);
    display: block;
    margin-inline: auto;
}

.score-hex__ring {
    fill: none;
    stroke: var(--color-line);
    stroke-width: 1;
}

.score-hex__axis {
    stroke: var(--color-line);
    stroke-width: 1;
}

.score-hex__value {
    fill: rgba(240, 131, 30, 0.22);
    stroke: var(--color-orange);
    stroke-width: 3;
}

.score-hex figcaption {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
    font-weight: 800;
}

.site-footer {
    background: var(--color-navy);
    color: #fff;
    padding: 36px 0;
}

.site-footer a {
    color: #fff;
}

.site-footer__brand {
    margin: 0 0 8px;
    color: var(--color-orange);
    font-weight: 900;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.page-numbers {
    border: 1px solid var(--color-line);
    border-radius: 6px;
    background: var(--color-paper);
    padding: 8px 12px;
    text-decoration: none;
}

.page-numbers.current {
    background: var(--color-navy);
    color: #fff;
}

@media (max-width: 860px) {
    .site-header__inner,
    .front-intro__inner,
    .spot-score__inner {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        display: grid;
    }

    .front-intro__inner {
        min-height: auto;
        padding: 42px 0;
    }

    .front-intro h1 {
        font-size: 2.3rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .topic-strip__inner,
    .post-grid,
    .post-grid--compact,
    .spot-summary__grid {
        grid-template-columns: 1fr;
    }

    .topic-strip a {
        min-height: 64px;
    }
}
