/* The King's Surveyor, one-page site. Palette from the key art: night, torch, stone, crimson. */

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

:root {
  --night: #07080a;
  --ink: #0f1113;
  --stone: #1b1e22;
  --parchment: #e8dcc0;
  --parchment-dim: #b8ad94;
  --torch: #f2b134;
  --torch-bright: #ffd36a;
  --crimson: #c8233a;
  --moss: #3b6b3a;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--torch); }
a:hover { color: var(--torch-bright); }

h1, h2 {
  font-family: "Mountain King", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--torch);
  text-shadow: 0 0 18px rgba(242, 177, 52, 0.25);
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }

p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8em 1.6em;
  border-radius: 4px;
  font-family: "Mountain King", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button.steam {
  background: var(--torch);
  color: #1a1206;
  box-shadow: 0 0 24px rgba(242, 177, 52, 0.35);
}
.button.steam:hover { background: var(--torch-bright); color: #1a1206; }
.button.ghost {
  border: 1px solid var(--parchment-dim);
  color: var(--parchment);
}
.button.ghost:hover { border-color: var(--parchment); color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75em; justify-content: center; margin: 1.25em 0 0.75em; }

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: var(--night);
}
.hero-art, .hero-art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(7,8,10,0.15) 0%, rgba(7,8,10,0.05) 35%, rgba(7,8,10,0.75) 75%, var(--night) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  padding: 3rem 1rem 3.5rem;
  max-width: 820px;
}
.logo {
  width: min(560px, 80vw);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.7));
}
.tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--parchment);
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  margin: 0.75em 0 0;
}
.status {
  color: var(--parchment-dim);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

/* Layout */
main { max-width: var(--max); margin: 0 auto; padding: 0 1rem 3rem; }
section { padding: 3rem 0; }

/* Trailer */
.trailer { padding-top: 1rem; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid #23272c;
  box-shadow: 0 0 60px rgba(242, 177, 52, 0.08);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lede {
  max-width: 760px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 1.2rem;
  color: var(--parchment);
}

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  border-top: 1px solid #17191c;
}
.feature.flip .text { order: 2; }
.feature img {
  width: 100%; height: auto;
  border: 1px solid #23272c;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.feature .text p:last-child { margin-bottom: 0; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  border-top: 1px solid #17191c;
}
.gallery img {
  width: 100%; height: auto;
  border: 1px solid #23272c;
  transition: transform 0.15s ease;
}
.gallery img:hover { transform: scale(1.02); }

/* Made, follow, press */
.made, .follow, .press {
  border-top: 1px solid #17191c;
  max-width: 760px;
  margin: 0 auto;
}
.made { text-align: center; }
.follow ul { list-style: none; padding: 0; margin: 0; }
.follow li { padding: 0.5em 0; border-bottom: 1px dotted #23272c; }
.follow li a { font-family: "Mountain King", Georgia, serif; font-size: 1.2rem; letter-spacing: 0.03em; text-decoration: none; }
.follow li span { color: var(--parchment-dim); margin-left: 0.6em; }

footer {
  border-top: 1px solid #17191c;
  text-align: center;
  color: var(--parchment-dim);
  padding: 2rem 1rem 3rem;
  font-size: 0.9rem;
}
footer .small { font-size: 0.8rem; opacity: 0.7; }

/* Phone */
@media (max-width: 820px) {
  .hero { min-height: 62vh; }
  .feature { grid-template-columns: 1fr; gap: 1.25rem; }
  .feature.flip .text { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  section { padding: 2.25rem 0; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .button { width: 100%; text-align: center; }
}
