:root {
  --red: #e51f23;
  --red-dark: #840f10;
  --paper: #fdfcfc;
  --ink: #000101;
  --muted: #424746;
  --line: rgba(66, 71, 70, 0.18);
  --surface: #ffffff;
  --surface-soft: #f4f1f1;
  --shadow: 0 18px 50px rgba(0, 1, 1, 0.08);
}

html[data-theme="dark"] {
  --paper: #000101;
  --ink: #fdfcfc;
  --muted: #b7bcbb;
  --line: rgba(253, 252, 252, 0.16);
  --surface: #111515;
  --surface-soft: #1b2020;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
  transition: background 180ms ease, color 180ms ease;
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-top {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(260px, 560px) auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: min(230px, 100%);
  height: auto;
}

.brand-logo-dark,
.footer-logo-dark {
  display: none;
}

html[data-theme="dark"] .brand-logo-light,
html[data-theme="dark"] .footer-logo-light {
  display: none;
}

html[data-theme="dark"] .brand-logo-dark,
html[data-theme="dark"] .footer-logo-dark {
  display: block;
}

.search-form {
  position: relative;
  width: 100%;
}

.search-form input {
  width: 100%;
  height: 46px;
  padding: 0 18px 0 46px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  box-shadow: 0 1px 0 rgba(0, 1, 1, 0.03);
}

.search-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(229, 31, 35, 0.12);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform: translateY(-50%);
}

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-links a,
.theme-toggle,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.social-links a:hover,
.theme-toggle:hover,
.menu-toggle:hover {
  color: var(--red);
  border-color: rgba(229, 31, 35, 0.38);
}

.social-links svg,
.theme-toggle svg,
.menu-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .moon {
  display: inline-flex;
}

.menu-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12px;
}

.site-nav > a,
.nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 15px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav > a:hover,
.nav-dropdown > button:hover {
  color: var(--red);
  background: rgba(229, 31, 35, 0.08);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown svg {
  width: 16px;
  height: 16px;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 170px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-weight: 700;
}

.dropdown-panel a:hover {
  color: var(--red);
  background: rgba(229, 31, 35, 0.08);
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown.is-open .dropdown-panel {
  display: block;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 68px;
}

.headline-section {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 26px;
  align-items: stretch;
}

.article-card,
.latest-panel,
.popular-panel,
.newsletter-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.headline-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1fr);
  min-height: 430px;
  overflow: hidden;
}

.article-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 230px;
  overflow: hidden;
  background-color: var(--surface-soft);
}

.article-image::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(0, 1, 1, 0.12), rgba(132, 15, 16, 0.46)),
    radial-gradient(circle at 18% 24%, rgba(253, 252, 252, 0.82), transparent 16%),
    radial-gradient(circle at 72% 38%, rgba(229, 31, 35, 0.78), transparent 18%),
    linear-gradient(120deg, #424746, #111515 58%, #840f10);
}

.article-image::after {
  position: absolute;
  inset: auto 24px 28px auto;
  width: 124px;
  height: 124px;
  content: "";
  background: url("media/LOGO ICON.png") center / contain no-repeat;
  opacity: 0.2;
}

.article-image span {
  position: relative;
  z-index: 1;
  margin: 22px;
  padding: 6px 10px;
  color: #fdfcfc;
  background: #e51f23;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.image-press::before {
  background:
    linear-gradient(135deg, rgba(0, 1, 1, 0.2), rgba(229, 31, 35, 0.5)),
    repeating-linear-gradient(90deg, rgba(253, 252, 252, 0.1) 0 1px, transparent 1px 18px),
    linear-gradient(120deg, #111515, #424746 58%, #840f10);
}

.image-media::before {
  background:
    linear-gradient(135deg, rgba(0, 1, 1, 0.1), rgba(132, 15, 16, 0.44)),
    radial-gradient(circle at 80% 22%, rgba(229, 31, 35, 0.72), transparent 18%),
    linear-gradient(120deg, #fdfcfc, #424746 50%, #000101);
}

.image-culture::before {
  background:
    linear-gradient(135deg, rgba(0, 1, 1, 0.16), rgba(229, 31, 35, 0.42)),
    radial-gradient(circle at 18% 18%, rgba(253, 252, 252, 0.66), transparent 16%),
    linear-gradient(120deg, #840f10, #424746 56%, #000101);
}

.article-content {
  padding: 28px;
}

.headline-card .article-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 5.3rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 0;
  font-size: 1.12rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.article-content > p:not(.article-kicker) {
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.article-meta span + span::before {
  margin-right: 10px;
  color: var(--red);
  content: "/";
}

.latest-panel,
.popular-panel {
  padding: 22px;
}

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

.section-heading a {
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 800;
}

.latest-list {
  display: grid;
  gap: 4px;
}

.compact-story {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.compact-story:first-child {
  border-top: 0;
}

.story-number {
  color: var(--red);
  font-size: 1.22rem;
  font-weight: 900;
}

.compact-story p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-story h3 {
  margin: 0;
  font-size: 1rem;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 26px;
  margin-top: 30px;
}

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

.news-card {
  overflow: hidden;
}

.news-card .article-content {
  padding: 22px;
}

.news-card .article-image {
  min-height: 190px;
}

.popular-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: popular;
}

.popular-list li {
  position: relative;
  padding: 17px 0 17px 46px;
  border-top: 1px solid var(--line);
  counter-increment: popular;
}

.popular-list li:first-child {
  border-top: 0;
}

.popular-list li::before {
  position: absolute;
  top: 16px;
  left: 0;
  color: var(--red);
  content: counter(popular, decimal-leading-zero);
  font-size: 1.08rem;
  font-weight: 900;
}

.popular-list a {
  display: block;
  margin-bottom: 6px;
  font-weight: 850;
  line-height: 1.3;
}

.popular-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.newsletter-box {
  margin-top: 20px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(229, 31, 35, 0.1), transparent),
    var(--surface);
}

.newsletter-box img {
  width: 44px;
  margin-bottom: 18px;
}

.newsletter-box p {
  color: var(--muted);
}

.newsletter-box form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.newsletter-box input {
  min-height: 42px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.newsletter-box button {
  min-height: 42px;
  color: #fdfcfc;
  background: var(--red);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 850;
}

.site-footer {
  color: #fdfcfc;
  background: #000101;
}

html[data-theme="dark"] .site-footer {
  color: #000101;
  background: #fdfcfc;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.7fr;
  gap: 38px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 34px;
}

.footer-logo {
  width: min(250px, 100%);
  margin-bottom: 18px;
}

.footer-brand p,
.footer-info p,
.footer-bottom p {
  color: currentColor;
  opacity: 0.76;
}

.footer-info h2 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials a {
  padding: 8px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(253, 252, 252, 0.18);
}

html[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(0, 1, 1, 0.18);
}

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

@media (max-width: 980px) {
  .header-top {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 0;
  }

  .search-form {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a,
  .nav-dropdown > button {
    justify-content: space-between;
    width: 100%;
    border-radius: 6px;
  }

  .dropdown-panel {
    position: static;
    box-shadow: none;
  }

  .headline-section,
  .news-layout {
    grid-template-columns: 1fr;
  }

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

  h1 {
    max-width: 13ch;
  }

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

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

@media (max-width: 640px) {
  .header-top,
  .site-nav,
  main,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand-logo {
    width: 184px;
  }

  .social-links {
    display: none;
  }

  .search-form input {
    height: 44px;
    font-size: 0.92rem;
  }

  main {
    padding-top: 20px;
  }

  .headline-card {
    min-height: 0;
  }

  .article-content,
  .headline-card .article-content {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.15rem, 14vw, 3.7rem);
  }

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

  .latest-panel,
  .popular-panel,
  .newsletter-box {
    padding: 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
