:root {
/* === Core Colors === */
--bg-dark: #0e1114;             /* Nightstone black */
--surface-dark: #14181b;        /* Deep stone panel */
--footer-dark: #141618;         /* Subterranean depth */
--text-light: #e4e4e0;          /* Ancient scroll white */
--text-muted: #e3e3e6;          /* Cold ash gray */
--text-glow: #d9f2ff;           /* Rune glow — bluish white */
--text-footer: #bbc1c7;         /* Faded moonlight */

/* === Accents === */
--accent-glow: #cfe9ff;         /* Portal mist light */
--accent-ember: #b86f3a;        /* Warm ember (replaces fire) */
--accent-blue: #4a5a78;         /* Stone blue (primary accent) */
--accent-blue-hover: #6f89b6;   /* Highlighted inscription */
--accent-sigil: #9a6dc2;        /* Arcane sigils (optional secondary accent) */

/* === Borders / Lines === */
--border-muted: #2c2f33;        /* Worn iron outlines */
--shadow-strong: rgba(7, 8, 10, 0.6); /* Dusky shadow layer */

/* === UI States & Feedback === */
--accent-disabled: #3b3b3b;     /* Disabled UI elements */
--accent-focus: #a7c7e7;        /* Input focus rings, accessibility highlight */
--error-color: #b14343;         /* Error, warning, cursed glyphs */
--text-on-accent: #ffffff;      /* For legibility on colored buttons */

/* === Overlays & Effects === */
--overlay-dark: rgba(0, 0, 0, 0.6);   /* Modal or menu backdrops */
--glass-surface: rgba(20, 24, 27, 0.4); /* Blurred glass panel effect */

}


/* ===== Base Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== HTML & Body Defaults ===== */
html, body {
  height: 100%;
  font-family: 'Lora', serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Link Behavior ===== */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ===== Typography ===== */
h1, h2 {
  font-family: 'Cinzel', serif;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h3, h4 {
  font-family: 'Quattrocento', serif;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

p, blockquote {
  font-family: 'Lora', serif;
  margin-bottom: 0.5rem;
  max-width: 800px;
}

/* ===== List Formatting ===== */
ul, ol {
  margin-left: 1.75rem;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
  font-family: 'Lora', serif;
  line-height: 1.6;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  font-family: 'Lora', serif;
  margin-bottom: 0rem;
}

ul ul, ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: 1.5rem;
}

/* ===== Utilities ===== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.fade-in {
  position: relative;
  opacity: 1;
  overflow: hidden; /* keep pseudo-element contained */
}

.fade-in::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 0%);
  z-index: 100;
  animation: maskFadeOut 1s ease-out forwards;
  pointer-events: none;
}


@keyframes maskFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* subtle text link, lowered slightly */
.art-credit{
  position: absolute;
  right: calc(8px + env(safe-area-inset-right, 0px));
  bottom: calc(4px + env(safe-area-inset-bottom, 0px)); /* lowered */

  z-index: 10;
  font-family: 'Lora', serif;
  font-size: 11px;
  line-height: 1.35;

  color: var(--text-footer);
  opacity: 50%;
  text-decoration: none;

  /* remove pill */
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;

  touch-action: manipulation;
}

.art-credit:hover,
.art-credit:focus-visible{
  color: var(--text-footer-hover, #fff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* small tablets and up */
@media (min-width: 480px){
  .art-credit{
    right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)); /* still slightly lower than before */
    font-size: 12px;
  }
}

/* tablets/desktops */
@media (min-width: 768px){
  .art-credit{
    font-size: 14px;
  }
}

/* Bottom-sheet cookie banner (semi-transparent black) */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  color: var(--text-on-accent);
  display: none;                /* hidden by default */
  padding: 1rem 1.25rem;
  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
}
#cookie-banner[hidden] { display: none; }
#cookie-banner:not([hidden]) { display: block; }

/* Inline layout on desktop: text + buttons in one row */
.cookie-card {
  max-width: 1100px;
  margin: 0 auto;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  padding: 0;

  /* ✅ Lora font */
  font-family: "Lora", Georgia, serif;

  /* inline layout */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap; /* allows wrapping when tight */
}

.cookie-card p {
  margin: 0;
  line-height: 1.45;
  flex: 1 1 auto; /* take remaining space so buttons sit inline */
}

.cookie-card a {
  color: var(--text-on-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Actions (inline on desktop) */
.cookie-actions {
  display: flex;
  gap: .5rem;
  margin-top: 0;           /* inline with text */
  justify-content: flex-end;
  flex: 0 0 auto;
}

/* Buttons */
.cookie-actions .btn {
  padding: .55rem 1rem;
  border-radius: .6rem;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: var(--text-on-accent);
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Lora', serif;
}

/* Accept button — keep your current color setting */
.cookie-actions .btn.accept {
  background: var(--accent-blue);     /* if you want same as sheet: use rgba(0,0,0,0.6) */
  color: var(--text-on-accent);
  border-color: transparent;
}
.cookie-actions .btn.accept:hover {
  background: rgba(0,0,0,0.75);
}

/* Reject stays ghost/outlined */
.cookie-actions .btn.reject:hover {
  background: rgba(255,255,255,0.06);
}

/* Stack on smaller screens */
@media (max-width: 900px) {
  .cookie-card { 
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    margin-top: .75rem;
    justify-content: flex-end;
  }
  .cookie-actions .btn {
    flex: 0 0 auto;
  }
}

/* Mobile: full-width buttons if you prefer */
@media (max-width: 560px) {
  .cookie-actions { gap: .5rem; }
  .cookie-actions .btn { flex: 1 1 auto; text-align: center; }
}
