:root {
  /* South Florida tropical news palette */
  --paper: #f8f5ef;
  --paper-2: #f0e9dc;
  --ink: #0f172a;
  --ink-light: #334155;
  --muted: #64748b;
  --line: #e2d9c8;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --alert: #b91c1c;
  --alert-bg: #fef2f2;
  --card: #fffdf8;
  --card-hover: #fffaf0;
  --success: #166534;

  /* Typography */
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

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

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Container */
.container { 
  width: min(1180px, 94vw); 
  margin: 0 auto; 
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  font-size: 1.5rem;
  color: var(--accent);
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text strong {
  color: var(--accent);
}

.header-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  margin-left: 0.5rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Breaking ticker - slim persistent alert */
.breaking-ticker {
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, #9f1239, #b91c1c);
  color: #fff;
  height: 32px;
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  border-bottom: 1px solid #7f1d1d;
}

.breaking-ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: #7f1d1d;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breaking-ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.breaking-ticker-marquee {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  min-width: 100%;
  padding: 0 1rem;
  transition: opacity 0.2s ease;
}

.breaking-ticker-marquee:hover {
  opacity: 0.9;
}

/* Main layout */
.main-layout {
  padding: 2.5rem 0 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 980px) {
  .main-layout {
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
  }
}

/* Feed header */
.feed-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.feed-header h1 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.feed-header .muted {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Filter chips */
.filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-light);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

/* Lead story card - much stronger visual treatment */
#lead-story {
  margin-bottom: 2rem;
}

.lead-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 720px) {
  .lead-card {
    grid-template-columns: 1.05fr 1fr;
  }
}

.lead-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lead-media {
  position: relative;
  background: #111;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lead-card:hover .lead-media img {
  transform: scale(1.03);
}

.lead-card-text-only {
  grid-template-columns: 1fr;
}

.lead-card-text-only .lead-copy {
  padding: 2.25rem 2rem;
}

.lead-copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead-copy h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lead-copy h2 a {
  color: var(--ink);
  text-decoration: none;
}

.lead-copy h2 a:hover {
  color: var(--accent);
}

.lead-excerpt {
  color: var(--ink-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.lead-actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.lead-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
}

.lead-actions a:hover {
  text-decoration: underline;
}

/* Story feed grid */
.story-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .story-feed {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

.story-row {
  background: var(--card);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--line);
}

.story-row:last-child {
  border-bottom: none;
}

.story-row:hover {
  background: var(--card-hover);
}

.story-row-text-only {
  padding-left: 1.75rem;
  position: relative;
}

.story-row-text-only::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.story-kicker-small {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-row h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
}

.story-row h3 a {
  color: var(--ink);
  text-decoration: none;
}

.story-row h3 a:hover {
  color: var(--accent);
}

.story-excerpt {
  color: var(--ink-light);
  font-size: 0.925rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
}

.sidebar-card h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.topic-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-light);
}

.topic-list li:last-child {
  border-bottom: none;
}

/* Opt-in card */
.optin-card {
  background: linear-gradient(145deg, #fffdf8, #f8f5ef);
  border-color: var(--accent);
}

.optin-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.optin-copy {
  font-size: 0.925rem;
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.optin-card form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.optin-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.optin-card input,
.optin-card select {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
}

.optin-card input:focus,
.optin-card select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}

.optin-card button {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.optin-card button:hover {
  background: var(--accent-dark);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

/* Utility */
.muted { color: var(--muted); }
.hidden { display: none !important; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* Responsive tweaks */
@media (max-width: 640px) {
  .feed-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .lead-copy {
    padding: 1.75rem 1.5rem;
  }
  
  .lead-copy h2 {
    font-size: 1.45rem;
  }
}
/* Hero section - strong South Florida visual presence */
.hero {
  background: linear-gradient(145deg, #0f172a 0%, #1e2937 45%, #334155 100%);
  color: #f8fafc;
  padding: 4.5rem 0 3.75rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(194,65,12,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(234,179,8,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.975rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.hero-cta:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  background: transparent;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  border: 1.5px solid rgba(248,250,252,0.4);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.hero-cta-secondary:hover {
  background: rgba(248,250,252,0.08);
  border-color: rgba(248,250,252,0.6);
}

/* Continuous marquee scroll for breaking ticker */
.breaking-ticker-marquee {
  animation: ticker-scroll 18s linear infinite;
  animation-play-state: paused;
}

.breaking-ticker-marquee.is-scrolling {
  animation-play-state: running;
}

.breaking-ticker-marquee:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Enhanced story cards with better hover and visual weight */
.story-row {
  background: var(--card);
  padding: 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.story-row:last-child {
  border-bottom: none;
}

.story-row:hover {
  background: var(--card-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.story-row-text-only {
  padding-left: 1.85rem;
  position: relative;
}

.story-row-text-only::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  top: 1.55rem;
  bottom: 1.55rem;
  width: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.2s ease;
}

.story-row:hover .story-row-text-only::before {
  width: 4px;
}

/* Stronger lead story visual weight */
.lead-card {
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.lead-card:hover {
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* South Florida warm accent moments */
.filter-chip.is-active {
  background: linear-gradient(135deg, var(--accent), #ea580c);
  border-color: #c2410c;
}
