:root {
  --gold: #d4af37;
  --gold-light: #f0d98c;
  --gold-dark: #8a6d1f;
  --gold-deep: #b8860b;   /* dark yellow */
  --ink: #4a0505;         /* very dark red */
  --bg: #0b0b10;
}

* {
  box-sizing: border-box;
}

/* Self-hosted epic title font (Cinzel variable woff2). */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/cinzel.woff2") format("woff2");
}

html {
  min-height: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: #f4efe0;
  text-align: center;
}

/* Full-viewport hero sections. Each hero gets its own background image, set
   by the inline script according to the visitor's display width. */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 90vw;
}

/* Darkening shade over the Prime Directive (brick wall) hero so the yellow
   text reads clearly (~20% darker, shaded toward the edges). */
#hero-prime-directive {
  position: relative;
}

#hero-prime-directive::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}

.title {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.85), 0 4px 30px rgba(0, 0, 0, 0.9);
  margin: 0;
}

/* Dark-yellow variant for the second hero's title. */
.title--gold {
  color: var(--gold-deep);
  font-size: clamp(2rem, 6vw, 4.75rem);
  text-shadow: 0 0 4px rgba(57, 255, 20, 0.8), 0 0 10px rgba(57, 255, 20, 0.6), 0 0 20px rgba(57, 255, 20, 0.4);
}

/* Thick, ornamental divider used inside each hero. */
.divider {
  position: relative;
  height: 4px;
  margin: 1.6rem auto;
  width: min(22rem, 60vw);
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-dark) 12%,
    var(--gold-light) 50%,
    var(--gold-dark) 88%,
    transparent
  );
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold-light);
  background: var(--gold-dark);
  transform: translateY(-50%) rotate(45deg);
}

.divider::before {
  left: -2px;
}

.divider::after {
  right: -2px;
}

.subtitle {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.85), 0 3px 16px rgba(0, 0, 0, 0.9);
  margin: 0;
}

.subtitle--gold {
  color: var(--gold-deep);
}

/* Long-sentence subtitle variant — sentence case and comfortable measure. */
.subtitle--long {
  text-transform: none;
  letter-spacing: 0.06em;
  line-height: 1.6;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* Box treatment for the Prime Directive subtitle: no border, very light
   green background at 50% transparency, no text shadow. */
.subtitle--box {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: rgba(230, 255, 230, 0.3);
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.85), 0 3px 16px rgba(0, 0, 0, 0.9);
}

/* Thick, fancy ornamental separator between the two heroes. */
.hero-separator {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 8vw;
  background-color: var(--bg);
}

.hero-separator::before,
.hero-separator::after {
  content: "";
  flex: 1;
  height: 5px;
}

.hero-separator::before {
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-dark) 20%,
    var(--gold-light) 50%,
    var(--gold-dark) 80%
  );
}

.hero-separator::after {
  background: linear-gradient(
    90deg,
    var(--gold-dark) 20%,
    var(--gold-light) 50%,
    var(--gold-dark) 80%,
    transparent
  );
}

.hero-separator__diamond {
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold-light);
  background: var(--gold-dark);
  transform: rotate(45deg);
  flex: none;
}
