/* Midnight Bastion site. The game's own fonts (Cinzel, Alegreya; SIL OFL 1.1), served from this site: no third-party request. */
@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel-wght.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/Alegreya-wght.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #0b0910; --panel: #16121e; --line: #2c2436; --text: #ece4d6; --muted: #a99f92;
  --gold: #e9c46a; --ember: #c8452c; --violet: #9b6bd6;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 19px/1.6 "Alegreya", Georgia, serif; }
a { color: var(--gold); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .brand { font-family: "Cinzel", Georgia, serif; letter-spacing: .04em; line-height: 1.2; }
h2 { font-size: 1.9rem; color: var(--gold); margin: 0 0 .8em; text-align: center; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; border-top: 1px solid var(--line); }

/* top bar */
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.top .brand { color: var(--gold); text-decoration: none; font-weight: 700; }
.top nav a { color: var(--text); text-decoration: none; margin-left: 18px; font-size: .95rem; }
.top nav a:hover { color: var(--gold); }

/* hero: the painted Four Roads map under a dark veil */
.hero { position: relative; min-height: 92vh; display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, rgba(11,9,16,.55) 0%, rgba(11,9,16,.35) 45%, var(--bg) 100%), url("../img/hero.webp") center / cover no-repeat; }
.logo { font-family: "Cinzel", Georgia, serif; font-weight: 800; font-size: clamp(2.4rem, 8vw, 5.4rem); color: var(--gold); margin: 0;
  text-shadow: 0 0 24px rgba(200,69,44,.55), 0 3px 0 #000; }
.logo img { width: min(720px, 92vw); margin: 0 auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.75)); }
.press-logo { max-width: min(100%, 600px); margin-top: 12px; }
.logo small { display: block; font-size: .28em; letter-spacing: .5em; color: var(--text); font-weight: 600; margin-bottom: .6em; }
.tagline { font-size: clamp(1.15rem, 3vw, 1.5rem); margin: .8em auto 1.6em; max-width: 34em; text-shadow: 0 2px 6px #000; }
.cta { display: inline-block; padding: 14px 26px; border: 2px solid var(--gold); border-radius: 6px; color: var(--gold);
  font-family: "Cinzel", Georgia, serif; font-weight: 700; text-decoration: none; background: rgba(11,9,16,.7); }
.cta[aria-disabled="true"] { cursor: default; }
.cta-note { display: block; margin-top: .6em; color: var(--muted); font-size: .9rem; }

/* about + features */
.lead { max-width: 44em; margin: 0 auto 2.4em; text-align: center; font-size: 1.15rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.feature h3 { color: var(--gold); }
.feature p { margin: 0; color: var(--muted); }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.shots a { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.shots a:hover { border-color: var(--gold); }
.note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1em; }

/* wardens */
.wardens { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.wardens img { width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }

/* trailer slot: a 16:9 frame until the video exists */
.trailer { aspect-ratio: 16 / 9; max-width: 860px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(11,9,16,.55), rgba(11,9,16,.25) 70%), url("../img/trailer.webp") center / cover; }
.trailer span { font-family: "Cinzel", Georgia, serif; color: var(--gold); font-size: 1.3rem; padding: .35em .9em; border-radius: 6px;
  background: rgba(11,9,16,.6); text-shadow: 0 1px 3px #000; }

/* text pages (privacy, press) */
.page { padding: 110px 0 60px; }
.page .wrap { max-width: 820px; }
.page h1 { color: var(--gold); font-size: 2rem; }
.page h2 { text-align: left; font-size: 1.35rem; margin-top: 1.8em; }
.page table { border-collapse: collapse; width: 100%; }
.page td, .page th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.ph { background: rgba(155,107,214,.22); border: 1px dashed var(--violet); border-radius: 4px; padding: 0 4px; }
.draft { background: rgba(200,69,44,.18); border: 1px solid var(--ember); border-radius: 6px; padding: 12px 16px; margin-bottom: 1.6em; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  section { padding: 52px 0; }
  .top nav a { margin-left: 12px; font-size: .85rem; }
  .top nav .hide-sm { display: none; }
}
