/* OutcastRP — Red Dead styled site. Fonts are the real RDR2 web/game faces. */

@font-face { font-family: "Chinese Rocks"; src: url("/fonts/ChineseRocks.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "RDR Lino"; src: url("/fonts/RDRLino.woff") format("woff"), url("/fonts/RDRLino.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Redemption"; src: url("/fonts/Redemption.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hapna Slab Serif"; src: url("/fonts/HapnaSlabSerif-DemiBold.woff") format("woff"), url("/fonts/HapnaSlabSerif-DemiBold.ttf") format("truetype"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Helvetica Now Text"; src: url("/fonts/HelveticaNowText.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Helvetica Now Text"; src: url("/fonts/HelveticaNowText-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --black: #0b0a0a;
  --ink: #141211;
  --paper: #e9dcc3;
  --paper-dim: #b8ab93;
  --muted: #8d8373;
  --red: #c42f2f;
  --red-deep: #8f1d1d;
  --gold: #d4a24c;
  --line: rgba(233, 220, 195, 0.14);
  --glass: rgba(10, 9, 9, 0.55);
  --title: "Chinese Rocks", "Impact", "Arial Narrow", sans-serif;
  --display: "RDR Lino", "Georgia", serif;
  --body: "Hapna Slab Serif", "Rockwell", "Georgia", serif;
  --ui: "Helvetica Now Text", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- film grain + vignette on the whole page ---------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
}

/* ---------- top navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0));
  transition: background 0.3s ease, height 0.3s ease;
}
.nav.scrolled { background: rgba(8, 7, 7, 0.92); height: 68px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; }
.brand-text {
  font-family: var(--title); font-size: 30px; line-height: 0.9; letter-spacing: 0.04em;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.brand-text small { display: block; font-size: 13px; letter-spacing: 0.3em; color: var(--gold); }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 38px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--title); font-size: 22px; letter-spacing: 0.06em; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.cta { color: var(--gold); }
.nav-toggle {
  display: none; background: rgba(0,0,0,0.4); border: 1px solid var(--line); color: #fff; width: 44px; height: 44px;
  border-radius: 6px; font-size: 22px; cursor: pointer; position: relative; z-index: 45;
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: #000 url("/img/hero.jpg") center 35% / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 28s ease-in-out infinite alternate;
}
@media (max-width: 760px) { .hero-bg { background-image: url("/img/hero-960.jpg"); } }
@keyframes heroDrift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.1) translateY(-1.5%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%),
    linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 35%, rgba(0,0,0,0) 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 30%);
}
.hero-title {
  position: absolute; left: clamp(20px, 5vw, 72px); top: calc(var(--nav-h) + 6vh);
  font-family: var(--title); color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.75);
  line-height: 0.86; letter-spacing: 0.02em;
  font-size: clamp(48px, 7.2vw, 108px);
}
.hero-title .num { color: var(--red); }
.hero-title .sub { display: block; font-family: var(--display); font-size: 0.26em; letter-spacing: 0.32em; color: var(--gold); margin-top: 0.5em; }
.hero-center { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ui); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 34px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255,255,255,0.35);
  color: #fff; background: rgba(255,255,255,0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: rgba(255,255,255,0.26); border-color: #fff; transform: translateY(-1px); }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: #d93b3b; }
.btn.ghost { background: transparent; }
.hero-foot {
  position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: end;
  padding: 0 clamp(20px, 5vw, 72px) clamp(28px, 5vh, 56px);
}
.hero-copy { max-width: 760px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.55; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.hero-copy p { margin: 0; }
.status-card {
  justify-self: end; width: min(100%, 360px);
  background: var(--glass); border: 1px solid rgba(255,255,255,0.18); border-radius: 12px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: #666; box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
.status-dot.on { background: #35c759; box-shadow: 0 0 0 4px rgba(53,199,89,0.2), 0 0 16px rgba(53,199,89,0.8); }
.status-dot.off { background: var(--red); box-shadow: 0 0 0 4px rgba(196,47,47,0.2); }
.status-text b { display: block; font-family: var(--title); font-size: 24px; letter-spacing: 0.05em; line-height: 1; }
.status-text span { font-family: var(--ui); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-dim); }
.status-card .btn { padding: 10px 16px; font-size: 12px; }

/* side rails */
.dots { position: absolute; left: clamp(14px, 2.4vw, 34px); top: 50%; transform: translateY(-50%); display: grid; gap: 18px; z-index: 5; }
.dots a { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; display: block; opacity: 0.8; transition: background 0.2s, transform 0.2s; }
.dots a.active, .dots a:hover { background: #fff; transform: scale(1.1); }
.socials { position: absolute; right: clamp(14px, 2.4vw, 34px); top: 50%; transform: translateY(-50%); display: grid; gap: 18px; z-index: 5; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; opacity: 0.85; transition: opacity 0.2s, transform 0.2s; }
.socials a:hover { opacity: 1; transform: scale(1.12); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 72px); }
.section.bg { color: #fff; isolation: isolate; }
.section.bg::before { content: ""; position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat fixed; }
.section.bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(0,0,0,0.88), rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.75)); }
.section.bg.about::before { background-image: url("/img/about.jpg"); }
.section.bg.community::before { background-image: url("/img/town.jpg"); }
.section.bg.connect::before { background-image: url("/img/plains.jpg"); background-position: center 70%; }
@media (hover: none) { .section.bg::before { background-attachment: scroll; } }
.wrap { max-width: 1240px; margin: 0 auto; }
.eyebrow { font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow::before { content: "— "; color: var(--red); }
.h2 { font-family: var(--title); font-size: clamp(40px, 5.2vw, 72px); line-height: 0.9; letter-spacing: 0.02em; color: #fff; margin-bottom: 22px; }
.h2 em { font-style: normal; color: var(--red); }
.lead { font-size: clamp(17px, 1.3vw, 20px); max-width: 720px; color: var(--paper); }
.two { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.frame {
  position: relative; border: 1px solid rgba(233,220,195,0.25); padding: 10px; background: rgba(0,0,0,0.35);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(0.9) contrast(1.05); }
.frame::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(233,220,195,0.18); pointer-events: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stat { border-left: 2px solid var(--red); padding-left: 14px; }
.stat b { font-family: var(--title); font-size: 34px; display: block; line-height: 1; }
.stat span { font-family: var(--ui); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-dim); }

/* features */
.features { background: var(--ink) url("/img/texture-stars.jpg") center / cover no-repeat; }
.features::before { content: ""; position: absolute; inset: 0; background: rgba(11,10,10,0.9); }
.features .wrap { position: relative; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.card {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line);
  background: #000; isolation: isolate;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease, filter 0.7s ease; filter: saturate(0.85); }
.card:hover img { transform: scale(1.07); filter: saturate(1); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.1) 100%); }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 1; }
.card h3 { font-family: var(--title); font-size: 26px; letter-spacing: 0.04em; line-height: 0.95; margin-bottom: 8px; }
.card p { font-family: var(--ui); font-size: 13.5px; line-height: 1.5; color: var(--paper-dim); margin: 0; }
.card .tag { position: absolute; top: 14px; left: 14px; z-index: 1; font-family: var(--ui); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #fff; background: var(--red); padding: 5px 8px; }

/* community */
.community .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.panel { background: var(--glass); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 28px; border-radius: 10px; }
.panel h3 { font-family: var(--title); font-size: 30px; letter-spacing: 0.04em; margin-bottom: 12px; }
.panel ul { margin: 0; padding-left: 18px; font-family: var(--ui); font-size: 15px; line-height: 1.7; color: var(--paper); }
.rules { list-style: none; padding: 0; margin: 0; counter-reset: r; display: grid; gap: 10px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; font-family: var(--ui); font-size: 15px; line-height: 1.5; }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--title); font-size: 28px; line-height: 1; color: var(--red); }

/* updates */
.updates { background: var(--ink); }
.timeline { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.update { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.update time { font-family: var(--title); font-size: 24px; letter-spacing: 0.04em; color: var(--gold); line-height: 1; }
.update h3 { font-family: var(--display); font-size: 22px; margin-bottom: 6px; color: #fff; }
.update p { font-family: var(--ui); font-size: 15px; color: var(--paper-dim); margin: 0; }

/* connect */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0; }
.step { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.14); padding: 22px; border-radius: 8px; }
.step b { font-family: var(--title); font-size: 40px; color: var(--red); line-height: 1; display: block; margin-bottom: 8px; }
.step h3 { font-family: var(--display); font-size: 20px; margin-bottom: 8px; }
.step p { font-family: var(--ui); font-size: 14px; color: var(--paper-dim); margin: 0; }
code.addr {
  font-family: "Courier New", monospace; font-size: 15px; background: rgba(0,0,0,0.6); border: 1px dashed rgba(255,255,255,0.3);
  padding: 8px 12px; border-radius: 6px; color: var(--gold); cursor: pointer; user-select: all;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; }

/* footer */
footer { padding: 40px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); background: #070606; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
footer p { font-family: var(--ui); font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.6; max-width: 820px; }
footer .foot-links { display: flex; gap: 18px; font-family: var(--title); font-size: 18px; letter-spacing: 0.06em; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-bg { animation: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { font-size: 19px; }
}
@media (max-width: 860px) {
  :root { --nav-h: 70px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); flex-direction: column; gap: 6px;
    background: rgba(8,7,7,0.97); padding: 90px 28px 28px; transform: translateX(100%); transition: transform 0.3s ease;
    border-left: 1px solid var(--line);
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 28px; display: block; padding: 10px 0; }
  .hero-foot { grid-template-columns: 1fr; }
  .status-card { justify-self: stretch; width: 100%; }
  /* On phones the pill joins the normal flow, sitting just above the copy. */
  .hero-center { position: static; transform: none; align-self: end; justify-self: center; padding-bottom: 22px; }
  .hero-title { position: static; padding: calc(var(--nav-h) + 3vh) clamp(20px, 5vw, 72px) 0; }
  .hero { grid-template-rows: auto 1fr auto; }
  .dots, .socials { display: none; }
  .two, .community .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .update { grid-template-columns: 1fr; gap: 6px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* small shared bits used by CMS-rendered markup (v2 restyles them) */
.ink { text-align: center; color: var(--gold); font-size: 12px; letter-spacing: 0.3em; margin: 4px 0 12px; }
.keycap { display: inline-block; font-family: var(--ui); font-weight: 700; font-size: 12px; padding: 1px 7px; border: 1px solid rgba(255,255,255,0.35); border-radius: 4px; background: rgba(0,0,0,0.5); color: #fff; vertical-align: middle; }
.update h3 a { color: inherit; } .update h3 a:hover { color: var(--gold); }
