:root {
  --ink: #151310;
  --muted: #6f6963;
  --paper: #ffffff;
  --soft: #f5f3f0;
  --line: #dedbd7;
  --red: #cb3b2e;
  --red-soft: #f5e8e5;
  --teal: #248f83;
  --blue: #2f72bc;
  --purple: #6c4c95;
  --gold: #e6a238;
  --page: 1260px;
  --copy: 760px;
}

* { box-sizing: border-box; letter-spacing: 0; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button, input, select { font: inherit; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }

.page-shell {
  width: min(100% - 64px, var(--page));
  margin-inline: auto;
}

.copy-column { max-width: var(--copy); }

.utility-row {
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: center;
}

.contents-button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.contents {
  display: flex;
  gap: 24px;
  margin-left: 28px;
  font-size: 14px;
}

.contents a { color: var(--ink); text-decoration: none; }
.contents a:hover { color: var(--red); }

.social-panel {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 0;
  width: 390px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(20, 18, 16, .08);
  font-size: 13px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
}
.social-row + .social-row { margin-top: 6px; }
.social-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.social-panel a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.social-panel a:hover { color: var(--red); }
.social-panel svg { width: 13px; height: 13px; flex: 0 0 auto; fill: currentColor; }

.hero { padding-top: 38px; padding-bottom: 92px; }

h1, h2, h3 { margin: 0; font-weight: 850; line-height: 1.03; }

h1 {
  max-width: 760px;
  font-size: 66px;
}

h1 span { color: var(--red); }

.dek {
  max-width: 700px;
  margin: 24px 0 0;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
}

.byline {
  margin: 22px 0 0;
  color: var(--red);
  font-size: 15px;
  font-weight: 700;
}

.intro { margin-top: 28px; max-width: 720px; }
.intro p { margin: 0 0 18px; }

.metrics-band {
  padding: 38px 0 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.metrics-title {
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 850;
}

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

.metrics-grid div { min-width: 0; }
.metrics-grid strong {
  display: block;
  color: var(--red);
  font-size: 45px;
  line-height: 1;
  white-space: nowrap;
}
.metrics-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}

.story-section {
  padding: 92px 0 104px;
  border-bottom: 1px solid var(--line);
}

h2 {
  max-width: 880px;
  font-size: 44px;
}

h3 { margin-top: 48px; font-size: 26px; }

.copy-column > p { margin: 22px 0 0; }

.charts-section {
  padding: 96px 0 0;
  border-bottom: 1px solid var(--line);
}

.charts-intro { padding-bottom: 78px; }

.chart-story {
  padding: 76px 0 84px;
  border-top: 1px solid var(--line);
}

.chart-story-copy { max-width: 820px; }
.chart-story h3 {
  max-width: 960px;
  margin: 0;
  font-size: 40px;
  line-height: 1.06;
}
.chart-story-copy p { margin: 20px 0 0; }

.story-chart,
.ranked-jokes {
  width: 100%;
  margin: 42px 0 0;
}

.story-chart img {
  display: block;
  width: 100%;
  height: auto;
}

.ranked-jokes { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.joke-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 1fr));
  border-bottom: 1px solid var(--line);
}
.joke-tabs button {
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}
.joke-tabs button:last-child { border-right: 0; }
.joke-tabs button:hover { color: var(--red); }
.joke-tabs button.is-active { background: var(--red); color: var(--paper); }
.ranked-jokes-stage { padding: 36px 0 30px; }
.ranked-joke { max-width: 920px; }
.ranked-joke[hidden] { display: none; }
.ranked-joke p { margin: 18px 0 0; font-size: 20px; line-height: 1.5; }
.ranked-joke-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 14px;
}
.ranked-joke-meta strong { color: var(--red); font-size: 42px; line-height: 1; }
.ranked-joke-meta a { margin-left: auto; color: var(--ink); font-weight: 700; }
.ranked-jokes-note { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.wide-figure,
.interactive-figure,
.variant-explorer {
  margin: 54px 0 0;
  width: 100%;
}

.wide-figure img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.compact-top { margin-top: 30px; }

.series-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.series-controls button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.series-controls button:hover { border-color: var(--red); }
.series-controls button[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: var(--paper);
}

.chart-summary {
  min-height: 28px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
}

.line-chart,
.heatmap {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 13px; }
.chart-line { fill: none; stroke: var(--red); stroke-width: 4; }
.chart-area { fill: var(--red-soft); }
.chart-point { fill: var(--red); }
.chart-focus { stroke: var(--ink); stroke-width: 1; }
.chart-hit { fill: transparent; cursor: crosshair; }
.heat-label { fill: var(--ink); font-size: 13px; }
.heat-year { fill: var(--muted); font-size: 12px; }
.heat-cell { stroke: var(--paper); stroke-width: 1; }

.event-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-strip span {
  padding: 14px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  border-right: 1px solid var(--line);
}
.event-strip span:last-child { border-right: 0; }
.event-strip b { display: block; color: var(--ink); font-size: 14px; }

.split-copy .page-shell,
.split-copy {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  gap: 64px;
  align-items: end;
}

.key-number {
  padding-bottom: 4px;
}
.key-number strong {
  display: block;
  color: var(--red);
  font-size: 45px;
  line-height: 1;
}
.key-number span {
  display: block;
  max-width: 330px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}

.variant-explorer {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.variant-toolbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 14px;
  align-items: center;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
}
.icon-button:hover { border-color: var(--red); color: var(--red); }
.variant-status { text-align: center; color: var(--muted); font-size: 14px; }

.variant-timeline {
  position: relative;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.variant-timeline::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--line);
}
.variant-node { position: relative; min-width: 0; }
.variant-node time {
  position: relative;
  z-index: 1;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
}
.variant-node p {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.birthday-section {
  padding: 94px 0 110px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.birthday-tool {
  margin-top: 48px;
  padding: 28px;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.test-progress {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.test-question {
  margin: 38px 0 30px;
  max-width: 900px;
  color: var(--red);
  font-size: 48px;
  font-weight: 850;
  line-height: 1.05;
}

.choice-row,
.form-row,
.test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.primary-button { border: 1px solid var(--red); background: var(--red); color: var(--paper); }
.primary-button:hover { background: #ad2e23; }
.secondary-button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.secondary-button:hover { border-color: var(--red); }

.field-group {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  gap: 7px;
}
.field-group label { color: var(--muted); font-size: 14px; }
.field-group input,
.field-group select {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.field-group input:focus,
.field-group select:focus { outline: 2px solid var(--red); outline-offset: 1px; }

.test-actions { margin-top: 24px; }
.test-note { margin-top: 20px; color: var(--muted); font-size: 14px; }

.joke-result { margin-top: 28px; }
.joke-date { color: var(--red); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.joke-text {
  max-width: 920px;
  margin: 18px 0 0;
  white-space: pre-line;
  font-size: 25px;
  line-height: 1.42;
  font-weight: 600;
}
.joke-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 14px;
}
.joke-meta strong { color: var(--ink); }
.result-note { max-width: 780px; margin-top: 18px; color: var(--muted); font-size: 14px; }

.share-experience {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.share-experience h4,
.updates-form h4 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
}
.share-card-canvas {
  display: block;
  width: min(100%, 620px);
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(23, 22, 20, .16);
  border-radius: 2px;
  background: linear-gradient(135deg, #f0df88, #7fd8c9 34%, #619edb 70%, #e7abc0);
  box-shadow: 0 20px 50px rgba(23, 22, 20, .12);
}
.share-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.share-actions { margin-top: 14px; }

.updates-form {
  max-width: 760px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.updates-form > p {
  max-width: 650px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}
.updates-row {
  display: flex;
  gap: 10px;
}
.updates-row input {
  width: min(100%, 360px);
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.updates-row input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.updates-row button:disabled { cursor: default; opacity: .55; }
.updates-form .updates-consent {
  margin-top: 12px;
  font-size: 12px;
}
.updates-form .updates-status {
  min-height: 20px;
  margin-top: 8px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.methodology { background: var(--paper); }
.source-list { margin: 20px 0 0; padding-left: 22px; }
.source-list li { margin: 10px 0; }

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(21, 19, 16, .16);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner,
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.footer-inner { justify-content: space-between; }
.footer-inner a { color: inherit; }
.footer-inner button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-inner a:hover,
.footer-inner button:hover { color: var(--red); }

.cookie-banner {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  max-width: 1120px;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid rgba(21, 19, 16, .28);
  border-radius: 8px;
  background: rgba(249, 247, 238, .96);
  box-shadow: 0 18px 60px rgba(21, 19, 16, .22);
  backdrop-filter: blur(16px);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner-copy strong { color: var(--ink); }
.cookie-banner-copy p {
  max-width: 720px;
  margin: 4px 0 3px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.cookie-banner-copy a { font-size: 13px; }
.cookie-banner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cookie-banner-actions button {
  min-width: 178px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.cookie-banner-actions button:hover,
.cookie-banner-actions button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.legal-page {
  min-height: calc(100svh - 128px);
  padding: 74px 0 96px;
}
.legal-inner { max-width: 860px; }
.legal-back {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.legal-page h1 {
  max-width: 800px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
}
.legal-page h2 {
  margin: 52px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
}
.legal-page p {
  max-width: 760px;
  margin: 18px 0 0;
}
.legal-updated {
  color: var(--muted);
  font-size: 14px;
}
.legal-table-wrap {
  margin-top: 34px;
  overflow-x: auto;
}
.legal-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table-wrap th,
.legal-table-wrap td {
  padding: 13px 12px;
  border: 1px solid rgba(21, 19, 16, .18);
  text-align: left;
  vertical-align: top;
}
.legal-table-wrap th { background: rgba(255, 255, 255, .42); }
.legal-home {
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
}
.legal-home:hover { color: var(--paper); }

@media (max-width: 1100px) {
  .utility-row { min-height: 164px; align-items: flex-start; padding-top: 18px; }
  .contents-button { margin-top: 8px; }
  .contents { margin-top: 8px; }
  .social-panel { top: 74px; left: 0; right: auto; width: min(100%, 520px); }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .variant-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .variant-timeline::before { display: none; }
}

@media (max-width: 800px) {
  body { font-size: 17px; }
  .page-shell { width: min(100% - 36px, var(--page)); }
  .contents-button { width: 100%; text-align: left; }
  .contents {
    display: none;
    position: absolute;
    z-index: 10;
    top: 56px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 18px;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 10px 28px rgba(20, 18, 16, .1);
  }
  .contents.is-open { display: flex; }
  .hero { padding-top: 26px; padding-bottom: 70px; }
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  .dek { font-size: 22px; }
  .story-section { padding: 72px 0 80px; }
  .charts-section { padding-top: 72px; }
  .charts-intro { padding-bottom: 58px; }
  .chart-story { padding: 58px 0 66px; }
  .chart-story h3 { font-size: 34px; }
  .metrics-grid { gap: 30px 20px; }
  .metrics-grid strong { font-size: 36px; }
  .split-copy { display: block; }
  .split-copy .page-shell { display: block; }
  .key-number { margin-top: 36px; }
  .event-strip { grid-template-columns: 1fr 1fr; }
  .event-strip span { border-bottom: 1px solid var(--line); }
  .variant-timeline { grid-template-columns: 1fr 1fr; }
  .test-question { font-size: 38px; }
  .joke-text { font-size: 22px; }
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cookie-banner-actions button { min-width: 0; }
  .legal-page { padding: 54px 0 72px; }
  .legal-page h1 { font-size: 48px; }
}

@media (max-width: 520px) {
  .page-shell { width: min(100% - 28px, var(--page)); }
  .utility-row { min-height: 210px; }
  .social-panel { top: 68px; padding: 12px 14px; }
  .social-row { gap: 7px 11px; }
  .social-label { width: 100%; }
  h1 { font-size: 39px; }
  h2 { font-size: 32px; }
  .dek { font-size: 20px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metrics-grid strong { font-size: 30px; }
  .metrics-grid span { font-size: 13px; }
  .chart-story h3 { font-size: 30px; }
  .story-chart,
  .interactive-figure,
  .ranked-jokes { margin-top: 32px; }
  .ranked-jokes-stage { padding-top: 26px; }
  .ranked-joke p { font-size: 18px; }
  .ranked-joke-meta a { width: 100%; margin-left: 58px; }
  .wide-figure,
  .interactive-figure,
  .variant-explorer { margin-top: 38px; }
  .series-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .series-controls button { white-space: nowrap; }
  .event-strip { grid-template-columns: 1fr; }
  .event-strip span { border-right: 0; }
  .variant-explorer,
  .birthday-tool { padding: 20px; }
  .variant-timeline { grid-template-columns: 1fr; }
  .test-question { font-size: 32px; }
  .choice-row .primary-button,
  .choice-row .secondary-button { flex: 1; }
  .field-group { width: 100%; }
  .test-actions button { width: 100%; }
  .share-card-canvas { width: 100%; }
  .updates-row { flex-direction: column; }
  .updates-row input,
  .updates-row button { width: 100%; }
  .joke-text { font-size: 20px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner nav { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cookie-banner { padding: 16px; }
  .cookie-banner-actions { grid-template-columns: 1fr; }
  .legal-page h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Editorial treatment inspired by the supplied references. */
body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: #eee9c9;
}

body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: -8%;
  background: linear-gradient(112deg,
    rgba(246, 229, 129, .82) 0%,
    rgba(239, 230, 190, .72) 26%,
    rgba(131, 222, 207, .68) 54%,
    rgba(66, 150, 216, .72) 78%,
    rgba(243, 178, 196, .76) 100%);
  filter: blur(54px) saturate(1.08);
  transform: scale(1.08);
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(20, 16, 10, .018) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}

.utility-row { z-index: 60; min-height: 96px; }

.social-panel {
  position: fixed;
  z-index: 70;
  top: 18px;
  right: max(32px, calc((100vw - var(--page)) / 2));
  left: auto;
  width: 390px;
  background: rgba(255, 255, 255, .7);
  border-color: rgba(21, 19, 16, .2);
  box-shadow: 0 10px 30px rgba(24, 22, 18, .12);
  backdrop-filter: blur(16px);
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.hero {
  position: relative;
  min-height: min(760px, 88svh);
  overflow: hidden;
  border-top: 1px solid rgba(21, 19, 16, .16);
  border-bottom: 1px solid rgba(21, 19, 16, .16);
}

.hero-inner {
  position: relative;
  z-index: 3;
  min-height: min(760px, 88svh);
  display: flex;
  align-items: center;
  padding-block: 72px;
}

.hero-copy { max-width: 670px; }
.hero h1 { max-width: 670px; font-size: clamp(64px, 6.2vw, 104px); line-height: .91; }
.hero .dek { max-width: 580px; font-size: 24px; }

.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(244, 236, 198, .98) 0 34%, rgba(244, 236, 198, .76) 48%, transparent 72%);
}

.hero-visual {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 34%;
  overflow: hidden;
  background: #c6c2ad;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
  filter: grayscale(1) contrast(1.55) brightness(.92);
  opacity: .84;
  mix-blend-mode: multiply;
  image-rendering: pixelated;
  transform: scale(1.03);
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.18) 5px 7px, rgba(0,0,0,.14) 7px 8px);
  mix-blend-mode: hard-light;
}

.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -3%;
  pointer-events: none;
  background-image: var(--hero-image, url("hero-laughter.jpg"));
  background-position: var(--hero-position, center 44%);
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(2.2);
  opacity: .18;
  mix-blend-mode: difference;
  clip-path: polygon(0 15%, 100% 15%, 100% 23%, 0 23%, 0 49%, 100% 49%, 100% 57%, 0 57%, 0 81%, 100% 81%, 100% 87%, 0 87%);
  animation: hero-glitch 2.8s steps(1, end) infinite;
}

@keyframes hero-glitch {
  0%, 84%, 100% { transform: translate(0); }
  85% { transform: translate(10px, -3px); }
  88% { transform: translate(-7px, 4px); }
  91% { transform: translate(4px, 0); }
}

.intro-section { padding: 72px 0 76px; border-bottom: 1px solid rgba(21, 19, 16, .16); }
.intro { margin-top: 0; }

.metrics-band,
.birthday-section,
.methodology { background: rgba(255, 255, 255, .24); }

.story-section,
.charts-section,
.birthday-section,
.metrics-band { border-color: rgba(21, 19, 16, .16); }

.metrics-grid strong,
.byline,
h1 span { color: #b9362e; }

.chart-story {
  min-height: 500px;
  padding: 74px 0 78px;
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.55fr);
  gap: clamp(44px, 6vw, 84px);
  align-items: center;
  border-color: rgba(21, 19, 16, .16);
}

.chart-story-copy { max-width: 390px; }
.chart-story h3 { font-size: clamp(36px, 3.5vw, 54px); line-height: .98; }
.chart-story-copy p { font-size: 17px; line-height: 1.55; }

.story-chart,
.interactive-figure,
.ranked-jokes {
  width: 100%;
  max-width: 820px;
  margin: 0;
  justify-self: end;
}

.story-chart img {
  mix-blend-mode: multiply;
  filter: saturate(.72) contrast(.96);
  opacity: .94;
}

.line-chart,
.heatmap {
  border-color: rgba(21, 19, 16, .18);
  mix-blend-mode: multiply;
}

.series-controls button,
.joke-tabs button,
.birthday-tool,
.secondary-button,
.field-group input,
.field-group select {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px);
}

.ranked-jokes {
  border-color: rgba(21, 19, 16, .2);
  background: rgba(255, 255, 255, .2);
}
.ranked-jokes-stage { padding-inline: 24px; }
.ranked-jokes-note { padding-inline: 24px; }

.joke-break {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(108px, 12vw, 168px) 4%;
  border-top: 1px solid rgba(21, 19, 16, .16);
  text-align: center;
}

.joke-break::before {
  content: "“";
  display: block;
  height: 62px;
  color: rgba(185, 54, 46, .84);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 84px;
  line-height: 1;
}

.joke-break blockquote {
  max-width: 1080px;
  margin: 18px auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 44px);
  font-style: italic;
  line-height: 1.18;
}

.joke-break figcaption {
  max-width: 900px;
  margin: 28px auto 0;
  color: rgba(21, 19, 16, .62);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.joke-break figcaption a { color: inherit; }
.joke-break--compact blockquote { max-width: 920px; }

.joke-break--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding-inline: 2%;
}
.joke-break--pair::before { display: none; }
.joke-break--pair > div { padding: 30px 4%; }
.joke-break--pair > div + div { border-left: 1px solid rgba(21, 19, 16, .22); }
.joke-break--pair blockquote { margin-top: 0; font-size: clamp(25px, 2.3vw, 36px); }

.contents-button {
  position: fixed;
  z-index: 90;
  top: 16px;
  left: 18px;
  width: auto;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(21, 19, 16, .2);
  border-radius: 4px;
  background: rgba(244, 239, 202, .84);
  box-shadow: 0 6px 20px rgba(21, 19, 16, .08);
  backdrop-filter: blur(12px);
}

.contents {
  display: none;
  position: fixed;
  z-index: 89;
  top: 64px;
  left: 18px;
  width: min(330px, calc(100vw - 36px));
  margin: 0;
  padding: 16px;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(21, 19, 16, .2);
  border-radius: 4px;
  background: rgba(244, 239, 202, .94);
  box-shadow: 0 12px 34px rgba(21, 19, 16, .14);
  backdrop-filter: blur(16px);
}

.contents.is-open { display: flex; }

.status-notes {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(21, 19, 16, .2);
  color: rgba(21, 19, 16, .7);
  font-size: 13px;
  line-height: 1.5;
}

.status-notes p { margin: 0 0 8px; }

@media (max-width: 900px) {
  body { padding-bottom: 104px; }
  .utility-row { min-height: 68px; padding-top: 12px; }
  .social-panel {
    position: fixed;
    top: auto;
    right: 14px;
    bottom: 12px;
    left: 14px;
    width: auto;
    padding: 10px 12px;
    font-size: 11px;
  }
  .social-label { font-size: 9px; }
  .hero, .hero-inner { min-height: 700px; }
  .hero-inner { align-items: flex-start; padding-top: 78px; }
  .hero-copy { max-width: 88%; }
  .hero h1 { font-size: clamp(52px, 11vw, 76px); }
  .hero .dek { font-size: 21px; }
  .hero-visual { inset: 34% -10% 0 18%; }
  .hero-visual img { opacity: .62; }
  .hero::after { background: linear-gradient(180deg, rgba(244,236,198,.98) 0 37%, rgba(244,236,198,.68) 60%, transparent 88%); }
  .hero[data-hero-variant="laughter"]::after {
    background: linear-gradient(180deg, rgba(244,236,198,.98) 0 36%, rgba(244,236,198,.43) 58%, transparent 78%);
  }
  .hero[data-hero-variant="laughter"] .hero-visual img { opacity: .76; }
  .chart-story {
    min-width: 0;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .chart-story > * { min-width: 0; }
  .chart-story-copy { width: 100%; max-width: none; }
  .story-chart,
  .interactive-figure,
  .ranked-jokes { min-width: 0; max-width: 100%; justify-self: start; }
  .series-controls { max-width: 100%; }
  .joke-break--pair { grid-template-columns: 1fr; gap: 48px; }
  .joke-break--pair > div + div { padding-top: 64px; border-top: 1px solid rgba(21, 19, 16, .22); border-left: 0; }
  .contents-button {
    top: 10px;
    left: 10px;
    width: auto;
    margin: 0;
  }
  .contents {
    top: 58px;
    right: auto;
    left: 10px;
    width: min(330px, calc(100vw - 20px));
    margin: 0;
  }
}

@media (max-width: 520px) {
  body { padding-bottom: 88px; }
  .social-panel { right: 10px; bottom: 8px; left: 10px; padding: 8px 10px; font-size: 10px; line-height: 1.25; }
  .social-row { gap: 5px 9px; }
  .social-label { width: auto; }
  .social-panel a { gap: 3px; }
  .hero, .hero-inner { min-height: 680px; }
  .hero-inner { padding-top: 64px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: 50px; }
  .hero .dek { max-width: 94%; font-size: 19px; }
  .hero-visual { inset: 40% -32% 0 4%; }
  .intro-section { padding-block: 56px; }
  .chart-story { padding: 58px 0 64px; gap: 30px; }
  .chart-story h3 { font-size: 36px; }
  .joke-break { padding: 100px 0 112px; }
  .joke-break blockquote { font-size: 27px; line-height: 1.2; }
  .joke-break figcaption { max-width: 92%; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual::after { animation: none; }
}
