/* Mobile-first. On wider screens the page stays a phone-width column in the centre.
   Brand tokens follow the main landing (web-landing src/styles/global.css). */
@font-face {
  font-family: 'Archivo Narrow';
  src: url('/assets/fonts/ArchivoNarrow-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #110F10;
  --bg-outside: #080708;
  --card: #1A1819;
  --gold: #FAD56C;
  --text: #ffffff;
  --text-muted: #b9b9b9;
  --line: rgba(255, 255, 255, 0.10);
  --font: 'Archivo Narrow', system-ui, sans-serif;
  --phone: 430px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background: var(--bg-outside);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.app {
  width: 100%;
  max-width: var(--phone);
  min-height: 100svh;
  margin: 0 auto;
  background: var(--bg);
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

/* Header */
.top { padding: max(28px, env(safe-area-inset-top)) var(--gutter) 8px; }
.logo { display: block; width: 96px; height: auto; margin-bottom: 20px; }

h1 {
  margin: 0;
  font-size: 52px;
  line-height: 0.95;
  font-weight: 700;
  text-transform: uppercase;
}
.accent { color: var(--gold); }

/* Filter chips: one scrollable row */
.filters {
  display: flex;
  gap: 8px;
  padding: 20px var(--gutter) 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: 600 14px/1 var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* Feed */
.feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px var(--gutter) 0;
}

.card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.card:active { transform: scale(0.985); }
@media (hover: hover) { .card:hover { border-color: rgba(250, 213, 108, 0.45); } }

/* Cover: placeholder art until real screenshots arrive */
.cover {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 24px 0;
  color: var(--gold);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(250, 213, 108, 0.18), transparent 60%),
    linear-gradient(180deg, #221F20, #161415);
  border-bottom: 1px solid var(--line);
}
.cover svg { width: 100%; height: 80%; }
.cover--progress { padding-bottom: 20px; }

/* Photo cover (stories): the image fills the cover */
.cover--photo {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 0;
  background: #000;
}
.cover--photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Round play badge: marks a card or clip that holds a video */
.play {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 15, 16, 0.6);
  border: 1px solid rgba(250, 213, 108, 0.6);
  backdrop-filter: blur(4px);
}
.play::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 13px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--gold);
}

.card-body { padding: 16px 18px 18px; }

.meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.badge {
  padding: 4px 8px 3px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.type {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Article page */
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: max(20px, env(safe-area-inset-top)) var(--gutter) 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.article-body { padding: 8px var(--gutter) 0; }

.article h1 { font-size: 48px; margin: 4px 0 14px; }

.article .lead {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--gold);
}

.article p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.45;
  color: #dedede;
}

/* In-article clip: a vertical phone recording in a phone-like frame */
.clip {
  width: 64%;
  margin: 8px auto 26px;
  overflow: hidden;
  border: 1px solid rgba(250, 213, 108, 0.35);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 18px 50px rgba(250, 213, 108, 0.10);
}
.clip { position: relative; }
.clip--full { width: 100%; margin-top: 4px; border-radius: 18px; }
.clip video { display: block; width: 100%; height: auto; }

/* Pulsing highlight over the button to tap. Position and timing come from data-spots (clip.js). */
.tap {
  position: absolute;
  border: 2px solid var(--gold);
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  animation: tap-pulse 1.4s ease-out infinite;
}
.tap.is-on { opacity: 1; }
.tap--circle { border-radius: 50%; }
@keyframes tap-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(250, 213, 108, 0.75); border-color: rgba(250, 213, 108, 1); }
  70%  { box-shadow: 0 0 0 12px rgba(250, 213, 108, 0); border-color: rgba(250, 213, 108, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(250, 213, 108, 0); border-color: rgba(250, 213, 108, 1); }
}
@media (prefers-reduced-motion: reduce) { .tap { animation: none; } }

.howto {
  margin: 28px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: var(--card);
}
.howto .label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.article .howto p { margin: 0; color: var(--text); }
.howto strong { color: var(--gold); }

.cta {
  display: block;
  margin-top: 28px;
  padding: 16px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--bg);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}
.cta:active { transform: scale(0.985); }

/* Desktop: a faint frame so the column reads as a phone screen. */
@media (min-width: 600px) {
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* Feed filtering */
.card[hidden] { display: none; }
.empty {
  margin: 24px 0 0;
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
}

/* Caption under an article video */
.article .caption {
  margin: -12px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-muted);
}
.caption a { color: var(--gold); font-weight: 700; text-decoration: none; }
