
:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --paper: #ffffff;
  --paper-soft: #f0f3f7;
  --ink: #12141a;
  --muted: #606775;
  --line: #d8dde6;
  --accent: #123fb6;
  --accent-2: #b5272d;
  --accent-3: #14745f;
  --gold: #d3a72f;
  --shadow: 0 20px 60px rgba(18, 20, 26, 0.08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dark {
  color-scheme: dark;
  --bg: #0f1117;
  --paper: #161923;
  --paper-soft: #202536;
  --ink: #f4f6fb;
  --muted: #adb4c2;
  --line: #30384a;
  --accent: #7fa2ff;
  --accent-2: #ff777d;
  --accent-3: #6ad0b8;
  --gold: #e2bd55;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

body.nav-open,
body.search-active {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand img {
  width: clamp(190px, 22vw, 240px);
  max-height: 56px;
  height: auto;
  object-fit: contain;
}

body.dark .brand img,
body.dark .site-footer img {
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1vw, 14px);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-btn,
.menu-toggle,
.search-close {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.icon-btn {
  width: 42px;
  height: 42px;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  gap: 4px;
}

.menu-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: currentColor;
}

main {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  grid-template-areas:
    "masthead media"
    "feature media"
    "brief media";
  gap: 22px 40px;
  align-items: stretch;
  max-width: 1280px;
  min-height: min(720px, calc(100vh - 112px));
  margin: 0 auto;
  padding: 42px 24px 38px;
}

.hero__masthead {
  grid-area: masthead;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.hero__masthead span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__masthead p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  text-align: right;
}

.hero__feature {
  grid-area: feature;
  display: grid;
  align-content: center;
  padding: 14px 0 8px;
}

.hero__feature h1,
.article-hero h1,
.archive-hero h1 {
  margin: 18px 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6.8vw, 92px);
  font-weight: 500;
  line-height: 0.98;
}

.hero__feature p,
.archive-hero p,
.article-hero > p {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.subtle-link {
  color: var(--muted);
  font-weight: 800;
}

.subtle-link:hover {
  color: var(--accent);
}

.hero__media {
  grid-area: media;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper-soft);
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
  pointer-events: none;
}

.hero__media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(8, 10, 14, 0.72), transparent);
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero__media span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__brief {
  grid-area: brief;
  align-self: end;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 56%),
    var(--paper);
}

.hero__brief ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.hero__brief li {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) 1fr;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero__brief strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.05;
}

.hero__brief li span {
  color: var(--muted);
  font-size: 14px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  font-size: 20px;
}

.ticker {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.ticker > span,
.label,
.section-heading span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ticker > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mini-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.mini-link img {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.mini-link strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-link small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 84px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 500;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow: var(--shadow);
}

.post-card__image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.post-card__body {
  padding: 18px;
}

.post-card h3 {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.08;
}

.post-card p {
  display: -webkit-box;
  min-height: 78px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.category-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.theme-list {
  padding-left: 18px;
  margin: 16px 0 0;
  color: var(--muted);
}

.theme-list li + li {
  margin-top: 10px;
}

.newsletter {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 58%),
    var(--paper);
}

.newsletter h3 {
  margin: 12px 0 16px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}

.newsletter-form {
  display: grid;
  gap: 10px;
}

.newsletter-form input,
.archive-search,
.search-panel input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
}

.newsletter-form input:focus,
.archive-search:focus,
.search-panel input:focus {
  border-color: var(--accent);
}

.newsletter-form button,
.copy-link {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-weight: 800;
}

.form-note {
  margin: 10px 0 0;
  color: var(--accent-3);
  font-size: 13px;
}

.archive-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px 24px;
}

.archive-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.archive-search {
  max-width: 310px;
}

.archive-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 86px;
}

.article-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 90px;
}

.article-hero {
  max-width: 980px;
  margin: 0 auto 44px;
}

.article-hero h1 {
  font-size: clamp(42px, 7vw, 88px);
}

.article-hero figure {
  margin: 34px 0 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px) 280px;
  gap: 34px;
  align-items: start;
}

.article-rail,
.article-related {
  position: sticky;
  top: 124px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-rail a,
.article-rail button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.article-content {
  min-width: 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.72;
}

.article-content p {
  margin: 0 0 1.35em;
}

.article-content .lede {
  color: var(--ink);
  font-size: 1.2em;
  line-height: 1.55;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
}

.post-navigation a {
  display: block;
  min-height: 124px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.post-navigation span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-navigation strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
}

.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 34px;
  border-top: 1px solid var(--line);
}

.footer-primary {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: 34px;
}

.footer-brand {
  max-width: 460px;
}

.site-footer img {
  width: min(260px, 70vw);
}

.site-footer p {
  margin: 14px 0 0;
  color: var(--muted);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.footer-column a {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-brief p {
  margin-top: 0;
}

.footer-brief dl {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.footer-brief dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.footer-brief dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-brief dd {
  margin: 0;
  font-weight: 900;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  place-items: start center;
  padding: 80px 18px;
  background: rgba(12, 14, 20, 0.68);
}

body.search-active .search-modal {
  display: grid;
}

.search-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 28px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 34px;
}

.search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  font-size: 24px;
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.search-result {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.search-result strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
}

.search-result span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .ticker > div,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 20px 28px;
  }

  .hero__media img {
    min-height: 520px;
  }

  .footer-primary {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .content-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-rail,
  .article-related {
    position: static;
  }

  .article-rail {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  .topline {
    display: none;
  }

  .nav-shell {
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    padding: 12px 16px;
  }

  .menu-toggle {
    display: inline-grid;
    order: 3;
    justify-self: end;
  }

  .header-actions {
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: 69px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    grid-auto-rows: min-content;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    padding: 18px 20px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "masthead"
      "media"
      "feature"
      "brief";
    min-height: auto;
    padding: 34px 16px 30px;
  }

  .hero__masthead {
    display: grid;
    gap: 10px;
  }

  .hero__masthead p {
    max-width: none;
    text-align: left;
  }

  .hero__media img {
    height: auto;
    min-height: 360px;
    aspect-ratio: 5 / 4;
  }

  .ticker,
  .content-grid,
  .archive-hero,
  .archive-grid,
  .article-shell,
  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .ticker {
    grid-template-columns: 1fr;
  }

  .ticker > div {
    grid-template-columns: 1fr;
  }

  .archive-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-search {
    max-width: none;
  }

  .article-content {
    font-size: 19px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: min(188px, 54vw);
    max-height: 44px;
  }

  .header-actions .theme-toggle {
    display: none;
  }

  .hero__feature h1,
  .article-hero h1,
  .archive-hero h1 {
    font-size: 40px;
  }

  .hero__brief {
    padding: 18px;
  }

  .hero__brief li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .footer-primary {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .post-card h3 {
    font-size: 23px;
  }

  .search-panel {
    padding: 24px 18px;
  }
}

/* Foks-inspired visual system: typography, spacing, cards, and editorial layout. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f7f5;
  --paper: #ffffff;
  --paper-soft: #f2f2ef;
  --ink: #19191b;
  --muted: #71716f;
  --line: #deded8;
  --accent: #19191b;
  --accent-2: #696966;
  --accent-3: #19191b;
  --gold: #19191b;
  --shadow: 0 14px 40px rgba(25, 25, 27, 0.06);
  --serif: "Bricolage Grotesque", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --sans: "DM Sans", "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --foks-container: 1084px;
  --foks-wide: 1200px;
  --foks-radius: 6px;
}

body.dark {
  --bg: #101012;
  --paper: #171719;
  --paper-soft: #202024;
  --ink: #f7f7f5;
  --muted: #aaa9a5;
  --line: #343438;
  --accent: #f7f7f5;
  --accent-2: #c7c6c0;
  --accent-3: #f7f7f5;
  --gold: #f7f7f5;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

body {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.75), transparent 28%),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.48;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--serif);
  letter-spacing: 0;
}

.site-header {
  top: 20px;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.topline {
  display: none;
}

.nav-shell {
  max-width: var(--foks-container);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--foks-radius);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  box-shadow: 0 8px 24px rgba(25, 25, 27, 0.04);
  backdrop-filter: blur(12px);
}

.brand img {
  width: clamp(210px, 20vw, 260px);
  max-height: 58px;
  filter: none;
}

.site-footer img {
  filter: none;
}

.site-nav {
  gap: 2px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.site-nav a {
  padding: 8px 9px;
  border-radius: var(--foks-radius);
  color: var(--ink);
}

.site-nav a::after {
  display: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--paper-soft);
}

.icon-btn,
.menu-toggle,
.search-close,
.filter-btn,
.article-rail a,
.article-rail button,
.newsletter-form button,
.copy-link {
  border-radius: var(--foks-radius);
  border-color: var(--line);
  box-shadow: none;
}

.icon-btn {
  width: 36px;
  height: 36px;
}

.menu-toggle {
  width: 38px;
  height: 38px;
}

.home-page .hero {
  max-width: var(--foks-container);
  min-height: auto;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  grid-template-areas:
    "masthead masthead"
    "feature media"
    "feature brief";
  align-items: start;
  gap: 24px 30px;
  padding: 92px 0 40px;
}

.hero__masthead {
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 3px dotted var(--ink);
}

.hero__masthead span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(48px, 8.2vw, 104px);
  font-weight: 800;
  line-height: 0.9;
  text-transform: none;
  letter-spacing: 0;
}

.hero__masthead p {
  max-width: 360px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
}

.hero__feature {
  align-content: start;
  padding: 18px 0 0;
}

.hero__feature h1,
.article-hero h1,
.archive-hero h1 {
  margin: 18px 0 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.02;
}

.hero__feature p,
.archive-hero p,
.article-hero > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero__media {
  align-self: start;
  border-radius: var(--foks-radius);
  box-shadow: none;
}

.hero__media img {
  width: 100%;
  height: clamp(210px, 22vw, 260px);
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: var(--foks-radius);
}

.hero__media::after {
  height: 36%;
}

.hero__brief,
.sidebar-block,
.newsletter,
.post-card,
.mini-link,
.search-panel,
.post-navigation a {
  border: 1px solid var(--line);
  border-radius: var(--foks-radius);
  background: var(--paper);
  box-shadow: none;
}

.hero__brief {
  align-self: start;
  padding: 14px 0 0;
  border-width: 1px 0 0;
  background: transparent;
}

.hero__brief ul {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.hero__brief li {
  grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  padding-top: 8px;
}

.hero__brief strong {
  font-size: 15px;
  font-weight: 800;
}

.hero__brief li span {
  font-size: 13px;
  line-height: 1.35;
}

.pill {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--foks-radius);
  border-color: #c9c9c3;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: currentColor;
}

.post-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.text-link,
.subtle-link,
.newsletter-form button,
.copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #19191b;
  border-radius: var(--foks-radius);
  background: #19191b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.text-link::after,
.subtle-link::after {
  content: "→";
  font-size: 18px;
}

.subtle-link {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.subtle-link:hover {
  background: #19191b;
  border-color: #19191b;
  color: #ffffff;
}

.ticker {
  max-width: var(--foks-container);
  grid-template-columns: 150px 1fr;
  padding: 26px 0 56px;
  border-top: 3px dotted var(--ink);
}

.ticker > span,
.label,
.section-heading span,
.footer-brief dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ticker > span::before,
.section-heading span::before {
  content: "# ";
  color: var(--ink);
}

.ticker > div {
  gap: 12px;
}

.social-feed {
  max-width: var(--foks-container);
  margin: 0 auto;
  padding: 0 0 64px;
}

.social-feed__heading {
  margin-bottom: 18px;
}

.social-feed__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.social-widget {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 420px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--foks-radius);
  background: var(--paper);
}

.social-widget__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.social-widget__mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--foks-radius);
  background: #0a66c2;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
}

.social-widget[data-provider="x"] .social-widget__mark {
  background: #19191b;
}

.social-widget[data-provider="x-static"] .social-widget__mark {
  background: #19191b;
}

.social-widget[data-provider="linkedin"] .social-widget__mark {
  background: #0a66c2;
}

.social-widget[data-provider="facebook"] .social-widget__mark {
  background: #1877f2;
}

.social-widget[data-provider="instagram"] .social-widget__mark {
  background: #c13584;
}

.social-widget__embed:empty {
  display: none;
}

.social-widget.has-live-embed .social-widget__fallback {
  display: none;
}

.social-widget__embed {
  width: 100%;
  overflow: hidden;
}

.social-widget__embed .twitter-timeline,
.social-widget__embed .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.social-carousel {
  position: relative;
  display: grid;
  gap: 12px;
}

.social-carousel__track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.social-carousel__slide {
  min-width: 0;
  scroll-snap-align: start;
}

.social-carousel__controls {
  display: flex;
  justify-content: end;
  gap: 8px;
}

.social-carousel__button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--foks-radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.social-carousel__button:hover {
  background: var(--paper-soft);
}

.social-widget__embed iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--foks-radius);
  background: var(--paper);
}

.social-widget__fallback {
  display: grid;
  gap: 16px;
  min-height: 250px;
  align-content: space-between;
}

.social-widget__fallback small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.social-widget__fallback p {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.06;
}

.social-widget__fallback a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--foks-radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.social-widget__fallback a::after {
  content: "→";
  font-size: 17px;
}

.social-post-list {
  display: grid;
  gap: 10px;
}

.social-post-list a {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 0;
  padding: 12px 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.social-post-list a::after {
  display: none;
}

.social-post-list strong {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.08;
}

.social-post-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.social-post-list--x a {
  padding: 10px 0;
}

.social-post-list--x span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
}

.x-profile-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--foks-radius);
  background: color-mix(in srgb, var(--paper-soft) 72%, var(--paper));
}

.x-profile-card strong {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.x-profile-card > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.x-profile-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
}

.x-profile-card dl div {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.x-profile-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.x-profile-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.mini-link {
  grid-template-columns: 70px 1fr;
  padding: 8px;
  background: transparent;
}

.mini-link img {
  border-radius: var(--foks-radius);
}

.mini-link strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 800;
}

.content-grid {
  max-width: var(--foks-container);
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  padding: 0 0 88px;
}

.section-heading {
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 3px dotted var(--ink);
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 800;
}

.home-page .post-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

.home-page .post-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) 1fr;
  min-height: 236px;
  overflow: hidden;
}

.home-page .post-card__image img {
  height: 100%;
  aspect-ratio: auto;
}

.post-card {
  border-color: var(--line);
  overflow: visible;
}

.post-card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.post-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--foks-radius);
}

.post-card__image img {
  aspect-ratio: 1.24 / 1;
  border-radius: var(--foks-radius);
}

.post-card__body {
  display: grid;
  align-content: center;
  padding: 24px;
}

.post-card h3 {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.02;
}

.post-card h3 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.post-card p {
  min-height: 0;
  color: var(--muted);
  font-size: 17px;
}

.archive-grid.post-grid {
  max-width: var(--foks-container);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 20px;
}

.archive-grid .post-card {
  border: 0;
  background: transparent;
}

.archive-grid .post-card__body {
  padding: 16px 0 0;
}

.archive-grid .post-card__image {
  aspect-ratio: 1.24 / 1;
}

.archive-grid .post-card h3 {
  font-size: 28px;
}

.archive-hero {
  max-width: var(--foks-container);
  padding: 72px 0 24px;
}

.archive-hero .section-heading {
  display: grid;
  justify-content: start;
  border-bottom: 0;
  margin-bottom: 10px;
}

.archive-tools {
  margin-top: 34px;
}

.knowledge-hub {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 34px;
  max-width: var(--foks-container);
  margin: 14px auto 46px;
  padding: 28px 0 36px;
  border-top: 3px dotted var(--ink);
  border-bottom: 3px dotted var(--ink);
}

.knowledge-hub__intro {
  max-width: 760px;
}

.knowledge-hub .label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.knowledge-hub h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  line-height: 1;
}

.knowledge-hub p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.knowledge-hub__topics {
  display: grid;
  gap: 12px;
  align-content: start;
}

.knowledge-hub__topics a {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--foks-radius);
  background: var(--paper);
  text-decoration: none;
}

.knowledge-hub__topics a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.knowledge-hub__topics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.knowledge-hub__topics strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.12;
}

.knowledge-hub__guide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 10px;
}

.knowledge-hub__guide div {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.knowledge-hub__guide h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.knowledge-hub__guide p {
  font-size: 17px;
}

.knowledge-hub__guide a {
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.knowledge-hub__guide a:hover {
  color: var(--ink);
}

.archive-search,
.newsletter-form input,
.search-panel input {
  border-radius: 999px;
  background: var(--paper);
}

.article-shell {
  max-width: var(--foks-container);
  padding: 72px 0 90px;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.95fr);
  gap: 52px;
  max-width: none;
  margin-bottom: 52px;
  padding-bottom: 48px;
  border-bottom: 3px dotted var(--ink);
}

.article-hero .post-meta,
.article-hero h1,
.article-hero > p {
  grid-column: 1;
}

.article-hero figure {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  margin: 0;
  border-radius: var(--foks-radius);
  box-shadow: none;
}

.article-hero img {
  aspect-ratio: 1.38 / 1;
  border-radius: var(--foks-radius);
}

.article-layout {
  grid-template-columns: minmax(140px, 170px) minmax(0, 1fr) minmax(220px, 260px);
  gap: 28px;
  justify-content: start;
}

.article-related {
  display: flex;
}

.article-rail {
  top: 112px;
  gap: 12px;
}

.article-rail .label {
  padding-bottom: 14px;
}

.article-rail a,
.article-rail button {
  justify-content: start;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content {
  font-family: var(--sans);
  font-size: 21px;
  line-height: 1.56;
}

.article-content .lede {
  font-size: 23px;
  line-height: 1.5;
}

.article-content p {
  margin-bottom: 1.2em;
}

.article-content a {
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.article-content a:hover {
  color: var(--ink);
}

.article-content .article-context-links {
  margin-top: 2em;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

.article-content h2,
.article-content h3 {
  font-family: var(--serif);
  font-weight: 800;
}

.post-navigation {
  max-width: 700px;
  margin: 56px auto 0;
}

.site-footer {
  max-width: var(--foks-container);
  padding: 54px 0 42px;
  border-top: 3px dotted var(--ink);
}

.footer-primary {
  grid-template-columns: minmax(230px, 1.1fr) repeat(3, minmax(150px, 0.7fr));
  gap: 40px;
  padding-top: 28px;
}

.site-footer img {
  width: min(210px, 70vw);
}

.footer-column h2 {
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-size: 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
}

.footer-column a,
.site-footer p,
.footer-bottom {
  color: var(--ink);
}

.footer-badges span {
  border-radius: var(--foks-radius);
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.footer-bottom {
  justify-content: center;
  border-top-color: var(--line);
  text-align: center;
}

.search-panel {
  border-radius: var(--foks-radius);
}

.search-panel label {
  font-family: var(--serif);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .nav-shell,
  .home-page .hero,
  .ticker,
  .social-feed,
  .home-authority,
  .content-grid,
  .knowledge-hub,
  .archive-hero,
  .archive-grid.post-grid,
  .article-shell,
  .site-footer {
    width: calc(100% - 32px);
  }
}

@media (max-width: 920px) {
  .site-header {
    top: 0;
  }

  .nav-shell {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 17px;
  }

  .home-page .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "masthead"
      "media"
      "feature"
      "brief";
    padding-top: 48px;
  }

  .hero__masthead {
    display: grid;
    gap: 16px;
  }

  .hero__masthead p {
    max-width: 620px;
    text-align: left;
  }

  .hero__media img {
    height: clamp(210px, 46vw, 330px);
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .hero__brief ul {
    grid-template-columns: 1fr;
  }

  .hero__brief li {
    grid-template-columns: 1fr;
  }

  .ticker,
  .social-feed__grid,
  .content-grid,
  .knowledge-hub,
  .article-layout,
  .article-hero {
    grid-template-columns: 1fr;
  }

  .knowledge-hub__guide {
    grid-template-columns: 1fr;
  }

  .article-hero figure,
  .article-hero .post-meta,
  .article-hero h1,
  .article-hero > p {
    grid-column: auto;
  }

  .article-hero figure {
    grid-row: auto;
  }

  .article-rail {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .archive-grid.post-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .post-card {
    grid-template-columns: 1fr;
  }

  .home-page .post-card__image img {
    aspect-ratio: 1.35 / 1;
  }

  .footer-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand img {
    width: min(176px, 56vw);
  }

  .hero__masthead span {
    font-size: 48px;
  }

  .hero__feature h1,
  .article-hero h1,
  .archive-hero h1 {
    font-size: 38px;
  }

  .archive-grid.post-grid,
  .post-grid,
  .footer-primary {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .knowledge-hub,
  .archive-grid.post-grid,
  .article-shell,
  .site-footer {
    padding-bottom: 54px;
  }

  .ticker {
    grid-template-columns: 1fr;
  }

  .social-feed {
    padding-bottom: 46px;
  }

  .hero__brief li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .site-header {
    top: 0;
    z-index: 1000;
  }

  .nav-shell {
    position: relative;
    z-index: 1001;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    max-width: none;
    padding: 8px 66px 8px 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .brand {
    grid-column: 1;
    min-width: 0;
  }

  .brand img {
    width: min(190px, calc(100vw - 96px));
    max-height: 40px;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    position: fixed;
    top: 8px;
    right: 14px;
    z-index: 1200;
    display: inline-grid;
    grid-column: auto;
    justify-self: end;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-color: #19191b;
    background: var(--paper);
    box-shadow: 0 6px 18px rgba(25, 25, 27, 0.18);
    color: #19191b;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  body.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 56px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1150;
    display: grid;
    grid-auto-rows: min-content;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    padding: 18px 20px 28px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    opacity: 0;
    overflow-y: auto;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 17px;
  }
}

.site-footer .footer-primary { grid-template-columns: minmax(0, 1.1fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 920px) { .site-footer .footer-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .site-footer .footer-primary { grid-template-columns: 1fr; } }


.answer-brief {
  margin: 0 0 1.6em;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

.answer-brief h2 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 18px;
}

.answer-brief ul,
.checklist-list {
  display: grid;
  gap: 10px;
  margin: 0 0 1.3em;
  padding-left: 1.2em;
}

.answer-brief li,
.checklist-list li {
  padding-left: 4px;
}

.term-grid,
.research-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 1.5em 0;
  font-family: var(--sans);
}

.term-card,
.research-card {
  display: block;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.term-card h3,
.research-card strong {
  display: block;
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 18px;
}

.term-card p,
.research-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.research-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.resource-table {
  display: grid;
  gap: 1px;
  margin: 1.5em 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
}

.resource-table > div {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.2fr;
  gap: 1px;
  background: var(--line);
}

.resource-table span,
.resource-table strong {
  min-width: 0;
  padding: 12px;
  background: var(--paper);
}

.timeline-list {
  display: grid;
  gap: 12px;
  margin: 1.5em 0;
  font-family: var(--sans);
}

.timeline-list div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.timeline-list span {
  grid-row: span 2;
  color: var(--accent);
  font-weight: 900;
}

.timeline-list strong {
  font-size: 17px;
}

.timeline-list p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.research-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.research-strip h2 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 52px);
}

.research-strip p {
  max-width: 760px;
  color: var(--muted);
}

.research-strip__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.research-strip__links a {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 900;
  text-align: center;
}

.home-authority {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--foks-container);
  margin: 0 auto;
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-authority__panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  min-width: 0;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 92%, var(--paper-soft));
}

.home-authority__copy {
  display: grid;
  gap: 10px;
}

.home-authority__copy h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.08;
}

.home-authority__copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.home-authority__links {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-authority__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.home-authority__links a::after {
  content: ">";
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 900;
}

@media (max-width: 920px) {
  .term-grid,
  .research-card-grid,
  .research-strip,
  .research-strip__links,
  .resource-table > div {
    grid-template-columns: 1fr;
  }

  .home-authority {
    grid-template-columns: 1fr;
    padding: 26px 16px;
  }

  .home-authority__panel {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .home-authority__links {
    grid-template-columns: 1fr;
  }

  .home-authority__links a {
    min-height: 46px;
  }
}


.article-deep-dive,
.article-author-box,
.source-box {
  margin: 1.6em 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper-soft) 82%, var(--paper));
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.58;
}

.article-deep-dive h2,
.article-author-box h2,
.article-deep-dive h3,
.article-author-box h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
}

.article-deep-dive p,
.article-author-box p {
  margin: 0 0 1em;
}

.download-list {
  display: grid;
  gap: 12px;
  margin: 1.5em 0;
  font-family: var(--sans);
}

.download-list a {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.download-list strong {
  font-size: 17px;
}

.download-list span {
  color: var(--muted);
  font-size: 14px;
}
