@font-face {
  font-family: "PressStart";
  src: url("/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0b0b10;
  --panel: #14141c;
  --line: #2a2a38;
  --text: #d8d4c8;
  --muted: #8a8678;
  --yellow: #f2c230;
  --red: #c8352b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}

h1, h2, .btn, .nav, .badge, .dialog, .features b, .people b, .controls th, .meta {
  font-family: "PressStart", monospace;
  font-weight: normal;
}

a { color: var(--yellow); }

.pixel { image-rendering: pixelated; display: block; width: 100%; height: auto; }

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("/img/yard_night_man.png") center / cover no-repeat;
  image-rendering: pixelated;
  animation: flicker 7s infinite;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, rgba(11,11,16,.35) 0%, rgba(11,11,16,.2) 50%, var(--bg) 100%);
}
@keyframes flicker {
  0%, 91%, 93%, 96%, 100% { filter: brightness(1); }
  92%, 95% { filter: brightness(.45); }
}

.nav {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 22px 16px;
  font-size: 11px;
}
.nav a { color: var(--text); text-decoration: none; opacity: .8; }
.nav a:hover { color: var(--yellow); opacity: 1; }

.hero__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px 140px;
}
.badge {
  margin: 0 0 18px;
  padding: 6px 10px;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 12px;
}
.title {
  margin: 0;
  font-size: clamp(34px, 9vw, 92px);
  line-height: 1.1;
  color: var(--yellow);
  text-shadow: 4px 4px 0 #000, 0 0 30px rgba(242,194,48,.25);
  letter-spacing: 2px;
}
.tagline {
  margin: 22px 0 34px;
  font-size: clamp(16px, 2.4vw, 22px);
  text-shadow: 2px 2px 0 #000;
}

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.btn {
  display: inline-block;
  padding: 16px 22px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  background: rgba(20,20,28,.9);
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 #000;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #000; }
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 #000; }
.btn--primary { background: var(--yellow); border-color: var(--yellow); color: #111; }

.meta { margin-top: 22px; font-size: 10px; color: var(--muted); line-height: 2; }

.dialog {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  padding: 18px 20px;
  background: rgba(20,8,8,.85);
  border: 2px solid var(--red);
  font-size: 13px;
  color: #e08a80;
}
.dialog p { margin: 0; }
.dialog p::after { content: " ▼"; color: var(--yellow); animation: blink 1s steps(1) infinite; }
.dialog__name {
  position: absolute;
  top: -14px;
  left: 14px;
  padding: 4px 8px;
  background: var(--bg);
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 10px;
}
@keyframes blink { 50% { opacity: 0; } }

/* sections */
.section { max-width: 1080px; margin: 0 auto; padding: 80px 20px 20px; }
.section h2 {
  margin: 0 0 36px;
  font-size: clamp(18px, 3vw, 26px);
  color: var(--yellow);
  border-left: 6px solid var(--yellow);
  padding-left: 16px;
}

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.about__text p { margin: 0 0 18px; }
.about__img { border: 3px solid var(--line); }

.features {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.features li { background: var(--panel); border: 2px solid var(--line); padding: 18px; }
.features b { display: block; font-size: 11px; line-height: 1.7; color: var(--yellow); margin-bottom: 10px; }
.features span { color: var(--muted); font-size: 15px; }

.shot-main { border: 3px solid var(--line); margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { border: 3px solid var(--line); transition: border-color .15s; }
.gallery img:hover { border-color: var(--yellow); }

.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.people figure { margin: 0; background: var(--panel); border: 2px solid var(--line); }
.people figcaption { padding: 14px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.people b { display: block; color: var(--text); font-size: 11px; margin-bottom: 8px; }
.people .stranger { border-color: var(--red); }
.people .stranger b { color: var(--red); }

.controls { width: 100%; border-collapse: collapse; background: var(--panel); }
.controls th, .controls td { padding: 12px 16px; border: 2px solid var(--line); text-align: left; }
.controls th { font-size: 11px; color: var(--yellow); }
.controls td:not(:first-child) { font-family: "PressStart", monospace; font-size: 11px; }
.hint { margin-top: 22px; color: var(--muted); }
.y { color: var(--yellow); }
.r { color: var(--red); }

.final { text-align: center; padding-bottom: 80px; }
.final h2 { display: inline-block; }

.footer {
  border-top: 2px solid var(--line);
  padding: 28px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.footer p { margin: 4px 0; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .features, .people { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .features, .people { grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn { font-size: 11px; padding: 14px 16px; }
  .controls th, .controls td { padding: 8px; font-size: 13px; }
}
