@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #f4efe6;
  --bg-warm: #e7d8bf;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: rgba(255, 248, 238, 0.92);
  --ink: #16211a;
  --muted: #546257;
  --line: rgba(22, 33, 26, 0.12);
  --brand: #0d7a5f;
  --brand-deep: #054e3d;
  --accent: #f47b3a;
  --accent-soft: rgba(244, 123, 58, 0.12);
  --shadow: 0 22px 60px rgba(20, 30, 24, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 123, 58, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(13, 122, 95, 0.24), transparent 24%),
    linear-gradient(180deg, #fffaf2 0%, var(--bg) 45%, #f0e5d6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 90%);
}

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

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header,
.hero,
.coverage-layout,
.cta-band,
.site-footer,
.signal-strip {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.65);
  backdrop-filter: blur(20px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff9f1;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.eyebrow,
.mini-label,
.timestamp {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.mini-label {
  color: var(--brand);
  font-size: 0.73rem;
  font-weight: 800;
}

.timestamp {
  color: var(--muted);
  font-size: 0.72rem;
}

.top-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-panel,
.feed-card,
.side-card,
.cta-band,
.signal-strip article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: 40px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(13, 122, 95, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(255, 249, 241, 0.85));
}

.hero-copy h1,
.panel-card h2,
.section-heading h2,
.cta-band h2,
.feed-header h2,
.side-card-header h2 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.98;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(3rem, 5vw, 5.4rem);
  max-width: 11ch;
}

.hero-text {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 30px;
}

.button,
.ghost-button,
.feed-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.ghost-button:hover,
.feed-tab:hover {
  transform: translateY(-1px);
}

.button {
  min-height: 48px;
  padding: 0 18px;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.button-secondary,
.ghost-button,
.feed-tab {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
}

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

.hero-metrics article,
.panel-card,
.story-card,
.brief-card,
.pulse-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-metrics article {
  padding: 18px;
}

.hero-metrics span,
.pulse-card h3 {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.hero-metrics p,
.panel-card p,
.story-card p,
.brief-card p,
.pulse-card p,
.feed-header p,
.section-heading p,
.cta-band p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(11, 20, 16, 0.92), rgba(18, 37, 28, 0.82));
  color: #f8f0e3;
}

.hero-panel p,
.hero-panel h2,
.hero-panel h3 {
  margin: 0;
}

.hero-panel .eyebrow,
.hero-panel .mini-label {
  color: #ffb27f;
}

.panel-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.panel-card-highlight h2 {
  margin: 10px 0 14px;
  font-size: 2rem;
}

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

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.signal-strip article {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.78);
}

.signal-strip h3,
.brief-card h3,
.story-card h3,
.pulse-card h3 {
  margin: 8px 0 10px;
}

.coverage-grid {
  margin-bottom: 32px;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.section-heading > p {
  max-width: 48ch;
  margin: 0;
}

.coverage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.feed-card,
.side-card,
.cta-band {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.feed-card {
  padding: 26px;
}

.feed-header,
.side-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.feed-header h2,
.side-card-header h2,
.cta-band h2 {
  margin: 10px 0 0;
  font-size: 1.9rem;
}

.feed-header p,
.side-card-header p {
  max-width: 28ch;
  margin: 0;
}

.feed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.feed-tab {
  min-height: 42px;
  padding: 0 14px;
  font-weight: 700;
}

.feed-tab.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  border-color: transparent;
}

.story-stack,
.briefing-stack,
.side-stack {
  display: grid;
  gap: 14px;
}

.story-card,
.brief-card,
.pulse-card {
  padding: 20px;
}

.story-meta,
.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-meta span:first-child,
.story-footer span:last-child {
  font-weight: 700;
}

.side-card {
  padding: 22px;
}

.ghost-button {
  min-height: 42px;
  padding: 0 14px;
  font-weight: 700;
}

.brief-card,
.pulse-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 236, 0.92));
}

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

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(244, 123, 58, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(13, 122, 95, 0.08), rgba(255, 248, 238, 0.94));
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.htmx-request {
  opacity: 0.72;
}

@media (max-width: 980px) {
  .hero,
  .coverage-layout,
  .cta-band,
  .signal-strip,
  .hero-metrics,
  .pulse-grid {
    grid-template-columns: 1fr;
  }

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

  .site-header,
  .section-heading,
  .feed-header,
  .side-card-header,
  .site-footer {
    flex-direction: column;
    align-items: start;
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy,
  .feed-card,
  .side-card,
  .cta-band {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .site-header {
    border-radius: 28px;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .button,
  .ghost-button,
  .feed-tab {
    width: 100%;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .story-meta,
  .story-footer {
    flex-direction: column;
    align-items: start;
  }
}
