/* ============================================
   THE QUEST — Handcrafted Dark Fantasy Theme
   A unique manuscript-inspired design
   ============================================ */

/* --- CSS Variables --- */
:root {
  --wine-deep: #2a0a0a;
  --wine-mid: #4a1a2a;
  --forest-dark: #0a1a0a;
  --forest-mid: #1a2a1a;
  --aged-gold: #b8923a;
  --copper: #a86832;
  --pale-gold: #d4b96a;
  --bright-gold: #e8c84a;
  --parchment: #d4c4a0;
  --parchment-warm: #c8b080;
  --ochre: #8a6a30;
  --verdigris: #5a8a6a;
  --verdigris-dark: #3a6a4a;
  --ivory: #ede4d0;
  --anthracite: #1a1612;
  --shadow-deep: rgba(0, 0, 0, 0.7);
  --font-heading: 'Uncial Antiqua', cursive;
  --font-body: 'Merriweather', serif;
  --container-max: 1200px;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Candle Flicker Keyframes --- */
@keyframes candleFlicker {
  0%, 100% { opacity: 1; text-shadow: 0 0 8px rgba(184, 146, 58, 0.6), 0 0 20px rgba(184, 146, 58, 0.3); }
  25% { opacity: 0.92; text-shadow: 0 0 12px rgba(184, 146, 58, 0.8), 0 0 25px rgba(184, 146, 58, 0.4); }
  50% { opacity: 0.97; text-shadow: 0 0 6px rgba(184, 146, 58, 0.5), 0 0 15px rgba(184, 146, 58, 0.2); }
  75% { opacity: 0.94; text-shadow: 0 0 10px rgba(184, 146, 58, 0.7), 0 0 22px rgba(184, 146, 58, 0.35); }
}

@keyframes fadeInRotate {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(-1.5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes inkBleed {
  from { filter: blur(0.5px); opacity: 0.7; }
  to { filter: blur(0); opacity: 1; }
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ivory);
  background-color: var(--wine-deep);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(42, 10, 10, 0.03) 2px,
      rgba(42, 10, 10, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(10, 26, 10, 0.02) 2px,
      rgba(10, 26, 10, 0.02) 4px
    );
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--aged-gold);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--bright-gold);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--aged-gold);
  line-height: 1.3;
}

/* --- Container --- */
.chronicle-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   GDPR Top Bar
   ============================================ */
.gdpr-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background:
    linear-gradient(135deg, var(--wine-deep) 0%, var(--wine-mid) 40%, var(--forest-dark) 100%);
  border-bottom: 2px solid var(--copper);
  padding: 1rem 1.5rem;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(184, 146, 58, 0.1) inset;
}

.gdpr-bar.hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.gdpr-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.gdpr-bar__text {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(237, 228, 208, 0.85);
  min-width: 250px;
}

.gdpr-bar__text a {
  color: var(--bright-gold);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 3px;
}

.gdpr-bar__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.gdpr-bar__accept {
  background: linear-gradient(145deg, var(--copper), var(--aged-gold), var(--pale-gold));
  color: var(--anthracite);
  border: 1px solid var(--ochre);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
  letter-spacing: 0.03em;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.gdpr-bar__accept:hover {
  box-shadow:
    0 0 15px rgba(184, 146, 58, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.gdpr-bar__link {
  font-size: 0.8rem;
  color: var(--pale-gold);
  white-space: nowrap;
}

/* ============================================
   Navigation — Manuscript Style
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background:
    linear-gradient(
      180deg,
      rgba(42, 10, 10, 0.97) 0%,
      rgba(26, 22, 18, 0.95) 100%
    );
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 146, 58, 0.2);
  transition: top 0.3s ease, box-shadow 0.3s ease;
}

/* Ornamental top border */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      var(--copper) 15%,
      var(--aged-gold) 35%,
      var(--pale-gold) 50%,
      var(--aged-gold) 65%,
      var(--copper) 85%,
      transparent 100%
    );
  opacity: 0.6;
}

/* Parchment shadow when scrolled */
.site-header::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  pointer-events: none;
}

.site-header.gdpr-offset {
  top: 0;
}

.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--aged-gold);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-shadow:
    0 0 10px rgba(184, 146, 58, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.5);
  animation: candleFlicker 4s ease-in-out infinite;
  position: relative;
}

.site-header__logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0.5;
}

.site-header__logo:hover {
  color: var(--bright-gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--copper);
  color: var(--aged-gold);
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  line-height: 1;
  transition: all var(--transition-smooth);
}

.nav-toggle:hover {
  border-color: var(--aged-gold);
  box-shadow: 0 0 8px rgba(184, 146, 58, 0.3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__link {
  color: rgba(237, 228, 208, 0.8);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-smooth);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aged-gold), transparent);
  transition: width var(--transition-smooth), left var(--transition-smooth);
}

.site-nav__link:hover {
  color: var(--pale-gold);
}

.site-nav__link:hover::after {
  width: 120%;
  left: -10%;
}

/* Decorative dots between nav items */
.site-nav__link:not(:last-child)::before {
  content: '';
  position: absolute;
  right: -1.1rem;
  top: 50%;
  width: 3px;
  height: 3px;
  background: var(--copper);
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}

/* ============================================
   HERO Section — Dramatic Ink-Stamp Style
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(74, 26, 42, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(10, 26, 10, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(184, 146, 58, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, var(--wine-deep) 0%, var(--forest-dark) 50%, var(--wine-deep) 100%),
    url('images/screen1.webp');
  background-size: cover, cover, cover, cover, cover;
  background-position: center, center, center, center, center;
  background-attachment: scroll, scroll, scroll, scroll, fixed;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(168, 104, 50, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 20%, rgba(90, 138, 106, 0.06) 0%, transparent 35%),
    radial-gradient(ellipse at center, rgba(184, 146, 58, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Decorative frame with hand-drawn feel */
.hero__frame {
  position: absolute;
  inset: 2rem;
  pointer-events: none;
  border: 1px solid rgba(184, 146, 58, 0.15);
  box-shadow:
    inset 2px 2px 0 rgba(184, 146, 58, 0.1),
    inset -2px -2px 0 rgba(184, 146, 58, 0.1),
    inset 0 0 60px rgba(42, 10, 10, 0.3);
}

.hero__frame::before,
.hero__frame::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--copper);
  border-style: solid;
}

.hero__frame::before {
  top: -1px;
  left: -1px;
  border-width: 3px 0 0 3px;
  box-shadow: -3px -3px 0 rgba(184, 146, 58, 0.1);
}

.hero__frame::after {
  top: -1px;
  right: -1px;
  border-width: 3px 3px 0 0;
  box-shadow: 3px -3px 0 rgba(184, 146, 58, 0.1);
}

.hero__frame-bottom {
  position: absolute;
  inset: 2rem;
  pointer-events: none;
}

.hero__frame-bottom::before,
.hero__frame-bottom::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--copper);
  border-style: solid;
}

.hero__frame-bottom::before {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 3px 3px;
  box-shadow: -3px 3px 0 rgba(184, 146, 58, 0.1);
}

.hero__frame-bottom::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 3px 3px 0;
  box-shadow: 3px 3px 0 rgba(184, 146, 58, 0.1);
}

/* Vignette overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(42, 10, 10, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

/* Ink-stamp / embossed title */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6.5rem);
  color: var(--aged-gold);
  letter-spacing: 0.2em;
  text-shadow:
    0 0 30px rgba(184, 146, 58, 0.5),
    0 0 60px rgba(184, 146, 58, 0.2),
    0 4px 0 rgba(74, 26, 42, 0.8),
    0 5px 0 rgba(42, 10, 10, 0.6),
    0 6px 10px rgba(0, 0, 0, 0.5),
    2px 2px 0 rgba(168, 104, 50, 0.3),
    -1px -1px 0 rgba(212, 185, 106, 0.2);
  margin-bottom: 1rem;
  animation: candleFlicker 5s ease-in-out infinite;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--parchment);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__description {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(237, 228, 208, 0.75);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero__note {
  font-size: 0.8rem;
  color: rgba(237, 228, 208, 0.4);
  margin-top: 1.5rem;
  font-style: italic;
}

/* ============================================
   CTA Button — Wax Seal / Gold Plate
   ============================================ */
.cta-gold {
  display: inline-block;
  background:
    linear-gradient(
      145deg,
      var(--copper) 0%,
      var(--aged-gold) 30%,
      var(--pale-gold) 50%,
      var(--aged-gold) 70%,
      var(--copper) 100%
    );
  color: var(--anthracite);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border: 2px solid var(--ochre);
  text-decoration: none;
  letter-spacing: 0.05em;
  position: relative;
  transition: all var(--transition-smooth);
  box-shadow:
    0 4px 15px rgba(184, 146, 58, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.cta-gold::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.cta-gold:hover {
  color: var(--anthracite);
  box-shadow:
    0 0 25px rgba(184, 146, 58, 0.4),
    0 0 50px rgba(184, 146, 58, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.cta-gold:active {
  transform: translateY(0);
}

/* ============================================
   SVG Ornament Divider
   ============================================ */
.ornament-divider {
  text-align: center;
  margin: 1.5rem auto;
  line-height: 0;
}

.ornament-divider svg {
  width: 200px;
  height: auto;
  opacity: 0.7;
}

/* ============================================
   Section Styles — Varied & Textured
   ============================================ */
.section {
  padding: 4.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

/* Linen/paper texture for every section */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 1px,
      rgba(237, 228, 208, 0.008) 1px,
      rgba(237, 228, 208, 0.008) 2px
    );
  pointer-events: none;
}

/* Torn paper edge top */
.section::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 20px;
  background:
    linear-gradient(135deg, var(--wine-deep) 33.33%, transparent 33.33%) 0 0 / 30px 100%,
    linear-gradient(225deg, var(--wine-deep) 33.33%, transparent 33.33%) 0 0 / 30px 100%;
  background-repeat: repeat-x;
  pointer-events: none;
  opacity: 0.4;
}

.section--alt {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(74, 26, 42, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(10, 26, 10, 0.12) 0%, transparent 40%),
    linear-gradient(170deg, rgba(42, 10, 10, 0.4) 0%, rgba(10, 26, 10, 0.3) 100%);
}

/* Ink stain effect on alternating sections */
.section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 200px 200px at 90% 80%, rgba(74, 26, 42, 0.12) 0%, transparent 70%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 1px,
      rgba(212, 196, 160, 0.006) 1px,
      rgba(212, 196, 160, 0.006) 2px
    );
  pointer-events: none;
}

/* Asymmetric section title */
.section__title {
  text-align: left;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
  position: relative;
  padding-left: 2rem;
  color: var(--aged-gold);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(184, 146, 58, 0.15);
}

/* Asymmetric decorative line — left-aligned */
.section__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--aged-gold));
  transform: translateY(-50%);
}

.section__title::after {
  content: '';
  display: block;
  width: 60%;
  max-width: 300px;
  height: 1px;
  background: linear-gradient(90deg, var(--copper) 0%, var(--aged-gold) 40%, transparent 100%);
  margin-top: 0.5rem;
  opacity: 0.5;
}

.section__subtitle {
  text-align: left;
  color: rgba(237, 228, 208, 0.65);
  font-size: 1rem;
  margin-bottom: 3rem;
  font-style: italic;
  padding-left: 2rem;
  opacity: 0.85;
}

/* ============================================
   Fade-in Animation — with slight rotation
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(35px) rotate(-0.8deg);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* ============================================
   World Section — Two Columns with Bleed
   ============================================ */
.world-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.world-grid__text p {
  margin-bottom: 1.5rem;
  color: rgba(237, 228, 208, 0.82);
  font-size: 1rem;
  line-height: 1.9;
}

/* Vary paragraph opacity for aged manuscript feel */
.world-grid__text p:first-child {
  opacity: 0.95;
}

.world-grid__text p:nth-child(2) {
  opacity: 0.88;
  font-size: 0.97rem;
}

.world-grid__image {
  position: relative;
  overflow: visible;
}

/* Hand-drawn border effect via stacked box-shadows */
.world-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow:
    3px 3px 0 var(--copper),
    6px 6px 0 rgba(74, 26, 42, 0.4),
    0 0 30px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(184, 146, 58, 0.35);
}

/* Ink stain on image corner */
.world-grid__image::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 60px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(168, 104, 50, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.world-grid__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 10, 10, 0.2), transparent, rgba(10, 26, 10, 0.2));
  pointer-events: none;
}

/* ============================================
   Features Section — Alternating with Overlaps
   ============================================ */
.feature-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 2rem;
  border: 1px solid transparent;
  transition: border-color var(--transition-smooth), background var(--transition-smooth), transform 0.3s ease;
  margin-bottom: 1rem;
  position: relative;
}

/* Wax-seal decorative circle on icon area */
.feature-block::before {
  content: '';
  position: absolute;
  top: 1.8rem;
  left: 1.2rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(168, 104, 50, 0.15) 0%,
    rgba(168, 104, 50, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* Alternating backgrounds with different textures */
.feature-block:nth-child(odd) {
  background:
    linear-gradient(135deg, rgba(74, 26, 42, 0.12) 0%, rgba(42, 10, 10, 0.2) 100%);
  border-left: 3px solid rgba(168, 104, 50, 0.3);
}

.feature-block:nth-child(even) {
  background:
    linear-gradient(225deg, rgba(10, 26, 10, 0.15) 0%, rgba(42, 10, 10, 0.15) 100%);
  border-right: 3px solid rgba(90, 138, 106, 0.25);
}

/* Slight alternating offset for non-grid feel */
.feature-block:nth-child(odd) {
  margin-left: 0;
  margin-right: 2rem;
}

.feature-block:nth-child(even) {
  margin-left: 2rem;
  margin-right: 0;
}

.feature-block:hover {
  border-color: rgba(184, 146, 58, 0.4);
  transform: translateX(4px);
}

.feature-block__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.feature-block__icon svg {
  width: 48px;
  height: 48px;
  fill: var(--aged-gold);
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(184, 146, 58, 0.3));
}

.feature-block__title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  color: var(--pale-gold);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.feature-block__text {
  color: rgba(237, 228, 208, 0.78);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================
   Bestiary / Races & Classes — Parchment Cards
   ============================================ */
.bestiary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.bestiary-card {
  background:
    linear-gradient(
      160deg,
      rgba(212, 196, 160, 0.1) 0%,
      rgba(200, 176, 128, 0.05) 40%,
      rgba(42, 10, 10, 0.08) 100%
    );
  border: 1px solid rgba(168, 104, 50, 0.35);
  padding: 2rem;
  position: relative;
  transition: all var(--transition-smooth);
  overflow: hidden;
}

/* Burned edges effect */
.bestiary-card::before {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 30px rgba(42, 10, 10, 0.4),
    inset 0 0 60px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* Inner double-frame, slightly askew */
.bestiary-card::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 5px;
  right: 7px;
  bottom: 5px;
  border: 1px solid rgba(184, 146, 58, 0.12);
  pointer-events: none;
  transform: rotate(0.3deg);
}

/* Stagger card positions for organic feel */
.bestiary-card:nth-child(2) {
  transform: translateY(8px);
}

.bestiary-card:nth-child(3) {
  transform: translateY(-4px);
}

.bestiary-card:hover {
  border-color: var(--aged-gold);
  background:
    linear-gradient(
      160deg,
      rgba(212, 196, 160, 0.14) 0%,
      rgba(200, 176, 128, 0.08) 40%,
      rgba(42, 10, 10, 0.1) 100%
    );
  box-shadow:
    0 0 20px rgba(184, 146, 58, 0.12),
    0 8px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.bestiary-card__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 0.5rem;
  display: block;
  text-shadow: 0 0 6px rgba(168, 104, 50, 0.3);
}

.bestiary-card__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--pale-gold);
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.bestiary-card__desc {
  font-size: 0.9rem;
  color: rgba(237, 228, 208, 0.72);
  line-height: 1.7;
}

/* ============================================
   Screenshot Scroll Gallery
   ============================================ */
.screenshot-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 0 2.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--copper) rgba(42, 10, 10, 0.3);
}

.screenshot-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshot-scroll::-webkit-scrollbar-track {
  background: rgba(42, 10, 10, 0.3);
  border-radius: 3px;
}

.screenshot-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--copper), var(--aged-gold));
  border-radius: 3px;
}

.screenshot-scroll__track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem;
  min-width: max-content;
}

.screenshot-scroll__item {
  flex: 0 0 auto;
  width: 220px;
  border: 2px solid var(--copper);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    4px 4px 0 rgba(74, 26, 42, 0.4),
    0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(42, 10, 10, 0.3);
  position: relative;
}

/* Slight rotation for organic feel */
.screenshot-scroll__item:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.screenshot-scroll__item:nth-child(even) {
  transform: rotate(0.5deg);
}

.screenshot-scroll__item:hover {
  transform: scale(1.05) rotate(0deg);
  box-shadow:
    0 8px 30px rgba(184, 146, 58, 0.2),
    0 0 15px rgba(168, 104, 50, 0.15);
}

.screenshot-scroll__item img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
  position: relative;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--aged-gold);
  text-align: left;
  padding-left: 2rem;
  margin-bottom: 2rem;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: var(--copper);
  transform: translateY(-50%);
}

.gold-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--aged-gold), transparent);
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid rgba(168, 104, 50, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: 3px 3px 0 rgba(42, 10, 10, 0.3);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px rgba(42, 10, 10, 0.3);
  pointer-events: none;
}

.gallery-item:hover {
  transform: scale(1.03) rotate(0.3deg);
  box-shadow:
    0 0 25px rgba(184, 146, 58, 0.2),
    5px 5px 0 rgba(74, 26, 42, 0.3);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Testimonials — Old Letters, Staggered
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial {
  background:
    linear-gradient(
      155deg,
      rgba(212, 196, 160, 0.06) 0%,
      rgba(42, 10, 10, 0.2) 50%,
      rgba(10, 26, 10, 0.15) 100%
    );
  border: 1px solid rgba(168, 104, 50, 0.25);
  padding: 2.5rem 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Rough border simulation via multiple box-shadows */
.testimonial {
  box-shadow:
    2px 2px 0 rgba(168, 104, 50, 0.15),
    -1px -1px 0 rgba(168, 104, 50, 0.08),
    inset 0 0 40px rgba(42, 10, 10, 0.2);
}

/* Quill/ink marks as corner ornaments */
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--copper);
  opacity: 0.25;
  line-height: 1;
}

.testimonial::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: radial-gradient(ellipse at 100% 100%, rgba(168, 104, 50, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Staggered masonry feel */
.testimonial:nth-child(1) {
  transform: rotate(-0.3deg);
}

.testimonial:nth-child(2) {
  transform: rotate(0.2deg) translateY(10px);
}

.testimonial:nth-child(3) {
  transform: rotate(-0.15deg) translateY(-5px);
}

.testimonial:hover {
  box-shadow:
    3px 3px 0 rgba(168, 104, 50, 0.2),
    0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 0 40px rgba(42, 10, 10, 0.15);
  transform: rotate(0deg) translateY(-2px);
}

.testimonial__stars {
  color: var(--pale-gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
  text-shadow: 0 0 6px rgba(212, 185, 106, 0.3);
}

.testimonial__quote {
  font-style: italic;
  font-size: 1rem;
  color: rgba(237, 228, 208, 0.8);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(168, 104, 50, 0.35);
}

.testimonial__author {
  font-size: 0.9rem;
  color: var(--copper);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ============================================
   Guide / Tips — Flowing Scroll Layout
   ============================================ */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}

/* Vertical scroll line connecting tips */
.tips-grid::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 1px;
  background:
    repeating-linear-gradient(
      180deg,
      var(--copper) 0px,
      var(--copper) 8px,
      transparent 8px,
      transparent 16px
    );
  opacity: 0.3;
}

.tip-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  border: 1px solid rgba(168, 104, 50, 0.12);
  transition: all var(--transition-smooth);
  position: relative;
  background:
    linear-gradient(
      135deg,
      rgba(42, 10, 10, 0.15) 0%,
      transparent 60%
    );
}

/* Alternating slight offsets for scroll feel */
.tip-item:nth-child(odd) {
  margin-left: 0;
}

.tip-item:nth-child(even) {
  margin-left: 1.5rem;
  border-color: rgba(90, 138, 106, 0.12);
}

.tip-item:hover {
  border-color: rgba(184, 146, 58, 0.3);
  background:
    linear-gradient(
      135deg,
      rgba(74, 26, 42, 0.15) 0%,
      rgba(42, 10, 10, 0.1) 60%
    );
  transform: translateX(6px);
}

.tip-item__number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--aged-gold);
  line-height: 1;
  text-shadow:
    0 0 12px rgba(184, 146, 58, 0.3),
    0 2px 0 rgba(42, 10, 10, 0.5);
  text-align: center;
  position: relative;
  z-index: 1;
  animation: candleFlicker 6s ease-in-out infinite;
}

/* Each number gets slightly different flicker timing */
.tip-item:nth-child(2) .tip-item__number { animation-delay: -1s; }
.tip-item:nth-child(3) .tip-item__number { animation-delay: -2s; }
.tip-item:nth-child(4) .tip-item__number { animation-delay: -0.5s; }
.tip-item:nth-child(5) .tip-item__number { animation-delay: -3s; }
.tip-item:nth-child(6) .tip-item__number { animation-delay: -1.5s; }

.tip-item__text {
  color: rgba(237, 228, 208, 0.82);
  font-size: 1rem;
  line-height: 1.7;
  padding-top: 0.5rem;
}

/* ============================================
   Final CTA Section
   ============================================ */
.final-cta {
  text-align: center;
  padding: 6rem 0 5rem;
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(74, 26, 42, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, var(--wine-deep), var(--forest-dark), var(--wine-deep));
}

/* Vignette effect */
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.final-cta__box {
  border: 1px solid var(--copper);
  padding: 4rem 2rem;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background:
    linear-gradient(
      145deg,
      rgba(212, 196, 160, 0.04) 0%,
      rgba(42, 10, 10, 0.1) 100%
    );
  box-shadow:
    inset 0 0 50px rgba(42, 10, 10, 0.3),
    0 0 30px rgba(0, 0, 0, 0.3);
}

.final-cta__box::before,
.final-cta__box::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  border-color: var(--aged-gold);
  border-style: solid;
}

.final-cta__box::before {
  top: -1px;
  left: -1px;
  border-width: 3px 0 0 3px;
}

.final-cta__box::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 3px 3px 0;
}

.final-cta__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  color: var(--pale-gold);
  text-shadow:
    0 0 20px rgba(184, 146, 58, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

.final-cta__text {
  color: rgba(237, 228, 208, 0.75);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.final-cta__note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(237, 228, 208, 0.4);
}

/* ============================================
   Footer — Manuscript End Piece
   ============================================ */
.site-footer {
  background:
    linear-gradient(180deg, var(--anthracite) 0%, rgba(10, 8, 6, 1) 100%);
  border-top: 1px solid rgba(168, 104, 50, 0.25);
  padding: 3rem 0 2rem;
  position: relative;
}

/* Ornamental top edge */
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--copper) 20%,
      var(--aged-gold) 50%,
      var(--copper) 80%,
      transparent
    );
  opacity: 0.4;
}

.site-footer__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--aged-gold));
  margin: 0 auto 2rem;
  opacity: 0.6;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.site-footer__links a {
  font-size: 0.85rem;
  color: rgba(237, 228, 208, 0.6);
  position: relative;
  transition: color var(--transition-smooth);
}

.site-footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width var(--transition-smooth);
}

.site-footer__links a:hover {
  color: var(--pale-gold);
}

.site-footer__links a:hover::after {
  width: 100%;
}

.site-footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(237, 228, 208, 0.35);
  margin-bottom: 1rem;
}

.site-footer__disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(237, 228, 208, 0.25);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(168, 104, 50, 0.25);
  border-radius: 50%;
  transition: all var(--transition-smooth);
  background: rgba(42, 10, 10, 0.3);
}

.site-footer__social a:hover {
  border-color: var(--aged-gold);
  background: rgba(184, 146, 58, 0.1);
  box-shadow: 0 0 10px rgba(184, 146, 58, 0.2);
}

.site-footer__social svg {
  width: 16px;
  height: 16px;
  fill: var(--copper);
}

.site-footer__social a:hover svg {
  fill: var(--aged-gold);
}

/* ============================================
   Scroll To Top — Wax Seal Button
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background:
    radial-gradient(
      circle at 40% 40%,
      var(--copper) 0%,
      var(--ochre) 60%,
      rgba(42, 10, 10, 0.8) 100%
    );
  border: 2px solid var(--aged-gold);
  border-radius: 50%;
  color: var(--ivory);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background:
    radial-gradient(
      circle at 40% 40%,
      var(--aged-gold) 0%,
      var(--copper) 60%,
      rgba(42, 10, 10, 0.8) 100%
    );
  color: var(--anthracite);
  box-shadow:
    0 0 15px rgba(184, 146, 58, 0.4),
    0 3px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 0.06em;
  color: var(--aged-gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(168, 104, 50, 0.2);
  color: var(--pale-gold);
}

.legal-page h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--copper);
}

.legal-page p {
  color: rgba(237, 228, 208, 0.78);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-page ul,
.legal-page ol {
  color: rgba(237, 228, 208, 0.78);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-page .legal-date {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(237, 228, 208, 0.45);
  margin-bottom: 3rem;
  font-style: italic;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
  min-height: 100vh;
}

.contact-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 0.06em;
  color: var(--aged-gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info {
  padding: 2rem;
  border: 1px solid rgba(168, 104, 50, 0.25);
  background:
    linear-gradient(145deg, rgba(42, 10, 10, 0.2) 0%, rgba(10, 26, 10, 0.1) 100%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.15);
}

.contact-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--pale-gold);
}

.contact-info__item {
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-info__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-info__value {
  color: rgba(237, 228, 208, 0.82);
  font-size: 0.95rem;
}

.contact-info__hours {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(168, 104, 50, 0.15);
  font-size: 0.9rem;
  color: rgba(237, 228, 208, 0.55);
}

.contact-info__response {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(237, 228, 208, 0.45);
  font-style: italic;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
  padding: 2rem;
  border: 1px solid rgba(168, 104, 50, 0.25);
  background:
    linear-gradient(215deg, rgba(42, 10, 10, 0.2) 0%, rgba(10, 26, 10, 0.1) 100%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.15);
}

.contact-form h2 {
  font-family: var(--font-heading);
  color: var(--pale-gold);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--copper);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(42, 10, 10, 0.4);
  border: 1px solid rgba(168, 104, 50, 0.3);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  outline: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--aged-gold);
  box-shadow:
    0 0 10px rgba(184, 146, 58, 0.15),
    inset 0 0 15px rgba(42, 10, 10, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group select option {
  background: var(--wine-deep);
  color: var(--ivory);
}

.form-submit {
  text-align: right;
}

.form-submit .cta-gold {
  border: 1px solid var(--ochre);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.85rem 2.5rem;
}

/* ============================================
   Form Notification Modal
   ============================================ */
.form-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background:
    linear-gradient(
      145deg,
      var(--wine-deep) 0%,
      var(--wine-mid) 50%,
      var(--forest-dark) 100%
    );
  border: 2px solid var(--copper);
  padding: 2.5rem;
  text-align: center;
  z-index: 11000;
  max-width: 500px;
  width: 90%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(184, 146, 58, 0.15),
    inset 0 0 40px rgba(42, 10, 10, 0.3);
}

.form-notification::before,
.form-notification::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--aged-gold);
  border-style: solid;
}

.form-notification::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.form-notification::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.form-notification.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.form-notification__text {
  font-size: 1rem;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.form-notification__close {
  background: linear-gradient(145deg, var(--copper), var(--aged-gold), var(--pale-gold));
  color: var(--anthracite);
  border: 1px solid var(--ochre);
  padding: 0.5rem 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.form-notification__close:hover {
  box-shadow: 0 0 15px rgba(184, 146, 58, 0.35);
}

.form-notification-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.form-notification-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Screen Reader Only
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Nav close button hidden on desktop --- */
.site-nav__close {
  display: none;
}

/* Mobile */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background:
      linear-gradient(180deg, var(--wine-deep) 0%, var(--forest-dark) 100%);
    border-left: 1px solid rgba(168, 104, 50, 0.3);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s ease;
    z-index: 9500;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .site-nav.open {
    right: 0;
  }

  .site-nav__close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--aged-gold);
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Remove dots between nav links in mobile */
  .site-nav__link:not(:last-child)::before {
    display: none;
  }

  .gdpr-bar__inner {
    flex-direction: column;
    text-align: center;
  }

  .gdpr-bar__actions {
    width: 100%;
    justify-content: center;
  }

  .hero__frame {
    inset: 1rem;
  }

  .hero__frame-bottom {
    inset: 1rem;
  }

  .hero__title {
    letter-spacing: 0.1em;
  }

  .feature-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-block__icon {
    margin: 0 auto;
  }

  /* Reset alternating margins on mobile */
  .feature-block:nth-child(odd),
  .feature-block:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
  }

  .feature-block::before {
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
  }

  /* Reset tip offsets on mobile */
  .tip-item:nth-child(even) {
    margin-left: 0;
  }

  .tips-grid::before {
    display: none;
  }

  /* Section titles centered on mobile */
  .section__title {
    text-align: center;
    padding-left: 0;
  }

  .section__title::before {
    display: none;
  }

  .section__title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .section__subtitle {
    text-align: center;
    padding-left: 0;
  }

  .section-heading {
    text-align: center;
    padding-left: 0;
  }

  .section-heading::before {
    display: none;
  }

  .site-footer__links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Reset testimonial staggers on mobile */
  .testimonial:nth-child(1),
  .testimonial:nth-child(2),
  .testimonial:nth-child(3) {
    transform: none;
  }

  .testimonial:hover {
    transform: translateY(-2px);
  }

  /* Reset bestiary card staggers on mobile */
  .bestiary-card:nth-child(2),
  .bestiary-card:nth-child(3) {
    transform: none;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .world-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Image bleeds out slightly */
  .world-grid__image {
    margin-right: -2rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .tips-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tips-grid::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bestiary-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .screenshot-scroll__item {
    width: 260px;
  }

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

/* Desktop */
@media (min-width: 1024px) {
  .feature-block {
    grid-template-columns: 100px 1fr;
    padding: 3rem;
  }

  .tips-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .section {
    padding: 6.5rem 0 7rem;
  }

  /* Re-enable scroll line on desktop 2-column tips */
  .tips-grid::before {
    display: none;
  }
}

/* Large screens */
@media (min-width: 1440px) {
  html {
    font-size: 18px;
  }

  .hero__frame {
    inset: 3rem;
  }

  .hero__frame-bottom {
    inset: 3rem;
  }

  /* Wider image bleed on large screens */
  .world-grid__image {
    margin-right: -3rem;
  }
}
