:root {
  /* ---------- COLOUR PALETTE — weathered stone, iron-red rune pigment ---------- */
  --bg-1: #0e1217;        /* near-black slate, slight cool tint */
  --bg-2: #181d27;        /* mid gradient — fjord depth */
  --bg-3: #232a36;        /* upper gradient — distant horizon */

  --accent: #b14437;      /* iron-oxide rune pigment (the colour rúnar were traditionally reddened with) */
  --accent-soft: #d35d4d;
  --accent-deep: #7d2a1f;
  --accent-glow: rgba(177, 68, 55, 0.38);

  --moss: #4a6354;        /* mossy iron-green — nordic forest */
  --moss-deep: #2a3a30;

  --steel: #5a6878;       /* cold steel blue — secondary accent */
  --steel-deep: #2c3744;

  --aurora: #6fae8c;      /* faint aurora green — used in glow only */

  --text: #ddd6c2;        /* aged bone / parchment */
  --text-muted: #968f7d;
  --text-faint: #645e51;

  --stone-bg: #1a1f28;          /* the runestone surface base */
  --stone-bg-hover: #20262f;
  --stone-border: rgba(177, 68, 55, 0.20);
  --stone-border-hover: rgba(177, 68, 55, 0.45);

  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 8px 32px rgba(177, 68, 55, 0.20);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg-1);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: clip;
}

/* ---------- ATMOSPHERIC BACKGROUND — fjord at dusk ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    /* Top glow — tighter (45% reach) and dimmer (50% start opacity) so it
       doesn't bleed brightness into the hero text. */
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(35, 42, 54, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse 80% 55% at 50% 100%, var(--bg-2) 0%, transparent 60%),
    var(--bg-1);
}

/* Aurora ribbon at the top — earthly / northern. Static, no motion. */
.bg-aurora {
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  height: 50%;
  background:
    radial-gradient(ellipse 60% 100% at 30% 50%, rgba(111, 174, 140, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 70% 80% at 70% 30%, rgba(90, 104, 120, 0.14) 0%, transparent 65%);
  filter: blur(40px);
  opacity: 0.4;
}

/* Coloured orbs (carry-over from the tarot/lenormand origin) — hidden in
   favour of the rune-glyph overlay below. The .bg-orb divs are still in the
   page HTML on every page; we just don't render them. */
.bg-orb { display: none; }

/* Faint Elder Futhark glyphs scattered across the page — the runic-themed
   replacement for the orbs. Tiles every 800x800 at very low opacity so it
   reads as ghosted carvings beneath the page rather than as decoration. */
.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("../images/bg-runes.svg");
  background-repeat: repeat;
  background-size: 800px 800px;
  opacity: 0.03;
  pointer-events: none;
}

/* Stone-grain noise — the whole page sits on weathered rock */
.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { padding: 1.2rem 0 2rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-soft); }

/* ---------- STICKY HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(14, 18, 23, 0.78);
  border-bottom: 1px solid rgba(177, 68, 55, 0.10);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.brand:hover { color: var(--accent-soft); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  /* Carved-stone tile shape — slightly rounded square, not a circle. */
  border-radius: 4px;
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1;
  font-family: var(--font-display);
  background: rgba(177, 68, 55, 0.06);
  box-shadow:
    0 0 12px rgba(177, 68, 55, 0.18),
    inset 0 0 8px rgba(177, 68, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* The actual brand icon (replaces the unicode-glyph .brand-mark span on every
   page after running scripts/inject_favicon.py). Just the image, no border or
   background — sits cleanly next to the "Elderwyrd" wordmark. */
.brand-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 1.6rem;
}

.main-nav a {
  position: relative;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active { color: var(--text); }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* The "Cast Runes" nav item is a tool, not a category — give it a quiet pill
   outline so it reads as the call-to-action without shouting. The active-state
   underline is suppressed since it would clash with the pill border. */
.main-nav a.nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  background: rgba(177, 68, 55, 0.08);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.main-nav a.nav-cta:hover {
  color: var(--accent-soft);
  background: rgba(177, 68, 55, 0.18);
  border-color: var(--accent-soft);
}
.main-nav a.nav-cta.active {
  color: #fdf6e8;
  background: var(--accent);
  border-color: var(--accent);
}
.main-nav a.nav-cta.active:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: #fdf6e8;
}
.main-nav a.nav-cta.active::after { display: none; }

/* ---------- MOBILE NAV ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(221, 214, 194, 0.18);
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  letter-spacing: normal;
  text-transform: none;
  font-family: inherit;
  box-shadow: none;
}
.nav-toggle::before { display: none; }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav-toggle:hover { transform: none; box-shadow: none; filter: none; }

/* ---------- TYPOGRAPHY ---------- */
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.hero-eyebrow::after { background: linear-gradient(90deg, var(--accent), transparent); }

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1.1rem;
}

h1 em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--accent-soft);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 1.1rem;
}

p { color: var(--text); }

.intro {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ---------- BUTTONS ---------- */
.btn,
button {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fdf6e8;
  border: none;
  padding: 0.95rem 2.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow:
    0 4px 14px rgba(177, 68, 55, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.btn::before,
button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(177, 68, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  filter: brightness(1.05);
  text-decoration: none;
  /* Explicit colour override — the global a:hover rule has equal specificity
     and would otherwise tint the text red, making it invisible on the button. */
  color: #fdf6e8;
}
.btn:hover::before,
button:hover::before { transform: translateX(100%); }
.btn:active,
button:active { transform: translateY(0); }

.btn-ghost {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  background: rgba(177, 68, 55, 0.08);
  color: var(--accent-soft);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ---------- FADE-UP ANIMATION ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  margin: 0 0 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumbs li {
  display: inline;
  color: var(--text-faint);
}
.breadcrumbs li + li::before {
  content: "›";
  color: var(--text-faint);
  padding: 0 0.55em;
  opacity: 0.7;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: var(--accent-soft);
}
.breadcrumbs li[aria-current="page"] {
  color: var(--text-muted);
}

/* ---------- HOMEPAGE HERO ---------- */
.page-head {
  text-align: center;
  padding: 3rem 0 0;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem auto 1.5rem;
  max-width: 240px;
  color: var(--accent);
}
.hero-divider::before,
.hero-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.hero-divider::after { background: linear-gradient(90deg, var(--accent), transparent); }

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

/* ---------- RUNE PAGE HERO ---------- */
.rune-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 3.5rem;
  align-items: center;
  margin: 2rem 0 4.5rem;
}

.rune-visual-wrap {
  display: flex;
  justify-content: center;
}

/* ---------- THE RUNESTONE — chunk of weathered rock with a carved icon ---------- */
.rune-stone {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 7 / 8;
  position: relative;
  overflow: hidden;
  /* Irregular pebble outline — slightly different on each corner so it doesn't
     read as a perfect ellipse. */
  border-radius: 38% 62% 56% 44% / 42% 48% 52% 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    /* highlight from upper-left (where the light source is) */
    radial-gradient(ellipse 80% 65% at 28% 22%,
      rgba(200, 195, 180, 0.13) 0%,
      transparent 55%),
    /* base stone gradient */
    linear-gradient(155deg,
      #2c333d 0%,
      #1c2129 45%,
      #14181f 100%);
  box-shadow:
    /* outer drop on the surface it sits on */
    0 22px 50px rgba(0, 0, 0, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.4),
    /* inner darkening on the lower-right (away from light source) */
    inset -10px -16px 32px rgba(0, 0, 0, 0.55),
    /* faint inner highlight on upper-left edge — the light catching the rim */
    inset 6px 8px 18px rgba(255, 255, 255, 0.04),
    /* tight rim ring */
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Stone grain — turbulence noise overlay so the surface isn't flat */
.rune-stone::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.32;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Age marks — splotches and a faint highlight fleck */
.rune-stone::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 84%, rgba(0, 0, 0, 0.45) 0%, transparent 22%),
    radial-gradient(circle at 18% 88%, rgba(0, 0, 0, 0.30) 0%, transparent 18%),
    radial-gradient(circle at 88% 22%, rgba(220, 210, 195, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 62% 50%, rgba(0, 0, 0, 0.15) 0%, transparent 35%);
  pointer-events: none;
}

/* The rune icon — sits centred, with a red-pigment glow as if freshly painted
   into the carved groove. The image itself can be a dark SVG/PNG; the
   drop-shadow does the work of suggesting the iron-oxide pigment.

   max-width + max-height together so both portrait runes (Fehu, Raidho) and
   stockier ones (Othala, Dagaz) all sit at a sensible size inside the stone. */
.rune-stone img {
  max-width: 62%;
  max-height: 78%;
  width: auto;
  height: auto;
  position: relative;
  z-index: 2;
  filter:
    drop-shadow(0 0 10px rgba(177, 68, 55, 0.45))
    drop-shadow(0 0 2px rgba(177, 68, 55, 0.6))
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

/* CSS-only fallback when the icon hasn't been added yet — shows the unicode
   rune character so the layout never breaks. */
/* Placeholder shown in the runestone when an image hasn't been added yet for
   a Norse symbol page (e.g. images/symbols/valknut.png is missing). Shows the
   symbol's name in stylized red text until the artwork is dropped in. */
.rune-stone .symbol-name-fallback {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(177, 68, 55, 0.85);
  line-height: 1.15;
  text-align: center;
  padding: 0 1rem;
  text-shadow:
    0 0 16px rgba(177, 68, 55, 0.4),
    0 0 4px rgba(177, 68, 55, 0.6),
    0 1px 1px rgba(0, 0, 0, 0.55);
}

.rune-stone .rune-glyph-fallback {
  position: relative;
  z-index: 2;
  font-family: 'Segoe UI Symbol', 'Noto Sans Runic', serif;
  font-size: clamp(4.5rem, 14vw, 7rem);
  font-weight: 400;
  color: rgba(177, 68, 55, 0.85);
  line-height: 1;
  text-shadow:
    0 0 18px rgba(177, 68, 55, 0.45),
    0 0 4px rgba(177, 68, 55, 0.7),
    0 1px 1px rgba(0, 0, 0, 0.55);
}

/* ---------- RUNE-PAGE CONTENT (right column of the hero) ---------- */
.rune-page-content .hero-eyebrow { margin-bottom: 1rem; }
.rune-page-content h1 { text-align: left; margin-bottom: 1.25rem; }

.rune-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.rune-keyword {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(177, 68, 55, 0.07);
  border: 1px solid rgba(177, 68, 55, 0.25);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rune-quick-meaning {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.75rem;
}

/* ---------- RUNE BODY SECTIONS ---------- */
.rune-section {
  max-width: 720px;
  margin: 0 auto 5rem;
}

.rune-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.rune-section h2::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.rune-section p {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
}

.rune-section p:last-child { margin-bottom: 0; }

/* Lists inside .rune-section (used on bind-rune pages for "How to use" and
   "Make your own variation"). Replaces the inline-style mess that used to live
   on each <ul>. */
.rune-section ul {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.7;
  margin: 1rem 0 1rem 1.5rem;
  padding-left: 1rem;
}
.rune-section ul li { margin-bottom: 0.4rem; }
.rune-section ul li:last-child { margin-bottom: 0; }

/* Centred variant of the section heading — used for "The Components" on
   bind-rune pages, where the whole section (heading, subtitle, components grid)
   is centre-aligned. Mirrors the gradient prefix line on the right side too,
   so the heading reads as: ─── Title ───. */
.rune-section h2.is-centered {
  justify-content: center;
}
.rune-section h2.is-centered::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

/* Italic centred subtitle under section headings — used on bind-rune pages
   below the "The Components" heading. */
.section-lead {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

/* The "reversed / merkstave" section gets a subtler red treatment so it stands
   apart from the upright meanings. */
.rune-section.is-reversed {
  padding: 1.75rem 1.9rem;
  background: rgba(125, 42, 31, 0.10);
  border-left: 2px solid var(--accent-deep);
  border-radius: var(--radius-md);
}
.rune-section.is-reversed h2 { color: var(--accent-soft); }

/* ---------- RUNE DETAILS (number / aett / sound / element panel) ---------- */
.rune-details {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 1.75rem 2rem;
  background: rgba(26, 31, 40, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
}

.rune-details h2 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.rune-details h2::before { content: "ᛜ"; margin-right: 0.7rem; opacity: 0.55; font-size: 1rem; }
.rune-details h2::after  { content: "ᛜ"; margin-left: 0.7rem; opacity: 0.55; font-size: 1rem; }

.rune-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.25rem;
  text-align: center;
}

.rune-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 0.5rem;
  border-left: 1px solid rgba(177, 68, 55, 0.12);
}
.rune-detail-item:first-child { border-left: none; }

.rune-detail-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.rune-detail-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ---------- PREV/NEXT NAVIGATION ---------- */
.rune-nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 720px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--stone-border);
}

.rune-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  background: rgba(26, 31, 40, 0.45);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  max-width: 48%;
}
.rune-nav-link:hover {
  border-color: var(--stone-border-hover);
  background: rgba(32, 38, 47, 0.6);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}
.rune-nav-link.next { text-align: right; align-items: flex-end; }
.rune-nav-direction {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.rune-nav-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* ---------- BIND-RUNE PAGES ---------- */
/* Hero block — same shape as .rune-page-hero but the headline/intro carries
   the bind-rune's purpose rather than a single rune's name. */
.bind-rune-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 3.5rem;
  align-items: center;
  margin: 2rem 0 4rem;
}

.bind-rune-page-hero .rune-visual-wrap {
  display: flex;
  justify-content: center;
}

/* The components grid — small stones laid in a row, each with the rune name
   + a one-line gloss of what it brings to the bind. */
.bind-components {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.bind-components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.bind-component {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.bind-component:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}
.bind-component:hover .bind-component-name {
  color: var(--accent-soft);
  text-decoration: underline;
}
.bind-component:hover .bind-component-stone {
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(177, 68, 55, 0.15),
    inset -6px -10px 18px rgba(0, 0, 0, 0.55),
    inset 4px 5px 10px rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(177, 68, 55, 0.18);
}

/* Tile-sized version of the runestone for component display. Same chiselled
   look as .cast-rune-stone but smaller. Shared with the .rune-tile-stone used
   on the /runes/ hub page so styling stays in one place. */
.bind-component-stone,
.rune-tile-stone {
  width: 110px;
  aspect-ratio: 7 / 8;
  position: relative;
  overflow: hidden;
  border-radius: 38% 62% 56% 44% / 42% 48% 52% 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  background:
    radial-gradient(ellipse 80% 65% at 28% 22%,
      rgba(200, 195, 180, 0.13) 0%,
      transparent 55%),
    linear-gradient(155deg,
      #2c333d 0%,
      #1c2129 45%,
      #14181f 100%);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.5),
    inset -6px -10px 18px rgba(0, 0, 0, 0.55),
    inset 4px 5px 10px rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.bind-component-stone::before,
.rune-tile-stone::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.32;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.bind-component-stone img,
.bind-component-stone .rune-glyph-fallback,
.rune-tile-stone img,
.rune-tile-stone .rune-glyph-fallback {
  max-width: 64%;
  max-height: 78%;
  width: auto;
  height: auto;
  position: relative;
  z-index: 2;
  filter:
    drop-shadow(0 0 6px rgba(177, 68, 55, 0.45))
    drop-shadow(0 0 2px rgba(177, 68, 55, 0.6))
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}
.bind-component-stone .rune-glyph-fallback,
.rune-tile-stone .rune-glyph-fallback {
  font-family: 'Segoe UI Symbol', 'Noto Sans Runic', serif;
  font-size: 2.4rem;
  color: rgba(177, 68, 55, 0.85);
  line-height: 1;
}

/* ---------- /runes/ HUB GRID ---------- */
/* The Elder Futhark hub page. 8 runes per aett × 3 aetts. Whole tile is a
   link to the rune's meaning page. Reuses the .bind-component-stone visual. */
.rune-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.75rem 1rem;
  max-width: 720px;
  margin: 1.5rem auto 0;
}

.rune-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.rune-tile:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}
.rune-tile:hover .rune-tile-name {
  color: var(--accent-soft);
  text-decoration: underline;
}
.rune-tile:hover .rune-tile-stone {
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(177, 68, 55, 0.15),
    inset -6px -10px 18px rgba(0, 0, 0, 0.55),
    inset 4px 5px 10px rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(177, 68, 55, 0.18);
}

.rune-tile-number {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
  margin-top: 0.1rem;
}

.rune-tile-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
  transition: color 0.2s;
}

/* On the symbol hub the stones don't have a rune icon, just the symbol's name
   carved in. The default .symbol-name-fallback font is sized for the larger
   hero stone, so we shrink it for the tile-sized stone. */
.rune-tile-stone .symbol-name-fallback {
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  letter-spacing: 0.08em;
  padding: 0 0.4rem;
  transition: color 0.2s;
}
.rune-tile:hover .rune-tile-stone .symbol-name-fallback {
  color: var(--accent-soft);
}

/* Used on the bind-rune hub: shows the bind's component runes as glyphs
   beneath the lead-rune stone, e.g. "ᛉ ᚦ ᛇ". */
.rune-tile-components {
  font-family: 'Segoe UI Symbol', 'Noto Sans Runic', serif;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  margin-top: 0.1rem;
  white-space: nowrap;
}

.rune-tile-tagline {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
  max-width: 140px;
}

@media (max-width: 720px) {
  .rune-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.25rem 0.75rem;
  }
  .rune-tile-stone .rune-glyph-fallback { font-size: 2rem; }
}

/* ---------- GUIDE CARDS — text-focused tiles for the homepage guides
   section. Different visual language from .rune-tile (no stone, no icon)
   so the section reads as "tutorials" rather than "look up a rune". ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 0;
}

.guide-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: rgba(26, 31, 40, 0.5);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--stone-border-hover);
  background: var(--stone-bg-hover);
}

.guide-card-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.65rem;
}

.guide-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.guide-card:hover .guide-card-title { color: var(--accent-soft); }

.guide-card-description {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.guide-card-read {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
  transition: color 0.25s ease;
}

.guide-card:hover .guide-card-read { color: var(--accent-soft); }

@media (max-width: 720px) {
  .guide-grid { grid-template-columns: 1fr; }
}

.bind-component-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.bind-component-name a { color: var(--accent); text-decoration: none; }
.bind-component-name a:hover { color: var(--accent-soft); text-decoration: underline; }

.bind-component-role {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 180px;
}

/* FAQ block — used at the end of bind-rune pages. */
.bind-faq {
  max-width: 720px;
  margin: 0 auto 3rem;
}
.bind-faq-item {
  padding: 1.1rem 1.25rem;
  background: rgba(26, 31, 40, 0.45);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
}
.bind-faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent-soft);
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.bind-faq-item p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

/* Mobile fixes for bind-rune pages */
@media (max-width: 720px) {
  .bind-rune-page-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    margin: 1rem 0 3rem;
  }
  .bind-rune-page-hero .rune-page-content { text-align: center; }
  .bind-rune-page-hero h1 { text-align: center; }
  .bind-rune-page-hero .rune-keywords { justify-content: center; }
  .bind-components-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1.25rem; }
  .bind-component-stone { width: 90px; }
}

/* ---------- RUNE CAST (the /rune-reading/ page) ---------- */
.controls {
  text-align: center;
  margin: 1.5rem 0 3rem;
}

.rune-cast-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.cast-rune {
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s;
}
.cast-rune:hover { transform: translateY(-4px); }

/* The little stone — a smaller cousin of .rune-stone, with the same chiselled
   feel. Uses identical layered backgrounds + shadows. */
.cast-rune-stone {
  width: 100%;
  aspect-ratio: 7 / 8;
  position: relative;
  overflow: hidden;
  border-radius: 38% 62% 56% 44% / 42% 48% 52% 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  background:
    radial-gradient(ellipse 80% 65% at 28% 22%,
      rgba(200, 195, 180, 0.13) 0%,
      transparent 55%),
    linear-gradient(155deg,
      #2c333d 0%,
      #1c2129 45%,
      #14181f 100%);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.4),
    inset -8px -12px 24px rgba(0, 0, 0, 0.55),
    inset 4px 6px 14px rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.cast-rune-stone::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.32;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cast-rune-stone::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 84%, rgba(0, 0, 0, 0.45) 0%, transparent 22%),
    radial-gradient(circle at 18% 88%, rgba(0, 0, 0, 0.30) 0%, transparent 18%),
    radial-gradient(circle at 88% 22%, rgba(220, 210, 195, 0.05) 0%, transparent 25%);
  pointer-events: none;
}

.cast-rune-stone img,
.cast-rune-stone .rune-glyph-fallback {
  max-width: 62%;
  max-height: 78%;
  width: auto;
  height: auto;
  position: relative;
  z-index: 2;
  filter:
    drop-shadow(0 0 8px rgba(177, 68, 55, 0.45))
    drop-shadow(0 0 2px rgba(177, 68, 55, 0.6))
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
  transition: transform 0.4s;
}

.cast-rune-stone .rune-glyph-fallback {
  font-family: 'Segoe UI Symbol', 'Noto Sans Runic', serif;
  font-size: clamp(2.8rem, 9vw, 4rem);
  color: rgba(177, 68, 55, 0.85);
  line-height: 1;
}

/* Reversed: rotate the icon inside the stone (the stone itself stays put —
   that's how an actual reversed rune looks: it's the carving that's upside
   down, not the rock). */
.cast-rune.is-reversed .cast-rune-stone img,
.cast-rune.is-reversed .cast-rune-stone .rune-glyph-fallback {
  transform: rotate(180deg);
}

/* Empty stone (before cast) — slightly dimmer so the user knows it's waiting. */
.cast-rune.empty .cast-rune-stone {
  opacity: 0.78;
  filter: saturate(0.85);
}

/* Cast-in animation — the stone tumbles down into place with a small rotation. */
.cast-rune.drawn { animation: castIn 0.5s ease-out; }
.cast-rune.drawn .cast-rune-stone img,
.cast-rune.drawn .cast-rune-stone .rune-glyph-fallback { animation: revealRune 0.55s ease-out; }

@keyframes castIn {
  from { opacity: 0; transform: translateY(-22px) rotate(-6deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes revealRune {
  from { opacity: 0; transform: scale(0.55); }
  to   { opacity: 1; transform: scale(1); }
}

/* For reversed runes, the reveal animation has to land at rotated state. */
.cast-rune.is-reversed.drawn .cast-rune-stone img,
.cast-rune.is-reversed.drawn .cast-rune-stone .rune-glyph-fallback {
  animation: revealRuneReversed 0.55s ease-out;
}

@keyframes revealRuneReversed {
  from { opacity: 0; transform: scale(0.55) rotate(180deg); }
  to   { opacity: 1; transform: scale(1)    rotate(180deg); }
}

/* The whole card is now wrapped in <a class="cast-rune-link"> when drawn —
   so the link element has to lay out as a block container the same way the
   plain card div used to. */
.cast-rune-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.cast-rune-link:hover { text-decoration: none; }

.cast-rune-name {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  min-height: 1.4em;
  transition: color 0.2s;
}
/* Hovering anywhere on the card now shows the underline-on-the-name affordance,
   so the name still reads as "the link" inside the larger clickable card. */
.cast-rune-link:hover .cast-rune-name {
  color: var(--accent-soft);
  text-decoration: underline;
}

.cast-rune-position {
  font-family: var(--font-sans);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.3rem;
}

.cast-rune-meaning {
  font-family: var(--font-serif);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.45;
}

.cast-rune-interpretation {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(177, 68, 55, 0.18);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}
.cast-rune-interpretation strong {
  color: var(--accent-soft);
  font-weight: 500;
  font-style: normal;
}

/* ---------- THE CLOSING READING PANEL ---------- */
.interpretation {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 2rem auto 0;
  background: rgba(26, 31, 40, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: none;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.7;
}
.interpretation.visible {
  display: block;
  animation: fadeUpReading 0.6s ease-out;
}
@keyframes fadeUpReading {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
.interpretation h2 {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.interpretation h2::before { content: "ᛜ"; margin-right: 0.7rem; opacity: 0.5; font-size: 0.95rem; }
.interpretation h2::after  { content: "ᛜ"; margin-left: 0.7rem; opacity: 0.5; font-size: 0.95rem; }
.interpretation strong { color: var(--accent-soft); font-weight: 500; }
.interpretation .summary {
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}
.interpretation .summary + .summary { margin-top: 1rem; }

/* ---------- END-OF-PAGE READING CTA ---------- */
/* Sits at the end of every rune meaning page, bind-rune page, and symbol page.
   Same panel styling family as .interpretation and .bind-suggestions on the
   reading page — backdrop-blur, stone border, centred text. Page-specific copy
   is injected per page (see scripts/inject_reading_cta.py). */
.reading-cta {
  max-width: 640px;
  margin: 0 auto 5rem;
  padding: 2.5rem 2.25rem;
  background: rgba(26, 31, 40, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.reading-cta-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  margin: 0.85rem 0 1rem;
}

.reading-cta p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
  margin: 0 auto 1.5rem;
  max-width: 480px;
}

/* ---------- BIND-RUNE SUGGESTIONS (after a reading) ---------- */
/* "These runes also appear in these workings" — sister panel below the reading
   itself, slightly subtler so it reads as related-content, not as the reading. */
.bind-suggestions {
  max-width: 640px;
  margin: 1.5rem auto 0;
  padding: 1.5rem 2rem;
  background: rgba(20, 25, 32, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
  display: none;
}
.bind-suggestions.visible {
  display: block;
  /* Slight delay so the reading panel lands first, then the suggestions follow. */
  animation: fadeUpReading 0.7s ease-out 0.25s both;
}

.bind-suggestions h3 {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bind-suggestions-intro {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 520px;
  line-height: 1.55;
}

.bind-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bind-suggestion {
  display: block;
  padding: 0.85rem 1rem;
  background: rgba(28, 33, 41, 0.55);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.bind-suggestion:hover {
  border-color: var(--stone-border-hover);
  background: rgba(34, 40, 50, 0.65);
  transform: translateY(-1px);
  text-decoration: none;
}

.bind-suggestion-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.bind-suggestion-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.bind-suggestion-glyphs {
  font-family: 'Segoe UI Symbol', 'Noto Sans Runic', serif;
  font-size: 1.2rem;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.bind-suggestion-meta {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .bind-suggestions { padding: 1.25rem 1rem; }
  .bind-suggestion-row { flex-direction: column; gap: 0.2rem; align-items: flex-start; }
}

/* ---------- POSITION LIST (used in the SEO sections of the reading page) ---------- */
.position-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.position-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(26, 31, 40, 0.5);
  border: 1px solid var(--stone-border);
  border-radius: 10px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
}
.position-list .position-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  background: rgba(177, 68, 55, 0.07);
}
.position-list strong { color: var(--accent-soft); font-weight: 500; }

/* ---------- FOOTER ---------- */
.site-footer {
  margin-top: 5rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(177, 68, 55, 0.08);
  background: rgba(10, 13, 18, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4,
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-family: var(--font-serif);
  font-style: italic;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  font-size: 1rem;
}
.footer-logo:hover { color: var(--accent-soft); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(177, 68, 55, 0.06);
  font-size: 0.82rem;
  color: var(--text-faint);
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    width: 100%;
    background: rgba(14, 18, 23, 0.96);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(177, 68, 55, 0.1);
    border-bottom: 1px solid rgba(177, 68, 55, 0.1);
    padding: 0.75rem 1.5rem 1rem;
    margin-top: 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0.25rem; font-size: 0.95rem; }
  .main-nav a.active::after { display: none; }
  /* Cast Runes pill — keep the pill shape but stretch only as wide as needed */
  .main-nav a.nav-cta { align-self: flex-start; margin-top: 0.4rem; }

  body.nav-open { overflow: hidden; }

  .rune-page-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    margin: 1rem 0 3rem;
  }
  .rune-stone { max-width: 220px; }
  .rune-page-content { text-align: center; }
  .rune-page-content h1 { text-align: center; }
  .rune-keywords { justify-content: center; }
  .rune-quick-meaning { font-size: 1.05rem; }

  .rune-section { margin-bottom: 2.5rem; }
  .rune-section h2 { font-size: 1.3rem; justify-content: center; }
  .rune-section h2::before { display: none; }
  .rune-section p { font-size: 1.12rem; }

  .rune-details { padding: 1.5rem 1.25rem; }
  .rune-details-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0.75rem; }
  .rune-detail-item { border-left: none; padding: 0; }

  .rune-nav-buttons { flex-direction: column; }
  .rune-nav-link { max-width: 100%; }
  .rune-nav-link.next { text-align: left; align-items: flex-start; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  /* Cast layout — stones stack vertically on small screens, like a Norse rod
     of three lots laid end-to-end. */
  .rune-cast-grid { gap: 1.5rem; }
  .cast-rune { width: 200px; }
  .interpretation { padding: 1.5rem 1.25rem; font-size: 1rem; }
  .position-list li { font-size: 0.96rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
