:root {
  color-scheme: light;
  font-family: "Inter", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: #192a24;
  background: #f5f6f0;
  line-height: 1.65;
  word-break: keep-all;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #245a45; text-underline-offset: .2em; }
a:hover { color: #122d23; }
a:focus-visible { outline: 2px solid #245a45; outline-offset: 4px; }
.shell { width: min(1060px, calc(100% - 40px)); margin-inline: auto; }
header { border-bottom: 1px solid #d9e0d5; }
.top { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: inherit; }
.brand span { width: 12px; height: 12px; border-radius: 3px; background: #3c6a52; }
.top a { text-decoration: none; }
.top nav { display: flex; gap: 24px; font-size: .9rem; }
.top nav a { color: #4b5b50; }
.top .active { color: #192a24; font-weight: 700; text-decoration: underline; }
main { min-height: 65vh; padding-bottom: 64px; }
.hero { padding-block: clamp(35px, 7vw, 78px) 32px; }
.hero time { color: #245a45; font-family: ui-monospace, monospace; font-weight: 700; }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 8px; font-size: clamp(2rem, 6vw, 4.1rem); letter-spacing: -.065em; line-height: 1.17; }
h2 { font-size: 1.4rem; letter-spacing: -.04em; }
h3 { font-size: 1.15rem; line-height: 1.45; letter-spacing: -.025em; overflow-wrap: anywhere; }
.hero p { margin-top: 10px; color: #4b5b50; }
.hero .sample { margin: 0 0 10px; font-size: .84rem; }
.overview { padding: clamp(22px, 4vw, 40px); border-radius: 12px; background: #173e30; color: #fff; }
.overview h2 { color: #c6e1d0; font-size: 1rem; margin-bottom: 10px; }
.overview p { max-width: 74ch; font-size: 1.04rem; }
.overview-topics > div { padding-block: 12px; }
.overview-topics > div + div { border-top: 1px solid #4e7163; }
.overview-topics h3 { color: #c6e1d0; margin-bottom: 4px; }
.sections, .links { display: flex; gap: 10px 16px; flex-wrap: wrap; }
.sections { margin-top: 24px; }
.sections a { border: 1px solid #bdcbbb; border-radius: 6px; padding: 5px 12px; text-decoration: none; }
.sections a:hover { background: #e8efe4; }
.topic-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 24px; }
.topic-filter label { font-size: .9rem; font-weight: 700; }
.topic-filter select { font: inherit; color: inherit; background: #fff; border: 1px solid #bdcbbb; border-radius: 6px; padding: 4px 8px; }
.topic-count { color: #526254; font-size: .85rem; }
[hidden] { display: none !important; }
.group { margin-top: 34px; scroll-margin-top: 16px; }
.group h2 { margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
article { background: #fff; border: 1px solid #d9e0d5; border-radius: 10px; padding: 21px; }
article:only-child { grid-column: 1 / -1; }
article p { margin-block: 8px 12px; overflow-wrap: anywhere; }
article .basis { margin-top: 0; color: #245a45; font-size: .82rem; font-weight: 700; }
.card-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.card-meta .basis { margin: 0; }
.card-sources { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; margin-left: auto; font-size: .82rem; }
.original { color: #526254; font-size: .86rem; }
.links { font-size: .86rem; }
.archive { margin: 0; padding: 0; list-style: none; }
.archive li { border-bottom: 1px solid #d9e0d5; }
.archive a { display: block; padding: 12px 0; font-variant-numeric: tabular-nums; }
footer { border-top: 1px solid #d9e0d5; padding-block: 20px; font-size: .85rem; color: #4b5b50; }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }

@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .top { align-items: flex-start; justify-content: center; flex-direction: column; gap: 6px; padding-block: 12px; }
}
