/* Shared styles for Atar ex Erebos */
:root {
  --bg: #050505;
  --white: #efefef;
  --text: #efefef;
  --light: #cfcfcf;
  --mid: #8b8b8b;
  --dim: #666666;
  --dark: #494949;
  --faint: #2f2f2f;

  --serif: "Cormorant Garamond", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", Courier, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  overflow-x: hidden;
}

/* Shared layout: poem / arcanum pages */
.arcanum-page {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13.5px;
  line-height: 1.65;
}

.arcanum-container {
  display: flex;
  flex-direction: column;
  justify-content: min-content;
  min-height: 100svh;
  padding: 6rem 10% 6rem 8%;
  background: radial-gradient(ellipse at center, #121212 0%, #070707 65%, #010101 100%);
}

.poem-layout {
  max-width: 600px;
  width: 100%;
  text-align: left;
}

.poem-text {
  white-space: pre-line;
  margin-bottom: 5rem;
  letter-spacing: 0.01em;
}

.question {
  display: block;
  margin-top: 2rem;
  font-style: italic;
  color: var(--dim);
}

.links-row {
  margin-top: 3rem;
  width: 100%;
}

.arcanum-page .secret-link {
  color: var(--dim);
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  transition: color 300ms ease;
}

.arcanum-page .secret-link:hover {
  color: var(--text);
}

/* Shared layout: centred gate pages */
.centered-page {
  --serif: Georgia, "Times New Roman", serif;
  --dim: #494949;

  padding: 0;
  color: var(--mid);
  font-family: var(--serif);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.centered-page .container {
  max-width: 600px;
  padding: 2rem;
}

.centered-page .back-row {
  margin-top: 6rem;
}

.centered-page .secret-link {
  font-family: var(--mono);
  font-size: 10px;
  color: #1a1a1a;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 400ms ease;
}

.centered-page .secret-link:hover {
  color: var(--dim);
}

@media (max-width: 768px) {
  .arcanum-container {
    padding: 4rem 1.5rem;
  }
}

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