/* ============================================================
   The Florida Current — design tokens
   Palette: deep Atlantic teal (primary), warm gulf sand (bg),
   sunset coral (accent/CTA), palmetto green (category tags),
   brass gold (featured marker only).
   Type: Fraunces (display/editorial) + Source Sans 3 (body)
   + JetBrains Mono (eyebrows, timestamps, ticker — "wire" feel).
   Signature element: the live headline ticker under the nav.
   ============================================================ */

:root {
  --teal-900: #0e3b43;
  --teal-700: #15525c;
  --sand-100: #f2e8d5;
  --sand-50: #f8f3e8;
  --coral-500: #ff6452;
  --coral-600: #e8492f;
  --palmetto-600: #3f6b4f;
  --gold-500: #c9a227;
  --ink-900: #1f2421;
  --ink-600: #4a5350;
  --line: rgba(14, 59, 67, 0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand-100);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--ink-900);
  color: var(--sand-50);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.utility-bar a { opacity: 0.85; }
.utility-bar a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  background: var(--sand-50);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--teal-900);
}
.logo em {
  font-style: italic;
  color: var(--coral-600);
}
.nav-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 14.5px;
  font-weight: 600;
}
.nav-links a {
  color: var(--ink-600);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-900);
  border-bottom-color: var(--coral-500);
}

/* ---------- Ticker (signature element) ---------- */
.ticker {
  background: var(--teal-900);
  color: var(--sand-50);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ticker-inner {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  animation: scroll-left 38s linear infinite;
}
.ticker:hover .ticker-inner { animation-play-state: paused; }
.ticker-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral-500);
  padding: 0 16px 0 24px;
  flex-shrink: 0;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0 28px;
  color: var(--sand-100);
}
.ticker-item::before {
  content: '\2022';
  color: var(--coral-500);
  margin-right: 28px;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; overflow-x: auto; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
}
.hero-image {
  aspect-ratio: 4/3;
  background: var(--sand-100);
  border-radius: 4px;
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--palmetto-600);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.08;
  margin: 14px 0 12px;
  color: var(--teal-900);
}
.hero .dek {
  font-size: 18px;
  color: var(--ink-600);
  margin-bottom: 16px;
}
.byline {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-600);
}

/* ---------- Cards / grid ---------- */
.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-900);
  border-left: 3px solid var(--coral-500);
  padding-left: 10px;
}
.section-head a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--coral-600);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-image {
  aspect-ratio: 16/10;
  background: var(--sand-100);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink-900);
}
.card a:hover h3 { color: var(--coral-600); }
.card .dek-sm {
  font-size: 14.5px;
  color: var(--ink-600);
  margin-bottom: 8px;
}
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--palmetto-600);
  color: var(--sand-50);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.tag.featured { background: var(--gold-500); color: var(--ink-900); }

/* ---------- Article page ---------- */
.article-page { padding: 40px 0 60px; max-width: 760px; margin: 0 auto; }
.article-page h1 {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.12;
  color: var(--teal-900);
  margin: 14px 0 12px;
}
.article-page .dek { font-size: 19px; color: var(--ink-600); margin-bottom: 18px; }
.article-body { font-size: 18px; line-height: 1.7; }
.article-body p { margin: 0 0 20px; }
.source-note {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-600);
}
.source-note a { color: var(--coral-600); font-weight: 600; }

/* ---------- Newsletter / footer ---------- */
.newsletter {
  background: var(--teal-900);
  color: var(--sand-50);
  padding: 48px 0;
  text-align: center;
}
.newsletter h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 8px;
}
.newsletter p { color: var(--sand-100); margin-bottom: 20px; }
.newsletter-form { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  font-family: var(--font-body);
  padding: 12px 16px;
  border-radius: 3px;
  border: none;
  width: 280px;
  font-size: 15px;
}
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  background: var(--coral-500);
  color: var(--sand-50);
  border: none;
  padding: 12px 22px;
  border-radius: 3px;
  cursor: pointer;
}
.btn:hover { background: var(--coral-600); }

footer {
  background: var(--ink-900);
  color: var(--sand-100);
  padding: 30px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { opacity: 0.8; }
footer a:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
