:root {
  --ink: #17232c;
  --ink-soft: #4b5c66;
  --paper: #fffdf7;
  --canvas: #f3eee2;
  --line: #d8d1c1;
  --blue: #075bcd;
  --blue-deep: #074397;
  --lime: #cbed38;
  --yellow: #ffd84d;
  --shadow: 0 14px 36px rgb(23 35 44 / 12%);
  --display: Arial, Helvetica, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .16em; }
a:hover { color: var(--blue-deep); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  transform: translateY(-160%);
  padding: .65rem .9rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 3;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .75rem;
  min-height: 5.5rem;
  padding-block: .65rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 3.1rem; height: 3rem; object-fit: contain; }
.brand__copy { display: grid; padding-left: .55rem; line-height: 1; }
.brand__name { font-family: var(--display); font-size: clamp(1.15rem, 4vw, 1.55rem); font-weight: 700; letter-spacing: -.03em; }
.brand__tagline { margin-top: .3rem; color: var(--ink-soft); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: .4rem;
  min-height: 2.75rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
}
.js .menu-toggle { display: inline-flex; }

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  display: block;
  width: 1.3rem;
  height: 2px;
  background: currentColor;
  content: '';
}

.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before { position: absolute; top: -.38rem; }
.menu-toggle__icon::after { position: absolute; top: .38rem; }

.primary-nav {
  display: grid;
  grid-column: 1 / -1;
  gap: .25rem;
  padding: .55rem 0 .2rem;
}

.js .primary-nav:not(.is-open) { display: none; }
.primary-nav a {
  display: block;
  padding: .6rem .75rem;
  border-radius: .35rem;
  font-weight: 700;
  text-decoration: none;
}
.primary-nav a[aria-current='page'], .primary-nav a:hover { background: var(--lime); color: var(--ink); }

main { padding-block: clamp(2rem, 5vw, 4.5rem); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-intro { max-width: 54rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.page-intro h1 { margin: .3rem 0 1rem; font-family: var(--display); font-size: clamp(2.6rem, 7vw, 5.7rem); line-height: .98; letter-spacing: -.045em; }
.page-intro h1 span { color: var(--blue-deep); }
.page-intro h1 .page-intro__title { display: block; color: var(--ink); font-size: clamp(1.45rem, 5.7vw, 4.1rem); white-space: nowrap; }
.page-intro h1 .page-intro__subtitle { display: block; margin-top: .3em; font-size: clamp(.95rem, 3vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.page-intro > p:last-child { max-width: 42rem; margin: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.page-intro--compact { margin-bottom: 2.5rem; }
.eyebrow { margin: 0; color: var(--blue-deep); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.comparison-section + .comparison-section { margin-top: clamp(3rem, 6vw, 5rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.section-heading h2 { margin: 0 0 .6rem; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; }
.section-heading > a { margin-bottom: .6rem; color: var(--blue-deep); font-weight: 700; }
.comparison-grid { display: grid; gap: 1.25rem; }
.comparison-card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); }
.comparison-card__image { position: relative; display: block; overflow: hidden; background: #e5e0d4; }
.comparison-card__image-frame { position: relative; display: block; height: 100%; }
.comparison-card__image-frame > img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; transition: transform .25s ease; }
.comparison-card:hover .comparison-card__image-frame > img { transform: scale(1.025); }
.comparison-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem, 3vw, 2rem); }
.comparison-card h2, .comparison-card h3 { margin: .5rem 0 .25rem; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.06; letter-spacing: -.03em; }
.comparison-card h2 a, .comparison-card h3 a { text-decoration: none; }
.comparison-card h2 a:hover, .comparison-card h3 a:hover { text-decoration: underline; }
.comparison-card time { color: var(--ink-soft); font-size: .85rem; }
.comparison-card__body > p:not(.eyebrow) { margin: 1rem 0; }
.comparison-card__rating { width: 7rem; height: auto; margin-bottom: 1.4rem; }
.text-link { margin-top: auto; color: var(--blue-deep); font-weight: 700; }

.article-back { margin: 0 0 1.5rem; color: var(--blue-deep); font-weight: 700; }
.article-content { padding: clamp(1.25rem, 5vw, 3.5rem) max(1.25rem, calc((100% - 47rem) / 2)); background: var(--paper); border: 1px solid var(--line); }
.article-content + .comparison-section { margin-top: clamp(4rem, 8vw, 7rem); }
.article-content > p:first-child { margin: 0 0 2rem; }
.article-content > p:first-child > img { width: 100%; height: auto; }
.article-hero, .article-figure { position: relative; }
.article-figure { width: fit-content; max-width: 100%; }
.cockpit-button { position: absolute; left: 66.2%; top: 64.4%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 27%; height: 4.8%; padding: 0 .25rem; border: 1px solid #377c52; border-radius: .2em; background: #b9e8bf; color: #102b1a; font-size: clamp(.38rem, 1.35vw, .8rem); font-weight: 700; line-height: 1; white-space: nowrap; animation: cockpit-pulse 2.4s ease-in-out infinite alternate; }
.cockpit-button[hidden] { display: none; }
.cockpit-button::after { position: absolute; content: ''; min-width: 44px; min-height: 44px; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.cockpit-button:disabled { cursor: wait; animation: none; opacity: .7; }
@keyframes cockpit-pulse { from { background-color: #a3d9aa; } to { background-color: #d8f3d9; } }
.black-hole-screen { position: fixed; z-index: 2147483647; inset: 0; display: grid; place-items: center; background: #000; }
.black-hole-fallback { position: fixed; z-index: 2147483647; inset: 0; overflow: hidden; pointer-events: none; }
.black-hole-fallback__disc { position: absolute; width: 100vmax; height: 100vmax; border-radius: 50%; background: #000; box-shadow: 0 0 2rem 1rem #513e8a; transform: translate(-50%, -50%) scale(0); animation: black-hole-fallback 1.8s ease-in forwards; }
@keyframes black-hole-fallback { to { transform: translate(-50%, -50%) scale(4); } }
.capture-preview { position: fixed; z-index: 2147483647; inset: 0; background: #000; }
.capture-preview__close { position: absolute; top: .75rem; right: .75rem; padding: .6rem .85rem; border: 1px solid #17232c; border-radius: .25rem; background: #fff; color: #17232c; font-weight: 700; }
.black-hole-restart { padding: .8rem 1.25rem; border: 1px solid #7ee787; border-radius: .25rem; background: #000; color: #7ee787; font-weight: 700; }
.black-hole-restart[hidden] { display: none; }
.black-hole-restart:focus-visible { outline-color: #7ee787; }
.ai-label { position: absolute; right: .5rem; bottom: .5rem; width: 2rem; line-height: 0; }
.ai-label img { width: 100%; height: auto; }
.article-hero .ai-label, .article-figure .ai-label { width: 2.5rem; }
.article-content h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; }
.article-content h2 { margin: 2.2rem 0 .6rem; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; }
.article-content h3 { margin: 1.8rem 0 .6rem; font-size: 1.25rem; }
.article-content p { margin: 0 0 1rem; }
.experiment-warning { color: #a31818; font-weight: 700; }
.article-content a { color: var(--blue-deep); }
.standard-content { overflow-wrap: anywhere; }
.standard-content li { margin-block: .45rem; }
.standard-content .seal img { width: 150px; height: 150px; }
.article-content hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }
.article-content .small { font-size: .875rem; }
.article-content .text-muted { color: var(--ink-soft); }
.article-content .card { margin: 1rem 0; background: var(--canvas); border-left: 4px solid var(--lime); }
.article-content .card-body, .article-content .card-footer { padding: 1.1rem 1.25rem; }
.article-content .card-footer { border-top: 1px solid var(--line); background: #faf7ee; }
.article-content .card-title { font-weight: 700; }
.article-content .card p:last-child { margin-bottom: 0; }
.matrix-comment { text-align: right; transform: scaleX(-1); }
.article-content img[src*="/5-stars.webp"] { width: 152px; height: 29px; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin-top: 1.4rem; }
.share-bar__label { font-size: .9rem; font-weight: 700; }
.share-bar__buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
.article-content .share-button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--paper); color: var(--ink); text-decoration: none; }
.article-content .share-button:hover { border-color: var(--blue-deep); background: #edf3f8; color: var(--blue-deep); }
.share-button svg { width: 1.3rem; height: 1.3rem; }
.share-bar__status { flex-basis: 100%; color: var(--ink-soft); font-size: .85rem; }
.share-bar__status:empty { display: none; }
.fact-check { margin: 2.5rem 0; padding: clamp(1rem, 4vw, 1.75rem); border-left: 4px solid var(--blue); background: #edf3f8; }
.article-content .fact-check__label { margin: 0 0 .35rem; color: var(--blue-deep); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-content .fact-check h3 { margin: 0 0 1rem; }
.fact-check h4 { margin: 1.75rem 0 .75rem; font-size: 1rem; }
.fact-check__table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
.fact-check__table th, .fact-check__table td { padding: .6rem .4rem; border-bottom: 1px solid #c6d2dc; vertical-align: top; overflow-wrap: anywhere; }
.fact-check__table thead th { color: var(--ink-soft); font-size: .8rem; white-space: nowrap; }
.fact-check__table tbody th { font-weight: 700; white-space: nowrap; }
.fact-check__table td:nth-child(2) { text-align: center; }
.fact-chart { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; }
.fact-chart li { display: grid; grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr) 3ch; align-items: center; gap: .5rem; }
.fact-chart li > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.fact-chart__track { display: block; height: .65rem; background: #d6e2ec; }
.fact-chart__bar { display: block; width: var(--bar-width); min-width: 2px; height: 100%; background: var(--blue-deep); }
.fact-chart li:nth-child(1) .fact-chart__bar { background: #8b4771; }
.fact-chart li:nth-child(2) .fact-chart__bar { background: #e6b800; }
.fact-chart li:nth-child(3) .fact-chart__bar { background: #087b75; }
.fact-chart li:nth-child(4) .fact-chart__bar { background: #075bcd; }
.fact-chart li:nth-child(5) .fact-chart__bar { background: #a83927; }
.comment-form { display: grid; gap: 1.25rem; }
.form-field { display: grid; gap: .4rem; }
.form-field label, .form-options legend { font-weight: 700; }
.form-field input:not([type='range']), .form-field textarea { width: 100%; padding: .7rem; border: 1px solid var(--ink-soft); border-radius: .2rem; background: #fff; color: var(--ink); }
.form-options { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; border: 0; }
.form-options legend { margin-bottom: .4rem; }
.form-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; }
.form-check input { flex: none; margin-top: .35rem; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { padding: 1rem; border-left: 4px solid var(--blue); background: var(--canvas); }
.form-message--error { color: #a31818; border-left-color: #a31818; }
.form-hint { color: var(--ink-soft); }
.button { justify-self: start; padding: .8rem 1.15rem; border: 0; border-radius: .2rem; background: var(--blue-deep); color: #fff; font-weight: 700; }
.button:hover { background: var(--ink); }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.3rem; color: var(--ink-soft); font-size: .9rem; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1rem; }

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 4px 12px rgb(23 35 44 / 20%);
  font-size: 1.45rem;
  font-weight: 700;
}

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

@media (max-width: 47.999rem) {
  .page-intro h1 .page-intro__title { font-size: clamp(1.45rem, calc(9vw - 3px), 4.1rem); }
}

@media (min-width: 48rem) {
  .shell { width: min(100% - 4rem, 72rem); }
  .masthead { grid-template-columns: 1fr auto; min-height: 6.7rem; }
  .brand img { width: 4.3rem; height: 4.1rem; }
  .brand__name { font-size: 1.7rem; }
  .brand__tagline { font-size: .8rem; }
  .js .menu-toggle { display: none; }
  .primary-nav, .js .primary-nav:not(.is-open) { display: flex; grid-column: auto; align-items: center; padding: 0; }
  .comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-card--featured { display: grid; grid-template-columns: 1.3fr 1fr; }
  .comparison-card--featured .comparison-card__image-frame > img { height: 100%; aspect-ratio: auto; }
}

.comparison-card__image--uncropped { display: flex; align-items: center; }
.comparison-card__image--uncropped .comparison-card__image-frame { width: 100%; height: auto; }
.comparison-card--featured .comparison-card__image--uncropped .comparison-card__image-frame > img,
.comparison-card__image--uncropped .comparison-card__image-frame > img { height: auto; aspect-ratio: auto; object-fit: contain; }
.comparison-card:hover .comparison-card__image--uncropped .comparison-card__image-frame > img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
