:root {
  --black: #090807;
  --coal: #12100f;
  --panel: #191512;
  --orange: #e66919;
  --orange-light: #ff913c;
  --cream: #f1e9dc;
  --muted: #b9aea1;
  --rule: rgba(241, 233, 220, 0.16);
  --shell: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--cream);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a { color: inherit; }

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  border-top: 4px solid var(--orange);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #181615, #0d0c0b);
}

.header-inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo { width: min(374px, 64vw); height: auto; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d7cdc0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #992e20;
  box-shadow: 0 0 0 5px rgba(153, 46, 32, 0.15);
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background-color: #050403;
  background-image:
    linear-gradient(90deg, rgba(5, 4, 3, 0.05), rgba(5, 4, 3, 0.74) 54%, rgba(5, 4, 3, 0.2)),
    linear-gradient(0deg, var(--black), transparent 42%),
    url("maiden-wars-background.jpg");
  background-position: center, center, center top;
  background-repeat: no-repeat;
  background-size: cover, cover, auto 500px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 34%, transparent 0 18%, rgba(0, 0, 0, 0.52) 72%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  padding-block: 110px 140px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-light);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 34px;
  color: #d2c8ba;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.button {
  display: inline-block;
  padding: 13px 20px;
  border: 1px solid #ff9b54;
  background: linear-gradient(180deg, var(--orange-light), #c74e0b);
  color: #160b05;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover { filter: brightness(1.12); }

.text-link {
  color: #ded4c7;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.obituary {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(40px, 8vw, 100px);
  padding-block: 110px;
  border-bottom: 1px solid var(--rule);
}

.obituary h2, .section-heading h2, .finale h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.obituary-copy { color: var(--muted); font-size: 1.06rem; }

.obituary-copy p:last-child { margin-bottom: 0; }

.features { border-bottom: 1px solid var(--rule); background: #0d0b0a; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article {
  min-height: 275px;
  padding: 52px 40px;
  border-left: 1px solid var(--rule);
}

.feature-grid article:last-child { border-right: 1px solid var(--rule); }

.feature-grid span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.feature-grid h3 { margin: 34px 0 14px; font-size: 1.7rem; font-weight: 500; }

.feature-grid p { margin-bottom: 0; color: var(--muted); font-size: 0.94rem; }

.gallery { padding-block: 110px 130px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.section-heading > p { max-width: 330px; margin-bottom: 4px; color: var(--muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--panel);
}

.gallery-grid .gallery-lead { grid-column: 1 / -1; }

.gallery-grid img {
  width: 100%;
  aspect-ratio: 610 / 320;
  object-fit: cover;
  background: #000;
  filter: saturate(0.88) contrast(1.04);
}

.gallery-grid figure:hover img { filter: saturate(1.06) contrast(1.04); }

.gallery-grid figcaption {
  display: grid;
  grid-template-columns: minmax(110px, 0.34fr) 1fr;
  gap: 25px;
  padding: 22px 24px 24px;
}

.gallery-grid b {
  color: var(--orange-light);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-grid figcaption span { color: var(--muted); font-size: 0.9rem; }

.finale {
  min-height: 430px;
  display: grid;
  place-items: center;
  border-block: 1px solid var(--rule);
  background:
    linear-gradient(90deg, rgba(11, 9, 8, 0.97), rgba(11, 9, 8, 0.7), rgba(11, 9, 8, 0.97)),
    url("game-play-5.png") center 62% / cover no-repeat;
  text-align: center;
}

.finale-inner { padding-block: 90px; }

.finale p:last-child { max-width: 600px; margin: 22px auto 0; color: var(--muted); }

.site-footer { background: #050404; }

.footer-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #7f766c;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-inner p { margin: 0; }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 100px; }
  .status { display: none; }
  .hero { min-height: 580px; background-size: cover, cover, auto 390px; }
  .hero-inner { padding-block: 90px 110px; }
  h1 { font-size: clamp(3.7rem, 18vw, 6rem); }
  .obituary { grid-template-columns: 1fr; padding-block: 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; padding: 38px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .feature-grid article:last-child { border-bottom: 0; }
  .feature-grid h3 { margin-top: 18px; }
  .gallery { padding-block: 80px 90px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 22px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .gallery-lead { grid-column: auto; }
  .gallery-grid figcaption { grid-template-columns: 1fr; gap: 8px; }
  .footer-inner { display: block; padding-block: 34px; }
  .footer-inner p + p { margin-top: 8px; }
}

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

.error-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(5, 4, 3, 0.65), rgba(5, 4, 3, 0.94)),
    url("maiden-wars-background.jpg") center top / auto 500px no-repeat,
    #050403;
}

.error-main { min-height: 100vh; display: grid; place-items: center; }

.error-inner { padding-block: 80px; text-align: center; }

.error-inner .logo { margin: 0 auto 70px; }

.error-inner h1 { max-width: 840px; margin-inline: auto; }

.error-inner > p:not(.eyebrow) { margin-bottom: 32px; color: var(--muted); font-size: 1.08rem; }
