@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --page: #f5f6f1;
    --card: #fff;
    --title: #172c2a;
    --text: #263c38;
    --muted: #52655e;
    --panel: #e9eee6;
    --panel-rule: #cfd8ce;
    --band: #ecf0e8;
    --band-ink: #172c2a;
    --band-text: #263c38;
    --start: #315f45;
    --link: #315f45;
    --ring: #315f45;
    --btn: #355f48;
    --btn-ink: #fff;
    --glint: #e8bd58;
    --foot: #52655e;
    --foot-link: #315f45;
    --foot-rule: #cfd8ce;
    --search-text: #263c38;
    --search-line: #cfd8ce;
    --search-bg: #fff;
    --code-bg: #182d32;
    --code-ink: #f2f4eb;
    --font: 'Instrument Sans', system-ui, sans-serif;
    --font-head: var(--font);
    --head-h: 73px;
    --gut: clamp(17px, 4.4vw, 68px);
    --wrap: min(1248px, calc(100% - 2 * var(--gut)));
}

.scheme-lagoon {
    --page: #eef4f4;
    --panel: #e2ecee;
    --panel-rule: #c5d6d8;
    --band: #e7eff0;
    --band-ink: #13323a;
    --title: #13323a;
    --text: #243d41;
    --muted: #50656a;
    --btn: #255565;
    --link: #275863;
    --ring: #275863;
    --start: #275863;
    --foot-rule: #c5d6d8;
}

.scheme-leaf {
    --page: #eff4eb;
    --panel: #e2ecdd;
    --panel-rule: #c7d7c3;
    --band: #e8efe4;
    --band-ink: #193326;
    --btn: #285e41;
    --link: #285e41;
    --start: #285e41;
}

:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 4px;
}

.site-head,
.home-template .site-head {
    position: relative;
    background: var(--page);
    border-bottom: 1px solid var(--panel-rule);
}

.head-row {
    gap: clamp(12px, 3.5vw, 48px);
}

.brand {
    display: flex;
    align-items: center;
    column-gap: 10px;
    font-size: clamp(20px, 2.1vw, 28px);
    letter-spacing: -.05em;
}

.brand::before {
    content: '';
    flex: 0 0 5px;
    height: 21px;
    border-radius: 2px;
    background: var(--glint);
}

.site-nav {
    margin-left: auto;
}

.site-nav .nav {
    gap: clamp(15px, 2.25vw, 32px);
}

.site-nav a {
    font-size: .875rem;
    font-weight: 600;
}

.site-head .head-search,
.home-template .head-search {
    display: inline-flex;
}

.head-search:hover,
.menu-btn:hover {
    background: var(--panel);
}

.guide-intro {
    display: grid;
    grid-template-columns: minmax(0, .97fr) minmax(0, 1fr);
    gap: clamp(26px, 5.4vw, 78px);
    align-items: center;
    padding-block: clamp(34px, 5.4vw, 74px) clamp(30px, 5.4vw, 67px);
}

.guide-intro h1 {
    font-size: clamp(39px, 4.35vw, 65px);
    line-height: 1.01;
    font-weight: 675;
    letter-spacing: -.04em;
}

.guide-intro-copy > p {
    margin-top: 18px;
    max-width: 37ch;
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.48;
    color: var(--muted);
}

.guide-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    margin-top: 25px;
}

.guide-primary,
.guide-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 7px 15px;
    font-size: 15px;
    font-weight: 650;
    border-radius: 5px;
}

.guide-primary {
    background: var(--btn);
    color: var(--btn-ink);
    text-decoration: none;
}

.guide-primary:hover {
    background: #244836;
}

.guide-secondary {
    padding-inline: 2px;
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.guide-intro-image {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel);
}

.guide-intro-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.guide-topics,
.guide-picks,
.guide-recent {
    border-top: 1px solid var(--panel-rule);
    padding-block: clamp(23px, 3vw, 39px) clamp(35px, 5vw, 65px);
}

.guide-topics h2,
.guide-picks h2,
.guide-recent h2 {
    font-size: clamp(27px, 2.75vw, 39px);
    line-height: 1.13;
    letter-spacing: -.04em;
}

.guide-topics-list,
.guide-recent-list {
    list-style: none;
    margin: 17px 0 0;
    padding: 0;
    display: grid;
}

.guide-topics-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
}

.guide-topics-list li,
.guide-recent-list li {
    border-top: 1px solid var(--panel-rule);
    min-width: 0;
}

.guide-topics-list a {
    display: flex;
    flex-direction: column;
    min-height: 84px;
    padding: 13px 4px 12px 0;
    text-decoration: none;
}

.guide-topics-list a:hover strong,
.guide-pick a:hover h3,
.guide-recent h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
}

.guide-topics-list strong {
    color: var(--title);
    font-size: clamp(17px, 1.6vw, 22px);
    letter-spacing: -.025em;
    line-height: 1.24;
}

.guide-topics-list span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.35;
}

.guide-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 42px);
    margin-top: 19px;
}

.guide-pick {
    min-width: 0;
}

.guide-pick a {
    display: block;
    text-decoration: none;
}

.guide-pick img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--panel);
    border-radius: 7px;
}

.guide-pick h3 {
    margin-top: 13px;
    font-size: clamp(19px, 2.1vw, 27px);
    line-height: 1.2;
    letter-spacing: -.03em;
}

.guide-pick p {
    margin-top: 7px;
    color: var(--muted);
    font-size: .9375rem;
    line-height: 1.5;
}

.guide-recent-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 28px;
    justify-content: space-between;
}

.guide-recent-head a,
.guide-recent-topic {
    color: var(--link);
    text-underline-offset: 4px;
    font-size: .875rem;
}

.guide-recent-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
}

.guide-recent-list li {
    padding: 12px 0 14px;
}

.guide-recent-list h3 {
    font-size: 19px;
    line-height: 1.25;
}

.guide-recent-list h3 a {
    text-decoration: none;
}

.guide-recent-topic {
    margin-top: 5px;
    display: inline-block;
}

.article-head,
.list-head {
    background: var(--page);
}

.head-art,
.side-art {
    display: none;
}

.article-head-in,
.no-feat .article-head-in {
    padding: clamp(24px, 3.7vw, 51px) 0 clamp(22px, 3.3vw, 42px);
}

.article .article-head h1 {
    font-size: clamp(34px, 4.15vw, 58px);
    line-height: 1.055;
    font-weight: 675;
    letter-spacing: -.035em;
    max-width: 23ch;
}

.article-head-in .crumbs {
    max-width: 100%;
    color: var(--muted);
    font-size: .8125rem;
}

.article-head-in .dek {
    max-width: 59ch;
    color: var(--muted);
    font-size: clamp(16px, 1.45vw, 20px);
    font-weight: 400;
    line-height: 1.45;
}

.article-head-in .byline {
    max-width: 100%;
    font-size: .8125rem;
    color: var(--muted);
    line-height: 1.45;
}

.post-lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .63fr);
    gap: clamp(19px, 5vw, 68px);
    align-items: center;
}

.post-lead-grid.solo {
    grid-template-columns: minmax(0, 1fr);
}

.post-lead-grid .post-feature {
    width: 100%;
    margin: 0;
}

.post-lead-grid .post-feature img {
    aspect-ratio: 3 / 2;
    width: 100%;
    object-fit: cover;
    border: 0;
    border-radius: 8px;
    background: var(--panel);
}

.post-template .article-head {
    border-bottom: 1px solid var(--panel-rule);
}

.post-template .article-head + .gh-content {
    padding-top: clamp(19px, 2.3vw, 33px);
}

.page-template .post-feature {
    margin-top: 0;
}

.list-head .list-card {
    padding-top: clamp(24px, 3.6vw, 50px);
    padding-bottom: clamp(22px, 3vw, 42px);
}

.list-head h1 {
    font-size: clamp(37px, 4.6vw, 68px);
    line-height: 1.03;
    letter-spacing: -.05em;
}

.list-head .lede {
    font-weight: 400;
    color: var(--muted);
}

.list-grid .side {
    padding-bottom: clamp(18px, 2.5vw, 34px);
}

.row {
    grid-template-columns: clamp(132px, 18vw, 215px) minmax(0, 1fr);
}

.row-img img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--panel);
}

.row .bb-date {
    padding-left: 0;
    font-size: inherit;
}

.row .bb-date::before,
.row .bb-date::after {
    display: none;
}

@media (max-width: 1099.98px) {
    .site-nav {
        background: var(--page);
        box-shadow: 0 8px 16px #172c2a16;
    }

    .site-nav .nav {
        gap: 0;
    }

    .site-nav a {
        min-height: 44px;
        border-bottom: 1px solid var(--panel-rule);
    }

    .site-nav .nav-current a {
        font-weight: 700;
    }
}

@media (max-width: 759.98px) {
    :root, .scheme-lagoon, .scheme-leaf {
        --head-h: 62px;
    }

    .head-row {
        gap: 7px;
    }

    .guide-intro,
    .post-lead-grid,
    .guide-picks-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .guide-intro {
        padding-top: 27px;
        gap: 16px;
    }

    .guide-intro h1 {
        font-size: clamp(33px, 9vw, 40px);
        max-width: 22ch;
    }

    .guide-intro-copy > p {
        margin-top: 11px;
    }

    .guide-intro-actions {
        margin-top: 14px;
        gap: 6px 13px;
    }

    .guide-intro-image img {
        aspect-ratio: 16 / 9;
    }

    .post-lead-grid .post-feature img {
        aspect-ratio: 2 / 1;
    }

    .post-lead-grid .post-feature {
        max-width: 520px;
    }

    .guide-topics-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
    }

    .guide-pick:not(:first-child) {
        padding-top: 19px;
        border-top: 1px solid var(--panel-rule);
    }

    .guide-recent-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-lead-grid {
        gap: 16px;
    }

    .article .article-head h1 {
        max-width: 24ch;
    }

    .article-head-in .crumbs {
        margin-bottom: 11px;
        overflow-wrap: anywhere;
    }

    .article-head-in .crumbs span[aria-current="page"],
    .article-head-in .crumbs span[aria-hidden="true"]:has(+ span[aria-current="page"]) {
        display: none;
    }

    .row {
        grid-template-columns: 104px minmax(0, 1fr);
    }
}
