@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  --color-page-bg: #050505;
  --color-panel: #111111;
  --color-accent: #f5e27a;
  --color-text-primary: #fefefe;
  --color-text-muted: #b4b4b4;
  --color-border: #1f1f1f;
  --header-height: 85px;
  --footer-height: 40px;
}

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

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

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-panel);
  background-image: url("../images/backgrounds/background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: none;
}

/* Keep iOS notch/home-indicator safe areas aligned with header/footer color site-wide. */
body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 9999;
  background: var(--color-panel);
}

body::before {
  top: 0;
  height: env(safe-area-inset-top, 0px);
}

body::after {
  bottom: 0;
  height: env(safe-area-inset-bottom, 0px);
}

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

a {
  color: inherit;
  text-decoration: none;
}

[data-spoiler] {
  background: rgba(255, 255, 255, 0.18);
  color: transparent;
  border-radius: 4px;
  padding: 0 0.22em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

[data-spoiler]:hover,
[data-spoiler]:focus {
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.page-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 4vw 3rem;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-family: "Cinzel", serif;
  font-weight: 600;
  color: var(--color-text-primary);
}

.hero .lead {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

@media (max-width: 560px) {
  .hero {
    padding-bottom: 2rem;
  }
}
