@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light dark;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --text: #1c2b22;
  --muted: #4f5f55;
  --line: #d9e0d6;
  --line-strong: #7a8d80;
  --link: #1d5a38;
  --link-hover: #123d25;
  --accent: #1f5f3b;
  --on-accent: #ffffff;
  --focus: #9a4a00;
  --danger: #8f2d1f;
  --danger-bg: #fbeae7;
  --font-sans: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --content: 44rem;
  --wide: 66rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 0.5rem;
}

.bg-tinted {
  --bg: #e6eee4;
  --surface: #f4f8f2;
  --text: #1c2b22;
  --muted: #44574b;
  --line: #c3d0c0;
  --line-strong: #6c8273;
  --link: #1b5233;
  --link-hover: #123d25;
  --accent: #1f5f3b;
  --on-accent: #ffffff;
  --focus: #9a4a00;
}

.bg-dark {
  --bg: #14291d;
  --surface: #1c3827;
  --text: #eef4ee;
  --muted: #b7c7bb;
  --line: #345542;
  --line-strong: #6f9a80;
  --link: #9fdcb4;
  --link-hover: #c6efd4;
  --accent: #9fdcb4;
  --on-accent: #0f2216;
  --focus: #f5c451;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #0e1812;
    --surface: #15231a;
    --text: #e7efe9;
    --muted: #a7b7ac;
    --line: #2a3d31;
    --line-strong: #5e8a70;
    --link: #86d4a2;
    --link-hover: #b0e8c4;
    --accent: #86d4a2;
    --on-accent: #0c1a12;
    --focus: #f5c451;
    --danger: #f19a8c;
    --danger-bg: #2b1613;
  }
  :root:not([data-theme=light]) .bg-tinted {
    --bg: #15251b;
    --surface: #1b2f22;
    --text: #e7efe9;
    --muted: #a9bbae;
    --line: #2f4837;
    --line-strong: #5e8a70;
    --link: #8ad9a6;
    --link-hover: #b8ecca;
    --accent: #8ad9a6;
    --on-accent: #0c1a12;
    --focus: #f5c451;
  }
  :root:not([data-theme=light]) .bg-dark {
    --bg: #070d09;
    --surface: #101c14;
    --text: #eef4ee;
    --muted: #b0c0b4;
    --line: #22362a;
    --line-strong: #5e8a70;
    --link: #9fdcb4;
    --link-hover: #c6efd4;
    --accent: #9fdcb4;
    --on-accent: #0b160f;
    --focus: #f5c451;
  }
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #0e1812;
  --surface: #15231a;
  --text: #e7efe9;
  --muted: #a7b7ac;
  --line: #2a3d31;
  --line-strong: #5e8a70;
  --link: #86d4a2;
  --link-hover: #b0e8c4;
  --accent: #86d4a2;
  --on-accent: #0c1a12;
  --focus: #f5c451;
  --danger: #f19a8c;
  --danger-bg: #2b1613;
}
:root[data-theme=dark] .bg-tinted {
  --bg: #15251b;
  --surface: #1b2f22;
  --text: #e7efe9;
  --muted: #a9bbae;
  --line: #2f4837;
  --line-strong: #5e8a70;
  --link: #8ad9a6;
  --link-hover: #b8ecca;
  --accent: #8ad9a6;
  --on-accent: #0c1a12;
  --focus: #f5c451;
}
:root[data-theme=dark] .bg-dark {
  --bg: #070d09;
  --surface: #101c14;
  --text: #eef4ee;
  --muted: #b0c0b4;
  --line: #22362a;
  --line-strong: #5e8a70;
  --link: #9fdcb4;
  --link-hover: #c6efd4;
  --accent: #9fdcb4;
  --on-accent: #0b160f;
  --focus: #f5c451;
}

:root[data-theme=light] {
  color-scheme: light;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--font-sans);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}
a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus {
  top: 0.75rem;
  color: var(--on-accent);
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover:not(:disabled) {
  filter: brightness(1.08);
  color: var(--on-accent);
}
.button:disabled {
  cursor: default;
  opacity: 0.45;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
header,
footer {
  padding-inline: max(var(--gutter), (100% - var(--wide)) / 2);
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-name:hover {
  color: var(--text);
  text-decoration: underline;
}
.site-name img {
  border-radius: 0.4rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.theme-toggle:hover:not(:disabled) {
  filter: brightness(1.08);
  color: var(--on-accent);
}
.theme-toggle:disabled {
  cursor: default;
  opacity: 0.45;
}
.theme-toggle {
  background: transparent;
  color: var(--link);
}
.theme-toggle:hover:not(:disabled) {
  background: var(--accent);
  color: var(--on-accent);
  filter: none;
}
.theme-toggle {
  gap: 0.35rem;
  font-size: 0.9rem;
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle .theme-state {
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
header nav {
  column-gap: 2.25rem;
}
nav a {
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
nav a:hover, nav a[aria-current=page] {
  border-bottom-color: var(--accent);
  color: var(--text);
}

main {
  min-height: 55vh;
  padding-bottom: 1rem;
}
main > :not(.rows) {
  width: min(var(--content), 100% - 2 * var(--gutter));
  margin-inline: max(var(--gutter), (100% - var(--wide)) / 2) auto;
}
main > :not(.rows):first-child {
  margin-top: 3rem;
}

footer {
  margin-top: 4rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
footer nav {
  margin-bottom: 1rem;
}
footer nav a {
  color: var(--link);
  font-weight: 500;
}
footer .footer-info p + p {
  margin-top: 0.25rem;
}

.rows > .row {
  padding-inline: var(--gutter);
  background: var(--bg);
  color: var(--text);
}
.rows > .row > * {
  width: min(var(--content), 100%);
  margin-inline: max(0px, (100% - var(--wide)) / 2) auto;
}

.rows > .row-heroRow > *,
.rows > .row-carouselRow > * {
  width: min(var(--wide), 100%);
  margin-inline: auto;
}

.before-none {
  padding-top: 0;
}

.after-none {
  padding-bottom: 0;
}

.before-small {
  padding-top: 1rem;
}

.after-small {
  padding-bottom: 1rem;
}

.before-medium {
  padding-top: clamp(2rem, 5vw, 3rem);
}

.after-medium {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.before-large {
  padding-top: clamp(3.5rem, 9vw, 6rem);
}

.after-large {
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
}

.hero img {
  width: 100%;
  max-height: 28rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius);
  object-fit: cover;
}
.hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.1rem, 1.1rem + 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.hero .hero-sub {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.3rem);
}

.rich-text > * + * {
  margin-top: 1rem;
}
.rich-text > h2 {
  margin-top: 2.25rem;
}
.rich-text > h3 {
  margin-top: 1.75rem;
}
.rich-text > h2 + *, .rich-text > h3 + * {
  margin-top: 0.6rem;
}
.rich-text ul, .rich-text ol {
  padding-left: 1.4rem;
}
.rich-text li + li {
  margin-top: 0.35rem;
}
.rich-text blockquote {
  margin-left: 0;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 0.25rem solid var(--accent);
  color: var(--muted);
}
.rich-text img {
  border-radius: var(--radius);
}
.rich-text hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 2rem;
}
.rich-text table {
  width: 100%;
  border-collapse: collapse;
}
.rich-text th, .rich-text td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-strong);
  text-align: left;
}
.rich-text th {
  background: var(--surface);
}

main > article > * + * {
  margin-top: 1rem;
}
main > article > h2 {
  margin-top: 2.25rem;
}
main > article > h3 {
  margin-top: 1.75rem;
}
main > article > h2 + *, main > article > h3 + * {
  margin-top: 0.6rem;
}
main > article ul, main > article ol {
  padding-left: 1.4rem;
}
main > article li + li {
  margin-top: 0.35rem;
}
main > article blockquote {
  margin-left: 0;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 0.25rem solid var(--accent);
  color: var(--muted);
}
main > article img {
  border-radius: var(--radius);
}
main > article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 2rem;
}
main > article table {
  width: 100%;
  border-collapse: collapse;
}
main > article th, main > article td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-strong);
  text-align: left;
}
main > article th {
  background: var(--surface);
}

main > article > h1 {
  margin-top: 0.5rem;
}
main > article > h1 + .meta {
  margin-top: 0.75rem;
}

.correction {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--danger);
  border-left-width: 0.35rem;
  border-radius: var(--radius);
  background: var(--danger-bg);
  color: var(--danger);
}
.correction strong {
  display: block;
  font-size: 0.95rem;
}
.correction p {
  margin-top: 0.3rem;
  color: var(--text);
}

main > article > .correction + h1 {
  margin-top: 1.75rem;
}

.article-links {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

main > h1 + article,
main > h1 + p {
  margin-top: 2rem;
}

main > article + article {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

main > h1 ~ article h2 a,
main > h1 ~ article h3 a,
main > article.author article h3 a {
  color: var(--text);
  text-decoration: none;
}
main > h1 ~ article h2 a:hover,
main > h1 ~ article h3 a:hover,
main > article.author article h3 a:hover {
  color: var(--link);
  text-decoration: underline;
}

.author-photo {
  width: 9rem;
  height: 9rem;
  margin-block: 1rem;
  border-radius: 50%;
  object-fit: cover;
}

main > article.author article + article {
  margin-top: 1.75rem;
}

.carousel-track {
  position: relative;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.carousel-track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  .carousel-track {
    cursor: grab;
  }
}
.carousel-item {
  flex: 0 0 88%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-snap-align: start;
}
.carousel-item:only-child {
  flex-basis: 100%;
}
.carousel-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}
.carousel-item.slide h3 {
  padding: 1rem 1.25rem 0;
}
.carousel-item.slide > :not(img):not(h3) {
  padding-inline: 1.25rem;
}
.carousel-item.slide > :last-child {
  padding-bottom: 1.25rem;
}
.carousel-item.slide > * + * {
  margin-top: 0.5rem;
}
.carousel-item figcaption {
  padding: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 48rem) {
  .carousel-item {
    flex-basis: 70%;
  }
}
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.carousel-controls[hidden] {
  display: none;
}
.carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.carousel-controls button:hover:not(:disabled) {
  filter: brightness(1.08);
  color: var(--on-accent);
}
.carousel-controls button:disabled {
  cursor: default;
  opacity: 0.45;
}

.carousel-status {
  margin-left: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.newsletter {
  color: var(--text);
}
.newsletter > * {
  max-width: 32rem;
}
.newsletter form {
  display: grid;
  gap: 0.85rem;
}
.newsletter form[hidden] {
  display: none;
}
.newsletter label {
  font-weight: 600;
}
.newsletter input[type=email] {
  width: 100%;
  min-height: 44px;
  margin-top: 0.3rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.newsletter input[type=email]::placeholder {
  color: var(--muted);
  opacity: 1;
}
.newsletter .newsletter-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
}
.newsletter .newsletter-consent input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}
.newsletter .newsletter-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.newsletter .newsletter-note {
  color: var(--muted);
  font-size: 0.85rem;
}
.newsletter .newsletter-note:empty {
  display: none;
}
.newsletter button[type=submit] {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.newsletter button[type=submit]:hover:not(:disabled) {
  filter: brightness(1.08);
  color: var(--on-accent);
}
.newsletter button[type=submit]:disabled {
  cursor: default;
  opacity: 0.45;
}

@media print {
  :root, :root[data-theme] {
    --bg: #fff;
    --text: #000;
    --muted: #333;
    --link: #000;
    --line: #999;
  }
  body {
    font-size: 11pt;
    line-height: 1.5;
  }
  header nav, footer nav, .skip-link, .carousel-controls, .theme-toggle, .newsletter {
    display: none;
  }
  .rows > .row {
    padding-block: 1rem;
    background: #fff;
    color: #000;
  }
  .carousel-track {
    display: block;
    overflow: visible;
  }
  .carousel-item {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  main a[href^=http]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }
}