:root {
  --ink: #111111;
  --muted: #5c6470;
  --line: #d8dce2;
  --paper: #ffffff;
  --soft: #f4f5f7;
  --black: #050505;
  --yellow: #f5c542;
  --cyan: #28b7d8;
  --green: #1da96c;
  --red: #d84949;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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;
  overflow-x: hidden;
}

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

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

.loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: #050505;
  color: #fff;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.loader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loader-panel {
  width: min(460px, calc(100% - 40px));
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.loader-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 24px;
  font-weight: 900;
}

.brand-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 32px rgba(245, 197, 66, 0.8);
}

.loader-line {
  height: 6px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
}

.loader-line span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
  animation: loadbar 5s ease forwards;
}

.loader p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

@keyframes loadbar {
  to {
    width: 100%;
  }
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.topbar-inner,
main,
.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #303640;
  font-size: 14px;
  font-weight: 800;
}

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

.lang-select {
  min-height: 42px;
  max-width: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

[dir="rtl"] .topbar-inner,
[dir="rtl"] .main-nav,
[dir="rtl"] .header-actions,
[dir="rtl"] .hero-grid,
[dir="rtl"] .ticker-track {
  direction: rtl;
}

.subscribe,
.newsletter button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--black);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.ticker {
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.ticker-track {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 34px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 850;
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 24px;
  padding: 18px 0 54px;
}

.lead-story {
  border-bottom: 4px solid var(--black);
}

.image-wrap {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-meta,
.kicker,
.section-head p,
.news-card span {
  margin-top: 18px;
  color: #9b6c00;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin: 10px 0 12px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.06;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.14;
}

.lead-story p,
.section-head,
.newsletter p,
.footer p {
  color: var(--muted);
}

.byline {
  margin: 20px 0 24px;
  color: #313844;
  font-size: 14px;
  font-weight: 800;
}

.latest-panel,
.news-card,
.brief-grid article,
.most-read,
.newsletter {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.latest-panel {
  padding: 20px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.panel-title h2 {
  margin: 0;
  font-size: 24px;
}

.panel-title a {
  color: #9b6c00;
  font-size: 13px;
  font-weight: 900;
}

.latest-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.latest-list li {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.latest-list li:last-child {
  border-bottom: 0;
}

.latest-list time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.latest-list a {
  font-weight: 850;
}

.section {
  padding: 58px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

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

.news-card {
  min-height: 250px;
  padding: 24px;
  border-top-width: 6px;
}

.news-card p,
.brief-grid p {
  color: var(--muted);
}

.accent-yellow {
  border-top-color: var(--yellow);
}

.accent-cyan {
  border-top-color: var(--cyan);
}

.accent-green {
  border-top-color: var(--green);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 58px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.policy-block {
  padding: 34px;
  border-radius: 8px;
  background: var(--black);
  color: #fff;
}

.policy-block p:last-child {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
}

.most-read {
  padding: 24px;
}

.most-read h2 {
  font-size: 28px;
}

.most-read ol {
  display: grid;
  gap: 18px;
  margin: 0;
  padding-left: 24px;
  font-weight: 850;
}

.muted {
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding-right: max(16px, calc(50vw - 590px));
  padding-left: max(16px, calc(50vw - 590px));
  background: var(--soft);
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.brief-grid article {
  padding: 22px;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.8fr);
  gap: 28px;
  align-items: end;
  margin: 58px 0;
  padding: 28px;
  background: #fff9e5;
}

.newsletter label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.newsletter form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
}

.footer {
  padding: 46px 0;
  background: var(--black);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 42px;
}

.footer-grid div {
  display: grid;
  gap: 8px;
}

.footer span,
.footer strong {
  font-weight: 950;
}

.footer a,
.footer p {
  color: rgba(255, 255, 255, 0.68);
}

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

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .hero-grid,
  .split-section,
  .newsletter,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .brief-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .topbar-inner,
  main,
  .footer-grid {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 17px;
  }

  .subscribe {
    padding: 0 12px;
  }

  .lang-select {
    width: 104px;
  }

  h1 {
    font-size: 40px;
  }

  .card-grid,
  .brief-grid,
  .newsletter form div {
    grid-template-columns: 1fr;
  }
}
