/* MediaCity Games - studio site. No external requests: system fonts, local images only. */
:root {
  --bg: #0f0c0b;
  --bg-raised: #191412;
  --bg-soft: #221b18;
  --line: #3a2e28;
  --text: #ece4da;
  --text-dim: #b3a596;
  --accent: #b3262c;
  --accent-soft: #d9a05b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent-soft); text-underline-offset: 0.18em; }
a:hover { color: #f0c58c; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: min(100% - 2rem, 1120px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 12, 11, 0.92);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-block: 0.85rem;
}
.brand {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--text); text-decoration: none; letter-spacing: 0.01em;
}
.brand span { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.site-nav a {
  color: var(--text-dim); text-decoration: none; font-size: 0.95rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; }
.hero img { width: 100%; height: min(72vh, 640px); object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, var(--bg) 4%, rgba(15,12,11,0.55) 45%, rgba(15,12,11,0.15) 100%);
}
.hero-copy { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(1.5rem, 5vw, 3.5rem); }
.hero-copy p { font-size: 1.15rem; color: var(--text); max-width: 56ch; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 0.8rem;
}

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1rem; }
.page-head p { color: var(--text-dim); font-size: 1.1rem; }

/* ---------- sections ---------- */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
section + section { border-top: 1px solid var(--line); }
.lead { font-size: 1.15rem; color: var(--text); }
.dim { color: var(--text-dim); }

.cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols h3 { color: var(--accent-soft); }
.cols p { color: var(--text-dim); margin: 0; }

.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1.75rem; }
.gallery figure { margin: 0; background: var(--bg-raised); border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: 0.6rem 0.8rem; font-size: 0.88rem; color: var(--text-dim); }

.more { margin-top: 1.75rem; }
.more a { font-weight: 600; }

/* ---------- pack entries (environments page) ---------- */
.pack { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.pack img { border: 1px solid var(--line); }
.pack ul { margin: 0 0 1em; padding-left: 1.15rem; color: var(--text-dim); }
.pack li { margin-bottom: 0.3em; }
.status {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--accent-soft); padding: 0.2rem 0.6rem; margin-bottom: 0.9rem;
}
.availability {
  background: var(--bg-raised); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  padding: 1rem 1.15rem; margin-top: 1.25rem;
}
.availability p { margin: 0; color: var(--text-dim); font-size: 0.97rem; }
.availability strong { color: var(--text); }

.roadmap { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding: 0; margin: 1.5rem 0 0; list-style: none; }
.roadmap li { background: var(--bg-raised); border: 1px solid var(--line); padding: 0.7rem 0.9rem; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- support page ---------- */
.contact-card { background: var(--bg-raised); border: 1px solid var(--line); padding: 1.4rem 1.5rem; max-width: 40rem; }
.contact-card a { font-size: 1.2rem; font-weight: 600; }
dl.faq { margin: 0; max-width: var(--measure); }
dl.faq dt { font-family: var(--serif); font-size: 1.12rem; color: var(--text); margin-top: 1.4rem; }
dl.faq dd { margin: 0.35rem 0 0; color: var(--text-dim); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); padding-block: 2rem; color: var(--text-dim); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
