/* ──────────────────────────────────────
   SHARPER DAILY — DESIGN SYSTEM
   ────────────────────────────────────── */

:root {
  color-scheme: light;

  /* Core palette */
  --ink: #0f1419;
  --ink-2: #1a2332;
  --slate: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --mist: #f1f5f9;
  --cloud: #ffffff;

  /* Accents */
  --accent: #e8722a;
  --accent-soft: rgba(232, 114, 42, 0.12);
  --accent-2: #0d9488;
  --accent-2-soft: rgba(13, 148, 136, 0.1);
  --accent-3: #4f46e5;

  /* Category colors */
  --cat-frontiers: #4f46e5;
  --cat-applied: #0d9488;
  --cat-policy: #d97706;
  --cat-research: #7c3aed;
  --cat-industry: #2563eb;
  --cat-hardware: #dc2626;
  --cat-startups: #059669;
  --cat-creative: #ec4899;
  --cat-health: #16a34a;
  --cat-security: #ca8a04;

  /* Effects */
  --ring: rgba(232, 114, 42, 0.2);
  --shadow-sm: 0 1px 3px rgba(15, 20, 25, 0.06), 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow: 0 4px 24px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 20, 25, 0.12);

  /* Radii */
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Layout */
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
}

/* ── HEADER ────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid var(--border);
}



.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 5vw;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

.logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a {
  text-decoration: none;
  color: var(--slate);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.site-nav a:hover {
  background: var(--mist);
  color: var(--ink);
}

.nav-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Hamburger menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cloud);
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: var(--mist);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 25, 0.4);
  z-index: 90;
  backdrop-filter: blur(4px);
}

/* ── BUTTONS ───────────────────────── */

.ghost-btn,
.solid-btn {
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.4;
}

.ghost-btn {
  background: var(--cloud);
  border-color: var(--border);
  color: var(--slate);
}

.ghost-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.solid-btn {
  background: var(--ink);
  color: var(--cloud);
  border: none;
}

.solid-btn:hover {
  background: var(--ink-2);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* ── TICKER ────────────────────────── */

.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--cloud);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 9px 0;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.ticker-item span {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* ── MAIN LAYOUT ───────────────────── */

main {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
  padding: 28px 0 80px;
}

/* ── HERO ──────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.hero-primary {
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  max-height: 440px;
  background: var(--ink-2);
  color: var(--cloud);
  box-shadow: var(--shadow-lg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(15, 20, 25, 0.85) 0%,
      rgba(15, 20, 25, 0.3) 60%,
      rgba(15, 20, 25, 0.15) 100%);
}

.hero-content {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  gap: 10px;
}

.hero-content .card-tag {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-content h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  margin: 0;
  line-height: 1.2;
}

.hero-content p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  max-width: 580px;
}

.hero-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-secondary {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--cloud);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
}

.hero-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card .card-meta {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── SECTIONS ──────────────────────── */

.section {
  margin-top: 56px;
  scroll-margin-top: 180px;
}

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

.section-kicker {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 4px;
}

.section h2 {
  font-family: "Fraunces", serif;
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

/* ── CARD TAG (CATEGORY PILL) ──────── */

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--cat-bg, var(--accent-2-soft));
  color: var(--cat-color, var(--accent-2));
  white-space: nowrap;
  width: fit-content;
}

/* ── FEATURED GRID ─────────────────── */

.featured-grid,
.resource-grid,
.events-grid,
.related-grid {
  display: grid;
  gap: 16px;
}

.featured-grid {
  grid-template-columns: repeat(4, 1fr);
}

.news-card {
  background: var(--cloud);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.news-card .card-image {
  aspect-ratio: 16 / 10;
  max-height: 180px;
  background: linear-gradient(135deg, var(--mist) 0%, var(--border) 100%);
  position: relative;
  overflow: hidden;
}

.news-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  color: var(--muted);
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 4px;
}

/* ── LATEST SECTION ────────────────── */

.latest-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

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

.latest-item {
  background: var(--cloud);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.latest-item h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 700;
}

.latest-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── DAILY BRIEF ───────────────────── */

/* ── SIDEBAR STACK ────────────────── */

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 90px;
}

/* ── DAILY BRIEF ───────────────────── */

.daily-brief {
  background: var(--ink);
  color: var(--cloud);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.daily-brief h3 {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.daily-brief p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.5;
}

.daily-brief ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

.daily-brief .solid-btn {
  background: var(--accent);
  color: #fff;
  width: fit-content;
}

.daily-brief .solid-btn:hover {
  background: #d46822;
}

.brief-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── COMMUNITY SIDEBAR ─────────────── */

.community-sidebar {
  background: linear-gradient(135deg,
      rgba(232, 114, 42, 0.08) 0%,
      rgba(79, 70, 229, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.community-sidebar h3 {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  margin: 0;
}

.community-sidebar p {
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.community-sidebar .solid-btn {
  background: var(--ink);
  color: var(--cloud);
  width: fit-content;
}

/* ── TAG ROW ───────────────────────── */

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--mist);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--ink);
  color: var(--cloud);
  border-color: var(--ink);
}

/* ── SPOTLIGHT ─────────────────────── */

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.spotlight-card {
  background: linear-gradient(160deg,
      rgba(15, 20, 25, 0.92) 0%,
      rgba(15, 20, 25, 0.4) 100%),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  border-radius: var(--radius-xl);
  color: var(--cloud);
  padding: 28px;
  min-height: 300px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}

.spotlight-card .card-tag {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.spotlight-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  line-height: 1.3;
}

.spotlight-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

.spotlight-card .card-meta {
  color: rgba(255, 255, 255, 0.6);
}

.spotlight-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.spotlight-item {
  background: var(--cloud);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spotlight-item h4 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 700;
}

.spotlight-item .card-meta {
  font-size: 0.76rem;
}

/* ── COMMUNITY ─────────────────────── */

.community-card {
  background: linear-gradient(135deg,
      rgba(232, 114, 42, 0.08) 0%,
      rgba(79, 70, 229, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.community-card h2 {
  font-size: 1.4rem;
}

.community-card p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.92rem;
  max-width: 520px;
}

.community-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ── CATEGORY RAILS ────────────────── */

.category-rails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.category-rail {
  background: var(--cloud);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.category-rail h3 {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.category-rail {
  scroll-margin-top: 120px;
}

.rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rail-header h3 {
  margin: 0;
}

.rail-count {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--slate);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.rail-item:last-child {
  border-bottom: none;
}

.rail-item:hover {
  color: var(--ink);
}

/* ── CATEGORY PAGE ────────────────── */

.category-page-header {
  margin-bottom: 28px;
}

.category-page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.category-page-title-row h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 8px 0 0;
  letter-spacing: -0.02em;
}

.category-page-count {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.category-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

.category-page-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.category-page-error {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.category-page-error h2 {
  font-family: "Fraunces", serif;
  color: var(--ink);
  margin-bottom: 16px;
}

.category-page-loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── RESOURCES, EVENTS, RELATED ────── */

.resource-grid,
.events-grid,
.related-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.resource-card,
.event-card,
.related-card {
  background: var(--cloud);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-card h3,
.event-card h3,
.related-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.resource-card p,
.event-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* ── FOOTER ────────────────────────── */

.site-footer {
  background: var(--ink);
  color: var(--cloud);
  padding: 56px 5vw 28px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.footer-top h3 {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.footer-top>div:first-child>p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-links h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cloud);
  font-size: 0.88rem;
  font-family: inherit;
}

.footer-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-form .solid-btn {
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

.footer-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ── ANIMATIONS ────────────────────── */

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.6s ease both;
}

/* ── CLICKABLE CARDS ───────────────── */

.hero-primary,
.hero-card,
.news-card,
.latest-item,
.spotlight-card,
.spotlight-item,
.rail-item {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover,
.hero-card:hover,
.spotlight-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 20, 25, 0.12);
}

.latest-item:hover {
  border-color: var(--accent-2);
  box-shadow: var(--shadow);
}

.hero-primary:hover {
  transform: scale(1.005);
}

/* ── ARTICLE PAGE ──────────────────── */

.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 0 60px;
  animation: fadeInUp 0.5s ease both;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: var(--mist);
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.article-back-link:hover {
  background: var(--ink);
  color: var(--cloud);
  border-color: var(--ink);
}

.article-page .article-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-2-soft);
  color: var(--accent-2);
  margin-bottom: 14px;
}

.article-page .article-title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-page .article-excerpt {
  font-size: 1.1rem;
  color: var(--slate);
  margin: 0 0 20px;
  line-height: 1.55;
}

.article-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-page .article-meta-author {
  font-weight: 700;
  color: var(--ink);
}

.article-page-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.article-page-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.article-page .article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-2);
}

.article-page .article-body p {
  margin: 0 0 20px;
}

.article-page-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.article-page-loading,
.article-page-error {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.article-page-error h2 {
  font-family: "Fraunces", serif;
  color: var(--ink);
  margin-bottom: 16px;
}

/* ── SUBSCRIBE MODAL ───────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 25, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--cloud);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.is-active .modal-wrapper {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: var(--slate);
  transition: all 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--mist);
  color: var(--ink);
}

.modal-content {
  padding: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.modal-content iframe {
  width: 100%;
  max-width: 400px;
  /* Prevent it from getting too wide on large screens */
  border-radius: var(--radius-sm);
}

.modal-header p {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-form input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.modal-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.modal-form button {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  border-color: var(--accent);
  font-size: 1rem;
}

.modal-form button:hover {
  background: #d46822;
  /* darker shade of accent */
  border-color: #d46822;
}

.modal-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── RESPONSIVE: TABLET ────────────── */

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 980px) {


  .site-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--cloud);
    padding: 72px 24px 24px;
    box-shadow: -8px 0 40px rgba(15, 20, 25, 0.15);
    z-index: 95;
    gap: 2px;
    overflow-y: auto;
  }

  .site-nav a {
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .site-nav a:hover {
    background: var(--mist);
  }

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

  body.nav-open .nav-overlay {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

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

  .hero-secondary {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .latest-layout,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .community-card {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

/* ── RESPONSIVE: MOBILE ────────────── */

@media (max-width: 640px) {
  main {
    width: min(100% - 32px, var(--max-width));
  }



  .nav-wrap {
    padding: 12px 16px;
  }

  .logo {
    font-size: 1.4rem;
  }

  .section h2 {
    font-size: 1.4rem;
  }

  .section {
    margin-top: 40px;
  }

  .hero-primary {
    min-height: 280px;
    max-height: 360px;
  }

  .hero-content h1 {
    font-size: 1.3rem;
  }

  .hero-secondary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .community-card {
    padding: 24px;
  }

  .community-card h2 {
    font-size: 1.2rem;
  }

  .community-actions {
    flex-direction: column;
    width: 100%;
  }

  .community-actions .solid-btn,
  .community-actions .ghost-btn {
    width: 100%;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .article-page {
    padding: 20px 0 40px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ── FEATURED PAGE DATE GROUPS ─────── */

.featured-date-group {
  margin-top: 40px;
}

.featured-date-group:first-child {
  margin-top: 0;
}

.featured-date-heading {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }

  .section {
    animation: none;
  }
}