/* Gallo CHINGÓN — savagekok.com
   Brand: Dark #002100 | Red #FF0033 | Gold #FFCC33 */

@view-transition { navigation: auto; }

:root {
  --bg: #f4f1ea;
  --bg-raise: #ffffff;
  --ink: #0b1a0b;
  --muted: #4a5a4a;
  --brand-dark: #002100;
  --red: #FF0033;
  --gold: #FFCC33;
  --line: #d8d2c4;
  --shadow: 0 8px 30px rgb(0 33 0 / .12);
  --radius: 14px;
  --font-display: "Archivo Black", Impact, "Arial Black", sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  --bg: #001500;
  --bg-raise: #002100;
  --ink: #ece7da;
  --muted: #9fb09f;
  --line: #0a3a0a;
  --shadow: 0 8px 30px rgb(0 0 0 / .5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  transition: background .3s, color .3s;
}
main { max-width: 880px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
a { color: var(--red); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: .02em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }

/* ---------- nav ---------- */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.25rem; position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { font-family: var(--font-display); text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.nav-brand img { height: 32px; width: auto; display: block; }
.brand-accent { color: var(--red); }
.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a[aria-current="page"] { color: var(--red); }
.nav-search, .nav-theme, .search-close {
  background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: .3rem .6rem; cursor: pointer; font-size: 1rem;
}

/* ---------- hero / linktree ---------- */
.hero { text-align: center; padding: 3rem 0 1rem; position: relative; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; }
.hero h1 .accent { color: var(--red); -webkit-text-stroke: 0; }
.hero .tagline {
  font-size: 1.1rem; color: var(--muted); max-width: 34rem; margin: .8rem auto 0;
}
.hero .avatar {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold); box-shadow: var(--shadow);
  view-transition-name: host-face;
}

.links { display: grid; gap: .8rem; max-width: 30rem; margin: 2rem auto; padding: 0; list-style: none; }
.link-card {
  display: flex; align-items: center; gap: .9rem;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.1rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.link-card:hover { transform: translateY(-3px) scale(1.01); border-color: var(--red); }
.link-card .icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: .8rem; color: #fff; flex-shrink: 0;
}
.icon-yt { background: #ff0000; } .icon-ig { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.icon-tt { background: #010101; } .icon-sms { background: var(--red); } .icon-cal { background: var(--gold); color: var(--brand-dark) !important; }
.link-card .label { font-weight: 700; }
.link-card .blurb { font-size: .85rem; color: var(--muted); }

/* ---------- episode cards ---------- */
.ep-grid { display: grid; gap: 1.2rem; padding: 0; list-style: none; }
.ep-card {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow);
  animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
}
.ep-card h3 { margin: .2rem 0 .4rem; }
.ep-card h3 a { color: var(--ink); text-decoration: none; }
.ep-card h3 a:hover { color: var(--red); }
.ep-meta { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pill { display: inline-block; background: var(--gold); color: var(--brand-dark); border-radius: 99px; padding: .05rem .6rem; font-weight: 700; font-size: .75rem; margin-right: .4rem; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ep-card { animation: none; } }

/* ---------- video embeds ---------- */
.yt-lite {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9;
  background-size: cover; background-position: center; border-radius: var(--radius);
  cursor: pointer; border: 1px solid var(--line); overflow: hidden;
}
.yt-lite::after {
  content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.6rem; color: #fff; background: rgb(0 0 0 / .35); transition: background .2s;
}
.yt-lite:hover::after { background: rgb(255 0 51 / .45); }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-lite.playing::after { display: none; }
.spotify-embed { border-radius: 12px; width: 100%; height: 152px; border: 0; margin-top: 1rem; }

/* ---------- prose / posts ---------- */
.prose { max-width: 42rem; margin: 0 auto; }
.prose blockquote { border-left: 3px solid var(--red); margin-left: 0; padding-left: 1rem; color: var(--muted); font-style: italic; }
.byline { color: var(--muted); font-size: .9rem; }

/* ---------- search modal ---------- */
.search-modal { border: 0; padding: 0; background: transparent; width: min(680px, 92vw); }
.search-modal::backdrop { background: rgb(0 21 0 / .7); backdrop-filter: blur(4px); }
.search-box {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow); position: relative; max-height: 70vh; overflow: auto;
}
.search-close { position: absolute; top: .8rem; right: .8rem; font-size: .75rem; }

/* pagefind theming */
:root { --pagefind-ui-primary: var(--red); --pagefind-ui-text: var(--ink); --pagefind-ui-background: var(--bg-raise); --pagefind-ui-border: var(--line); --pagefind-ui-tag: var(--gold); }

/* ---------- footer ---------- */
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); }

/* ---------- marquee tagline ---------- */
.ticker { overflow: hidden; white-space: nowrap; border-block: 2px solid var(--red); padding: .4rem 0; margin: 2rem 0; }
.ticker span { display: inline-block; font-family: var(--font-display); font-size: .9rem; padding-right: 3rem; animation: tick 22s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker span { animation: none; } }
