﻿:root {
  --rh-bg-charcoal: #121110;
  --rh-bg-walnut: #2b1f19;
  --rh-bronze: #8a633e;
  --rh-forest: #314236;
  --rh-parchment: #d8cbb8;
  --rh-ember: #b6492e;
  --rh-ember-hover: #d66a45;
  --rh-text-light: #e7dfd2;
  --rh-text-secondary: #b8ad9b;
  --rh-border: #4a3a2e;
  --rh-shadow: rgba(0, 0, 0, 0.35);
  --rh-panel: rgba(216, 203, 184, 0.08);
  --rh-panel-inner: rgba(216, 203, 184, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(120% 100% at 10% 0%, rgba(182, 73, 46, 0.12), transparent 60%),
    radial-gradient(100% 80% at 90% 0%, rgba(138, 99, 62, 0.16), transparent 65%),
    linear-gradient(180deg, var(--rh-bg-charcoal), var(--rh-bg-walnut));
  color: var(--rh-text-light);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  line-height: 1.6;
  min-height: 100vh;
}

.site-texture {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.02), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.015), transparent 20%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02), transparent 25%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 4px);
  z-index: -1;
}

.wrap {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 1rem;
}

.site-header {
  backdrop-filter: blur(8px);
  background: rgba(18, 17, 16, 0.75);
  border-bottom: 1px solid var(--rh-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  color: var(--rh-text-light);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  white-space: nowrap;
}

.main-nav a {
  border-bottom: 1px solid transparent;
  color: var(--rh-text-secondary);
  font-size: 0.95rem;
  padding-bottom: 0.15rem;
  text-decoration: none;
  transition: color 220ms ease, border-color 220ms ease, text-shadow 220ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: var(--rh-ember-hover);
  color: var(--rh-text-light);
  text-shadow: 0 0 10px rgba(214, 106, 69, 0.4);
}

.main-nav a[aria-current="page"] {
  border-color: var(--rh-bronze);
  color: var(--rh-text-light);
}

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 4.25rem;
}

.page-hero {
  padding-bottom: 2.75rem;
}

.hero .wrap {
  max-width: 1120px;
}

.eyebrow {
  color: var(--rh-bronze);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(1.55rem, 6.2vw, 3.8rem);
  font-weight: 600;
  line-height: 1.08;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.subhead {
  color: var(--rh-text-secondary);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  margin: 1rem 0 0;
}

.hero-meta {
  border: 1px solid var(--rh-border);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  width: fit-content;
  background: rgba(18, 17, 16, 0.55);
}

.hero-meta span {
  color: var(--rh-text-secondary);
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rh-bronze), #7a4f2f);
  border-color: #9a7855;
  box-shadow: 0 8px 24px rgba(138, 99, 62, 0.3);
  color: var(--rh-text-light);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--rh-ember), var(--rh-ember-hover));
  box-shadow: 0 0 0 1px rgba(214, 106, 69, 0.45), 0 10px 26px rgba(182, 73, 46, 0.32);
}

.btn-secondary {
  background: transparent;
  border-color: var(--rh-bronze);
  color: var(--rh-text-light);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  box-shadow: 0 0 0 1px rgba(214, 106, 69, 0.3), 0 0 18px rgba(214, 106, 69, 0.22);
  color: #f3ece1;
}

.section,
.panel {
  padding: 3.25rem 0;
}

.panel .panel-inner {
  background: linear-gradient(155deg, var(--rh-panel), var(--rh-panel-inner));
  border: 1px solid var(--rh-border);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(216, 203, 184, 0.06), 0 16px 28px var(--rh-shadow);
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.section-subtitle {
  color: var(--rh-text-secondary);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 500;
  margin: 0.05rem 0 0.75rem;
}

p {
  margin: 0.35rem 0;
}

.closing {
  color: #f2e6d4;
  margin-top: 0.8rem;
}

.lede {
  color: var(--rh-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.relic-layout {
  display: grid;
  gap: 1rem;
}

.relic-summary {
  background: linear-gradient(155deg, var(--rh-panel), var(--rh-panel-inner));
  border: 1px solid var(--rh-border);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(216, 203, 184, 0.06), 0 16px 28px var(--rh-shadow);
  padding: clamp(1rem, 2.2vw, 1.4rem);
}

.relic-summary ul,
.quests-columns ul,
.join-wrap ul {
  margin: 0.4rem 0 0.8rem 1.2rem;
  padding: 0;
}

.relic-summary li,
.quests-columns li,
.join-wrap li {
  margin-bottom: 0.25rem;
}

.availability {
  color: #f2e6d4;
  font-size: 0.95rem;
  margin-top: 0.8rem;
}

.stripe-note {
  color: var(--rh-text-secondary);
  font-size: 0.84rem;
  margin-top: 0.45rem;
}

.process-list {
  margin: 0.55rem 0 1rem 1.2rem;
  padding: 0;
}

.process-list li {
  margin-bottom: 0.28rem;
}

.relic-grid {
  display: grid;
  gap: 0.9rem;
}

.relic-card {
  background: rgba(22, 19, 17, 0.74);
  border: 1px solid var(--rh-border);
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 0.75rem;
  position: relative;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.relic-card:hover {
  border-color: rgba(214, 106, 69, 0.55);
  box-shadow: 0 0 0 1px rgba(214, 106, 69, 0.35), 0 16px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.relic-card img {
  border-radius: 8px;
  display: block;
  width: 100%;
  height: auto;
}

.relic-card h3 {
  font-size: 1.35rem;
  margin: 0.55rem 0 0.35rem;
}

.meta {
  color: var(--rh-text-secondary);
  font-size: 0.92rem;
  margin: 0.1rem 0;
}

.badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  padding: 0.24rem 0.6rem;
  text-transform: uppercase;
}

.badge.limited {
  background: rgba(138, 99, 62, 0.28);
  border: 1px solid rgba(138, 99, 62, 0.6);
  color: #f0ddc5;
}

.badge.few {
  background: rgba(182, 73, 46, 0.22);
  border: 1px solid rgba(182, 73, 46, 0.6);
  color: #f6d8d0;
}

.badge.sold {
  background: rgba(49, 66, 54, 0.3);
  border: 1px solid rgba(49, 66, 54, 0.7);
  color: #d2e0d3;
}

.node-grid {
  display: grid;
  gap: 0.8rem;
  margin: 1.1rem 0;
}

.node {
  background: rgba(18, 17, 16, 0.55);
  border-radius: 10px;
  border: 1px solid var(--rh-border);
  padding: 0.85rem 0.95rem;
}

.node h3 {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.node-library {
  border-color: rgba(49, 66, 54, 0.8);
}

.node-tavern {
  border-color: rgba(138, 99, 62, 0.8);
}

.node-dungeon {
  border-color: rgba(182, 73, 46, 0.8);
}

.node-meadery {
  border-color: rgba(138, 99, 62, 0.9);
}

.node-trail {
  border-color: rgba(74, 90, 99, 0.95);
}

.quests-columns,
.join-wrap {
  display: grid;
  gap: 1rem;
}

.split-grid {
  display: grid;
  gap: 1rem;
}

.archive-grid {
  display: grid;
  gap: 1rem;
}

.archive-item h2 {
  font-size: 1.65rem;
}

.auth-shell {
  min-height: calc(100vh - 76px);
  padding-top: 2.75rem;
}

.auth-panel {
  margin: 0 auto;
  max-width: 640px;
}

.member-actions {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.quest-mechanics {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.cta-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.8rem;
}

.cta-card {
  background: linear-gradient(155deg, var(--rh-panel), var(--rh-panel-inner));
  border: 1px solid var(--rh-border);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(216, 203, 184, 0.06), 0 16px 28px var(--rh-shadow);
  padding: clamp(1rem, 2.2vw, 1.4rem);
}

.cta-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.cta-card .btn {
  margin-top: 0.65rem;
}

.map-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.9rem;
}

.map-card {
  background: rgba(18, 17, 16, 0.55);
  border: 1px solid var(--rh-border);
  border-radius: 12px;
  padding: clamp(0.9rem, 2.2vw, 1.2rem);
}

.map-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.map-card ul {
  margin: 0.45rem 0 0.65rem 1.1rem;
  padding: 0;
}

.map-card li {
  margin-bottom: 0.22rem;
}

.map-placeholder {
  align-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(182, 73, 46, 0.15), transparent 30%),
    radial-gradient(circle at 75% 35%, rgba(138, 99, 62, 0.2), transparent 36%),
    rgba(0, 0, 0, 0.24);
  border: 1px dashed rgba(216, 203, 184, 0.3);
  border-radius: 10px;
  display: grid;
  margin-top: 0.7rem;
  min-height: 220px;
  padding: 1rem;
  text-align: center;
}

.map-placeholder p {
  margin: 0.15rem 0;
}

.code-snippet {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--rh-border);
  border-radius: 8px;
  color: var(--rh-text-secondary);
  font-size: 0.82rem;
  margin-top: 0.45rem;
  overflow-x: auto;
  padding: 0.6rem 0.7rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.coverage-table {
  border-collapse: collapse;
  margin-top: 0.8rem;
  width: 100%;
}

.coverage-table th,
.coverage-table td {
  border: 1px solid var(--rh-border);
  padding: 0.55rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.coverage-table th {
  color: var(--rh-text-light);
  font-weight: 600;
  background: rgba(138, 99, 62, 0.18);
}

.coverage-table td {
  color: var(--rh-text-secondary);
  background: rgba(18, 17, 16, 0.35);
}

.value-list {
  margin: 0.55rem 0 1rem 1.15rem;
  padding: 0;
}

.value-list li {
  margin-bottom: 0.4rem;
}

.join-form {
  background: rgba(18, 17, 16, 0.55);
  border: 1px solid var(--rh-border);
  border-radius: 12px;
  display: grid;
  gap: 0.5rem;
  padding: 0.95rem;
}

.join-form label {
  color: var(--rh-text-secondary);
  font-size: 0.92rem;
}

.join-form input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--rh-border);
  border-radius: 8px;
  color: var(--rh-text-light);
  font-family: inherit;
  font-size: 1rem;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
}

.join-form select,
.join-form textarea {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--rh-border);
  border-radius: 8px;
  color: var(--rh-text-light);
  font-family: inherit;
  font-size: 1rem;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
}

.join-form input:focus-visible {
  border-color: var(--rh-ember-hover);
  box-shadow: 0 0 0 2px rgba(214, 106, 69, 0.3);
  outline: none;
}

.join-form select:focus-visible,
.join-form textarea:focus-visible {
  border-color: var(--rh-ember-hover);
  box-shadow: 0 0 0 2px rgba(214, 106, 69, 0.3);
  outline: none;
}

.form-note {
  color: var(--rh-text-secondary);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.admin-flash {
  border-radius: 8px;
  border: 1px solid var(--rh-border);
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
}

.admin-flash-success {
  background: rgba(49, 66, 54, 0.35);
  border-color: rgba(49, 66, 54, 0.9);
  color: #d2e0d3;
}

.admin-flash-warning {
  background: rgba(138, 99, 62, 0.25);
  border-color: rgba(138, 99, 62, 0.85);
  color: #f0ddc5;
}

.admin-flash-error {
  background: rgba(182, 73, 46, 0.24);
  border-color: rgba(182, 73, 46, 0.8);
  color: #f6d8d0;
}

.metric-grid {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.metric-card {
  background: rgba(18, 17, 16, 0.55);
  border: 1px solid var(--rh-border);
  border-radius: 10px;
  padding: 0.8rem;
}

.metric-label {
  color: var(--rh-text-secondary);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.metric-value {
  color: #f2e6d4;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.15rem 0 0.2rem;
}

.admin-grid {
  display: grid;
  gap: 1rem;
}

.admin-card h2 {
  margin-bottom: 0.45rem;
}

.admin-card {
  background: linear-gradient(155deg, var(--rh-panel), var(--rh-panel-inner));
  border: 1px solid var(--rh-border);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(216, 203, 184, 0.06), 0 16px 28px var(--rh-shadow);
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.admin-form-grid {
  margin-top: 0.8rem;
}

.admin-access-banner {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(138, 99, 62, 0.65);
  border-radius: 10px;
  margin-bottom: 0.95rem;
  padding: 0.75rem 0.85rem;
}

.admin-access-title {
  color: #f2e6d4;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0.1rem 0 0.2rem;
}

.admin-access-note {
  color: var(--rh-text-secondary);
  margin: 0;
}

.admin-form-error {
  color: #f2b4a6;
}

.admin-tools-links {
  margin-top: 0.8rem;
}

.admin-danger {
  border-color: rgba(182, 73, 46, 0.65);
}

.table-scroll {
  margin-top: 0.8rem;
  overflow-x: auto;
}

.compact-table th,
.compact-table td {
  font-size: 0.88rem;
}

.status-pill {
  border: 1px solid var(--rh-border);
  border-radius: 999px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  text-transform: uppercase;
}

.status-active {
  background: rgba(49, 66, 54, 0.28);
  border-color: rgba(49, 66, 54, 0.85);
  color: #d2e0d3;
}

.status-suspended {
  background: rgba(182, 73, 46, 0.24);
  border-color: rgba(182, 73, 46, 0.8);
  color: #f6d8d0;
}

.site-footer {
  border-top: 1px solid var(--rh-border);
  margin-top: 3.1rem;
  padding: 1.8rem 0 3.8rem;
  position: relative;
}

.footer-ember {
  animation: emberFlicker 3.8s ease-in-out infinite;
  background: radial-gradient(circle, rgba(182, 73, 46, 0.45), rgba(182, 73, 46, 0.02) 68%, transparent 80%);
  height: 18px;
  left: 50%;
  position: absolute;
  top: -9px;
  transform: translateX(-50%);
  width: 220px;
}

.site-footer p {
  color: var(--rh-text-secondary);
  margin: 0.2rem 0;
}

.footer-legal-intro {
  color: var(--rh-text-light);
  margin-top: 0.8rem;
}

.legal-list {
  color: var(--rh-text-secondary);
  margin: 0.4rem 0 0.7rem 1.1rem;
  padding: 0;
}

.legal-list li {
  margin-bottom: 0.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-links a {
  border-bottom: 1px solid transparent;
  color: var(--rh-text-light);
  text-decoration: none;
  transition: color 220ms ease, border-color 220ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  border-color: var(--rh-ember-hover);
  color: #f8ede0;
}

.mobile-cta {
  background: linear-gradient(135deg, var(--rh-bronze), var(--rh-ember));
  border-top: 1px solid rgba(216, 203, 184, 0.25);
  bottom: 0;
  color: var(--rh-text-light);
  display: block;
  font-weight: 700;
  left: 0;
  min-height: 50px;
  padding: 0.78rem 0.9rem;
  position: fixed;
  right: 0;
  text-align: center;
  text-decoration: none;
  z-index: 30;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes emberFlicker {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1.08);
  }
}

@media (min-width: 760px) {
  .section,
  .panel {
    padding: 4rem 0;
  }

  .relic-layout {
    grid-template-columns: minmax(270px, 1fr) minmax(0, 1.7fr);
  }

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

  .relic-grid .relic-card:last-child {
    grid-column: 1 / -1;
  }

  .node-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quests-columns,
  .join-wrap,
  .split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quest-mechanics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .member-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (min-width: 980px) {
  .relic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .relic-grid .relic-card:last-child {
    grid-column: auto;
  }
}

@media (min-width: 900px) {
  .mobile-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 2rem;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: 3.25rem 0 3rem;
  }

  h1 {
    font-size: clamp(1.4rem, 8.1vw, 1.9rem);
  }
}
