:root {
  --ink: #17151d;
  --muted: #6f6b75;
  --line: #dedbe3;
  --paper: #ffffff;
  --soft: #f4f2f6;
  --purple: #5a189a;
  --purple-dark: #2c073f;
  --magenta: #e5007d;
  --cyan: #27d6c7;
  --yellow: #ffe500;
  --max: 1180px;
  --shadow: 0 14px 35px rgba(24, 8, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

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

a:hover {
  color: var(--magenta);
}

button,
input {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--yellow);
  color: #000;
  font-weight: 800;
  transform: translateY(-160%);
}

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

.utility-bar {
  background: #0a0910;
  color: #c8c4cf;
  font-size: 12px;
}

.utility-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.utility-links a:hover {
  color: white;
}

.masthead {
  background: linear-gradient(120deg, var(--purple-dark), #4d0873 62%, #7f0f83);
  color: #fff;
}

.masthead-inner {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.edition {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(35px, 5.4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1;
}

.brand:hover {
  color: #fff;
}

.brand span {
  color: var(--cyan);
}

.brand-mark {
  width: 0;
  height: 0;
  margin-left: 10px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--magenta);
  transform: rotate(-12deg);
}

.masthead-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: white;
  color: var(--purple-dark);
}

.menu-button {
  display: none;
}

.primary-nav {
  background: #17131d;
  color: white;
  border-bottom: 4px solid var(--magenta);
}

.primary-nav-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.primary-nav a {
  padding: 14px 18px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav a.active {
  background: var(--magenta);
  color: white;
}

.trending {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.trending-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
}

.trending-label {
  color: var(--magenta);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trending a {
  font-weight: 700;
}

.search-panel {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: none;
  place-items: start center;
  padding-top: 12vh;
  background: rgba(12, 8, 17, 0.93);
}

.search-panel.is-visible {
  display: grid;
}

.search-box {
  width: min(calc(100% - 32px), 760px);
  color: white;
}

.search-box label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-row {
  display: flex;
}

.search-row input {
  min-width: 0;
  flex: 1;
  padding: 18px;
  border: 0;
  outline: 0;
  font-size: 20px;
}

.search-row button {
  border: 0;
  padding: 0 26px;
  background: var(--magenta);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.search-close {
  position: absolute;
  top: 28px;
  right: 28px;
}

.search-feedback {
  min-height: 24px;
  margin-top: 14px;
  color: #ddd7e5;
}

main {
  min-height: 60vh;
}

.ad-band {
  padding: 18px 0;
  border-top: 1px solid #e7e3ea;
  border-bottom: 1px solid #e7e3ea;
  background: #f8f7f9;
}

.ad-band--first {
  padding-block: 12px;
}

.ad-slot {
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-slot--banner {
  min-height: 68px;
}

.ad-slot--rectangle {
  min-height: 270px;
}

.ad-slot--native {
  min-height: 110px;
}

.article-ad {
  margin: 26px auto 10px;
  border: 1px solid #e7e3ea;
  background: #f8f7f9;
}

.ad-label {
  display: block;
  margin-bottom: 5px;
  color: #8b8790;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.ad-slot iframe {
  max-width: 100%;
  border: 0;
}

.section {
  padding: 52px 0;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  border-bottom: 5px solid var(--ink);
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  padding-bottom: 10px;
  font-size: clamp(24px, 3.3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.section-heading a {
  padding-bottom: 12px;
  color: var(--magenta);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: repeat(2, 235px);
  gap: 14px;
}

.story-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  background: var(--ink);
  color: white;
}

.story-card:first-child {
  grid-row: 1 / 3;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card:hover img {
  transform: scale(1.035);
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 6, 10, 0.95), rgba(7, 6, 10, 0.02) 68%);
}

.story-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
}

.story-card:first-child .story-content {
  padding: 32px;
}

.story-kicker,
.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--magenta);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-card .story-kicker {
  color: var(--cyan);
}

.story-card h2,
.story-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.story-card:first-child h2 {
  max-width: 760px;
  font-size: clamp(30px, 4.4vw, 50px);
}

.story-meta,
.meta {
  margin-top: 10px;
  color: #bdb8c5;
  font-size: 12px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
}

.news-list {
  display: grid;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.news-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.news-item img {
  width: 100%;
  height: 142px;
  object-fit: cover;
}

.news-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.news-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.news-item .meta {
  color: var(--muted);
}

.sidebar-box {
  margin-bottom: 28px;
  border-top: 5px solid var(--purple);
  background: var(--soft);
  padding: 22px;
}

.sidebar-box h3 {
  margin: 0 0 16px;
  font-size: 19px;
  text-transform: uppercase;
}

.ranked-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ranked;
}

.ranked-list li {
  counter-increment: ranked;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.ranked-list li::before {
  content: counter(ranked);
  color: var(--magenta);
  font-size: 23px;
  font-weight: 900;
}

.newsletter-box {
  background: var(--purple-dark);
  color: white;
}

.newsletter-box p {
  color: #d7cfdd;
  font-size: 14px;
}

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

.newsletter-form input {
  width: 100%;
  padding: 12px;
  border: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  background: var(--magenta);
  color: white;
  padding: 11px 19px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  background: #ba0065;
  color: white;
}

.button-outline {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  background: var(--ink);
  color: white;
}

.newsletter-message {
  min-height: 18px;
  margin: 2px 0 0;
  color: var(--cyan) !important;
  font-size: 12px !important;
}

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

.guide-card {
  background: white;
  box-shadow: var(--shadow);
}

.guide-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.guide-card-content {
  padding: 22px;
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.14;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 54px 0 36px;
  background: linear-gradient(130deg, #24112e, #5a166f);
  color: white;
}

.page-hero .eyebrow {
  color: var(--cyan);
}

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.97;
  letter-spacing: -0.055em;
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #d7ccdc;
  font-size: 18px;
}

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

.filter-button {
  border: 1px solid var(--line);
  background: white;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--purple);
  background: var(--purple);
  color: white;
}

.review-score {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin: 3px 0 6px;
  color: var(--purple);
  font-size: 25px;
  font-weight: 900;
}

.review-score span {
  font-size: 12px;
}

.rating-stars {
  color: var(--magenta);
  letter-spacing: 2px;
}

.article-shell {
  width: min(calc(100% - 32px), 900px);
  margin-inline: auto;
  padding: 52px 0;
}

.breadcrumbs {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.breadcrumbs span {
  margin: 0 8px;
  color: #aaa5ae;
}

.article-header h1 {
  margin: 0;
  font-size: clamp(38px, 6.3vw, 68px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.standfirst {
  max-width: 760px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.4;
}

.byline {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.byline strong {
  color: var(--ink);
}

.article-hero-image {
  width: 100%;
  max-height: 520px;
  margin: 30px 0 8px;
  object-fit: cover;
}

.caption {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 12px;
}

.article-body {
  max-width: 710px;
  margin-inline: auto;
}

.article-body p,
.article-body li {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.75;
}

.article-body h2 {
  margin: 42px 0 12px;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.article-body blockquote {
  margin: 34px 0;
  border-left: 6px solid var(--magenta);
  padding: 4px 0 4px 24px;
  color: var(--purple);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.25;
}

.verdict {
  margin: 34px 0;
  border-top: 6px solid var(--purple);
  background: var(--soft);
  padding: 26px;
}

.verdict h2 {
  margin-top: 0;
}

.deal-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--yellow);
  color: #111;
}

.deal-strip strong {
  font-size: 34px;
}

.deal-strip p {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  margin-top: 30px;
  background: #111016;
  color: #b7b1bd;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 44px;
  padding: 52px 0;
}

.footer-brand .brand {
  justify-content: flex-start;
  font-size: 34px;
}

.footer-brand p {
  max-width: 290px;
  font-size: 13px;
}

.footer-column h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  margin: 9px 0;
  font-size: 13px;
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid #2c2932;
  font-size: 11px;
}

.back-to-top {
  position: fixed;
  z-index: 300;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  background: var(--magenta);
  color: white;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.back-to-top.is-visible {
  display: block;
}

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

@media (max-width: 900px) {
  .masthead-inner {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    justify-self: start;
  }

  .edition {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .primary-nav {
    position: fixed;
    z-index: 800;
    inset: 0 auto 0 0;
    width: min(82vw, 330px);
    padding-top: 30px;
    border: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-visible {
    transform: translateX(0);
  }

  .primary-nav-inner {
    display: grid;
    padding: 20px;
  }

  .primary-nav a {
    border-bottom: 1px solid #302b36;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 390px 240px;
  }

  .story-card:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }

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

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

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

  .guide-card:last-child {
    grid-column: 1 / 3;
  }

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

@media (max-width: 620px) {
  .container,
  .article-shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .utility-links a:not(:last-child),
  .utility-inner > span {
    display: none;
  }

  .utility-inner {
    justify-content: flex-end;
  }

  .masthead-inner {
    min-height: 78px;
  }

  .brand {
    font-size: 34px;
  }

  .masthead-actions .icon-button {
    width: 38px;
    height: 38px;
  }

  .trending-inner {
    gap: 14px;
  }

  .section {
    padding: 38px 0;
  }

  .ad-band {
    padding-block: 12px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 390px repeat(2, 230px);
  }

  .story-card:first-child {
    grid-column: auto;
  }

  .story-card:first-child .story-content,
  .story-content {
    padding: 20px;
  }

  .story-card:first-child h2 {
    font-size: 32px;
  }

  .news-item {
    grid-template-columns: 112px 1fr;
    gap: 14px;
  }

  .news-item img {
    height: 100px;
  }

  .news-item h3 {
    font-size: 18px;
  }

  .news-item p {
    display: none;
  }

  .sidebar,
  .guide-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .guide-card:last-child {
    grid-column: auto;
  }

  .page-hero {
    padding: 38px 0 30px;
  }

  .page-hero h1 {
    font-size: 45px;
  }

  .deal-strip {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: 42px;
  }

  .article-body p,
  .article-body li {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
