/* ============================================================
   ScaryTok LLC — scarytokgames.com
   Plain CSS. No frameworks, no external fonts, no tracking.
   Palette: "dark marquee" — deep dusk violet + amber signage.
   ============================================================ */

:root {
  --ink: #0e0d15;        /* page background */
  --panel: #17151f;      /* raised surfaces */
  --panel-2: #1d1a28;    /* hover / deeper surface */
  --line: #2b2739;       /* hairline borders */
  --text: #e9e6f2;       /* primary text */
  --muted: #a29bb6;      /* secondary text */
  --amber: #e6a93e;      /* marquee accent */
  --amber-soft: rgba(230, 169, 62, 0.14);
  --focus: #f2c063;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-label: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 68rem;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Subtle vignette so the dark reads intentional, not flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(230, 169, 62, 0.05), transparent 60%),
    radial-gradient(140% 100% at 50% 120%, rgba(0, 0, 0, 0.55), transparent 60%);
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

img, svg { max-width: 100%; height: auto; }

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: #1a1206;
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */

.wrap {
  width: min(var(--maxw), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(14, 13, 21, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }

.brand-logo {
  width: 42px;
  height: 47px;
  flex: none;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.brand .llc {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--muted);
  border-radius: 8px;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--panel-2);
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  color: var(--amber);
  background: var(--amber-soft);
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.15rem;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 0.9rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.85rem; font-size: 1rem; }
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.9rem;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.7rem;
}

h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }

p { margin: 0 0 1rem; }

.lede {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 44rem;
}

.muted { color: var(--muted); }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(3rem, 9vh, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Signature: a faint field of "marquee bulbs" behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(230, 169, 62, 0.16) 1px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 60% at 50% 40%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, black, transparent 75%);
  animation: bulbs 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bulbs {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.hero .wrap { position: relative; }

.hero h1 { margin-inline: auto; max-width: 18ch; }

.hero .lede { margin-inline: auto; }

/* The flickering "sign" word */
.flicker { color: var(--amber); }

@media (prefers-reduced-motion: no-preference) {
  .flicker { animation: flicker 6s linear infinite; }
  @keyframes flicker {
    0%, 6.5%, 7.5%, 46%, 47.5%, 100% { opacity: 1; text-shadow: 0 0 18px rgba(230, 169, 62, 0.45); }
    7%, 46.8% { opacity: 0.35; text-shadow: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  html { scroll-behavior: auto; }
}

.btn-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--amber);
  color: #1a1206;
}
.btn-primary:hover { background: var(--focus); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: var(--panel-2); }

/* ---------- Sections & cards ---------- */

.section { padding: clamp(2.5rem, 7vh, 4.5rem) 0; }

.section + .section { border-top: 1px solid var(--line); }

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.6rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
}

.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

.card .glyph {
  font-family: var(--font-label);
  color: var(--amber);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------- Legal pages ---------- */

.legal { max-width: 46rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 1.2rem; }

.updated {
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  max-width: 34rem;
  margin: 2rem auto 0;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-label);
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  margin: 0.8rem 0 0.4rem;
  word-break: break-all;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
