/* Dead Mind Division main landing page styles */
:root {
  --charcoal: #111412;
  --ash: #D8D6CF;
  --mineral: #607D73;
  --verdigris: #35564F;
  --copper: #D8592D;
  --blood: #7A1A14;
  --blood-dark: #4E0F0B;

  --font-display: "Big Shoulders Display", "Oswald", "Roboto Condensed", "Arial Narrow", "Roboto", Impact, sans-serif;
  --font-body: "Fira Sans", "Archivo", system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ash);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Nearly uniform charcoal with a very faint vignette and grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.018), transparent 60%),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,0.45) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(2.5rem, 12vh, 7.5rem) clamp(1.25rem, 6vw, 5rem) 3rem;
}

/* Wordmark with flanking mineral rules */
.wordmark {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  width: min(100%, 76rem);
  margin: 0 auto;
}
.wordmark::before,
.wordmark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--mineral);
  opacity: 0.85;
}
.wordmark__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.2vw, 3.6rem);
  letter-spacing: 0.24em;
  margin-right: -0.24em; /* balance trailing letter-spacing */
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  font-stretch: condensed;
  color: var(--ash);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 12vh;
}

.hero {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
}

/* Headline with restrained blood staining clipped into the letters */
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11.5vw, 10rem);
  line-height: 0.95;
  letter-spacing: 0.035em;
  margin-right: -0.035em;
  text-transform: uppercase;
  font-stretch: condensed;
  color: var(--ash);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .headline {
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-color: var(--ash);
    background-repeat: no-repeat;
    background-image:
      /* grit / paper texture */
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.18  0 0 0 0 0.15  0 0 0 -1.6 1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
      /* blood splatter layer (blotchy, spread across the word) */
      url("assets/blood-stain.svg");
    background-size: 300px 300px, 100% 100%;
    background-repeat: repeat, no-repeat;
  }
}

/* Divider: mineral rules with a copper dash */
.divider {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
  margin: clamp(1.75rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--mineral);
  opacity: 0.85;
}
.divider__mark {
  width: clamp(2.5rem, 4vw, 4.25rem);
  height: 3px;
  background: var(--copper);
}

.tagline {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.9vw, 1.65rem);
  letter-spacing: 0.16em;
  word-spacing: 0.18em;
  color: var(--ash);
  text-wrap: balance;
}

@media (max-width: 540px) {
  .wordmark { gap: 0.75rem; }
  .wordmark::before, .wordmark::after { min-width: 1.25rem; }
  .wordmark__text { font-size: clamp(1.15rem, 6.2vw, 1.6rem); letter-spacing: 0.16em; margin-right: -0.16em; }
  .headline { font-size: clamp(2.4rem, 13vw, 4.5rem); }
  .tagline { letter-spacing: 0.08em; word-spacing: 0.08em; line-height: 1.6; }
  main { padding-bottom: 6vh; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero { animation: surface 1.6s ease-out both; }
  @keyframes surface {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
  }
}
