/* Titan Defense Chronicles — site styles. No build step. */
@font-face {
  font-family: "Cinzel";
  src: url("/titan/assets/fonts/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("/titan/assets/fonts/cinzel-decorative-black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --gold: #f7cd54;
  --gold-deep: #c9962b;
  --parchment: #f0e4c8;
  --parchment-dim: #d9c9a6;
  --ink: #1a0f08;
  --bg: #170d07;
  --bg-2: #22140b;
  --wood: #3a2414;
  --wood-light: #5a3a20;
  --line: rgba(247, 205, 84, 0.28);
  --radius: 10px;
  --maxw: 1180px;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Cinzel", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--parchment);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(201, 150, 43, 0.12), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}

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

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe08a; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--gold);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink); padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 13, 7, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 60px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--gold);
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.04em;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.site-nav ul { display: flex; gap: 0.25rem 1.1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  color: var(--parchment); text-decoration: none; font-size: 0.95rem;
  padding: 0.35rem 0.1rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 520px) {
  .site-header .wrap { justify-content: center; padding-block: 0.5rem; gap: 0.3rem; }
  .site-nav ul { justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(460px, 78vh, 760px);
  display: grid; align-items: end;
  overflow: hidden;
  border-bottom: 2px solid var(--gold-deep);
}
.hero picture, .hero .hero-bg {
  position: absolute; inset: 0;
}
.hero .hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 13, 7, 0.05) 0%, rgba(23, 13, 7, 0.25) 45%, rgba(23, 13, 7, 0.92) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding-block: 2.5rem 3rem;
  text-align: center;
}
.hero h1 {
  font-family: "Cinzel Decorative", var(--display);
  font-weight: 900;
  font-size: clamp(2.1rem, 7.5vw, 4.6rem);
  margin-bottom: 0.15em;
  text-shadow: 0 3px 0 #5a3205, 0 6px 22px rgba(0, 0, 0, 0.85);
}
.tagline {
  font-family: var(--display);
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  color: var(--parchment);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  margin-bottom: 0.4em;
}
.hero .lede {
  max-width: 40rem; margin: 0 auto 1.5rem;
  color: var(--parchment);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

/* ---------- buttons / badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 52px; padding: 0.55rem 1.1rem;
  border-radius: 10px;
  text-decoration: none; line-height: 1.15;
  font-family: var(--body);
  border: 2px solid var(--gold-deep);
  background: linear-gradient(180deg, #4a2e18, #2a180c);
  color: var(--parchment);
  box-shadow: inset 0 1px 0 rgba(255, 230, 160, 0.18), 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.btn:hover { color: #fff; border-color: var(--gold); transform: translateY(-1px); }
.btn small { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--parchment-dim); }
.btn strong { display: block; font-size: 1.05rem; }
.btn svg { width: 26px; height: 26px; flex: none; fill: var(--gold); }
.btn-primary {
  background: linear-gradient(180deg, #ffe08a, var(--gold) 45%, #d9a73a);
  color: var(--ink); border-color: #fff0b8;
  font-family: var(--display); font-weight: 700;
}
.btn-primary:hover { color: var(--ink); }
.soon-note { font-size: 0.85rem; color: var(--parchment-dim); margin-top: 0.75rem; }

/* ---------- sections ---------- */
section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.section-head p { color: var(--parchment-dim); }
.divider {
  height: 22px; margin: 0 auto;
  width: min(420px, 70%);
  background:
    linear-gradient(90deg, transparent, var(--gold-deep) 20%, var(--gold-deep) 80%, transparent) center / 100% 1px no-repeat;
  position: relative;
}
.divider::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.panel {
  background: linear-gradient(180deg, rgba(58, 36, 20, 0.85), rgba(34, 20, 11, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 230, 160, 0.06);
}

/* trailer */
.video-frame {
  padding: 8px;
  border: 2px solid var(--gold-deep);
  border-radius: 14px;
  background: #0d0704;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  max-width: 1000px; margin-inline: auto;
}
.video-frame video { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; }

/* features */
.feature {
  display: grid; gap: 1.5rem; align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.feature:last-child { margin-bottom: 0; }
.feature figure { margin: 0; }
.feature img {
  width: 100%; border-radius: var(--radius);
  border: 2px solid var(--gold-deep);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}
.feature h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.feature ul { padding-left: 1.2rem; margin: 0; }
.feature li { margin-bottom: 0.35rem; }
.feature li strong { color: var(--gold); font-weight: 600; }
.eyebrow {
  display: inline-block; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.4rem;
}
@media (min-width: 860px) {
  .feature { grid-template-columns: 1.25fr 1fr; gap: 3rem; }
  .feature.flip { grid-template-columns: 1fr 1.25fr; }
  .feature.flip figure { order: 2; }
}

/* pillars */
.pillars { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pillar { padding: 1.25rem 1.25rem 1rem; text-align: center; }
.pillar .num { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.pillar p { margin: 0.4rem 0 0; color: var(--parchment-dim); font-size: 0.95rem; }

/* gallery */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery a {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--gold-deep);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.gallery a:hover { border-color: var(--gold); transform: translateY(-2px); }
.gallery img { width: 100%; aspect-ratio: 2868 / 1320; object-fit: cover; }

/* lineage / quote */
.lineage { text-align: center; }
.lineage p { font-size: 1.1rem; }

/* CTA band */
.cta-band {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(23, 13, 7, 0.75), rgba(23, 13, 7, 0.9)),
    url("/titan/assets/img/keyart-960.webp") center / cover no-repeat;
  border-block: 2px solid var(--gold-deep);
}

/* ---------- document pages ---------- */
.page-head { padding-block: clamp(2.5rem, 7vw, 4rem) 1rem; text-align: center; }
.page-head p { color: var(--parchment-dim); }
.doc { padding-top: 1rem; }
.doc .panel { padding: clamp(1.25rem, 4vw, 2.5rem); }
.doc h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-top: 1.8em; }
.doc h2:first-child { margin-top: 0; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
.meta { color: var(--parchment-dim); font-size: 0.95rem; }

details.faq {
  border-bottom: 1px solid var(--line);
  padding-block: 0.25rem;
}
details.faq:last-of-type { border-bottom: 0; }
details.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; color: var(--gold);
  font-size: 1.1rem; padding: 0.85rem 2rem 0.85rem 0; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold-deep);
}
details.faq[open] summary::after { content: "\2212"; }
details.faq > div { padding-bottom: 1rem; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 1rem; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-family: var(--display); font-weight: 700; background: rgba(0, 0, 0, 0.2); }
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em;
  background: #120a05; border: 1px solid var(--wood-light); border-bottom-width: 2px;
  border-radius: 4px; padding: 0.05em 0.4em; color: var(--parchment);
}

/* press */
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 1fr; gap: 0.1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--display); color: var(--gold); font-weight: 700; font-size: 0.95rem; }
.facts dd { margin: 0; }
@media (min-width: 640px) { .facts div { grid-template-columns: 11rem 1fr; gap: 1rem; } }
.press-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .press-grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.dl-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dl-card { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.6rem; }
.dl-card img { border-radius: 6px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dl-card .icon-thumb { aspect-ratio: 1; object-fit: contain; background: #0d0704; }
.dl-card span { font-size: 0.85rem; color: var(--parchment-dim); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  color: var(--parchment-dim);
  font-size: 0.92rem;
  background: rgba(0, 0, 0, 0.25);
}
.site-footer .wrap { display: grid; gap: 1rem; text-align: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem; margin: 0; padding: 0; }
.site-footer a { color: var(--parchment); }
.site-footer a:hover { color: var(--gold); }
.site-footer p { margin: 0; }
