/* Sam News Reporter Teleprompts — site styles */
:root {
  --ink: #152028;
  --ink-soft: #2c3a45;
  --muted: #5c6b76;
  --paper: #e9eef2;
  --paper-2: #f4f7f9;
  --panel: rgba(255, 255, 255, 0.55);
  --line: rgba(21, 32, 40, 0.12);
  --accent: #0b6e6a;
  --accent-deep: #084f4c;
  --signal: #a33b2b;
  --shadow: 0 18px 50px rgba(21, 32, 40, 0.08);
  --font-brand: "Syne", "Fraunces", Georgia, serif;
  --font-display: "Fraunces", "Newsreader", Georgia, serif;
  --font-body: "Newsreader", Georgia, serif;
  --max: 72rem;
  --measure: 40rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(11, 110, 106, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(44, 58, 69, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 45%, #e2e8ee 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent-deep);
  text-underline-offset: 0.15em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper-2);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.skip-link-audio {
  left: 10.5rem;
}

.a11y-audio-section {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.a11y-audio-section .a11y-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-brand);
}

.a11y-audio-section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--ink);
}

.a11y-audio-section audio {
  display: block;
  width: 100%;
  max-width: 36rem;
  margin: 0.75rem 0;
}

.a11y-download {
  margin: 0;
  font-size: 0.95rem;
}

/* —— Hero (homepage, one full-viewport composition) —— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: max(100dvh, 36rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background: #c2d4da;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 65% at 82% 12%, rgba(11, 110, 106, 0.42), transparent 56%),
    radial-gradient(ellipse 60% 40% at 20% 8%, rgba(11, 110, 106, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 45% at 8% 92%, rgba(163, 59, 43, 0.16), transparent 52%),
    linear-gradient(118deg, rgba(236, 243, 246, 0.78) 0%, rgba(236, 243, 246, 0.42) 38%, rgba(236, 243, 246, 0.08) 68%),
    linear-gradient(155deg, #c9dde4 0%, #a8c4ce 42%, #7ea3ae 78%, #5f8894 100%);
  animation: atmosphere-drift 18s ease-in-out infinite alternate;
}

.hero-wire {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%230b6e6a' stop-opacity='0.45'/%3E%3Cstop offset='0.55' stop-color='%232c3a45' stop-opacity='0.28'/%3E%3Cstop offset='1' stop-color='%23a33b2b' stop-opacity='0.22'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='800' fill='url(%23g)' fill-opacity='0.5'/%3E%3Cpath d='M0 420 Q260 340 540 450 T1200 390' fill='none' stroke='%23152028' stroke-opacity='0.2' stroke-width='2.5'/%3E%3Cpath d='M0 480 Q280 400 560 500 T1200 440' fill='none' stroke='%23084f4c' stroke-opacity='0.28' stroke-width='2'/%3E%3Cpath d='M0 520 Q300 440 600 540 T1200 480 V800 H0Z' fill='%23152028' fill-opacity='0.14'/%3E%3Cpath d='M0 600 Q400 520 700 610 T1200 560 V800 H0Z' fill='%23084f4c' fill-opacity='0.2'/%3E%3Cpath d='M90 90 H1110 M90 130 H860 M90 170 H720' stroke='%23152028' stroke-opacity='0.12' stroke-width='1'/%3E%3Ccircle cx='980' cy='180' r='120' fill='%230b6e6a' fill-opacity='0.12'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  animation: atmosphere-drift 22s ease-in-out infinite alternate-reverse;
}

.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(38vh, 20rem);
  background:
    linear-gradient(180deg, transparent 0%, rgba(21, 32, 40, 0.08) 50%, rgba(21, 32, 40, 0.2) 100%);
}

@keyframes atmosphere-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.05) translate3d(-1.8%, -1.2%, 0); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) 0;
  animation: rise-in 0.9s ease-out both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-date {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-brand {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.75rem, 8.5vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 12ch;
  color: #101820;
}

.hero-brand .brand-line {
  display: block;
}

.hero-tagline {
  margin: 1.25rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0.2rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper-2);
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  border: 1px solid rgba(21, 32, 40, 0.28);
}

.btn-ghost:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.7);
}

.hero-credit {
  margin: 2.25rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .hero {
    min-height: 100svh;
    min-height: max(100svh, 34rem);
    align-items: center;
  }

  .hero-inner {
    width: calc(100% - 1.75rem);
    max-width: none;
    padding: 2.5rem 0 2.75rem;
  }

  .hero-brand {
    /* Syne is very wide — size to keep "Teleprompts" on one line */
    font-size: clamp(1.9rem, 9.2vw, 2.45rem);
    max-width: none;
    width: 100%;
    letter-spacing: -0.045em;
    line-height: 1.02;
  }

  .hero-tagline {
    max-width: 28ch;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}

/* —— Sections —— */
.section-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

.headline-grid-section h2,
.by-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0.5rem 0 2rem;
  color: var(--muted);
  max-width: 36ch;
}

.headline-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

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

.headline-grid li {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

@media (min-width: 720px) {
  .headline-grid li:nth-child(odd) {
    padding-right: 1.5rem;
  }
  .headline-grid li:nth-child(even) {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
  }
}

.headline-grid a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.headline-grid a:hover .hl-title {
  color: var(--accent-deep);
}

.hl-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-brand);
}

.hl-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.25;
  font-weight: 700;
  transition: color 0.2s ease;
}

.hl-dek {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.section-block h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.section-block li {
  margin: 0.4rem 0;
}

.section-block a {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.section-block a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* —— Article page —— */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 249, 0.85);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 1.1rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-mark {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}

.byline-line {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.85rem;
}

.site-nav a {
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
}

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

.article-main {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-brand);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.article-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-body {
  margin-top: 1.75rem;
}

.article-body .dek {
  font-size: 1.25rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 0 0 1.75rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2.25rem 0 0.75rem;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.article-footer {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-weight: 800;
  color: var(--ink);
}

code {
  font-size: 0.9em;
}


.money-section {
  background: linear-gradient(180deg, rgba(11, 110, 106, 0.06) 0%, transparent 70%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.money-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.money-grid {
  border-top: 1px solid var(--line);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  display: block;
  overflow-x: auto;
}

.article-body thead {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.article-body tbody {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.article-body th {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.article-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.article-body li {
  margin: 0.35rem 0;
}

@media (max-width: 560px) {
  .article-body table {
    font-size: 0.85rem;
  }
}


/* —— Tip / support strip —— */
.tip-strip {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 110, 106, 0.07) 0%, rgba(255, 255, 255, 0.4) 55%, transparent 100%);
}

.tip-strip--home {
  border-bottom: 1px solid var(--line);
}

.tip-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.75rem 0 3rem;
}

.tip-inner--compact {
  padding: 1.35rem 0 1.75rem;
}

.tip-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-brand);
}

.tip-strip h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tip-lede {
  margin: 0 0 1.35rem;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.tip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
  align-items: stretch;
}

.tip-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-brand);
  text-decoration: none;
  border-radius: 0.2rem;
  border: 1px solid rgba(21, 32, 40, 0.22);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  min-width: 9.5rem;
}

.tip-btn:hover {
  transform: translateY(-1px);
  color: var(--ink);
}

.tip-btn-label {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.tip-btn-hint {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.2;
}

.tip-btn--x {
  background: var(--ink);
  color: var(--paper-2);
  border-color: var(--ink);
  box-shadow: 0 10px 28px rgba(21, 32, 40, 0.14);
  order: -1;
  min-width: 11.5rem;
}

.tip-btn--x .tip-btn-hint {
  color: rgba(244, 247, 249, 0.78);
}

.tip-btn--x:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.tip-btn--x:hover .tip-btn-hint {
  color: rgba(255, 255, 255, 0.85);
}

.tip-btn--cash:hover,
.tip-btn--paypal:hover {
  border-color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-deep);
}

.tip-btn--sm {
  flex-direction: row;
  align-items: center;
  padding: 0.55rem 0.9rem;
  min-width: 0;
  font-weight: 700;
  font-size: 0.85rem;
}

.tip-btn--x.tip-btn--sm {
  min-width: 0;
}

.tip-compact-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-brand);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.tip-preferred {
  color: var(--accent-deep);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tip-email-note {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.tip-email-note a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(8, 79, 76, 0.28);
}

.tip-email-note a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.page-article .tip-strip--article {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  background: transparent;
  border-top: 1px dashed var(--line);
}

@media (max-width: 560px) {
  .tip-inner {
    width: calc(100% - 1.75rem);
    padding: 2.25rem 0 2.5rem;
  }

  .tip-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tip-btn {
    width: 100%;
    min-width: 0;
  }

  .tip-actions--compact {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tip-actions--compact .tip-btn {
    width: auto;
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tip-btn {
    transition: none;
  }
}

/* —— Topics / hashtag chips —— */
.topics-row {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 0.25rem;
}

.page-home .topics-row {
  padding: 1.5rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding-left: max(1.25rem, calc((100% - var(--max)) / 2));
  padding-right: max(1.25rem, calc((100% - var(--max)) / 2));
}

.page-article .topics-row {
  padding: 0 0 2rem;
}

.topics-label {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 0 0 auto;
}

.topics-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  align-items: center;
}

.topic-chip {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(8, 79, 76, 0.28);
  padding: 0.1rem 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

@media (max-width: 560px) {
  .page-home .topics-row {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sky,
  .hero-wire,
  .hero-inner {
    animation: none !important;
  }
}
