/* ============================================================
   RIYACTION.COM — shared styles
   Palette: abyss teal + bone + gold (matches RIYACTION brand)
   Type: Archivo Black (display) / Spectral (prose) / IBM Plex Mono (labels)
   ============================================================ */

:root {
  --abyss: #08181d;        /* page background */
  --deep: #0f2c33;         /* panels / cards */
  --ink: #ede7da;          /* body text */
  --faded: rgba(237, 231, 218, 0.55);
  --gold: #eccb5a;         /* single accent — same gold as poster slides */
  --aqua: #7fb0b5;         /* secondary, hover states */
  --maxw: 42rem;           /* prose column width */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--abyss);
  color: var(--ink);
  font-family: "Spectral", Georgia, serif;
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--abyss); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  z-index: 10;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(to bottom, rgba(8, 24, 29, 0.85), transparent);
}

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

.nav a:hover, .nav a:focus-visible { color: var(--gold); }
.nav a.active { color: var(--gold); }

.nav .wordmark { font-weight: 700; letter-spacing: 0.28em; }

.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

/* ---------- Inner pages ---------- */

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9rem 1.5rem 6rem;
}

.page-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

h1.display {
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.page p { margin-bottom: 1.4rem; }

.page em { font-style: italic; }

/* skim anchors — the bolded trail through the bio */
.hl { color: #12333b; background: #f5df76; padding: 0.05em 0.28em; margin: 0 -0.05em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-weight: 600; }

a.inline {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}
a.inline:hover, a.inline:focus-visible { color: var(--gold); }

/* ---------- Landing page ---------- */

.landing {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.landing video, .landing .video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* animated underwater gradient shown until/unless a video loads */
.video-fallback {
  background: linear-gradient(200deg, #0f2c33, #08181d 45%, #123a44 90%);
  background-size: 200% 200%;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 100%; }
}

.landing .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 24, 29, 0.85) 0%, rgba(8, 24, 29, 0.15) 45%, rgba(8, 24, 29, 0.35) 100%);
}

.hero {
  position: absolute;
  left: 2rem;
  bottom: 3rem;
  z-index: 2;
}

.hero h1 {
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gold);
}

.hero .tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-top: 0.9rem;
}

/* viewfinder HUD — the signature element */
.hud {
  position: absolute;
  right: 2rem;
  bottom: 3rem;
  z-index: 2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--faded);
  text-align: right;
  user-select: none;
}

.hud .rec {
  color: var(--gold);
}

.hud .rec::before {
  content: "●";
  margin-right: 0.5em;
  animation: blink 1.6s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0.15; } }

/* ---------- Footer ---------- */

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faded);
}

/* ---------- Shell / placeholder pages ---------- */

.placeholder {
  border: 1px dashed rgba(237, 231, 218, 0.25);
  padding: 2rem;
  color: var(--faded);
  font-size: 1rem;
}

/* ---------- Accessibility & mobile ---------- */

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .video-fallback { animation: none; }
  .hud .rec::before { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .nav {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .nav ul { gap: 1.05rem; flex-wrap: wrap; font-size: 0.78rem; }
  .wordmark img { height: 13px; }
  .hero { left: 1.25rem; bottom: 2.25rem; }
  .hud { right: 1.25rem; bottom: 1rem; }
  .page { padding-top: 7rem; }
}

.wordmark img { height: 16px; width: auto; display: block; }

.hero .basedin {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faded);
  margin-top: 0.5rem;
}
