/*
Theme Name: RetroTicker
Theme URI: https://retrosportsticker.com
Description: Child theme of Twenty Twenty-Five for RetroTicker — late-80s broadcast sports aesthetic.
Author: RetroTicker
Version: 0.1.0
Template: twentytwentyfive
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: retroticker
*/

/* ==========================================================================
   RetroTicker design tokens
   Shared vocabulary with the ticker project. Keep these in sync.
   Note: the ticker layer additionally constrains its palette to Amiga-legal
   12-bit values. The site layer is not constrained.
   ========================================================================== */

:root {
  /* Palette */
  --rt-navy:    #2B3F63;
  --rt-navy-dk: #1C2A45;
  --rt-dusty:   #4E6E9E;
  --rt-cream:   #F0E6D2;
  --rt-brick:   #C4483C;
  --rt-rust:    #8C3A34;
  --rt-ink:     #10161F;

  /* Spacing — 8px grid, no in-between values */
  --rt-space-1: 8px;
  --rt-space-2: 16px;
  --rt-space-3: 24px;
  --rt-space-4: 32px;
  --rt-space-6: 48px;
  --rt-space-8: 64px;

  /* Type scale — multiples of 8 */
  --rt-text-caption: 12px;
  --rt-text-body:    16px;
  --rt-text-heading: 24px;
  --rt-text-display: 48px;

  /* Type stacks — placeholders until a licensed face is chosen */
  --rt-font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rt-font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Signature effect: hard shadow, never blurred */
  --rt-shadow-hard: 3px 3px 0 var(--rt-ink);
}

/* ==========================================================================
   Landing page styles go below this line
   ========================================================================== */

/* --- Reset the parent's page chrome on the landing page ------------------ */

body:has(.rt-page) {
  margin: 0;
  padding: 0;
  background: var(--rt-navy);
  color: var(--rt-cream);
}

.rt-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--rt-font-body);
}

/* --- Scrolling ticker band ---------------------------------------------- */

.rt-ticker {
  overflow: hidden;
  background: var(--rt-navy-dk);
  border-top: 4px solid var(--rt-brick);
  border-bottom: 4px solid var(--rt-brick);
  padding: var(--rt-space-2) 0;
}

.rt-ticker__track {
  display: flex;
  width: max-content;
  animation: rt-scroll 40s linear infinite;
}

.rt-ticker__run {
  display: flex;
  align-items: center;
  flex: none;
  padding-right: var(--rt-space-4);
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: var(--rt-text-body);
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--rt-cream);
}

.rt-ticker__run i {
  flex: none;
  width: 10px;
  height: 10px;
  margin: 0 var(--rt-space-3);
  background: var(--rt-brick);
}

@keyframes rt-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

/* --- Page body ----------------------------------------------------------- */

.rt-main {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--rt-space-8) var(--rt-space-3) var(--rt-space-6);
}

.rt-wordmark {
  margin: 0 0 var(--rt-space-6);
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-style: italic;
  font-size: var(--rt-text-heading);
  letter-spacing: 0.02em;
  color: var(--rt-cream);
  text-shadow: var(--rt-shadow-hard);
}

.rt-headline {
  margin: 0 0 var(--rt-space-6);
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: var(--rt-text-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--rt-cream);
  text-shadow: var(--rt-shadow-hard);
}

.rt-body p {
  margin: 0 0 var(--rt-space-3);
  font-size: var(--rt-text-body);
  line-height: 1.7;
  color: var(--rt-cream);
  opacity: 0.88;
}

/* --- Signup -------------------------------------------------------------- */

.rt-signup {
  margin: var(--rt-space-8) 0 0;
  padding: var(--rt-space-4);
  background: var(--rt-navy-dk);
  border-left: 8px solid var(--rt-brick);
}

.rt-signup__heading {
  margin: 0 0 var(--rt-space-3);
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: var(--rt-text-heading);
  line-height: 1.3;
  color: var(--rt-cream);
}

.rt-embed__note {
  margin: 0;
  padding: var(--rt-space-3);
  border: 2px dashed var(--rt-dusty);
  font-size: var(--rt-text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt-dusty);
}

/* --- Closing ------------------------------------------------------------- */

.rt-closing {
  margin: var(--rt-space-8) 0 0;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-style: italic;
  font-size: var(--rt-text-heading);
  color: var(--rt-cream);
  text-shadow: var(--rt-shadow-hard);
}

.rt-closing span {
  display: block;
  margin-top: var(--rt-space-1);
  font-style: normal;
  font-size: var(--rt-text-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rt-brick);
  text-shadow: none;
}

/* --- CRT overlay --------------------------------------------------------- */

.rt-scan {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0,0,0,0.16) 0px,
    rgba(0,0,0,0.16) 2px,
    transparent 2px,
    transparent 4px
  );
}

/* --- Small screens ------------------------------------------------------- */

@media (max-width: 640px) {
  .rt-main { padding: var(--rt-space-6) var(--rt-space-3) var(--rt-space-4); }
  .rt-headline { font-size: var(--rt-text-heading); }
  .rt-closing { font-size: var(--rt-text-body); }
}
