:root {
  --ink: #101012;
  --paper: #fbfbf8;
  --white: #ffffff;
  --muted: #686761;
  --line: #dedbd2;
  --champagne: #b99a5b;
  --oxblood: #5a171c;
  --green: #31483d;
  --max: 1200px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(16, 16, 18, 0.02), transparent 38rem),
    var(--paper);
}

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

img {
  object-fit: cover;
}

.site-header {
  align-items: center;
  background: rgba(251, 251, 248, 0.92);
  border-bottom: 1px solid rgba(16, 16, 18, 0.1);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  margin: 0 auto;
  padding: 20px clamp(20px, 5vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.wordmark,
.footer-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  justify-content: center;
}

.desktop-nav a,
.search-link,
.meta-line,
.article-kicker {
  color: #33332f;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-link {
  align-items: center;
  display: flex;
  gap: 8px;
}

.hero-shell {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  margin: 0 auto;
  max-width: 1320px;
  min-height: 720px;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 56px) 48px;
}

.hero-copy {
  align-self: center;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 6.2vw, 92px);
  font-weight: 500;
  line-height: 0.94;
  margin: 0;
  max-width: 650px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin: 28px 0 0;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-actions a {
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  padding: 13px 18px;
  text-transform: uppercase;
}

.hero-actions a:first-child {
  background: var(--ink);
  color: var(--white);
}

.hero-search {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  margin-top: 32px;
  max-width: 560px;
  min-height: 58px;
  padding: 0 10px 0 16px;
}

.hero-search input {
  border: 0;
  font: inherit;
  min-width: 0;
  outline: 0;
}

.hero-search button {
  background: var(--ink);
  border: 0;
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 40px;
  padding: 0 16px;
  text-transform: uppercase;
}

.hero-feature {
  align-self: stretch;
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 560px;
}

.hero-media {
  min-height: 410px;
  overflow: hidden;
  position: relative;
}

.hero-media img,
.article-hero-image img {
  height: 100%;
  width: 100%;
}

.hero-feature-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 28px;
}

.hero-feature-copy p,
.hero-feature-copy span {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
  margin: 0;
}

.hero-feature-copy h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 500;
  line-height: 1;
  margin: 10px 0 14px;
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: 72px clamp(20px, 4vw, 36px);
}

.section-heading {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 0.8fr 1fr;
  margin-bottom: 34px;
  padding-top: 26px;
}

.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

.library-grid {
  border-top: 1px solid var(--ink);
}

.shelf-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
}

.shelf-card {
  background: var(--paper);
  display: grid;
  gap: 12px;
  min-height: 188px;
  padding: 22px;
}

.shelf-card span {
  color: var(--champagne);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.shelf-card strong {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
}

.shelf-card em {
  align-self: end;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.shelf-grid-compact {
  margin-bottom: 44px;
}

.library-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 120px 1fr 160px;
  min-height: 72px;
}

.library-row span,
.library-row em,
.latest-item span,
.latest-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.library-row strong {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 500;
}

.card-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(4, 1fr);
}

.article-card {
  display: grid;
  gap: 16px;
}

.profile-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.profile-card {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  padding-top: 16px;
}

.profile-card-media {
  aspect-ratio: 16 / 10;
  background: var(--ink);
  display: block;
  overflow: hidden;
  position: relative;
}

.profile-card-media img {
  height: 100%;
  width: 100%;
  object-position: 70% center;
}

.profile-card-body h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.05;
  margin: 8px 0 10px;
}

.profile-card-body p {
  color: var(--muted);
  display: -webkit-box;
  line-height: 1.65;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.profile-card-compact .profile-card-media {
  aspect-ratio: 4 / 3;
}

.article-card-large {
  grid-column: span 2;
}

.article-image {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  display: block;
  overflow: hidden;
  position: relative;
}

.article-image img {
  height: 100%;
  width: 100%;
  object-position: 72% center;
}

.article-card-large .article-image {
  aspect-ratio: 16 / 10;
}

.article-card-large .article-image img,
.hero-media img,
.article-hero-image img {
  object-position: center;
}

.article-image.article-image-studies img,
.article-card-large .article-image.article-image-studies img {
  object-position: 50% center !important;
}

.article-card-body h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.08;
  margin: 10px 0;
}

.article-card-body p,
.article-body p,
.policy-page p,
.policy-page li {
  color: var(--muted);
  line-height: 1.75;
}

.meta-line {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.latest-list {
  border-top: 1px solid var(--ink);
}

.latest-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 56px 1fr 130px;
  min-height: 72px;
}

.latest-item strong {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 500;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 42px;
  grid-template-columns: 1fr 1fr;
  margin-top: 70px;
  padding: 56px clamp(20px, 5vw, 56px);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  max-width: 420px;
}

.site-footer nav {
  display: grid;
  gap: 12px 28px;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.article-page,
.policy-page,
.listing-page {
  margin: 0 auto;
  max-width: var(--max);
  padding: 60px clamp(20px, 4vw, 36px);
}

.article-header {
  display: grid;
  gap: 42px;
  grid-template-columns: 0.95fr 1.05fr;
}

.article-title {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 86px);
  font-weight: 500;
  line-height: 0.96;
  margin: 14px 0 20px;
}

.article-dek {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.article-hero-image {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}

.article-body {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 0.68fr);
  margin-top: 54px;
}

.article-aside {
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  padding-top: 18px;
}

.article-content p {
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.48;
  margin: 0 0 28px;
}

.source-list {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
}

.source-list h2 {
  font-size: 14px;
  text-transform: uppercase;
}

.source-list a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.listing-hero,
.policy-page header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  padding-bottom: 30px;
}

.encyclopedia-hero {
  display: grid;
  gap: 18px;
}

.encyclopedia-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 740px;
}

.encyclopedia-results {
  margin-top: 34px;
}

.listing-hero h1,
.policy-page h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  margin: 0 0 16px;
}

.search-form {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  max-width: 620px;
}

.filter-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  margin-top: 20px;
  max-width: 860px;
}

.filter-form input {
  border: 1px solid var(--line);
  font: inherit;
  min-height: 46px;
  padding: 0 14px;
}

.filter-form button {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  padding: 0 18px;
}

.filter-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-subhead {
  margin-top: 44px;
}

.profile-page {
  margin: 0 auto;
  max-width: var(--max);
  padding: 60px clamp(20px, 4vw, 36px);
}

.profile-header {
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
}

.profile-header h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 106px);
  font-weight: 500;
  line-height: 0.92;
  margin: 12px 0 22px;
}

.profile-header > div > p:not(.article-kicker) {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
  max-width: 720px;
}

.profile-hero-figure {
  margin: 0;
}

.profile-hero-image {
  aspect-ratio: 4 / 5;
  background: var(--ink);
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.profile-hero-image img {
  height: 100%;
  width: 100%;
  object-position: 70% center;
}

.profile-hero-figure figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 10px;
}

.profile-hero-figure figcaption a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fact-grid {
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.fact-grid span {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  min-height: 76px;
  padding: 14px 14px 14px 0;
}

.fact-grid strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.profile-body {
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(190px, 0.3fr) minmax(0, 0.7fr);
  margin-top: 64px;
}

.profile-aside {
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  padding-top: 18px;
}

.profile-sections section {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.profile-sections h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  margin: 0 0 12px;
}

.profile-sections p {
  color: #33332f;
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
}

.profile-sections p + p {
  margin-top: 18px;
}

.search-form input {
  border: 1px solid var(--line);
  flex: 1;
  font: inherit;
  min-height: 48px;
  padding: 0 16px;
}

.search-form button {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  min-height: 48px;
  padding: 0 22px;
}

.policy-page {
  max-width: 820px;
}

.policy-page h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin-top: 36px;
}

.data-hero {
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: 72px clamp(20px, 4vw, 36px) 36px;
}

.data-hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 500;
  line-height: 0.92;
  margin: 0;
}

.data-hero p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
  margin: 24px 0 0;
  max-width: 680px;
}

.data-stat-grid {
  align-self: end;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.data-stat-grid span {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 18px 18px 18px 0;
}

.data-stat-grid strong {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 500;
}

.data-actions a:last-child {
  background: transparent;
  color: var(--ink);
}

.data-lab-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.lab-card {
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 14px;
  min-height: 290px;
  padding-top: 22px;
}

.lab-card-feature {
  background: var(--ink);
  color: var(--white);
  padding: 24px;
}

.lab-card h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 500;
  line-height: 0.98;
  margin: 0;
}

.lab-card p:not(.article-kicker) {
  color: var(--muted);
  line-height: 1.72;
  margin: 0;
}

.lab-card-feature p:not(.article-kicker) {
  color: rgba(255, 255, 255, 0.72);
}

.lab-card-feature .article-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.text-link {
  align-self: end;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

.lab-card-feature .text-link {
  color: var(--white);
}

.data-tool-page {
  max-width: 1280px;
}

.data-tool-hero {
  display: grid;
  gap: 14px;
}

.data-tool-hero p:not(.article-kicker) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
  max-width: 760px;
}

.dataset-disclosure {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  padding: 18px;
}

.dataset-disclosure strong {
  font-size: 12px;
  text-transform: uppercase;
}

.dataset-disclosure p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.dataset-disclosure a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.watch-finder-panel {
  background: var(--white);
  border: 1px solid var(--line);
}

.watch-filter-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.watch-filter-grid label {
  background: var(--paper);
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 10px;
  min-height: 92px;
  padding: 16px;
  text-transform: uppercase;
}

.watch-filter-grid input,
.watch-filter-grid select {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  min-height: 42px;
  padding: 0 12px;
  text-transform: none;
}

.watch-filter-grid input[type='range'] {
  accent-color: var(--ink);
  border: 0;
  min-height: 24px;
  padding: 0;
}

.watch-filter-grid label span {
  color: var(--ink);
  font-size: 13px;
}

.watch-tool-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.watch-tool-meta p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.watch-tool-meta button {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 14px;
  text-transform: uppercase;
}

.watch-table-wrap {
  overflow-x: auto;
}

.watch-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.watch-table th,
.watch-table td {
  border-top: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

.watch-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.watch-table td {
  color: #33332f;
  font-size: 14px;
  line-height: 1.55;
}

.watch-table td:first-child {
  min-width: 210px;
}

.watch-table strong,
.watch-table em {
  display: block;
}

.watch-table strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

.watch-table em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 8px;
}

.watch-table a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .site-header,
  .hero-shell,
  .data-hero,
  .section-heading,
  .article-header,
  .article-body,
  .profile-header,
  .profile-body,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .desktop-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 18px;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .desktop-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .search-link {
    justify-self: end;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-feature {
    min-height: auto;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shelf-grid,
  .profile-grid,
  .fact-grid,
  .data-stat-grid,
  .data-lab-grid,
  .watch-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .library-row,
  .latest-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 16px;
  }

  .search-link span {
    display: none;
  }

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

  .shelf-grid,
  .profile-grid,
  .fact-grid,
  .data-stat-grid,
  .data-lab-grid,
  .watch-filter-grid,
  .filter-form,
  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search {
    padding: 14px;
  }

  .article-card-large {
    grid-column: auto;
  }

  .hero-media {
    min-height: 300px;
  }

  .site-footer nav {
    grid-template-columns: 1fr;
  }
}
