:root {
    color-scheme: light;
    --paper: #f9faf4;
    --white: #fff;
    --ink: #17372c;
    --body: #2d443b;
    --muted: #51655b;
    --pine: #153d31;
    --leaf: #d9f695;
    --mint: #e9f1e5;
    --line: #dce5d8;
    --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --editorial: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--body); background: var(--paper); font: 16px/1.6 var(--font); }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #3668c6; outline-offset: 4px; }

.wrap { width: calc(100% - 88px); max-width: 1300px; margin-right: auto; margin-left: auto; }
.skip { position: absolute; left: 12px; top: 8px; transform: translateY(-150%); background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 2; }
.skip:focus { transform: translateY(0); }

.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; min-height: 75px; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; gap: 9px; align-items: center; color: var(--ink); font-weight: 800; font-size: 23px; line-height: 1; text-decoration: none; white-space: nowrap; letter-spacing: -.05em; }
.brand img { width: 35px; height: 35px; }
.brand small { font-size: 11px; letter-spacing: .05em; }
.topnav { display: flex; gap: 25px; align-items: center; font-size: 14px; font-weight: 700; }
.topnav a { text-decoration: none; white-space: nowrap; }
.topnav a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.topnav [aria-current="page"] { color: var(--pine); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.button { display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-height: 43px; padding: 10px 16px; border-radius: 9px; border: 1px solid var(--pine); background: var(--pine); color: var(--white); font-size: 14px; font-weight: 750; text-decoration: none; }
.button:hover { background: #215745; text-decoration: none; }

.masthead { background: var(--mint); border-bottom: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); gap: 64px; align-items: center; padding-top: 54px; padding-bottom: 55px; }
.masthead-label { display: inline-flex; gap: 9px; align-items: center; color: var(--pine); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.masthead-label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 100%; background: #47775d; }
.hero h1 { margin-top: 20px; max-width: 11ch; font: 700 66px/.99 var(--editorial); font-size: clamp(47px, 6vw, 88px); letter-spacing: -.068em; }
.hero .lede { margin-top: 20px; max-width: 34ch; color: var(--body); font-size: 19px; line-height: 1.55; }
.search-form { display: flex; align-items: stretch; width: 100%; max-width: 460px; gap: 8px; margin-top: 27px; }
.search-form input { flex: 1 1 0; width: 0; min-height: 48px; padding: 10px 13px; border: 1px solid #a9bcab; border-radius: 9px; background: var(--white); color: var(--ink); font-size: 16px; }
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-form .button { cursor: pointer; }

.featured { position: relative; overflow: hidden; border: 1px solid #cad9c9; border-radius: 17px; background: var(--white); }
.featured .cover, .article-card .cover { overflow: hidden; display: block; }
.cover img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.featured .cover img { aspect-ratio: 2 / 1; }
.featured-label { position: absolute; top: 15px; left: 15px; pointer-events: none; padding: 5px 10px; border-radius: 5px; background: var(--leaf); color: var(--pine); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.featured-copy { padding: 21px 24px 23px; }
.featured h2 { margin: 4px 0 8px; font: 700 29px/1.12 var(--editorial); letter-spacing: -.035em; }
.featured .summary { margin-bottom: 14px; }
.read-link { color: var(--pine); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.library { padding-top: 32px; padding-bottom: 65px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.filter { min-height: 42px; padding: 7px 13px; border: 1px solid #cbd9cb; border-radius: 25px; background: var(--white); color: var(--pine); cursor: pointer; font-size: 14px; font-weight: 700; }
.filter:hover { border-color: #789282; }
.filter[aria-pressed="true"] { border-color: var(--pine); background: var(--pine); color: var(--white); }
.library-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 16px; margin: 23px 0 18px; }
.library-heading h2, .related h2 { font: 700 33px/1.16 var(--editorial); letter-spacing: -.035em; }
.result-count { color: var(--muted); font-size: 14px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.article-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.article-card a, .featured h2 a { text-decoration: none; }
.article-card h3 a:hover, .featured h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: 17px 19px 19px; }
.topic { color: #376752; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-card h3 { margin: 5px 0 8px; font: 700 23px/1.18 var(--editorial); letter-spacing: -.028em; overflow-wrap: anywhere; }
.summary { color: var(--muted); font-size: 14px; line-height: 1.55; }
.card-meta { margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 13px; }
.empty { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.empty p { margin-bottom: 12px; }

.article-head { padding-top: 26px; padding-bottom: 29px; text-align: center; }
.breadcrumbs { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 0 9px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { text-underline-offset: 3px; }
.article-head .topic { margin-top: 26px; }
.article-head h1 { margin: 8px auto 12px; max-width: 21ch; font: 700 49px/1.04 var(--editorial); font-size: clamp(34px, 5.4vw, 65px); letter-spacing: -.055em; }
.article-subtitle { margin-right: auto; margin-left: auto; max-width: 53ch; color: var(--muted); font-size: 18px; }
.byline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin-top: 17px; color: var(--muted); font-size: 14px; }
.byline span:first-child { color: var(--ink); font-weight: 750; }
.article-cover { max-width: 990px; margin-right: auto; margin-left: auto; overflow: hidden; border-radius: 17px; }
.article-cover img { aspect-ratio: 2.15 / 1; }
.reading { display: grid; grid-template-columns: minmax(150px, 205px) minmax(0, 705px); gap: 38px; justify-content: center; padding-top: 36px; padding-bottom: 48px; }
.toc { align-self: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: #f0f4ea; }
.toc h2 { margin-bottom: 6px; font-size: 14px; }
.toc ul { padding: 0 0 0 17px; margin: 0; font-size: 13px; }
.toc li + li { margin-top: 5px; }
.toc a { text-underline-offset: 3px; }
.article-body { color: var(--body); font-size: 17px; line-height: 1.75; }
.article-body .article-intro { font-size: 19px; font-weight: 600; }
.article-body section { margin-top: 25px; }
.article-body section h2 { margin-bottom: 9px; font: 700 29px/1.2 var(--editorial); letter-spacing: -.03em; }
.article-body p + p { margin-top: 12px; }
.article-body pre { margin: 14px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #f0f4ea; color: var(--ink); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.article-body code { font-family: ui-monospace, "Courier New", monospace; }
.takeaway { margin-top: 27px; padding: 16px 18px; border-left: 4px solid #6a9968; border-radius: 0 8px 8px 0; background: var(--mint); }
.takeaway h2, .references h2 { font-size: 16px; font-weight: 800; }
.takeaway p { margin-top: 5px; }
.references { margin-top: 22px; font-size: 15px; }
.references ul { margin: 3px 0 0; padding-left: 19px; }
.references a { color: var(--pine); text-underline-offset: 3px; }
.related { padding-top: 28px; padding-bottom: 50px; border-top: 1px solid var(--line); }
.related .article-grid { margin-top: 16px; }
.related .card-copy { padding: 13px 16px 17px; }
.related .article-card h3 { font-size: 21px; }

.footer { padding: 20px 0; border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.footer .brand { font-size: 19px; }
.footer .brand img { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 19px; font-size: 14px; font-weight: 700; }
.footer-links a { text-decoration: none; }

@media (max-width: 970px) {
    .wrap { width: calc(100% - 60px); }
    .hero { gap: 30px; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 685px) {
    .wrap { width: calc(100% - 36px); }
    .topbar-inner { min-height: 64px; }
    .brand { font-size: 19px; }
    .brand img { width: 29px; height: 29px; }
    .topnav { gap: 12px; font-size: 13px; }
    .topnav .home-link { display: none; }
    .topnav .button { padding: 7px 10px; min-height: 37px; font-size: 13px; }
    .hero { display: block; padding-top: 31px; padding-bottom: 30px; }
    .hero h1 { margin-top: 12px; font-size: clamp(42px, 10vw, 58px); }
    .hero .lede { margin-top: 12px; font-size: 17px; }
    .search-form { margin-top: 18px; }
    .featured { margin-top: 22px; }
    .featured-copy { padding: 14px 16px 17px; }
    .featured h2 { font-size: 25px; }
    .library { padding-top: 22px; padding-bottom: 37px; }
    .filters { padding-bottom: 17px; }
    .library-heading { margin-top: 17px; }
    .library-heading h2, .related h2 { font-size: 28px; }
    .article-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .article-head .topic { margin-top: 17px; }
    .article-head { padding-bottom: 20px; }
    .article-subtitle { font-size: 16px; }
    .article-cover { border-radius: 11px; }
    .article-cover img { aspect-ratio: 8 / 5; }
    .reading { display: block; padding-top: 20px; padding-bottom: 33px; }
    .toc { margin-bottom: 17px; }
    .article-body { font-size: 16px; }
    .article-body .article-intro { font-size: 18px; }
    .article-body section h2 { font-size: 25px; }
    .related { padding-top: 24px; padding-bottom: 33px; }
}
@media (max-width: 355px) {
    .wrap { width: calc(100% - 28px); }
    .topnav { gap: 8px; }
    .topnav .sign-in { display: none; }
}
