:root {
  --ink: #15243a;
  --muted: #536276;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --brand: #195f59;
  --brand-dark: #10443f;
  --accent: #d9eee8;
  --warm: #f1e7d7;
  --line: #dce3df;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: var(--accent); }
a { color: var(--brand-dark); text-underline-offset: .18em; }
.skip-link { position: absolute; inset-inline-start: -10000px; }
.skip-link:focus { inset-inline-start: 1rem; top: 1rem; background: white; padding: .75rem; z-index: 10; }
.site-header { display: grid; grid-template-columns: minmax(12rem, 1fr) auto auto; align-items: center; gap: 1.5rem; max-width: 78rem; margin: auto; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; color: var(--ink); font-weight: 850; text-decoration: none; letter-spacing: -.02em; line-height: 1.15; }
.brand small { margin-top: .25rem; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .01em; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; }
nav a { text-decoration: none; font-weight: 650; }
.nav-app { color: var(--brand-dark); }
.nav-subscribe { color: white; background: var(--brand); border-radius: 999px; padding: .25rem .7rem; }
.language-switcher { display: flex; gap: .35rem; }
.language-switcher a { min-width: 2rem; padding: .18rem .35rem; border: 1px solid var(--line); border-radius: .4rem; color: var(--muted); font-size: .72rem; font-weight: 800; text-align: center; text-decoration: none; }
.language-switcher a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: white; }
main { max-width: 78rem; margin: auto; padding: clamp(2.5rem, 6vw, 5.5rem) 1.5rem 6rem; }
.article { max-width: 50rem; }
.article-layout.has-substack-rail { display: grid; grid-template-columns: minmax(16rem, 20rem) minmax(0, 50rem); justify-content: space-between; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.substack-rail { position: sticky; top: 1.25rem; border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.5rem; background: linear-gradient(145deg, var(--surface), var(--warm)); box-shadow: 0 .8rem 2.4rem rgba(21, 36, 58, .08); }
.substack-rail h2 { margin: .35rem 0 .7rem; font-size: 1.45rem; line-height: 1.18; }
.substack-rail p:not(.eyebrow) { margin: 0 0 1.2rem; color: var(--muted); }
.substack-rail .button { width: 100%; white-space: normal; text-align: center; }
.substack-rail .text-button { align-self: center; }
.article-body > h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -.045em; margin: 0 0 1.4rem; }
.article-body h2 { line-height: 1.2; margin-top: 2.5rem; }
.article-body h3 { line-height: 1.25; margin-top: 2rem; }
.article-body > p:first-of-type { font-size: 1.25rem; color: var(--muted); }
.article-body img { display: block; max-width: 100%; height: auto; }
.article-body ul, .article-body ol { padding-inline-start: 1.35rem; }
.article-body li { margin-block: .45rem; }
.article-body blockquote { margin: 2rem 0; padding: 1rem 1.25rem; border-inline-start: .3rem solid var(--brand); background: var(--accent); border-radius: .25rem .8rem .8rem .25rem; }
.article-body blockquote p { margin: 0; color: var(--ink); font-size: 1.06rem; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: .7rem; text-align: start; vertical-align: top; }
.review-date, .disclosure { color: var(--muted); font-size: .9rem; }
.related-section, .medil-panel, .subscribe-panel { margin-top: 3.5rem; }
.medil-panel, .subscribe-panel { border: 1px solid var(--line); border-radius: 1.25rem; padding: clamp(1.4rem, 4vw, 2.5rem); background: var(--surface); }
.medil-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; background: linear-gradient(135deg, var(--surface), var(--accent)); }
.medil-panel h2, .subscribe-panel h2 { margin: .2rem 0 .7rem; line-height: 1.15; }
.subscribe-panel { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; background: linear-gradient(135deg, var(--surface), var(--warm)); }
.subscribe-panel.has-embed { grid-template-columns: minmax(0, 1fr) minmax(20rem, 30rem); }
.subscribe-panel.has-embed .button-row { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
.substack-embed { width: min(100%, 480px); overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.substack-embed iframe { display: block; width: 100%; height: 320px; border: 0; background: #fff; }
.eyebrow { margin: 0; color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.button { display: inline-block; background: var(--brand); color: white; padding: .8rem 1rem; border-radius: .7rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--brand-dark); }
.button.secondary { background: var(--ink); }
.button-row { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.text-button { font-weight: 750; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin-top: .8rem; }
.content-card { position: relative; display: block; min-height: 12rem; border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; color: var(--ink); background: var(--surface); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.content-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.content-card h2 { margin: 0 0 .6rem; font-size: 1.15rem; line-height: 1.25; }
.content-card p { color: var(--muted); font-size: .94rem; }
.content-card span { position: absolute; inset-inline-end: 1.2rem; bottom: 1rem; color: var(--brand); font-weight: 900; }
footer { border-top: 1px solid var(--line); padding: 2rem 1.5rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; max-width: 78rem; margin: auto; }
.footer-inner p { margin: 0; }
.footer-note { text-align: end; }
@media (max-width: 42rem) {
  .site-header { display: flex; align-items: flex-start; flex-direction: column; gap: .9rem; }
  main { padding-top: 2rem; }
  .medil-panel, .subscribe-panel { grid-template-columns: 1fr; }
  .button { white-space: normal; text-align: center; }
  .footer-inner { flex-direction: column; }
  .footer-note { text-align: start; }
}
@media (max-width: 64rem) {
  .article-layout.has-substack-rail { grid-template-columns: minmax(0, 1fr); }
  .substack-rail { position: static; }
}
