/* Vice Digest — unofficial GTA 6 fan page
   Palette drawn from brand/avatar.jpg (Vice City sunset). */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --bg: #0c0618;
  --bg-2: #160a28;
  --bg-3: #1e0c32;
  --ink: #fff6ef;
  --muted: #c9b4c8;
  --faint: #8c738c;
  --pink: #ff2d95;
  --magenta: #d21f8c;
  --orange: #ff7a1a;
  --gold: #ffc43a;
  --sun: #ffd24a;
  --cyan: #3ef0ff;
  --purple: #4a1678;
  --line: rgba(255, 45, 149, 0.28);
  --card: rgba(18, 8, 32, 0.78);
  --card-solid: #140a24;
  --radius: 18px;
  --max: 1140px;
  --sans: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
  --display: "Outfit", "Segoe UI", sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 8% -8%, rgba(255, 45, 149, 0.22), transparent 55%),
    radial-gradient(800px 480px at 100% 0%, rgba(255, 122, 26, 0.16), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(62, 240, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #0c0618 0%, #140820 45%, #1a0a2c 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
}

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--cyan);
  color: #0c0618;
  padding: 8px 12px;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap, .site-header .inner, .site-footer .inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(12, 6, 24, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 45, 149, 0.45), 0 0 18px rgba(255, 122, 26, 0.45);
}
.brand-name {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--pink);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 28px 0 12px;
}
.hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  align-items: end;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.hero-card .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-card .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,6,24,0.15) 0%, rgba(12,6,24,0.2) 35%, rgba(12,6,24,0.88) 100%),
    linear-gradient(90deg, rgba(12,6,24,0.55), transparent 55%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 4vw, 40px);
  max-width: 40rem;
}
.outnow-banner {
  display: inline-block;
  font-family: var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #1a0a10;
  background: linear-gradient(90deg, var(--pink), var(--orange) 55%, var(--gold));
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(255, 45, 149, 0.45);
  margin: 0 0 14px;
}
.kicker {
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
h1, .page-title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.05;
  margin: 0 0 14px;
  text-wrap: balance;
}
.lede { color: var(--muted); font-size: 1.08rem; margin: 0 0 20px; max-width: 38rem; }

.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--ink);
  background: rgba(255,255,255,0.06);
}
.btn-primary {
  background: linear-gradient(90deg, var(--pink), var(--orange));
  color: #1a0810;
  border-color: transparent;
}
.btn-primary:hover { color: #1a0810; filter: brightness(1.08); }
.btn-ghost {
  border-color: rgba(62, 240, 255, 0.35);
  background: rgba(62, 240, 255, 0.08);
  color: var(--ink);
}
.btn-ghost:hover { color: var(--gold); }

/* Sections */
.section { padding: 48px 0 8px; position: relative; z-index: 1; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
h2, .section-head h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.more { font-weight: 700; text-decoration: none; color: var(--cyan); }

/* Cards */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .grid-2, .grid-3, .news-grid, .guide-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3, .news-grid, .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
a.card:hover {
  transform: translateY(-2px);
  border-color: rgba(62, 240, 255, 0.4);
  color: inherit;
}
.card .media, .card img.media {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  background: #1a0a28;
}
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.meta {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 6px;
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.3; }
.card p, .card .excerpt { margin: 0; color: var(--muted); font-size: 0.95rem; }
.credit {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.78rem;
  color: var(--faint);
}

/* Guides list */
.guide-card .icon {
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  font-size: 0.75rem;
  margin: 0 0 6px;
}

/* Shorts */
.shorts-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 22%);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.short {
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.short .poster {
  aspect-ratio: 9/16;
  object-fit: cover;
  width: 100%;
  background: #12081c;
}
.short .body { padding: 10px 12px 14px; }
.short h3 { font-size: 0.92rem; margin: 0 0 6px; line-height: 1.3; }
.soon {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a0810;
  background: var(--gold);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 800;
}

/* Follow */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a, .socials span {
  border: 1px solid rgba(62, 240, 255, 0.25);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(62, 240, 255, 0.07);
  font-weight: 700;
}
.socials span, .socials a[aria-disabled="true"] {
  opacity: 0.65;
  cursor: default;
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.hint { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

/* Article / guide */
.page-hero { padding: 36px 0 10px; position: relative; z-index: 1; }
.crumb { font-size: 0.85rem; color: var(--muted); margin: 0 0 12px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--cyan); }
.prose {
  position: relative;
  z-index: 1;
  padding: 8px 0 40px;
  max-width: 46rem;
}
.prose .lead { font-size: 1.12rem; color: var(--muted); }
.prose h2 {
  font-size: 1.25rem;
  margin: 1.6em 0 0.5em;
}
.prose p, .prose li { color: #eadde8; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0 0 8px; }
.prose .source, .source-block {
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 28px;
}
figure.shot {
  margin: 20px 0;
}
figure.shot figcaption {
  font-size: 0.82rem;
  color: var(--faint);
  margin-top: 8px;
}
figure.shot img {
  border-radius: 14px;
  border: 1px solid var(--line);
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}
.share-bar .btn { background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.toast {
  display: none;
  margin-top: 8px;
  color: var(--gold);
  font-size: 0.88rem;
}
.toast.show { display: block; }

/* Gallery */
.gallery-grid .card .media { aspect-ratio: 16/9; }
.gallery-item { cursor: zoom-in; }

/* Slot comments stay in HTML; visually reserved blocks are subtle */
.slot-note {
  border: 1px dashed rgba(255, 196, 58, 0.28);
  color: var(--faint);
  border-radius: 14px;
  padding: 16px;
  font-size: 0.85rem;
  margin: 28px 0 0;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot-grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 700px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h2 {
  font-size: 0.95rem;
  margin: 0 0 10px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.disclaimer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.84rem;
}
.disclaimer strong { color: var(--muted); font-weight: 700; }

/* Legal pages */
.legal .prose { max-width: 46rem; }

/* 404 */
.center-page { text-align: left; padding: 64px 0; }

@media (max-width: 799px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 6, 24, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-header.open .site-nav { display: flex; }
  .hero-card { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card:hover { transform: none; }
}
