:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --ink: #121a17;
  --muted: #5f6864;
  --faint: #8a938f;
  --line: #e3e7e1;
  --line-strong: #ccd4cf;
  --accent: #09b98f;
  --accent-dark: #08745f;
  --blue: #4d8cff;
  --violet: #6954e8;
  --shadow: 0 16px 44px rgba(18, 26, 23, 0.08);
  --shadow-soft: 0 10px 28px rgba(18, 26, 23, 0.055);
  --wrap: 1240px;
  --article: 760px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.66;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  margin: 0;
  min-width: 320px;
}

body.has-lightbox {
  overflow: hidden;
}

a {
  color: var(--accent-dark);
  text-decoration-color: rgba(8, 116, 95, 0.34);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

a:hover {
  color: #075244;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(9, 185, 143, 0.18);
}

img,
svg {
  display: block;
  height: auto;
  max-width: 100%;
}

.site-header,
main,
.site-footer {
  padding-inline: clamp(18px, 4vw, 44px);
}

.site-header {
  align-items: center;
  background: #080c0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 22px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-content: space-between;
  margin-inline: 0;
  max-width: none;
  min-height: 59px;
  padding-inline: max(clamp(18px, 4vw, 44px), calc((100vw - var(--wrap)) / 2 + clamp(18px, 4vw, 44px)));
  padding-block: 8px;
  position: sticky;
  top: 0;
  z-index: 20;
}

@supports (backdrop-filter: blur(14px)) {
  .site-header {
    backdrop-filter: blur(14px);
    background: rgba(8, 12, 10, 0.9);
  }
}

.brand {
  align-items: center;
  display: inline-flex;
  min-width: 0;
  position: relative;
}

.brand__home {
  display: inline-flex;
  text-decoration: none;
}

.brand__logo {
  height: auto;
  width: clamp(174px, 16vw, 218px);
}

.brand__byline {
  bottom: -1px;
  color: #68706c;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  position: absolute;
  right: 0;
  text-decoration: none;
  transition: color 160ms ease;
  white-space: nowrap;
}

.brand__byline:hover,
.brand__byline:focus-visible {
  color: var(--accent);
}

.site-search {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  min-width: min(100%, 238px);
  max-width: 320px;
  justify-self: end;
}

.support-button {
  align-items: center;
  background: #f2cc60;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #181c15;
  display: inline-flex;
  gap: 7px;
  min-height: 36px;
  padding: 6px 13px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.support-button:hover {
  background: #ffdc7a;
  color: #181c15;
}

.support-button svg {
  flex-shrink: 0;
}

.support-button__mobile {
  display: none;
}

.site-search input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  min-height: 34px;
  min-width: 0;
  padding: 7px 13px;
  width: 166px;
}

.site-search input::placeholder {
  color: rgba(255, 255, 255, 0.64);
}

.site-search button,
.button,
.pagination a,
.download-card__button {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-height: 34px;
  padding: 8px 14px;
  text-decoration: none;
}

.site-search button {
  background: #fff;
  color: #080c0a;
}

.site-search button:hover,
.button:hover,
.pagination a:hover,
.download-card__button:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 26px rgba(8, 116, 95, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.site-search button:hover {
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(9, 185, 143, 0.28);
  color: #07110e;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: #fff;
  border-radius: 999px;
  color: #080c0a;
  font-size: 0.86rem;
  font-weight: 800;
  left: 18px;
  padding: 8px 14px;
  position: fixed;
  text-decoration: none;
  top: 14px;
  transform: translateY(-80px);
  transition: transform 160ms ease;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

main {
  margin-inline: auto;
  max-width: var(--wrap);
}

.archive-hero {
  align-items: end;
  background: transparent;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-inline: 0;
  padding: 34px 0 28px;
}

.archive-hero--home {
  padding-block: 30px 26px;
}

.archive-hero h1,
.article-header h1,
.not-found h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.78rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  max-width: 860px;
}

.archive-hero--home h1 {
  font-size: 2.78rem;
}

.archive-hero p,
.article-meta,
.not-found p {
  color: var(--muted);
  max-width: 700px;
}

.archive-hero p:last-child {
  margin-bottom: 0;
  margin-top: 10px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.archive-count {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 9px;
  min-width: 0;
  padding: 8px 12px;
}

.archive-count strong,
.archive-count span {
  display: block;
}

.archive-count strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1;
}

.archive-count span {
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-list {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 16px;
  margin-block: 24px 42px;
  overflow: visible;
}

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(210px, 32%) minmax(0, 1fr);
  min-height: 190px;
  overflow: hidden;
}

.post-card:last-child {
  border-bottom: 1px solid var(--line);
}

.post-card:hover {
  background: #fbfdfb;
}

.post-card__media {
  background: #fff;
  min-height: 190px;
  overflow: hidden;
}

.post-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
  width: 100%;
}

.post-card:hover .post-card__media img {
  transform: scale(1.025);
}

.post-card__body {
  align-self: center;
  padding: 24px clamp(22px, 4vw, 36px);
}

.post-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.58rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.14;
  margin: 0 0 12px;
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h2 a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.post-card p {
  color: var(--muted);
  margin: 0;
}

.pagination {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-block: 36px 58px;
  padding-top: 24px;
}

.pagination span {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-shell {
  background: var(--surface);
  margin-inline: calc(clamp(18px, 4vw, 44px) * -1);
  padding: 42px clamp(18px, 4vw, 44px) 70px;
}

.article-shell:has(.article-header--image) {
  padding-top: 0;
}

.article-header {
  border-bottom: 1px solid var(--line);
  margin-inline: auto;
  max-width: var(--article);
  padding-bottom: 34px;
}

.article-header--image {
  align-items: flex-end;
  background: #101714;
  border: 0;
  border-radius: 0;
  color: #fff;
  display: flex;
  isolation: isolate;
  margin-bottom: 6px;
  margin-inline: calc(clamp(18px, 4vw, 44px) * -1);
  max-width: none;
  min-height: 374.4px;
  overflow: hidden;
  padding: 68px clamp(26px, 6vw, 76px);
  position: relative;
}

.article-header--image::before {
  background: linear-gradient(90deg, rgba(6, 12, 10, 0.82) 0%, rgba(6, 12, 10, 0.58) 44%, rgba(6, 12, 10, 0.22) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.article-header__media {
  inset: 0;
  position: absolute;
  z-index: 0;
}

.article-header__media img {
  height: 100%;
  max-width: none;
  object-fit: cover;
  width: 100%;
}

.article-header--image::after {
  background: linear-gradient(180deg, rgba(9, 185, 143, 0) 0%, rgba(9, 185, 143, 0.2) 100%);
  bottom: 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 3;
}

.article-header__inner {
  max-width: var(--article);
  position: relative;
  z-index: 2;
}

.article-header h1 {
  font-size: 3.35rem;
}

.article-header--image h1 {
  color: #fff;
  font-size: 3.72rem;
  line-height: 1.03;
  margin-bottom: 0.22em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.article-meta {
  margin-bottom: 0;
}

.article-header--image .eyebrow {
  color: #71f0ce;
}

.article-header--image .article-meta {
  color: rgba(255, 255, 255, 0.84);
}

.article-hero-image {
  border-radius: 6px;
  box-shadow: none;
  margin-top: 28px;
  width: 100%;
}

.article-content {
  color: #202824;
  font-size: 1.06rem;
  margin-inline: auto;
  max-width: var(--article);
  padding-top: 34px;
}

.article-content > :nth-child(n + 6),
.article-extras {
  contain-intrinsic-size: auto 140px;
  content-visibility: auto;
}

.article-content > p,
.article-content > ul,
.article-content > ol,
.article-content > blockquote,
.article-content > h2,
.article-content > h3,
.article-content > h4,
.article-content > pre,
.article-content > table,
.article-content > .download-card {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--article);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.18;
  margin-block: 2em 0.72em;
}

.article-content h2 {
  font-size: 2.12rem;
}

.article-content h3 {
  font-size: 1.58rem;
}

.article-content h4 {
  font-size: 1.24rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content figure,
.article-content table,
.article-content blockquote,
.article-content pre,
.download-card {
  margin-block: 0 1.22em;
}

.article-content ul,
.article-content ol {
  padding-left: 1.35em;
}

.article-content li + li {
  margin-top: 0.35em;
}

.article-content code {
  background: #f0f3f1;
  border-radius: 4px;
  color: #1b352d;
  font-size: 0.92em;
  overflow-wrap: anywhere;
  padding: 0.08em 0.28em;
  word-break: break-word;
}

.article-content pre {
  background: #111a17;
  border-radius: 8px;
  color: #eff8f4;
  overflow-x: auto;
  padding: 18px 20px;
}

.article-content pre code {
  background: transparent;
  color: inherit;
  overflow-wrap: normal;
  padding: 0;
  word-break: normal;
}

.article-content table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: none;
  display: block;
  overflow-x: auto;
  width: 100%;
}

.article-content table:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
}

.article-content th {
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  color: #1c3b34;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  padding-left: 20px;
}

.article-content figure {
  margin-inline: auto;
  max-width: var(--article);
}

.article-content figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 8px;
  text-align: center;
}

.article-content img {
  border-radius: 6px;
  box-shadow: none;
}

.article-content img[data-lightbox-ready],
.article-hero-image[data-lightbox-ready] {
  cursor: zoom-in;
}

.article-content a:has(img[data-lightbox-ready]) {
  display: inline-block;
}

.article-content a:has(img[data-lightbox-ready]):hover img,
.article-content img[data-lightbox-ready]:hover,
.article-hero-image[data-lightbox-ready]:hover {
  filter: brightness(0.96);
}

.article-content iframe {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  max-width: 100%;
}

.download-card {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(18, 26, 23, 0.04);
  overflow: hidden;
}

.download-card__row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.download-card__row + .download-card__row {
  border-top: 1px solid var(--line);
}

.download-card__meta {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-width: 0;
}

.download-card__icon {
  align-items: center;
  --file-color: var(--accent-dark);
  color: var(--file-color);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  position: relative;
  width: 46px;
}

.download-card__icon svg {
  fill: #f3faf6;
  height: 48px;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 40px;
}

.download-card__icon span {
  background: var(--file-color);
  border-radius: 3px;
  bottom: 6px;
  color: #fff;
  font-size: 0.52rem;
  font-weight: 900;
  left: 3px;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 3px 4px;
  position: absolute;
}

.download-card__icon--pdf {
  --file-color: #b13d3d;
}

.download-card__icon--archive {
  --file-color: #8a5b18;
}

.download-card__icon--document {
  --file-color: #275fba;
}

.download-card__icon--slides {
  --file-color: #9a4a13;
}

.download-card__details {
  min-width: 0;
}

.download-card__type {
  color: var(--faint);
  display: block;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.download-card__file {
  color: var(--ink);
  display: block;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.download-card__file:hover,
.download-card__file:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.download-card__button {
  background: var(--accent-dark);
  min-width: 108px;
}

.newsletter-shell .article-header {
  max-width: 860px;
}

.newsletter-content {
  max-width: 860px;
}

.newsletter-panel {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  display: grid;
  gap: 12px 30px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  padding: 30px;
}

.newsletter-panel h2,
.newsletter-panel h3 {
  color: var(--ink);
  grid-column: 1;
  margin-inline: 0;
  max-width: none;
}

.newsletter-panel h2 {
  font-size: 1.9rem;
  margin-top: 0;
}

.newsletter-panel h3 {
  color: var(--muted);
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.newsletter-embed {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.newsletter-embed iframe,
.article-content iframe[src*="substack.com"] {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  max-width: 100%;
  width: min(480px, 100%);
}

.term-list {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px auto 0;
  max-width: var(--article);
  padding-top: 20px;
}

.term-list a {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  padding: 5px 10px;
  text-decoration: none;
}

.article-extras {
  border-top: 1px solid var(--line);
  margin: 42px auto 0;
  max-width: var(--article);
  padding-top: 34px;
}

.author-profile {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 24px;
}

.author-profile__avatar {
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
  width: 132px;
}

.author-profile h2,
.related-posts h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.64rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.author-profile .eyebrow,
.related-posts .eyebrow {
  margin-bottom: 7px;
}

.author-profile p {
  color: var(--muted);
  margin: 0;
}

.author-profile__role {
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.author-profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.author-profile__links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 10px;
  text-decoration: none;
}

.article-disclaimer {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-strong);
  border-radius: 6px;
  color: var(--faint);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.6;
  margin: 22px 0 0;
  padding: 14px 18px;
}

.article-disclaimer p {
  margin: 0;
}

.related-posts {
  margin-top: 34px;
}

.related-posts__header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.related-posts__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.related-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}

.related-card--with-media {
  display: grid;
  grid-template-columns: minmax(170px, 30%) minmax(0, 1fr);
}

.related-card__media {
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
  display: block;
  overflow: hidden;
}

.related-card__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.related-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 8px;
}

.related-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.related-card h3 a:hover,
.related-card h3 a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.related-card__body {
  padding: 14px;
}

.related-card__body > p:last-child {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
}

.related-card__meta {
  color: var(--accent-dark);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.infinite-status {
  color: var(--faint);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: -16px 0 48px;
  min-height: 1.5em;
  text-align: center;
  text-transform: uppercase;
}

.has-infinite-scroll .pagination--fallback {
  height: 1px;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
}

.mm-lightbox {
  align-items: center;
  background: rgba(5, 9, 7, 0.92);
  display: grid;
  gap: 18px;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  inset: 0;
  justify-items: center;
  opacity: 0;
  padding: clamp(14px, 3vw, 34px);
  position: fixed;
  transition: opacity 160ms ease;
  z-index: 100;
}

.mm-lightbox[hidden] {
  display: none;
}

.mm-lightbox.is-open {
  opacity: 1;
}

.mm-lightbox__figure {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
  max-width: 100%;
}

.mm-lightbox__image {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  max-height: calc(100vh - 124px);
  max-width: 100%;
  object-fit: contain;
}

.mm-lightbox__caption {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: min(760px, 86vw);
  text-align: center;
}

.mm-lightbox__button {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 44px;
}

.mm-lightbox__button:hover,
.mm-lightbox__button:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
}

.mm-lightbox__button:active {
  transform: scale(0.96);
}

.mm-lightbox__button:disabled {
  cursor: default;
  opacity: 0.28;
}

.mm-lightbox__button svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
  width: 22px;
}

.mm-lightbox__close {
  position: absolute;
  right: clamp(14px, 3vw, 30px);
  top: clamp(14px, 3vw, 30px);
}

.empty-state,
.not-found {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin-block: 34px 80px;
  padding: 34px;
}

.site-footer {
  background: #080c0a;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 24px;
  padding-block: 34px 42px;
}

.footer__inner {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  justify-items: center;
  margin-inline: auto;
  max-width: var(--article);
  text-align: center;
}

.footer__logo {
  display: inline-flex;
  opacity: 0.95;
}

.footer__logo img {
  width: 76px;
}

.footer__legal {
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: var(--article);
}

.footer__legal p {
  margin: 0 0 10px;
}

@media (max-width: 1040px) and (min-width: 761px) {
  .site-header {
    gap: 12px 20px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-search input {
    width: min(280px, 100%);
  }
}

@media (max-width: 760px) {
  html {
    font-size: 16px;
  }

  .site-header {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 109px;
    padding-block: 10px 12px;
    position: static;
  }

  .brand,
  .site-search {
    width: 100%;
  }

  .brand {
    width: min(202px, 100%);
  }

  .brand__logo {
    width: min(202px, 100%);
  }

  .site-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }

  .support-button {
    grid-column: 2;
    grid-row: 1;
    padding-inline: 10px;
  }

  .support-button__desktop {
    display: none;
  }

  .support-button__mobile {
    display: inline;
  }

  .brand__byline {
    bottom: -2px;
    font-size: 0.52rem;
  }

  .site-search input {
    flex: 1;
    min-height: 32px;
    width: auto;
  }

  .site-search button {
    min-height: 32px;
  }

  .archive-hero,
  .post-card,
  .download-card,
  .author-profile,
  .related-posts__grid,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .archive-hero {
    gap: 18px;
    padding-block: 28px 26px;
  }

  .archive-hero h1,
  .archive-hero--home h1,
  .article-header h1,
  .not-found h1 {
    font-size: 2.28rem;
    line-height: 1.04;
  }

  .archive-count {
    justify-self: start;
    min-width: 0;
  }

  .post-list {
    margin-block: 22px 30px;
  }

  .post-card__media {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

  .post-card__body {
    padding: 22px 20px 24px;
  }

  .post-card h2 {
    font-size: 1.38rem;
  }

  .article-shell {
    padding-block: 30px 52px;
  }

  .article-header {
    padding-bottom: 26px;
  }

  .article-header--image {
    min-height: 259.2px;
    padding: 34px 22px;
  }

  .article-header--image h1 {
    margin-bottom: 0.32em;
  }

  .article-content {
    padding-top: 28px;
  }

  .article-content h2 {
    font-size: 1.62rem;
  }

  .article-content h3 {
    font-size: 1.34rem;
  }

  .download-card__row {
    grid-template-columns: 1fr;
  }

  .download-card__button {
    width: 100%;
  }

  .article-extras {
    margin-top: 34px;
    padding-top: 26px;
  }

  .author-profile {
    justify-items: start;
    padding: 20px;
  }

  .author-profile__avatar {
    width: 104px;
  }

  .related-card--with-media {
    grid-template-columns: 1fr;
  }

  .mm-lightbox {
    align-content: center;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    padding: 58px 14px 18px;
  }

  .mm-lightbox__figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mm-lightbox__image {
    max-height: calc(100vh - 166px);
  }

  .mm-lightbox__nav {
    grid-row: 2;
  }

  .mm-lightbox__nav--prev {
    justify-self: end;
  }

  .mm-lightbox__nav--next {
    justify-self: start;
  }

  .newsletter-panel {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .newsletter-embed {
    grid-column: 1;
    grid-row: auto;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }
}
