:root {
    --front-ink: #17232b;
    --front-muted: #64727a;
    --front-line: #dce3e5;
    --front-paper: #f5f7f6;
    --front-white: #fff;
    --front-accent: #b86d3c;
    --front-accent-dark: #874727;
    --front-deep: #183d49;
    --front-soft: #e9f0ee;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--front-paper);
    color: var(--front-ink);
    font: 16px/1.7 "Segoe UI", Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.front-container {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
}

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

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

.front-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--front-ink);
    text-decoration: none;
}

.front-brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: var(--front-deep);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.front-brand-logo {
    display: block;
    width: auto;
    max-width: 210px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

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

.front-brand strong {
    font-size: 15px;
    letter-spacing: .01em;
}

.front-brand small {
    margin-top: 1px;
    color: var(--front-muted);
    font-size: 10px;
    letter-spacing: .14em;
}

.front-header-note {
    color: var(--front-muted);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.front-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.front-header-cta {
    padding: 8px 12px;
    border: 1px solid var(--front-deep);
    color: var(--front-deep);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.front-header-cta:hover {
    border-color: var(--front-accent);
    color: var(--front-accent-dark);
}

.front-home-hero {
    padding: 92px 0 86px;
    background: var(--front-deep);
    color: #fff;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: end;
    gap: 60px;
}

.front-eyebrow {
    margin: 0 0 14px;
    color: var(--front-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.4;
}

.front-home-hero .front-eyebrow,
.front-article-hero .front-eyebrow {
    color: #e8b087;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.front-home-hero h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: 76px;
    line-height: 1.02;
    letter-spacing: 0;
}

.front-lead {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
}

.home-hero-panel {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .76);
}

.home-hero-number {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    line-height: 1;
}

.home-content {
    padding: 78px 0 100px;
}

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

.section-heading h2 {
    max-width: 660px;
    margin-bottom: 0;
    font-size: 38px;
    line-height: 1.12;
}

.section-heading > p {
    max-width: 290px;
    margin: 0 0 3px;
    color: var(--front-muted);
    font-size: 14px;
}

.article-list {
    border-top: 1px solid var(--front-line);
}

.article-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 22px;
    padding: 25px 0;
    border-bottom: 1px solid var(--front-line);
    text-decoration: none;
}

.article-card:hover .article-card-arrow {
    color: var(--front-accent);
    transform: translateX(4px);
}

.article-card-index {
    color: var(--front-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
}

.article-card-body > * {
    display: block;
}

.article-card-kicker {
    margin-bottom: 5px;
    color: var(--front-muted);
    font-size: 10px;
    letter-spacing: .14em;
}

.article-card-body strong {
    margin-bottom: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.article-card-body > span:last-child {
    max-width: 800px;
    color: var(--front-muted);
    font-size: 14px;
}

.article-card-arrow {
    color: var(--front-muted);
    font-size: 24px;
    transition: transform .2s ease, color .2s ease;
}

.front-empty {
    padding: 32px 0;
    color: var(--front-muted);
}

.front-article-hero {
    padding: 70px 0 72px;
    background: var(--front-deep);
    color: #fff;
}

.back-link {
    display: inline-block;
    margin-bottom: 52px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    text-decoration: none;
}

.back-link:hover {
    color: #fff;
}

.front-article-hero h1 {
    max-width: 930px;
    margin-bottom: 20px;
    font-size: 70px;
    line-height: 1.04;
}

.article-layout {
    display: grid;
    grid-template-columns: 265px minmax(0, 780px);
    justify-content: space-between;
    gap: 80px;
    padding-top: 68px;
    padding-bottom: 100px;
}

.article-sidebar {
    align-self: start;
    position: sticky;
    top: 24px;
}

.sidebar-label {
    margin-bottom: 17px;
    color: var(--front-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
}

.article-toc {
    display: grid;
}

.article-toc a {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 8px;
    padding: 11px 0;
    border-top: 1px solid var(--front-line);
    color: var(--front-muted);
    font-size: 14px;
    text-decoration: none;
}

.article-toc a:last-child {
    border-bottom: 1px solid var(--front-line);
}

.article-toc a span {
    color: var(--front-accent);
    font-family: Georgia, "Times New Roman", serif;
}

.article-toc a strong {
    font-weight: 500;
}

.article-toc a:hover,
.article-toc a.is-active {
    color: var(--front-ink);
}

.sidebar-empty {
    color: var(--front-muted);
    font-size: 13px;
}

.sidebar-rule {
    width: 48px;
    margin: 34px 0 24px;
    border-top: 2px solid var(--front-accent);
}

.sidebar-meta span,
.sidebar-meta code {
    display: block;
}

.sidebar-meta span {
    margin-bottom: 6px;
    color: var(--front-muted);
    font-size: 10px;
    letter-spacing: .14em;
}

.sidebar-meta code {
    color: var(--front-ink);
    font-size: 12px;
    word-break: break-word;
}

.article-main {
    min-width: 0;
}

.article-prose {
    color: #2a373d;
    font-size: 17px;
}

.article-prose h2 {
    scroll-margin-top: 24px;
    margin: 50px 0 15px;
    color: var(--front-deep);
    font-size: 35px;
    line-height: 1.15;
}

.article-prose h1 {
    margin: 0 0 20px;
    color: var(--front-deep);
    font-size: 42px;
    line-height: 1.12;
}

.article-prose h2:first-child {
    margin-top: 0;
}

.article-prose h3 {
    margin: 30px 0 10px;
    color: var(--front-ink);
    font-size: 25px;
}

.article-prose p {
    margin: 0 0 19px;
}

.article-prose .ql-align-center {
    text-align: center;
}

.article-prose .ql-align-right {
    text-align: right;
}

.article-prose .ql-align-justify {
    text-align: justify;
}

.article-prose ul,
.article-prose ol {
    margin: 0 0 24px;
    padding-left: 25px;
}

.article-prose li {
    margin: 7px 0;
}

.article-prose blockquote {
    margin: 28px 0;
    padding: 17px 22px;
    border-left: 3px solid var(--front-accent);
    background: var(--front-soft);
    color: var(--front-deep);
}

.article-prose a {
    color: var(--front-accent-dark);
}

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

.related-section {
    margin-top: 76px;
    padding-top: 28px;
    border-top: 1px solid var(--front-line);
}

.related-list {
    display: grid;
    gap: 0;
}

.related-list a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--front-line);
    color: var(--front-deep);
    text-decoration: none;
}

.related-list a span {
    color: var(--front-accent);
}

.front-footer {
    background: #e6eceb;
    color: var(--front-muted);
    font-size: 12px;
}

.front-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 0;
}

.front-footer-brand,
.front-footer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.front-footer-brand strong {
    color: var(--front-deep);
    font-size: 13px;
}

.front-footer-brand span,
.front-footer-meta span {
    color: var(--front-muted);
}

.front-footer-link {
    color: var(--front-accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.front-footer-link:hover {
    text-decoration: underline;
}

.front-button {
    display: inline-block;
    margin-top: 15px;
    padding: 11px 16px;
    background: var(--front-accent);
    color: #fff;
    text-decoration: none;
}

.front-error {
    min-height: 70vh;
    padding-top: 18vh;
}

.front-error h1 {
    max-width: 700px;
    font-size: 52px;
    line-height: 1.05;
}

.front-error p:not(.front-eyebrow) {
    color: var(--front-muted);
}

@media (max-width: 900px) {
    .front-container {
        width: min(100% - 40px, 780px);
    }

    .home-hero-grid,
    .article-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .home-hero-panel {
        min-height: 120px;
    }

    .article-sidebar {
        position: static;
    }

    .article-toc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }

    .article-toc a:nth-last-child(1) {
        border-bottom: 1px solid var(--front-line);
    }
}

@media (max-width: 600px) {
    .front-container {
        width: min(100% - 28px, 780px);
    }

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

    .front-header-inner {
        padding: 17px 0;
    }

    .front-header-actions,
    .front-footer-brand,
    .front-footer-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .front-header-note {
        display: none;
    }

    .front-brand-logo {
        max-width: min(210px, 70vw);
    }

    .front-home-hero {
        padding: 58px 0;
    }

    .front-home-hero h1,
    .front-article-hero h1 {
        font-size: 43px;
    }

    .front-lead {
        font-size: 16px;
    }

    .home-content {
        padding: 54px 0 70px;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .article-card {
        grid-template-columns: 38px minmax(0, 1fr) 24px;
        gap: 10px;
    }

    .article-card-body strong {
        font-size: 20px;
    }

    .front-article-hero {
        padding: 48px 0 54px;
    }

    .back-link {
        margin-bottom: 35px;
    }

    .article-layout {
        padding-top: 42px;
        padding-bottom: 70px;
    }

    .article-toc {
        grid-template-columns: 1fr;
    }

    .article-prose {
        font-size: 16px;
    }

    .article-prose h2 {
        font-size: 30px;
    }

    .article-prose h1 {
        font-size: 34px;
    }
}
