:root {
  --navy: #0d2638;
  --ink: #15283a;
  --green: #007842;
  --soft-green: #f1f7f4;
  --paper: #fff;
  --muted: #526676;
  --line: #dce7e2;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; line-height: 1.55; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .21em; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; }
.container { width: min(100% - 3rem, 68rem); margin-inline: auto; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 1; padding: .5rem .8rem; background: white; }
.skip-link:not(:focus) { clip-path: inset(50%); }

.masthead { background: white; border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead-inner { min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; font-weight: 700; }
.brand img { width: 5.25rem; height: 2.3rem; object-fit: contain; }
.brand span { padding-left: 1rem; border-left: 1px solid var(--line); }
.masthead nav { display: flex; gap: 1.55rem; align-items: center; }
.masthead nav a { text-decoration: none; font-size: .9rem; font-weight: 650; }
.masthead nav a:hover, .breadcrumb a:hover { text-decoration: underline; }
.website-link { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: .35rem; }

.intro { padding-top: clamp(1.7rem, 3vw, 2.6rem); }
.intro h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.04em; }
.intro p { max-width: 38rem; margin-top: .35rem; color: var(--muted); }
.featured {
  display: grid;
  grid-template-columns: 1fr .96fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1rem, 2.2vw, 1.55rem);
  background: var(--soft-green);
  border: 1px solid var(--line);
  border-radius: .75rem;
}
.featured-image { width: 100%; height: auto; aspect-ratio: 2; object-fit: cover; border-radius: .5rem; }
.featured-copy { padding-inline: .35rem; }
.topic-label { color: var(--green); font-size: .875rem; font-weight: 700; }
.post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .65rem; }
.post-meta time { color: var(--muted); font-size: .8125rem; }
.featured h2 { margin-block: .35rem .55rem; font-size: clamp(1.65rem, 3.1vw, 2.12rem); line-height: 1.2; letter-spacing: -.04em; }
.featured h2 a { text-decoration: none; }
.featured h2 a:hover { text-decoration: underline; text-decoration-thickness: .045em; }
.featured p, .post-card p { color: var(--muted); }
.read-link { display: inline-block; margin-top: .72rem; color: var(--green); font-weight: 700; }
.read-link:hover { color: var(--ink); }

.topics { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding-block: 1.05rem 1.45rem; }
.topic-pill { display: inline-block; padding: .34rem .72rem; border: 1px solid var(--line); border-radius: .35rem; font-size: .9rem; font-weight: 650; color: var(--green); text-decoration: none; }
.topic-pill:hover { background: var(--soft-green); }
.all-topics { padding: .35rem .4rem; color: var(--green); font-size: .9rem; font-weight: 700; }
.recent { padding-block: 1.8rem 3.6rem; }
.recent > h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; letter-spacing: -.03em; margin-bottom: .9rem; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.55rem; }
.post-card { border: 1px solid var(--line); border-radius: .55rem; background: white; }
.post-card a { display: block; height: 100%; border-radius: inherit; text-decoration: none; }
.post-card img { width: 100%; height: auto; aspect-ratio: 2.45; object-fit: cover; border-radius: .5rem .5rem 0 0; }
.post-card h3 { margin-block: .25rem .45rem; font-size: clamp(1.08rem, 2vw, 1.2rem); line-height: 1.27; letter-spacing: -.018em; }
.post-card a:hover h3 { text-decoration: underline; text-decoration-thickness: .055em; }
.post-card-copy { padding: 1.2rem 1.35rem 1.5rem; }

.breadcrumb { display: flex; gap: .45rem .7rem; flex-wrap: wrap; padding-top: 1.8rem; color: var(--green); font-size: .9rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb span { color: var(--muted); }
.topic-page .intro { padding-block: 1.65rem; border-bottom: 1px solid var(--line); }
.masthead nav a[aria-current="page"] { color: var(--green); }
.topic-search { padding-top: 1.2rem; }
.topic-search label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 700; }
.topic-search input { width: min(100%, 28rem); min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid #b9ccc0; border-radius: .45rem; background: var(--paper); color: var(--ink); font: inherit; }
.topic-search input::placeholder { color: var(--muted); }
.topic-search-status:not(:empty) { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 1.5rem 0 3.6rem; }
.topic-card { display: flex; height: 100%; flex-direction: column; padding: 1.3rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--soft-green); text-decoration: none; }
.topic-icon { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; margin-bottom: .75rem; border-radius: .55rem; background: #ddf6e9; }
.topic-icon canvas { width: 1.45rem; height: 1.45rem; }
.topic-card:hover { border-color: var(--green); }
.topic-card h2 { font-size: 1.2rem; letter-spacing: -.018em; }
.topic-card:hover h2 { color: var(--green); text-decoration: underline; }
.topic-card p { margin-top: .5rem; color: var(--muted); }
.topic-count { margin-top: auto; padding-top: 1rem; color: var(--green); font-size: .875rem; font-weight: 700; }
.article-page { max-width: 46rem; padding-bottom: .5rem; }
.article-header { padding-block: 2.15rem 1.5rem; }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.14; letter-spacing: -.044em; }
.article-header p { max-width: 62ch; margin-top: .65rem; color: var(--muted); font-size: 1.075rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; margin-top: .55rem; color: var(--muted); font-size: .9rem; }
.article-share { min-height: 2.5rem; padding: .3rem .65rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--paper); color: var(--green); font: inherit; font-weight: 650; cursor: pointer; }
.article-share:hover { background: var(--soft-green); }
.article-share:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.article-share-status:empty { position: absolute; }
.article-share-url { width: 100%; min-height: 2.5rem; margin-top: .45rem; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: .35rem; color: var(--ink); font: inherit; }
.article-summary { margin-bottom: 1.5rem; padding: 1.1rem clamp(1rem, 3vw, 1.4rem); border-top: 3px solid var(--green); border-radius: .35rem; background: var(--soft-green); }
.article-summary h2 { margin-bottom: .55rem; font-size: 1.18rem; letter-spacing: -.02em; }
.article-summary section p { line-height: 1.65; }
.dindin-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; }
.article-summary section + .dindin-note { margin-top: .95rem; padding-top: .95rem; border-top: 1px solid var(--line); }
.dindin-note > div { flex: 1 1 17rem; }
.dindin-note h2 { margin-bottom: .25rem; color: var(--green); font-size: 1rem; }
.dindin-note p { color: var(--muted); }
.dindin-note a { display: inline-block; padding: .5rem .85rem; border-radius: .35rem; background: var(--green); color: white; font-size: .9rem; font-weight: 700; text-decoration: none; }
.dindin-note a:hover { background: var(--navy); }
.article-image { width: 100%; height: auto; aspect-ratio: 2.25; object-fit: cover; border-radius: .45rem; }
.prose { margin: 1.55rem 0 2rem; line-height: 1.7; font-size: 1.0625rem; }
.prose h2 { margin: 1.6em 0 .55em; font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.25; letter-spacing: -.024em; scroll-margin-top: 2rem; }
.prose p + p { margin-top: .95rem; }
.article-callout { margin-block: 1.25rem; padding: .85rem 1rem; border-left: 3px solid var(--green); border-radius: .35rem; background: var(--soft-green); }
.article-callout > strong { display: block; margin-bottom: .28rem; color: var(--green); }
.prose table { width: 100%; margin-block: 1.25rem; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { padding: .5rem .65rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--soft-green); text-align: left; }
.subscription-tool { padding: clamp(1rem, 3vw, 1.4rem); border: 1px solid var(--line); border-radius: .65rem; background: var(--soft-green); }
.subscription-tool fieldset { min-width: 0; margin: .85rem 0; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: .4rem; background: white; }
.subscription-tool legend { padding-inline: .3rem; font-weight: 700; }
.subscription-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .65rem; }
.subscription-fields label { font-size: .9rem; font-weight: 650; }
.subscription-fields label span { color: var(--muted); font-weight: 400; }
.subscription-fields input { display: block; width: 100%; min-height: 2.5rem; margin-top: .25rem; padding: .3rem .5rem; color: var(--ink); border: 1px solid #a8bdb3; border-radius: .3rem; font: inherit; }
.subscription-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.subscription-tool button, .checklist-download { min-height: 2.5rem; padding: .45rem .75rem; border: 1px solid var(--green); border-radius: .35rem; font: inherit; font-size: .92rem; font-weight: 700; }
.subscription-tool button { cursor: pointer; background: white; color: var(--green); }
.subscription-tool [data-remove-subscription] { margin-top: .6rem; border: 0; padding-inline: 0; text-decoration: underline; }
.subscription-tool button[type="submit"], .checklist-download { background: var(--green); color: white; }
.subscription-tool :is(button, input):focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.subscription-total:not(:empty) { margin-top: .85rem; font-weight: 750; }
.checklist-download { display: inline-block; text-decoration: none; }
.checklist-download:hover { background: var(--navy); }
.related { border-top: 1px solid var(--line); }
.footer { background: var(--navy); color: #d2e3ed; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.4rem 2rem; padding-block: 2.1rem 1.6rem; }
.footer-about img { width: auto; height: 2.45rem; filter: brightness(0) invert(1); }
.footer-about p { max-width: 29ch; margin-block: .65rem .4rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.footer-links h2 { margin-bottom: .25rem; font-size: .9rem; color: white; }
.footer a { text-decoration: none; }
.footer a:hover { color: white; text-decoration: underline; }
.footer a:focus-visible { outline-color: white; }
.footer-credit { border-top: 1px solid #365063; padding-block: .75rem; font-size: .85rem; }

@media (max-width: 44rem) {
  .container { width: min(100% - 2rem, 68rem); }
  .featured { grid-template-columns: 1fr; }
  .featured-image { aspect-ratio: 2.2; }
  .post-grid { gap: 1rem; }
}

@media (max-width: 33rem) {
  .masthead-inner { min-height: 3.9rem; }
  .brand { gap: .55rem; }
  .brand img { width: 4.4rem; }
  .brand span { padding-left: .55rem; }
  .masthead nav { gap: .6rem; }
  .masthead nav a { font-size: .875rem; }
  .website-link { padding-inline: .55rem; white-space: nowrap; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .recent { padding-bottom: 3rem; }
  .article-header p, .prose { font-size: 1rem; }
}

@media (max-width: 23rem) {
  .brand span { display: none; }
}
