:root {
  --paper: #f7f4ee;
  --ink: #1e2623;
  --muted: #65716d;
  --line: #d9d2c7;
  --card: #fffdf8;
  --blue: #1e5b8f;
  --red: #b33936;
  --green: #23705a;
  --shadow: 0 22px 60px rgba(30, 38, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(30, 91, 143, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(179, 57, 54, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(30, 38, 35, 0.12);
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: conic-gradient(from 135deg, var(--blue), var(--red), var(--green), var(--blue));
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.section-kicker,
.form-note {
  color: var(--muted);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a.is-current {
  color: var(--ink);
  font-weight: 800;
}

button,
input {
  font: inherit;
}

.ghost-button,
.secondary-button,
.primary-button,
.chip {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.ghost-button,
.secondary-button,
.chip {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.74);
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.secondary-button,
.ghost-button,
.chip {
  padding: 0 16px;
  font-weight: 700;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  min-height: 70vh;
  padding: 68px 0 36px;
}

.page-hero {
  max-width: 860px;
  padding: 72px 0 34px;
}

.page-hero h1 {
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero p:not(.section-kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-copy h1 {
  max-width: 880px;
  margin: 10px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
  font-weight: 800;
}

.hero-actions,
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 0 42px;
}

.category-board a {
  display: grid;
  min-height: 150px;
  align-content: space-between;
  padding: 16px;
  border: 1px solid rgba(30, 38, 35, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  text-decoration: none;
}

.category-board span {
  color: var(--red);
  font-weight: 900;
}

.category-board strong {
  display: block;
  margin-top: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.category-board small {
  color: var(--muted);
  line-height: 1.45;
}

.signal-panel,
.briefing,
.popup {
  border: 1px solid rgba(30, 38, 35, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.signal-panel {
  padding: 22px;
}

.signal-panel div {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.signal-panel strong {
  display: block;
  margin: 20px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1.1;
}

.signal-panel p,
.briefing p,
.briefing li,
.popup p {
  color: var(--muted);
  line-height: 1.6;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(35, 112, 90, 0.14);
}

.news-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 32px 0 18px;
}

.news-toolbar h2,
.briefing h2,
.regional-strip h2,
.source-section h2,
.editorial-lens h2,
.popup h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.chip.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

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

.news-card {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(30, 38, 35, 0.13);
  border-radius: 8px;
  background: var(--card);
}

.news-card:first-child {
  grid-column: 1 / -1;
  min-height: 284px;
  background: linear-gradient(135deg, rgba(30, 91, 143, 0.13), rgba(255, 253, 248, 0.96) 52%, rgba(179, 57, 54, 0.12));
}

.news-card a {
  text-decoration: none;
}

.news-card h3 {
  margin: 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.08;
}

.news-card p {
  color: var(--muted);
  line-height: 1.58;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.source-pill {
  padding: 4px 8px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-weight: 800;
}

.briefing {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.briefing ul {
  padding-left: 18px;
}

.regional-strip,
.source-section,
.editorial-lens {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 54px 0;
  border-top: 1px solid rgba(30, 38, 35, 0.13);
}

.editorial-lens > div:first-child p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.7;
}

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

.lens-list article {
  padding: 18px;
  border: 1px solid rgba(30, 38, 35, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
}

.lens-list span {
  color: var(--red);
  font-weight: 900;
}

.lens-list strong {
  display: block;
  margin: 14px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.15;
}

.lens-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.region-list,
.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.region-list span,
.source-list a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  text-decoration: none;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 0 0 58px;
}

.content-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding: 0 0 58px;
}

.content-page article {
  padding: 24px;
  border: 1px solid rgba(30, 38, 35, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
}

.content-page h2 {
  margin: 24px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.content-page h2:first-child {
  margin-top: 0;
}

.content-page p {
  color: var(--muted);
  line-height: 1.72;
}

.contact-card,
.contact-form {
  border: 1px solid rgba(30, 38, 35, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.contact-card {
  padding: 22px;
}

.contact-card h2 {
  margin: 10px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.6;
}

.contact-form {
  padding: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 42px;
  color: var(--muted);
  border-top: 1px solid rgba(30, 38, 35, 0.13);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 16px;
}

.site-footer a {
  text-decoration: none;
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(30, 38, 35, 0.48);
}

.popup-backdrop[hidden] {
  display: none;
}

.popup {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
  font-size: 1.4rem;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

label {
  font-weight: 800;
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

textarea {
  resize: vertical;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.full-width {
  width: 100%;
}

.skeleton-card {
  min-height: 238px;
  border-radius: 8px;
  border: 1px solid rgba(30, 38, 35, 0.1);
  background: linear-gradient(110deg, rgba(255, 253, 248, 0.7), rgba(30, 91, 143, 0.08), rgba(255, 253, 248, 0.7));
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position-x: -220%;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    order: 3;
    gap: 12px;
  }

  .hero,
  .layout-grid,
  .regional-strip,
  .source-section,
  .editorial-lens,
  .content-page,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .lens-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .news-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .briefing {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 14px;
  }

  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .brand small {
    display: none;
  }

  .ghost-button {
    padding-inline: 12px;
  }

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

  .category-board {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
