/* ============================================================
   luseen.co — Shared Stylesheet
   ============================================================
   This file is loaded by every page. It contains:
     1. Design tokens (CSS variables)
     2. Base / reset
     3. Shared components (ticker, nav, footer, form elements)
     4. Utility animations

   Page-specific styles live in /css/pages/<page>.css
   ============================================================ */


/* ───────────── 1. DESIGN TOKENS ───────────── */
:root {
  /* Brand colors */
  --red:            #E40613;   /* Ferrari red — primary accent */
  --red-deep:       #B8040F;
  --blue:           #0047FF;   /* Electric blue — secondary accent */
  --blue-electric:  #1E90FF;   /* Brighter variant for dark backgrounds */

  /* Neutrals */
  --ink:            #0A0A0A;   /* Near-black — primary text */
  --ink-soft:       #3A3530;   /* Softer for body copy */
  --paper:          #FAF7F2;   /* Warm cream page background */
  --paper-warm:     #EEE8DE;   /* Richer warm panel background */

  /* Lines & dividers */
  --line:           rgba(10,10,10,0.12);
  --line-soft:      rgba(10,10,10,0.06);

  /* Typography */
  --display:  'Fraunces', Georgia, serif;
  --body:     'Geist Pixel', 'Geist Mono', monospace;
  --sans:     'Geist', -apple-system, sans-serif;
  --mono:     'Geist Mono', ui-monospace, monospace;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.22, 1, 0.36, 1);
}


/* ───────────── 2. BASE / RESET ───────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }


/* ───────────── 3. TICKER (top bar) ───────────── */
.ticker {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--ink);
  position: relative;
  z-index: 100;
}
.ticker-track {
  display: inline-block;
  animation: tickerScroll 50s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ticker-track span { margin: 0 40px; display: inline-block; }
.ticker-track .dot { color: var(--red); margin: 0 20px; }
.ticker-track .dot.blue { color: var(--blue-electric); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ───────────── 4. NAVIGATION ───────────── */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 99;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.04em;
  font-style: italic;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--ink);
}
.logo .dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  margin-left: 4px;
  display: inline-block;
  align-self: center;
}
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--red); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--red) !important; color: var(--paper) !important; }
.nav-cta::after { display: none !important; }

/* Compact nav variant for subscribe page */
.nav-back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--red); }


/* ───────────── 5. FOOTER ───────────── */
.footer {
  background: var(--paper);
  padding: 80px 48px 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .logo { font-size: 40px; margin-bottom: 20px; }
.footer-brand p {
  max-width: 320px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--ink-soft);
}
.footer-col a {
  display: block;
  font-size: 15px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--red); }

.footer-mark {
  font-family: var(--display);
  font-size: clamp(120px, 22vw, 340px);
  line-height: 0.85;
  font-weight: 400;
  letter-spacing: -0.06em;
  color: var(--ink);
  margin: 60px 0 20px;
  overflow: hidden;
}
.footer-mark em { font-style: italic; font-weight: 300; }
.footer-mark .dot {
  color: var(--red);
  display: inline-block;
  animation: dotFloat 3s ease-in-out infinite;
}
@keyframes dotFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-0.12em); }
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-bottom .socials { display: flex; gap: 16px; }
.footer-bottom .socials a { color: var(--ink-soft); transition: color 0.2s; }
.footer-bottom .socials a:hover { color: var(--red); }

/* Compact footer (single-line) for utility pages */
.footer-compact {
  padding: 28px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-compact a { color: var(--ink-soft); transition: color 0.2s; }
.footer-compact a:hover { color: var(--red); }


/* ───────────── 6. SHARED UTILITIES ───────────── */

/* Eyebrow label with flanking line(s) */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .line {
  width: 36px;
  height: 1px;
  background: currentColor;
}

/* Category pill */
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.pill.red   { background: var(--red);  color: var(--paper); }
.pill.blue  { background: var(--blue); color: var(--paper); }
.pill.ink   { background: var(--ink);  color: var(--paper); }
.pill.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

/* Circular arrow button */
.arrow-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}


/* ───────────── 7. FADE-UP ANIMATION ───────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-quart) forwards;
}


/* ───────────── 8. RESPONSIVE (shared) ───────────── */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.nav-cta):not(.active) { display: none; }
  .footer { padding: 60px 24px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .footer-compact { padding: 20px 24px; flex-direction: column; gap: 12px; text-align: center; justify-content: center; }
}


/* ───────────── 9. REDUCED MOTION ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
