:root {
    color-scheme: light;
    --ink: #172523;
    --muted: #5d6b68;
    --line: #d9e1df;
    --paper: #ffffff;
    --soft: #f3f7f6;
    --brand: #155e5a;
    --accent: #c56c2c;
    --shell: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell { width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 50; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); }
.header-inner { display: flex; flex-direction: column; gap: 1rem; padding-block: 1rem; }
.brand { display: grid; grid-template-columns: auto 1fr; width: max-content; text-decoration: none; line-height: 1.05; }
.brand strong { grid-row: 1 / 3; margin-right: .7rem; padding: .44rem .5rem; background: var(--brand); color: white; font-size: 1rem; letter-spacing: .08em; }
.brand span { align-self: end; font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; font-weight: 700; }
.brand small { align-self: start; color: var(--muted); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 1.15rem; }
.site-header nav a { display: inline-flex; min-height: 44px; align-items: center; color: #334340; font-size: .87rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible, .site-header nav a[aria-current="page"] { color: var(--brand); }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .45rem; }

.hero { padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(2.5rem, 6vw, 5rem); }
.breadcrumbs { display: flex; gap: .55rem; overflow: hidden; padding-top: 1.25rem; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.breadcrumbs a { color: var(--brand); text-underline-offset: .18em; }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }
.eyebrow, .kicker { margin: 0 0 .65rem; color: var(--brand); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; text-wrap: balance; }
h1 { max-width: 920px; margin: 0; font-size: clamp(2.45rem, 7vw, 5.25rem); letter-spacing: -.045em; }
.lede { max-width: 790px; margin: 1.5rem 0 0; color: #43524f; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.article-hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.article-hero h1 { font-size: clamp(2.35rem, 6vw, 4.75rem); }

.page-body { padding-bottom: 5rem; }
.section { border-top: 1px solid var(--ink); padding-top: 2rem; }
.section-heading { display: grid; gap: .2rem; margin-bottom: 1.5rem; }
.section-heading h2 { max-width: 680px; margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); }
.guide-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.guide-card { min-height: 230px; padding: 1.35rem; background: var(--paper); text-decoration: none; }
.guide-card:hover, .guide-card:focus-visible { background: var(--soft); outline: 3px solid var(--accent); outline-offset: -3px; }
.guide-card > span { color: var(--accent); font-size: .78rem; font-weight: 800; }
.guide-card h3 { margin: 2.2rem 0 .6rem; font-size: 1.55rem; }
.guide-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.split-section { display: grid; gap: 2rem; margin-top: clamp(4rem, 9vw, 7rem); padding-block: clamp(3rem, 7vw, 5rem); border-block: 1px solid var(--line); }
.split-section h2 { max-width: 630px; margin: 0; font-size: clamp(2rem, 5vw, 3.45rem); }
.compact { font-size: 1.02rem; }
.latest-guides { margin-top: clamp(4rem, 8vw, 6rem); }
.section-action { margin: 2rem 0 0; }

.article-layout { display: grid; gap: 2.5rem; border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.on-this-page { align-self: start; padding: 1.25rem; background: var(--soft); border-top: 3px solid var(--brand); }
.on-this-page p { margin: 0 0 .7rem; color: var(--brand); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.on-this-page ol { display: grid; gap: .45rem; margin: 0; padding-left: 1.2rem; }
.on-this-page a { color: #354541; font-size: .86rem; text-underline-offset: .2em; }
.prose { max-width: 750px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.8rem 0 1rem; font-size: clamp(1.65rem, 4vw, 2.35rem); scroll-margin-top: 1rem; }
.prose h3 { margin: 2rem 0 .7rem; font-size: 1.35rem; }
.prose p { margin: 0 0 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.prose a, .text-link { color: var(--brand); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.prose a:hover, .text-link:hover { text-decoration-thickness: 2px; }
.narrow { margin-inline: auto; }
.note, .editorial-note, .example-box { display: block; margin: 2rem 0; padding: 1.3rem 1.4rem; background: var(--soft); border-left: 4px solid var(--accent); }
.note strong, .editorial-note strong { color: var(--brand); }
.editorial-note { margin-top: 3rem; border-top: 1px solid var(--line); border-left: 0; }
.editorial-note p { margin: .4rem 0 0; color: var(--muted); font-size: .9rem; }
.example-box { border-left-color: var(--brand); }
.example-box p:last-child { margin-bottom: 0; }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 1.8rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }

.post-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.post-card { display: flex; min-height: 280px; flex-direction: column; padding: 1.4rem; background: var(--paper); }
.post-card h3 { margin: 1.3rem 0 .7rem; font-size: clamp(1.4rem, 3vw, 1.75rem); }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; }
.post-card > p:not(.post-date) { margin: 0 0 1.4rem; color: var(--muted); font-size: .94rem; }
.post-date { margin: 0; color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.read-more { display: inline-flex; width: max-content; min-height: 44px; align-items: center; margin-top: auto; color: var(--brand); font-size: .88rem; font-weight: 800; text-underline-offset: .2em; }
.post-card:has(a:focus-visible), .post-card:hover { background: var(--soft); }
.article-meta { display: flex; flex-direction: column; gap: .25rem; align-self: start; color: var(--muted); font-size: .8rem; }
.article-meta time { color: var(--brand); font-weight: 800; }

.button-link { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .95rem; border: 1px solid var(--brand); color: var(--brand); font-size: .88rem; font-weight: 800; text-decoration: none; }
.button-link:hover, .button-link:focus-visible { background: var(--brand); color: white; }

.contact-panel { max-width: 750px; padding: clamp(1.5rem, 5vw, 3rem); background: var(--soft); border-top: 4px solid var(--brand); }
.contact-label { margin: 0; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-panel > p:nth-child(2) { margin: .35rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 5vw, 2.6rem); overflow-wrap: anywhere; }
.contact-panel > p:nth-child(2) a { color: var(--brand); text-underline-offset: .25em; }
.contact-note { max-width: 620px; margin: 0; color: var(--muted); font-size: .9rem; }
.legal-copy { font-size: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }

.site-footer { border-top: 1px solid var(--ink); background: var(--soft); }
.footer-grid { display: grid; gap: 2rem; padding-block: 2.5rem; }
.footer-brand { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 700; }
.footer-grid p { margin: .4rem 0 0; color: var(--muted); }
.footer-grid nav { display: grid; gap: .45rem; align-content: start; }
.footer-grid nav a { width: max-content; font-size: .9rem; font-weight: 700; text-underline-offset: .22em; }
.footer-note { display: flex; flex-direction: column; gap: .5rem; border-top: 1px solid var(--line); padding-block: 1.25rem; color: var(--muted); font-size: .78rem; }
.footer-note p { margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (min-width: 700px) {
    .header-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .site-header nav { flex-wrap: nowrap; white-space: nowrap; }
    .guide-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr auto; }
    .footer-note { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1000px) {
    .guide-grid { grid-template-columns: repeat(4, 1fr); }
    .split-section { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 5rem; }
    .article-layout { grid-template-columns: 230px minmax(0, 750px); gap: clamp(3rem, 7vw, 7rem); }
    .on-this-page { position: sticky; top: 1.5rem; }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .post-grid:not(.post-grid-compact) .post-card:nth-child(1), .post-grid:not(.post-grid-compact) .post-card:nth-child(7) { grid-column: span 2; }
    .post-layout { grid-template-columns: 170px minmax(0, 750px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
