:root {
  color-scheme: light;
  --ink: #282d25;
  --muted: #575e51;
  --paper: #f8f6ef;
  --surface: #fffdf8;
  --line: #d8d6c8;
  --green: #203e33;
  --accent: #964832;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font: 16px/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .17em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #ac603e; outline-offset: 4px; }
.skip { position: fixed; top: 0; left: 1rem; transform: translateY(-150%); background: white; padding: .5rem; z-index: 10; }
.skip:focus { transform: translateY(0); }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner, .notice > div, .home-inner, .footer { max-width: 1370px; margin-inline: auto; padding-inline: clamp(1.15rem, 5vw, 4.5rem); }
.top-inner { min-height: 4.5rem; display: flex; align-items: center; gap: clamp(1.2rem, 5vw, 4rem); }
.wordmark { text-decoration: none; color: var(--green); font-weight: 750; font-size: 1.12rem; white-space: nowrap; }
.wordmark span { background: var(--green); color: #fff; border-radius: .25rem; padding: .18rem .36rem; margin-right: .14rem; }
.top nav { display: flex; gap: clamp(.75rem, 3vw, 2.2rem); flex-wrap: wrap; }
.top nav a, .sources { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.top nav a:hover, .sources:hover { text-decoration: underline; }
.sources { margin-left: auto; }
.notice { background: #f1e5d2; color: #5f3825; border-bottom: 1px solid #e8dac2; font-size: .88rem; }
.notice > div { padding-block: .62rem; display: flex; align-items: baseline; gap: .55rem; }
.notice span { display: inline-block; flex: 0 0 .48rem; height: .48rem; background: #964832; border-radius: 50%; }
.notice-marker { color: inherit; font-weight: 750; margin-left: -.48rem; }
.notice-marker:hover { color: inherit; }
.hero { color: #f8f6eb; background: #223b31; border-bottom: 5px solid #bf7e5e; overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 700px) minmax(12rem, 1fr); gap: 2.5rem; padding-block: clamp(3rem, 7vw, 7rem); }
.place { color: #dfc9ad; font-size: .84rem; font-weight: 650; letter-spacing: .06em; margin: 0 0 1.1rem; }
h1, h2, .card h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.3rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
.hero h1 { font-size: clamp(3.2rem, 7.5vw, 6.75rem); line-height: .95; }
.intro { max-width: 35rem; color: #e2e5d7; font-size: clamp(1.02rem, 2vw, 1.2rem); margin: 1.4rem 0 1.8rem; }
.plan { align-self: stretch; min-height: 14rem; opacity: .66; position: relative; margin: 1rem 0; background: repeating-linear-gradient(0deg, transparent 0 23px, #afc1aa2a 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, #afc1aa2a 23px 24px); mask-image: linear-gradient(135deg, #000 35%, transparent); }
.plan i { position: absolute; border: 1px solid #c8d4b9; }
.plan i:nth-child(1) { inset: 7% 8% 11% 8%; border-style: dashed; }
.plan i:nth-child(2) { inset: 20% 19% 25% 21%; border-width: 3px; }
.plan i:nth-child(3) { inset: 44% 55% 25% 21%; }
.plan i:nth-child(4) { inset: 20% 19% 46% 68%; background: repeating-linear-gradient(135deg, transparent 0 6px, #c8d4b96e 6px 7px); }
.plan i:nth-child(5) { inset: 35% 43% 52% 35%; }
.search-box { max-width: 37rem; }
.search-box label { display: block; margin-bottom: .4rem; font-size: .93rem; font-weight: 650; }
.search-input { display: flex; gap: .4rem; align-items: stretch; }
.search-input input { flex: 1; min-width: 0; padding: .65rem .85rem; font: inherit; border: 1px solid var(--line); border-radius: .25rem; background: var(--surface); }
.search-input button { font: inherit; font-weight: 700; padding: .65rem .95rem; color: white; background: var(--green); border: 1px solid var(--green); border-radius: .25rem; cursor: pointer; }
.hero button { background: #f0d8b5; border-color: #f0d8b5; color: #223b31; }
.search-input button:hover { filter: brightness(.9); }
.directory { padding-block: 2.65rem 4rem; }
.directory section + section { margin-top: 3.2rem; }
.directory h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1.2rem; letter-spacing: -.026em; }
.cards, .listing-items { margin: 0; padding: 0; list-style: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.card { display: flex; min-height: 8.4rem; height: 100%; flex-direction: column; text-decoration: none; border: 1px solid var(--line); background: var(--surface); padding: 1.1rem 1.25rem; border-radius: .2rem; }
.card:hover { border-color: var(--accent); background: #fcf3e6; }
.card h3 { margin: 0; font-size: 1.46rem; overflow-wrap: anywhere; }
.card p, .card span { font-size: .91rem; color: var(--muted); }
.card p { margin: .34rem 0 .8rem; }
.card span { margin-top: auto; padding-top: .34rem; font-weight: 650; }
.listing { max-width: 66rem; padding: 2.8rem clamp(1.15rem, 6vw, 3.5rem) 4.5rem; margin-inline: auto; min-height: 70vh; }
.listing .search-box { margin: 1.5rem 0; }
.listing-items { margin-top: 1.6rem; }
.listing-items li { border-top: 1px solid var(--line); }
.listing-items a { display: block; text-decoration: none; padding: 1rem .35rem; }
.listing-items a:hover h2 { text-decoration: underline; }
.listing-items h2 { font-size: 1.55rem; margin: 0; }
.listing-items p { font-size: .95rem; color: var(--muted); margin: .4rem 0 0; }
.listing-items .result-category { font-size: .84rem; font-weight: 650; }
.article-grid { display: grid; grid-template-columns: minmax(13rem, 16rem) minmax(0, 52rem) minmax(10rem, 14rem); gap: clamp(1.4rem, 3vw, 3rem); margin: 0 auto; padding: 2.05rem clamp(1.15rem, 3.3vw, 3rem) 4rem; max-width: 1440px; }
.sidebar, .toc { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow: auto; scrollbar-width: thin; }
.sidebar { border-right: 1px solid var(--line); padding: 0 .9rem 1rem 0; }
.side-title, .toc p { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; text-decoration: none; }
.sidebar details, .mobile-articles details { border-bottom: 1px solid var(--line); }
.sidebar nav { margin-top: .85rem; }
summary { cursor: pointer; color: var(--green); font-weight: 650; }
.sidebar summary, .mobile-articles nav summary { padding: .52rem 0; font-size: .89rem; }
.sidebar ul, .mobile-articles ul, .toc ol, .mobile-toc ol { margin: 0 0 .4rem; padding: 0; list-style: none; }
.sidebar li a, .mobile-articles li a { display: block; padding: .32rem .5rem; text-decoration: none; font-size: .89rem; border-left: 2px solid transparent; }
.sidebar li a[aria-current], .mobile-articles li a[aria-current] { border-color: var(--accent); color: #7a3b25; background: #eee5d6; font-weight: 700; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; margin-bottom: 1rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.review { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; background: #efece1; border: 1px solid var(--line); border-radius: .25rem; margin: 1.5rem 0; padding: .7rem .9rem; }
.review-label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.review p { margin: .1rem 0 0; font-size: .9rem; }
.review a { font-size: .9rem; font-weight: 650; }
.toc { padding-left: .85rem; border-left: 1px solid var(--line); }
.toc p { margin: 0 0 .65rem; }
.toc a, .mobile-toc a { display: inline-block; font-size: .88rem; padding: .19rem 0; text-decoration: none; }
.toc a:hover, .mobile-toc a:hover { text-decoration: underline; }
.toc-3 { margin-left: .66rem; }
.toc-4, .toc-5, .toc-6 { margin-left: 1.3rem; }
.mobile-articles, .mobile-toc { display: none; }
.prose { line-height: 1.68; overflow-wrap: break-word; }
.prose p, .prose ul, .prose ol, .prose h2, .prose h3, .prose h4 { max-width: 72ch; }
.prose p { margin: .8rem 0; }
.prose .lede { font-family: var(--serif); font-size: clamp(1.16rem, 2.2vw, 1.39rem); line-height: 1.52; margin: 1.1rem 0 1.7rem; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { position: relative; scroll-margin-top: 1rem; margin: 1.85em 0 .5em; line-height: 1.2; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; color: var(--green); }
.prose h3 { font-size: 1.38rem; }
.prose h4, .prose h5, .prose h6 { font: 700 1.05rem/1.35 var(--sans); }
.anchor { font: 600 .92rem/1 var(--sans); color: var(--accent); padding: .25rem; text-decoration: none; }
.prose .editor-note { padding: .75rem .95rem; background: #f5e8d8; border-left: 3px solid #a76340; }
.prose .source-note { font-size: .93rem; color: var(--muted); }
.prose .source-link { text-decoration-style: dotted; }
.table-wrap { overflow-x: auto; max-width: 100%; margin: 1.2rem 0; border: 1px solid var(--line); background: var(--surface); border-radius: .25rem; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; line-height: 1.48; }
td, th { padding: .65rem .72rem; border: 1px solid var(--line); vertical-align: top; min-width: 6.2rem; text-align: left; }
th { color: #1c392d; background: #e5ebe1; }
td p, th p { margin: 0 !important; }
td p + p, th p + p { margin-top: .5rem !important; }
figure { margin: 1.5rem 0; background: var(--surface); border: 1px solid var(--line); padding: .7rem; border-radius: .2rem; }
figure img { display: block; max-width: 100%; height: auto; margin: auto; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.related { border-top: 1px solid var(--line); margin-top: 2.6rem; }
.related h2 { margin-top: 1.1rem; }
.footer { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; color: var(--muted); padding-block: 1.6rem; border-top: 1px solid var(--line); font-size: .88rem; }
.beta-note { flex: 0 0 100%; max-width: 75ch; margin: 0 0 .5rem; }
.beta-note strong { color: var(--ink); }
.footer a:last-child { margin-left: auto; }
@media (max-width: 1100px) {
  .article-grid { grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); }
  .toc { display: none; }
  .mobile-toc { display: block; border-block: 1px solid var(--line); padding: .55rem 0; }
}
@media (max-width: 750px) {
  .top-inner { flex-wrap: wrap; gap: .5rem 1.3rem; padding-block: .65rem; }
  .top nav { gap: .5rem .9rem; }
  .top .sources { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .plan, .sidebar { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { display: block; padding-top: 1rem; }
  .mobile-articles { display: block; border: 1px solid var(--line); padding: .48rem .7rem; margin-bottom: 1.05rem; }
  .mobile-articles > nav { margin-top: .6rem; max-height: 45vh; overflow: auto; }
}
@media (max-width: 440px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .footer a:last-child { margin-left: 0; }
}
