:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3fb;
  --text: #10213a;
  --muted: #60708b;
  --line: #dbe5f3;
  --primary: #1464ff;
  --primary-soft: #dce8ff;
  --accent: #ff875f;
  --success: #1e9c5c;
  --shadow: 0 18px 36px rgba(20, 38, 71, 0.08);
  --radius: 18px;
  --max-width: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #eef4ff 0%, #f7f9fc 18%, #f5f7fb 100%);
  color: var(--text);
}

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

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

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 48px;
}

.topbar,
.mainnav,
.hero-grid,
.content-layout,
.site-footer {
  width: 100%;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 18px;
}

.topbar__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-mark {
  font-size: 1.5rem;
  font-weight: 800;
}

.brand-tag,
.topbar__meta,
.section-heading__text,
.story-card__meta,
.story-card__summary,
.ad-panel__card p,
.site-footer p,
.bullet-list,
.sidebar-card p {
  color: var(--muted);
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar__link:hover,
.site-footer__links a:hover,
.story-card__link:hover {
  color: var(--primary);
}

.mainnav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.mainnav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.mainnav a:hover {
  color: var(--primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr 0.75fr;
  gap: 18px;
  margin-bottom: 26px;
}

.hero-card,
.ad-panel__card,
.story-card,
.sidebar-card,
.inline-ad,
.site-footer {
  background: var(--surface);
  border: 1px solid rgba(219, 229, 243, 0.9);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 24px;
}

.hero-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(180deg, rgba(16, 33, 58, 0.02), rgba(16, 33, 58, 0.78));
  color: white;
}

.hero-card__overlay h1,
.hero-card__overlay h2 {
  margin: 8px 0 10px;
  line-height: 1.08;
}

.hero-card__overlay h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.hero-card__overlay h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.hero-card__overlay p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.55;
}

.hero-card__overlay--compact {
  max-width: 86%;
}

.hero-card__cta {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.eyebrow,
.ad-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow {
  color: #dbe6ff;
}

.section-heading .eyebrow,
.sidebar-card .eyebrow {
  color: var(--primary);
}

.ad-label {
  color: var(--accent);
}

.ad-panel {
  display: grid;
  gap: 16px;
}

.ad-panel__card,
.sidebar-card,
.inline-ad {
  border-radius: 20px;
  padding: 20px;
}

.ad-panel__card h3,
.sidebar-card h3,
.inline-ad h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
}

.ad-panel__card--soft {
  background: linear-gradient(180deg, #fff7f2 0%, #ffffff 100%);
}

.cta-button,
.inline-ad__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #2b89ff 100%);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.cta-button--full {
  width: 100%;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 360px);
  gap: 22px;
}

.section-block {
  margin-bottom: 26px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
}

.section-heading__text {
  max-width: 42ch;
  margin: 0;
  line-height: 1.55;
}

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

.story-grid--entertainment {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 20px;
  padding: 18px;
}

.story-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.story-card__source {
  font-weight: 700;
  color: var(--primary);
}

.story-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.story-card__summary {
  margin: 0;
  line-height: 1.65;
  font-size: 0.95rem;
}

.story-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.story-card__tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.story-card__link {
  font-weight: 700;
  color: var(--text);
}

.inline-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f6ff 100%);
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.sidebar-card--ad {
  background: linear-gradient(135deg, #fff8f4 0%, #ffffff 100%);
}

.tag-list,
.bullet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.bullet-list li {
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 24px;
}

.site-footer p {
  margin: 8px 0 0;
  max-width: 56ch;
  line-height: 1.6;
}

.site-footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 600;
}

.simple-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.simple-page__card {
  background: var(--surface);
  border: 1px solid rgba(219, 229, 243, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.simple-page__card h1 {
  margin-top: 0;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.simple-page__card h2 {
  margin-top: 28px;
  font-size: 1.15rem;
}

.simple-page__card p,
.simple-page__card li {
  color: var(--muted);
  line-height: 1.7;
}

.simple-page__card ul {
  padding-left: 20px;
}

@media (max-width: 1120px) {
  .hero-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 16px 14px 36px;
  }

  .topbar,
  .section-heading,
  .inline-ad,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .mainnav {
    border-radius: 18px;
  }

  .hero-grid {
    gap: 14px;
  }

  .hero-card {
    min-height: 280px;
  }

  .story-grid,
  .story-grid--entertainment {
    grid-template-columns: 1fr;
  }

  .hero-card__overlay {
    padding: 22px;
  }
}
