/* reelfright — one stylesheet for every page.
   Colors and fonts live here once; templates use classes instead of inline styles. */

:root {
  /* brand */
  --ink: #121214;        /* page background */
  --paper: #ECE8E1;      /* main text */
  --green: #4BE31F;
  --purple: #A55CFF;
  --orange: #FF6B00;
  --accent: var(--green);

  /* supporting shades */
  --text-soft: #DCD7E0;  /* body copy (was #D6D1DA and #E2DDE6) */
  --muted: #A7A2B0;      /* labels, dates, captions */
  --panel: #1A191E;      /* boxes */
  --deep: #0C0C0E;       /* tape deck, spine shell (was #0b0b0d and #0c0c0e) */
  --line: #2A2830;
  --line-strong: #3A3842;
  --placeholder: #1F1D26;
  --label: #F2EEE6;      /* VHS spine sticker */

  /* type */
  --f-head: 'Anton', Impact, sans-serif;
  --f-body: 'Literata', Georgia, serif;
  --f-vhs: 'VT323', ui-monospace, monospace;

  --skew: skewX(-8deg);
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100vh;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; line-height: 1.08; margin: 0; }
p { margin: 0; }

main { flex: 1 0 auto; width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--accent); color: var(--ink); padding: 8px 14px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.measure { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- small shared pieces ---------- */

.label { font-family: var(--f-vhs); font-size: 20px; line-height: 1.2; color: var(--muted); text-transform: uppercase; }
.kicker { font-family: var(--f-vhs); font-size: 22px; line-height: 1.2; text-transform: uppercase; text-decoration: none; color: var(--c, var(--accent)); }
.is-green { color: var(--green) !important; }
.is-orange { color: var(--orange) !important; }

.section-head { display: flex; align-items: center; gap: 16px; }
.section-head::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.section-head h2 { font-size: 30px; letter-spacing: 1px; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--tap); padding: 0 22px;
  font-family: var(--f-head); font-size: 18px; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--paper); background: transparent; color: var(--paper); cursor: pointer;
}
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--solid:hover { color: var(--ink); filter: brightness(1.1); }

.chip {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px;
  border: 1px solid var(--line); background: var(--panel);
  font-family: var(--f-vhs); font-size: 20px; text-transform: uppercase; text-decoration: none;
}
.chip:hover { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips > .empty { flex: 1 1 100%; }

.vhs-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.vhs-links a { display: flex; align-items: center; min-height: var(--tap); font-family: var(--f-vhs); font-size: 20px; text-transform: uppercase; }

.empty { padding: 28px 24px; border: 1px dashed var(--line-strong); font-family: var(--f-vhs); font-size: 20px; color: var(--muted); text-transform: uppercase; text-align: center; }

/* placeholder for posts without an image: VHS scanlines */
.ph {
  background-color: var(--placeholder);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  border: 1px solid var(--line);
}

/* a cropped photo: the box clips, the image fills it */
.frame { display: block; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the orange skewed play button, used everywhere a video shows */
.play-badge {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 38px; background: var(--orange); color: var(--ink); transform: var(--skew);
}
.play-badge svg { width: 16px; height: 16px; }
.play-badge--big { width: 96px; height: 68px; }
.play-badge--big svg { width: 28px; height: 28px; }

/* ---------- header ---------- */

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.logo-wrap { margin: 0; font: inherit; }
.logo { position: relative; display: inline-block; padding-right: 8px; text-decoration: none; color: var(--paper); }
.logo:hover { color: var(--paper); }
.logo__text {
  display: block; font-family: var(--f-head); font-size: 50px; line-height: 1.1;
  transform: var(--skew); text-shadow: -2px 0 var(--purple), 2px 0 var(--green);
}
/* the two "tracking error" cuts */
.logo::before, .logo::after { content: ""; position: absolute; left: -6px; right: -6px; background: var(--ink); }
.logo::before { top: 46%; height: 2px; }
.logo::after { top: 64%; height: 1px; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a { display: flex; align-items: center; min-height: var(--tap); padding: 0 14px; font-family: var(--f-head); font-size: 18px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .nav__search { justify-content: center; width: var(--tap); padding: 0; margin-left: 6px; border: 2px solid var(--line); }
.nav__search svg { width: 20px; height: 20px; }

.stripe { display: flex; height: 6px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--green); }
.stripe span:nth-child(2) { background: var(--purple); }
.stripe span:nth-child(3) { background: var(--orange); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 24px; font-family: var(--f-vhs); font-size: 20px; color: var(--muted); }
.site-footer a { text-decoration: none; text-transform: uppercase; }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.site-footer__legal { display: flex; align-items: center; gap: 8px; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); text-decoration: underline; text-transform: none; }
.site-footer__legal a:hover { color: var(--accent); }
.rewind { display: flex; align-items: center; gap: 8px; }
.die { font-family: 'Creepster', cursive; font-size: 30px; letter-spacing: 1px; color: var(--orange); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.social { display: flex; align-items: center; justify-content: center; min-width: var(--tap); height: var(--tap); color: var(--paper); }
.social:hover { color: var(--accent); }
.social svg { width: 22px; height: 22px; }
.social__text { font-family: var(--f-vhs); font-size: 20px; padding: 0 6px; }

/* ---------- homepage ---------- */

.home { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 48px; padding-bottom: 72px; }
.home__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.home__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }

.featured { display: flex; flex-direction: column; gap: 18px; }
.featured__media { position: relative; aspect-ratio: 16 / 9; }
.featured__media .frame { height: 100%; border: 1px solid var(--line); }
.featured__media .play-badge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.sticker {
  position: absolute; top: 18px; left: -8px; transform: rotate(-4deg);
  background: var(--orange); color: var(--ink); padding: 6px 14px;
  font-family: var(--f-head); font-size: 20px; letter-spacing: 1px; text-transform: uppercase;
}
.featured h2 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; }
.featured h2 a, .card h3 a, .card-sm, .post-nav a { text-decoration: none; }
.featured__summary { font-size: 19px; color: var(--text-soft); }
.featured__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

.cards { display: flex; flex-direction: column; gap: 32px; }
.card { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.card__thumb { position: relative; flex: 0 0 150px; aspect-ratio: 1 / 1; }
.card__thumb .frame { height: 100%; border: 1px solid var(--line); }
.card__thumb .play-badge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.card__thumb .video-tag { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; background: var(--ink); font-family: var(--f-vhs); font-size: 16px; }
.card__body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 32px; line-height: 1.1; }
.card__summary { font-size: 17px; color: var(--text-soft); }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.pager .btn:only-child { margin-left: auto; }

.panel { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.panel__photo { width: 88px; height: 88px; border-radius: 50%; border: 2px solid var(--accent); }
.panel h2 { font-size: 28px; letter-spacing: .5px; }
.panel__bio { font-size: 16px; color: var(--text-soft); }

.side-block { display: flex; flex-direction: column; gap: 14px; }
.side-block h2 { font-size: 26px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- VHS shelf spines ---------- */

.spines { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); gap: 10px; }
.spine {
  display: flex; align-items: center; gap: 10px; height: 68px; padding: 0 12px;
  background: var(--deep); border: 1px solid var(--line); border-radius: 3px; text-decoration: none;
}
.spine:hover { border-color: var(--c); }
.spine__ridges { flex: 0 0 24px; height: 46px; background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 2px, transparent 2px 4px); background-size: 10px 100%; background-repeat: no-repeat; background-position: center; }
.spine__sticker {
  flex: 1; min-width: 0; height: 50px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--label); color: var(--ink); padding: 0 22px 0 12px; border-left: 10px solid var(--c);
}
.spine__speed { flex: 0 0 24px; text-align: center; font-family: var(--f-vhs); font-size: 18px; color: var(--muted); }
.spine--limelight .spine__sticker { font-family: 'Limelight', serif; font-size: 22px; }
.spine--typewriter .spine__sticker { font-family: 'Special Elite', monospace; font-size: 16px; white-space: nowrap; }
.spine--pixel .spine__sticker { font-family: 'Press Start 2P', monospace; font-size: 12px; }
.spine--toy .spine__sticker { font-family: 'Luckiest Guy', cursive; font-size: 22px; letter-spacing: 1px; }
.spine--neon .spine__sticker { font-family: 'Monoton', cursive; font-size: 19px; letter-spacing: 1px; }

/* ---------- post page ---------- */

.post { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 56px 24px 72px; }
.post__head { display: flex; flex-direction: column; gap: 18px; }
.post__head .kicker { align-self: flex-start; display: flex; align-items: center; min-height: var(--tap); }
.post__title { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--f-vhs); font-size: 20px; color: var(--muted); text-transform: uppercase; }
.post__top { width: 100%; max-width: 1080px; margin: 0; }
.hero .frame { aspect-ratio: 16 / 9; border: 1px solid var(--line); }

.prose { display: flex; flex-direction: column; gap: 28px; font-size: 20px; line-height: 1.75; color: var(--text-soft); }
.prose h1 { font-size: clamp(44px, 7vw, 72px); line-height: 1; color: var(--paper); }
.prose h2 { margin-top: 16px; font-size: 36px; line-height: 1.1; color: var(--paper); }
.prose h3 { margin-top: 8px; font-size: 28px; color: var(--paper); }
.prose a { color: var(--accent); }
.prose ul, .prose ol { margin: 0; padding-left: 1.4em; }
.prose > figure, .prose > .tape, .prose > .pullquote, .prose > .spoiler { margin: 12px 0; }

.pullquote { margin: 0; padding: 8px 0 8px 28px; border-left: 6px solid var(--purple); font-family: var(--f-head); font-size: 34px; line-height: 1.2; color: var(--paper); }
.pullquote p { margin: 0; }

.photo { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.photo img { width: 100%; border: 1px solid var(--line); }
figcaption { font-family: var(--f-vhs); font-size: 20px; line-height: 1.3; color: var(--muted); }

.spoiler { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 20px; border: 2px solid var(--orange); background: var(--panel); }
.spoiler__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.spoiler__head svg { width: 26px; height: 26px; }
.spoiler__title { font-family: var(--f-head); font-size: 24px; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); }
.spoiler__skip { display: flex; align-items: center; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--orange); font-family: var(--f-vhs); font-size: 20px; text-transform: uppercase; text-decoration: none; }
.spoiler-end { display: flex; align-items: center; gap: 14px; font-family: var(--f-vhs); font-size: 20px; color: var(--orange); text-transform: uppercase; scroll-margin-top: 24px; }
.spoiler-end::before, .spoiler-end::after { content: ""; flex: 1; height: 2px; background: var(--orange); }

/* galleries */
.gallery { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery__grid a, .gallery__lead { display: block; }
.gallery__grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); }
.gallery__lead img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); }
.gallery--frontback .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--frontback .gallery__grid img { aspect-ratio: 3 / 4; }
.gallery--frontback .gallery__grid a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.gallery__side { font-family: var(--f-vhs); font-size: 18px; color: var(--muted); }
.gallery figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }

/* tape deck video player (hero + in-post embeds) */
.tape { margin: 0; display: flex; flex-direction: column; border: 2px solid var(--line); background: var(--deep); }
.tape__bar, .tape__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding: 6px 16px; font-family: var(--f-vhs); font-size: 20px; color: var(--muted); }
.tape__bar { border-bottom: 2px solid var(--line); }
.tape__foot { border-top: 2px solid var(--line); padding-top: 0; padding-bottom: 0; }
.tape__foot a { display: flex; align-items: center; min-height: var(--tap); text-decoration: none; text-transform: uppercase; }
.tape__screen { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--placeholder); cursor: pointer; }
.tape__screen img { width: 100%; height: 100%; object-fit: cover; }
.tape__screen .play-badge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.tape__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* specs box */
.specs { margin-top: 12px; border: 2px solid var(--line); background: var(--panel); }
.specs__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 20px; background: var(--accent); color: var(--ink); }
.specs__head h2 { font-size: 22px; letter-spacing: 1px; text-transform: uppercase; }
.specs__head span { font-family: var(--f-vhs); font-size: 20px; text-transform: uppercase; }
.specs dl { margin: 0; padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; font-size: 17px; line-height: 1.4; color: var(--paper); }
.specs dt { font-family: var(--f-vhs); font-size: 18px; color: var(--muted); text-transform: uppercase; }
.specs dd { margin: 0; }
.specs__where { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
.specs__where dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.specs__where a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--accent); }
.specs__note { padding: 0 20px 18px; font-family: var(--f-vhs); font-size: 18px; line-height: 1.3; color: var(--muted); text-transform: uppercase; }
.verdict { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; border-top: 2px solid var(--line); }
.verdict__stamp { display: inline-block; padding: 6px 16px; background: var(--v, var(--accent)); color: var(--ink); font-family: var(--f-head); font-size: 26px; line-height: 1.1; letter-spacing: 1px; text-transform: uppercase; transform: var(--skew); }
.verdict__scale { flex-basis: 100%; list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--f-vhs); font-size: 18px; color: var(--muted); text-transform: uppercase; }
.verdict__scale li:not(:last-child)::after { content: " ·"; }
.verdict__scale [aria-current="true"] { color: var(--v, var(--accent)); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share .chip { background: transparent; }
.share button.chip { color: var(--paper); border-color: var(--accent); cursor: pointer; }

.post-nav { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-nav a { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); }
.post-nav a:hover { border-color: var(--accent); }
.post-nav__next { text-align: right; margin-left: auto; }
.post-nav strong { font-family: var(--f-head); font-weight: 400; font-size: 24px; line-height: 1.15; }

.more { width: 100%; max-width: 1080px; display: flex; flex-direction: column; gap: 24px; }
.more__row { display: flex; flex-wrap: wrap; gap: 24px; }
.card-sm { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.card-sm .frame { aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.card-sm strong { font-family: var(--f-head); font-weight: 400; font-size: 24px; line-height: 1.15; }

/* ---------- simple pages (archive, shelf, tag, about, privacy, search) ---------- */

.page { display: flex; flex-direction: column; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
.page__title { font-size: clamp(44px, 7vw, 72px); line-height: 1; }
.archive-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.archive-list li { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.archive-list .label { flex: 0 0 120px; }
.archive-list a { text-decoration: none; font-family: var(--f-head); font-size: 22px; line-height: 1.2; }
.archive-month { font-size: 24px; text-transform: uppercase; margin-top: 24px; }

.about-intro { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; }
.about-intro__photo { flex: 1 1 320px; max-width: 420px; position: relative; margin: 0; }
.about-intro__photo .frame { aspect-ratio: 4 / 5; border: 2px solid var(--accent); }
.about-intro__text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-intro__photo { display: flex; flex-direction: column; gap: 12px; }
.about-intro__lead { font-size: 22px; line-height: 1.6; }
.about-intro__more { font-size: 19px; line-height: 1.75; color: var(--text-soft); }

.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.pick { display: flex; flex-direction: column; gap: 10px; }
.pick__cover { position: relative; }
.pick__cover .frame { aspect-ratio: 2 / 3; border: 1px solid var(--line); }
.pick__cover .sticker { top: 10px; left: auto; right: -6px; transform: rotate(4deg); font-family: var(--f-vhs); font-size: 16px; padding: 2px 8px; }
.pick strong { font-family: var(--f-head); font-weight: 400; font-size: 20px; line-height: 1.15; }

/* search page: match Pagefind's built-in UI to the site */
#search {
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: var(--green);
  --pagefind-ui-text: var(--paper);
  --pagefind-ui-background: var(--panel);
  --pagefind-ui-border: var(--line);
  --pagefind-ui-tag: var(--line);
  --pagefind-ui-border-width: 2px;
  --pagefind-ui-border-radius: 0;
  --pagefind-ui-font: var(--f-body);
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .nav { margin-left: -14px; }
  .footer-links { gap: 0; }
  .social { min-width: 40px; }
  .prose { font-size: 18px; }
  .card__thumb { flex-basis: 100%; aspect-ratio: 16 / 9; }
  .pullquote { font-size: 28px; }
}
