/* Spider Hunter — BDKM
   Deliberately single-theme. The game is a night game: midnight black and emerald.
   A light mode would fight the identity, so every colour is painted explicitly and
   nothing is left to inherit from the browser.

   No webfonts on purpose. Loading a font from a third-party CDN would send every
   visitor's IP address to that CDN, which would directly contradict the privacy
   policy this same site serves. System faces cost nothing and leak nothing. */

:root {
  --void:        #05080A;
  --carbon:      #0B1114;
  --carbon-lift: #121A1E;
  --rule:        #1D282D;
  --rule-lit:    #2C3C43;

  --bone:        #E7EEEB;
  --steel:       #93A6AE;
  --steel-dim:   #64757D;

  --emerald:     #3BE07B;
  --emerald-dim: #1E9E56;
  --emerald-glow: rgba(59, 224, 123, 0.16);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 68ch;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; display: block; }

/* ---------------------------------------------------------- site header */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: rgba(5, 8, 10, 0.86);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span {
  font-weight: 800; letter-spacing: -0.015em; font-size: 1.02rem; color: var(--bone);
}
.brand:hover { text-decoration: none; }
.navlinks { display: flex; gap: 22px; align-items: center; }
.navlinks a {
  color: var(--steel); font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.navlinks a:hover { color: var(--emerald); text-decoration: none; }
.navlinks a[aria-current="page"] { color: var(--bone); }

/* ---------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero-art {
  position: absolute; inset: 0;
  background-image: url("key-art.jpg");
  background-size: cover;
  background-position: 62% 28%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(5,8,10,0.96) 0%, rgba(5,8,10,0.80) 38%, rgba(5,8,10,0.30) 68%, rgba(5,8,10,0.55) 100%),
    linear-gradient(to top, rgba(5,8,10,0.95) 0%, rgba(5,8,10,0) 45%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(72px, 13vw, 148px) 0 clamp(56px, 9vw, 104px);
  max-width: 620px;
}
.kicker {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--emerald); margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7.6vw, 4.6rem);
  line-height: 0.96; letter-spacing: -0.042em; font-weight: 900;
  margin: 0 0 10px; text-wrap: balance;
}
/* The web strand: a hairline that snaps taut under the title on load. One gesture,
   in one place, taken straight from what the character actually does. */
.strand {
  height: 2px; width: 168px; margin: 0 0 24px;
  background: linear-gradient(90deg, var(--emerald), rgba(59,224,123,0));
  transform-origin: left center;
  animation: snap 620ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}
@keyframes snap { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .strand { animation: none; }
}
.hero p.lede {
  font-size: clamp(1.06rem, 2.2vw, 1.22rem);
  color: var(--steel); margin: 0 0 32px; max-width: 46ch;
}

.badge {
  display: inline-flex; align-items: center; gap: 11px;
  border: 1px solid var(--rule-lit); background: var(--carbon);
  border-radius: 8px; padding: 12px 20px;
  color: var(--bone); font-weight: 700; font-size: 0.98rem;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-glow);
  flex-shrink: 0;
}
.badge:hover { text-decoration: none; border-color: var(--emerald-dim); }
.badge small {
  display: block; font-weight: 500; font-size: 0.76rem;
  color: var(--steel-dim); letter-spacing: 0.03em;
}

/* ---------------------------------------------------------- sections */
section.band { padding: clamp(56px, 9vw, 96px) 0; border-bottom: 1px solid var(--rule); }
section.band:last-of-type { border-bottom: none; }

.band h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.15rem);
  font-weight: 850; letter-spacing: -0.028em; line-height: 1.1;
  margin: 0 0 14px; text-wrap: balance;
}
.band .sub { color: var(--steel); margin: 0 0 40px; max-width: var(--measure); }

.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 20px;
}
.card {
  background: var(--carbon); border: 1px solid var(--rule);
  border-radius: 6px; padding: 24px 22px;
}
.card h3 {
  font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--emerald); font-weight: 700; margin: 0 0 12px;
}
.card p { margin: 0; color: var(--steel); font-size: 0.96rem; }

.shot {
  border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
  margin-top: 8px;
}

/* ---------------------------------------------------------- legal pages */
.doc { padding: clamp(48px, 7vw, 76px) 0 96px; }
.doc h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.6rem); font-weight: 850;
  letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 10px;
}
.doc .meta {
  font-family: var(--mono); font-size: 0.8rem; color: var(--steel-dim);
  margin: 0 0 8px; line-height: 1.8;
}
.doc .meta strong { color: var(--steel); font-weight: 600; }
.doc h2 {
  font-size: 1.16rem; font-weight: 750; letter-spacing: -0.012em;
  margin: 44px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
  color: var(--bone);
}
.doc h3 {
  font-size: 1rem; font-weight: 700; margin: 28px 0 8px; color: var(--emerald);
}
.doc p { margin: 0 0 14px; color: var(--steel); }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 24px; color: var(--steel); }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--bone); font-weight: 650; }
.doc code {
  font-family: var(--mono); font-size: 0.87em;
  background: var(--carbon-lift); color: var(--bone);
  padding: 2px 6px; border-radius: 3px;
}
.doc .intro {
  font-size: 1.06rem; color: var(--bone);
  border-left: 2px solid var(--emerald); padding-left: 18px; margin: 28px 0 12px;
}
.callout {
  background: var(--carbon); border: 1px solid var(--rule-lit);
  border-radius: 6px; padding: 18px 20px; margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- footer */
footer.site {
  border-top: 1px solid var(--rule); background: var(--carbon);
  padding: 44px 0 52px; margin-top: 0;
}
footer.site .cols {
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
  align-items: flex-start;
}
footer.site .flinks { display: flex; flex-wrap: wrap; gap: 20px; }
footer.site a { color: var(--steel); font-size: 0.9rem; }
footer.site a:hover { color: var(--emerald); }
footer.site .fine {
  color: var(--steel-dim); font-size: 0.82rem; margin: 26px 0 0;
  padding-top: 20px; border-top: 1px solid var(--rule);
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .wrap { height: 58px; }
  .navlinks { gap: 15px; }
  .navlinks a { font-size: 0.76rem; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(5,8,10,0.72) 0%, rgba(5,8,10,0.86) 55%, rgba(5,8,10,0.97) 100%);
  }
  .hero-art { background-position: 60% 18%; }
}
