/* =========================================
   GOOGLE FONT FALLBACK NOTE
   Main font loaded in HTML: MedievalSharp
   This CSS uses MedievalSharp as the main
   display font and readable fallbacks for body.
========================================= */

/* =========================================
   RESET
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
li,
a {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

/* =========================================
   ROOT VARIABLES
========================================= */
:root {
  --bg-dark: #120b07;
  --bg-main: #1b120c;
  --bg-soft: #24170f;

  --wood-dark: #2c1b12;
  --wood-medium: #5a3a24;
  --wood-light: #8b5a2b;

  --parchment: #f3e2c7;
  --parchment-dark: #e2cfa8;
  --parchment-stain: #d4bb8e;

  --gold: #c9a227;
  --gold-soft: #e0c46b;
  --wax-red: #8b1e1e;
  --fire-orange: #ff9a3c;
  --ember: #ffbf69;

  --text-light: #f7f0df;
  --text-soft: #d8ccb8;
  --text-dark: #2a170d;
  --text-muted: #9f927d;

  --border-dark: #3b2418;
  --shadow-dark: rgba(0, 0, 0, 0.45);
  --shadow-warm: rgba(255, 154, 60, 0.18);

  --font-display: "MedievalSharp", serif;
  --font-body: Georgia, "Times New Roman", serif;

  --container-width: 1120px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --transition-fast: 0.2s ease;
  --transition-medium: 0.35s ease;
}

/* =========================================
   BASE
========================================= */
body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(255, 166, 76, 0.07), transparent 25%),
    linear-gradient(180deg, #1d120c 0%, #140c08 100%);
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  position: relative;
  z-index: 2;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

/* =========================================
   DECORATIVE BACKGROUND
========================================= */
.bg-overlay,
.bg-texture,
.floating-dust {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-overlay {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 170, 80, 0.07), transparent 18%),
    radial-gradient(circle at 85% 15%, rgba(255, 191, 105, 0.05), transparent 16%),
    radial-gradient(circle at 50% 100%, rgba(255, 140, 60, 0.04), transparent 30%);
  z-index: 0;
}

.bg-texture {
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.12;
  z-index: 0;
}

.floating-dust {
  z-index: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 240, 200, 0.4) 1px, transparent 2px),
    radial-gradient(circle at 70% 20%, rgba(255, 240, 200, 0.35) 1px, transparent 2px),
    radial-gradient(circle at 30% 80%, rgba(255, 240, 200, 0.3) 1px, transparent 2px),
    radial-gradient(circle at 85% 70%, rgba(255, 240, 200, 0.25) 1px, transparent 2px);
  background-size: 320px 320px;
}

/* =========================================
   UTILITIES
========================================= */
.container {
  width: min(100% - 2rem, var(--container-width));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 96px 0;
  z-index: 2;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-kicker {
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--parchment);
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.section-heading p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.panel {
  background: linear-gradient(180deg, rgba(68, 42, 27, 0.92), rgba(43, 25, 16, 0.95));
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow:
    0 12px 30px var(--shadow-dark),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.parchment-panel {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 35%),
    radial-gradient(circle at bottom right, rgba(120, 72, 35, 0.07), transparent 30%),
    repeating-linear-gradient(
      0deg,
      rgba(120, 72, 35, 0.015) 0px,
      rgba(120, 72, 35, 0.015) 2px,
      transparent 2px,
      transparent 6px
    ),
    linear-gradient(180deg, #f2e1c0 0%, #e6cf9f 100%);
  color: var(--text-dark);
  border: 1px solid rgba(92, 56, 29, 0.22);
  border-radius: var(--radius-md);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.parchment-panel h3,
.parchment-panel p,
.parchment-panel li,
.parchment-panel .log-meta {
  color: var(--text-dark);
}

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-medium),
    background-color var(--transition-medium),
    border-color var(--transition-medium);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #1a0f09;
  background:
    linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  box-shadow:
    0 10px 24px rgba(201, 162, 39, 0.28),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}

.btn-primary:hover {
  box-shadow:
    0 14px 28px rgba(201, 162, 39, 0.36),
    0 0 22px rgba(255, 191, 105, 0.16);
}

.btn-secondary {
  color: var(--parchment);
  background:
    linear-gradient(180deg, rgba(110, 70, 44, 0.96), rgba(71, 43, 27, 0.98));
  border-color: rgba(201, 162, 39, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.btn-secondary:hover {
  border-color: rgba(224, 196, 107, 0.6);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(255, 154, 60, 0.1);
}

.btn-card {
  margin-top: 16px;
  background: linear-gradient(180deg, #5e3d28 0%, #42281a 100%);
  color: var(--parchment);
  border: 1px solid rgba(201, 162, 39, 0.25);
  align-self: flex-start;
}

.btn-card:hover {
  border-color: rgba(224, 196, 107, 0.55);
}

/* =========================================
   HEADER / NAV
========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(18, 11, 7, 0.72);
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--parchment);
}

.logo-icon {
  color: var(--gold-soft);
  font-size: 1.25rem;
}

.logo-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: linear-gradient(180deg, #593824 0%, #3f2518 100%);
  color: var(--parchment);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-list a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: color var(--transition-fast);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold-soft);
  transition: width var(--transition-medium);
}

.nav-list a:hover {
  color: var(--parchment);
}

.nav-list a:hover::after {
  width: 100%;
}

/* =========================================
   HERO
========================================= */
.hero-section {
  position: relative;
  padding: 140px 0 120px 0;
  color: #fff;

  background:
    linear-gradient(rgba(18,10,6,0.75), rgba(18,10,6,0.85)),
    url("images/tavern-hero.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-container {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
  gap: 32px;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--parchment);
  margin-bottom: 18px;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.2),
    0 8px 30px rgba(0,0,0,0.35);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  line-height: 1.3;
  color: var(--gold-soft);
  margin-bottom: 18px;
}

.hero-description {
  max-width: 56ch;
  font-size: 1.08rem;
  color: var(--text-soft);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  position: relative;
}

.hero-card-inner {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 28%),
    linear-gradient(180deg, rgba(75, 47, 30, 0.98), rgba(39, 23, 15, 0.98));
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(255, 154, 60, 0.05);
}

.card-label {
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.hero-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-name {
  font-family: var(--font-display);
  color: var(--parchment);
  min-width: 90px;
}

.stat-value {
  color: var(--text-soft);
  text-align: right;
}

/* =========================================
   PROFILE
========================================= */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.profile-grid h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.profile-grid p {
  font-size: 1rem;
  line-height: 1.75;
}

/* =========================================
   QUEST WALL UPGRADE
========================================= */
.quest-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  padding: 34px;
  border-radius: 26px;
  background:
    linear-gradient(rgba(28, 16, 10, 0.55), rgba(28, 16, 10, 0.55)),
    linear-gradient(90deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 120px),
    linear-gradient(180deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 120px),
    linear-gradient(180deg, #4b2d1d 0%, #2d190f 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.03),
    0 22px 46px rgba(0, 0, 0, 0.35);
}

.quest-wall::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 162, 39, 0.08);
  border-radius: 20px;
  pointer-events: none;
}

.quest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(92, 56, 29, 0.24);

  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.15), transparent 28%),
    linear-gradient(180deg, #f3e2c7 0%, #e3cc9c 100%);

  color: var(--text-dark);

  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.quest-card-1 {
  transform: rotate(-1.3deg);
}

.quest-card-2 {
  transform: rotate(1.1deg);
}

.quest-card-3 {
  transform: rotate(0.8deg);
}

.quest-card-4 {
  transform: rotate(-0.9deg);
}

.quest-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #b33a2b 40%, #7d1d15 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.18);
}

.quest-card::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #d6c39b 35%, #9d8257 100%);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.25),
    0 2px 4px rgba(0,0,0,0.2);
}

.quest-card:hover {
  transform: translateY(-8px) rotate(0deg) !important;
  box-shadow:
    0 22px 36px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(255, 191, 105, 0.12);
}

.quest-image-wrap {
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  background: linear-gradient(180deg, #cbb38b 0%, #a48258 100%);
}

.quest-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.quest-card:hover .quest-image {
  transform: scale(1.05);
}

.quest-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.quest-type {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(139, 30, 30, 0.08);
  color: #6d1717;
  border: 1px solid rgba(139, 30, 30, 0.15);
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.quest-icon {
  font-size: 1.35rem;
}

.quest-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.quest-meta {
  color: #5f3b22;
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.quest-description {
  color: #3f2415;
  line-height: 1.75;
  flex-grow: 1;
}

.btn-card {
  margin-top: 16px;
  align-self: flex-start;
}

@media (max-width: 980px) {
  .quest-wall {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .quest-card-1,
  .quest-card-2,
  .quest-card-3,
  .quest-card-4 {
    transform: rotate(0deg);
  }
}

/* =========================================
   CODEX
========================================= */
.codex-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.codex-entry h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.codex-entry p {
  line-height: 1.75;
}

/* =========================================
   SKILLS
========================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 34px;
}

.skill-panel h3 {
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.skill-list {
  display: grid;
  gap: 10px;
}

.skill-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
}

.skill-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-soft);
}

.stat-bars {
  background:
    linear-gradient(180deg, rgba(59, 36, 24, 0.92), rgba(34, 21, 14, 0.95));
  border: 1px solid rgba(201, 162, 39, 0.16);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
}

.stat-bar + .stat-bar {
  margin-top: 18px;
}

.stat-bar span {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--parchment);
  margin-bottom: 8px;
}

.bar {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fire-orange), var(--gold-soft));
  box-shadow: 0 0 12px rgba(255, 154, 60, 0.25);
}

.fill.systems {
  width: 92%;
}

.fill.economy {
  width: 88%;
}

.fill.mechanics {
  width: 85%;
}

.fill.programming {
  width: 73%;
}

.fill.worldbuilding {
  width: 84%;
}

/* =========================================
   ADVENTURER'S LOG
========================================= */
.log-timeline {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
}

.log-entry h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.log-meta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: #6b472c;
  margin-bottom: 10px;
}

.log-entry p:last-child {
  line-height: 1.75;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* =========================================
   CONTACT
========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--gold-soft);
}

.parchment-panel.contact-card h3 {
  color: var(--text-dark);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.contact-list a:hover {
  color: var(--gold-soft);
  transform: translateX(4px);
}

.contact-card p {
  line-height: 1.75;
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  background: rgba(18, 11, 7, 0.68);
  padding: 28px 0;
}

.footer-container {
  text-align: center;
  display: grid;
  gap: 6px;
}

.footer-container p:first-child {
  font-family: var(--font-display);
  color: var(--gold-soft);
}

.footer-container p:nth-child(2) {
  color: var(--parchment);
}

.footer-container p:last-child {
  color: var(--text-muted);
}

/* =========================================
   SECTION BACKGROUND RHYTHM
========================================= */
.profile-section,
.codex-section,
.contact-section {
  background: linear-gradient(180deg, rgba(28, 18, 12, 0.42), rgba(22, 13, 9, 0.2));
}

.quests-section,
.skills-section,
.log-section {
  background: linear-gradient(180deg, rgba(42, 26, 17, 0.28), rgba(18, 11, 7, 0.1));
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 980px) {
  .hero-container,
  .profile-grid,
  .quest-board,
  .codex-layout,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-container {
    gap: 28px;
  }

  .hero-card {
    max-width: 680px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: relative;
  }

  .nav-list {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 240px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(66, 40, 26, 0.98), rgba(32, 18, 11, 0.98));
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.34);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav:hover .nav-list,
  .site-nav:focus-within .nav-list {
    display: flex;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 78px 0;
  }

  .hero-section {
    padding: 84px 0 68px;
  }

  .header-container {
    min-height: 72px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 10vw, 3.6rem);
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description,
  .section-heading p,
  .profile-grid p,
  .quest-description,
  .codex-entry p,
  .log-entry p,
  .contact-card p {
    font-size: 0.98rem;
  }

  .hero-actions,
  .resume-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .site-logo {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.2rem, var(--container-width));
  }

  .panel,
  .quest-card,
  .hero-card-inner,
  .stat-bars {
    padding: 18px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .quest-card h3,
  .log-entry h3,
  .profile-grid h3,
  .codex-entry h3,
  .skill-panel h3,
  .contact-card h3 {
    font-size: 1.2rem;
  }

  /* =========================================
   JS STATES
========================================= */
body.menu-open {
  overflow: hidden;
}

.site-header.scrolled {
  background: rgba(18, 11, 7, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.nav-list a.active-link {
  color: var(--gold-soft);
}

.nav-list a.active-link::after {
  width: 100%;
}

/* Mobile nav open state */
@media (max-width: 980px) {
  .nav-list.nav-open {
    display: flex;
  }
}

/* Scroll reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.hero-portrait-wrap {
  width: 170px;
  height: 170px;
  margin: 0 auto 20px;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-soft), var(--wood-medium));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(255, 191, 105, 0.12);
}

.quest-image-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 18px;
   border: 2px solid rgba(0,0,0,0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  background: linear-gradient(180deg, #cbb38b 0%, #a48258 100%);
}

.quest-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.quest-card:hover .quest-image {
  transform: scale(1.05);
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 3px solid rgba(255, 245, 220, 0.45);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   PROJECT PAGE
========================================= */
.project-page-container {
  max-width: 980px;
}

.back-btn {
  margin-bottom: 24px;
}

.project-banner {
  overflow: hidden;
  border-radius: 18px;
  border: 2px solid rgba(201, 162, 39, 0.18);
  box-shadow: 0 18px 36px rgba(0,0,0,0.32);
  margin-bottom: 28px;
}

.project-banner-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.project-page-intro {
  margin-bottom: 28px;
}

.project-page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 10px;
}

.project-page-meta {
  color: #5f3b22;
  margin-bottom: 14px;
  font-size: 1rem;
}

.project-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-page-grid h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* =========================================
   TAVERN FIRELIGHT EFFECT
========================================= */

.firelight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(circle at 30% 40%, rgba(255,180,80,0.15), transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(255,120,40,0.12), transparent 65%),
    radial-gradient(circle at 50% 80%, rgba(255,160,70,0.1), transparent 70%);

  animation: fireGlow 6s infinite alternate ease-in-out;
}

@keyframes fireGlow {

  0% {
    opacity: 0.7;
    filter: blur(8px);
  }

  50% {
    opacity: 0.85;
    filter: blur(10px);
  }

  100% {
    opacity: 0.75;
    filter: blur(9px);
  }

}

/* =========================================
   TAVERN DUST PARTICLES
========================================= */

.dust-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.dust {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;

  background: rgba(255, 200, 120, 0.35);

  filter: blur(0.5px);

  animation: dustFloat linear infinite;
}

@keyframes dustFloat {

  0% {
    transform: translateY(0px) translateX(0px);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(-300px) translateX(40px);
    opacity: 0;
  }

}


@media (max-width: 800px) {
  .project-banner-image {
    height: 260px;
  }

  .project-page-grid {
    grid-template-columns: 1fr;
  }
}

}