/* ============================================================
   Big Walk Guide — Hand-drawn Adventure Journal Theme
   Inspired by Big Walk (House House / Panic)
   ============================================================ */

:root {
  /* Palette — warm natural outdoor */
  --ocean: #3d7ea6;
  --ocean-dark: #2e6e94;
  --ocean-light: #6ba3c4;
  --forest: #5c8a4f;
  --forest-dark: #4a7a3f;
  --sand: #f2e8d5;          /* background paper */
  --sand-deep: #e8dcc3;
  --paper: #fdf8ee;         /* card paper */
  --paper-edge: #d9c9a8;
  --sunset: #e87a3e;        /* primary accent */
  --sunset-dark: #d2652a;
  --yellow: #f2c14e;        /* collectibles */
  --clay: #c46a4a;          /* warnings / badges */
  --ink: #3e3a33;           /* text (warm, not pure black) */
  --ink-soft: #6d6557;
  --ink-faint: #978c79;
  --line: #cbbd9f;
  --shadow-soft: 0 6px 18px rgba(93, 74, 41, 0.12);
  --shadow-lift: 0 12px 28px rgba(93, 74, 41, 0.18);
  --font-head: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  /* hand-drawn organic border trick */
  --border-organic: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--sand);
  background-image:
    radial-gradient(rgba(93, 74, 41, 0.05) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 24px 24px, 160px 160px;
  line-height: 1.7;
  font-size: 16px;
}

/* ---------- decorative background doodles ---------- */
.bg-doodle {
  position: fixed;
  font-size: 2.6rem;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.bg-doodle--cloud { top: 8%; left: 3%; animation: drift 26s ease-in-out infinite alternate; }
.bg-doodle--cloud2 { top: 20%; right: 4%; animation: drift 34s ease-in-out infinite alternate-reverse; }
.bg-doodle--bird { bottom: 12%; left: 6%; opacity: 0.12; }
@keyframes drift {
  from { transform: translateX(-8px) rotate(-4deg); }
  to   { transform: translateX(14px) rotate(5deg); }
}

/* ---------- links ---------- */
a { color: var(--ocean-dark); text-decoration-color: var(--ocean-light); text-underline-offset: 3px; }
a:hover { color: var(--sunset-dark); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); }

h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: 0.2px;
}
h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 700;
  margin: 2.6rem 0 1rem;
  padding-bottom: 0.4rem;
  position: relative;
  display: inline-block;
}
h2::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M2 5 Q 10 1, 20 4 T 40 4 T 60 4 T 80 4 T 100 4 T 118 4' stroke='%23e87a3e' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
h3 { font-size: 1.15rem; font-weight: 700; margin: 1.8rem 0 0.6rem; }
h4 { font-size: 1rem; font-weight: 700; margin: 1.2rem 0 0.4rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.1rem 1.4rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 800; }
em { font-style: italic; }

.hand { font-family: var(--font-hand); color: var(--sunset-dark); }

/* ---------- layout ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.2rem 3rem;
  position: relative;
  z-index: 1;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2.2rem;
  padding: 1.8rem 0 0;
  align-items: start;
}

/* ---------- header / nav card ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.9rem 1.2rem 0;
  background: linear-gradient(to bottom, var(--sand) 82%, rgba(242,232,213,0));
}
.nav-card {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  border: 2px solid var(--paper-edge);
  border-radius: var(--border-organic);
  padding: 0.55rem 1.1rem;
  box-shadow: var(--shadow-soft);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
}
.brand-mark { font-size: 1.35rem; }
.brand-text em { font-style: normal; color: var(--sunset); }
.header-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.header-nav a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: all 0.18s ease;
}
.header-nav a:hover { color: var(--ocean-dark); background: rgba(61,126,166,0.1); transform: translateY(-1px); }
.header-nav a.active {
  color: #fff;
  background: var(--ocean);
  box-shadow: 0 3px 8px rgba(46,110,148,0.35);
}
.menu-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; margin-left: auto; }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--ink-faint);
  padding: 1rem 0 0.2rem;
  margin-bottom: 0.4rem;
}
.breadcrumb a { color: var(--ocean-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- hero (homepage) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2.6rem 0 1.4rem;
}
.hero-eyebrow {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--forest-dark);
  margin-bottom: 0.2rem;
}
.hero h1 { margin-bottom: 0.4rem; }
.hero-tagline { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 1.4rem; max-width: 34rem; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-art { position: relative; }
.hero-frame {
  background: var(--paper);
  border: 2px solid var(--paper-edge);
  border-radius: var(--border-organic);
  padding: 0.7rem 0.7rem 1rem;
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.6deg);
  transition: transform 0.25s ease;
}
.hero-frame:hover { transform: rotate(0deg) scale(1.01); }
.hero-frame img {
  width: 100%;
  border-radius: 20px 8px 18px 9px;
  display: block;
  border: 1px solid var(--paper-edge);
}
.hero-caption {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  text-align: center;
  color: var(--ink-soft);
  padding-top: 0.4rem;
}
.hero-note {
  position: absolute;
  font-family: var(--font-hand);
  background: var(--paper);
  border: 1.5px dashed var(--sunset);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 1.02rem;
  box-shadow: var(--shadow-soft);
  transform: rotate(-6deg);
}
.hero-note--1 { top: -0.9rem; right: -0.4rem; color: var(--sunset-dark); }
.hero-note--2 { bottom: 3.2rem; left: -1rem; transform: rotate(4deg); color: var(--forest-dark); border-color: var(--forest); }

/* ---------- buttons ---------- */
.hero-btn, .btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.62rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--sunset-dark);
  background: var(--sunset);
  color: #fff;
  box-shadow: 0 4px 0 var(--sunset-dark), var(--shadow-soft);
  transition: all 0.15s ease;
}
.hero-btn:hover, .btn:hover {
  background: var(--sunset-dark);
  color: #fff;
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--sunset-dark), var(--shadow-soft);
}
.btn--secondary {
  background: var(--ocean);
  border-color: var(--ocean-dark);
  box-shadow: 0 4px 0 var(--ocean-dark), var(--shadow-soft);
}
.btn--secondary:hover { background: var(--ocean-dark); box-shadow: 0 2px 0 var(--ocean-dark), var(--shadow-soft); }

/* ---------- game info bar ---------- */
.game-info-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  background: var(--paper);
  border: 2px solid var(--paper-edge);
  border-radius: var(--border-organic);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  margin: 1.6rem 0 0.6rem;
}
.info-cell { text-align: center; }
.info-cell .label {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-faint);
  margin-bottom: 0.15rem;
}
.info-cell .value { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--ocean-dark); }
.info-cell .value small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; color: var(--ink-soft); }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
  margin: 1.4rem 0 0.6rem;
}
.card {
  background: var(--paper);
  border: 2px solid var(--paper-edge);
  border-radius: var(--border-organic);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin: 0.35rem 0 0.45rem; font-size: 1.06rem; }
.card p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.7rem; }
.card-icon { font-size: 1.7rem; display: inline-block; }
.card-link {
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--sunset-dark);
}
.card-link:hover { text-decoration: underline; }

/* nav-entry cards (homepage quick links) */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin: 1.4rem 0 0.6rem;
}
.entry-card {
  background: var(--paper);
  border: 2px solid var(--paper-edge);
  border-radius: var(--border-organic);
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.entry-card:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: var(--shadow-lift); color: var(--ink); }
.entry-card .card-icon { font-size: 1.9rem; }
.entry-card h3 { margin: 0.4rem 0 0.35rem; color: var(--ocean-dark); }
.entry-card p { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- explorer notes (info boxes) ---------- */
.info-box, .warning-box, .tip-box {
  border-radius: var(--border-organic);
  padding: 0.95rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.92rem;
  position: relative;
}
.info-box { background: rgba(61,126,166,0.09); border: 2px dashed var(--ocean-light); }
.warning-box { background: rgba(196,106,74,0.09); border: 2px dashed var(--clay); }
.tip-box { background: rgba(92,138,79,0.09); border: 2px dashed var(--forest); }
.info-box strong, .warning-box strong, .tip-box strong { display: block; margin-bottom: 0.25rem; font-family: var(--font-head); font-size: 0.95rem; }
.info-box strong { color: var(--ocean-dark); }
.warning-box strong { color: var(--clay); }
.tip-box strong { color: var(--forest-dark); }

/* ---------- sidebar ---------- */
.sidebar { position: sticky; top: 90px; }
.nav-section {
  background: var(--paper);
  border: 2px solid var(--paper-edge);
  border-radius: var(--border-organic);
  padding: 0.95rem 1.05rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
}
.nav-section h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--forest-dark);
  border-bottom: 2px solid var(--sand-deep);
  padding-bottom: 0.4rem;
  margin: 0 0 0.55rem;
}
.nav-section ul { list-style: none; margin: 0; }
.nav-section li { margin-bottom: 0.3rem; }
.nav-section a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.nav-section a:hover { color: var(--sunset-dark); text-decoration: underline; }

.main-content { min-width: 0; }
.main-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px 7px 16px 8px;
  border: 2px solid var(--paper-edge);
  box-shadow: var(--shadow-soft);
  margin: 0.9rem 0;
}
.img-caption { font-family: var(--font-hand); font-size: 1rem; color: var(--ink-faint); margin: -0.4rem 0 1.2rem; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.9rem; background: var(--paper); border: 2px solid var(--paper-edge); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); }
th { background: var(--ocean); color: #fff; font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.8px; padding: 0.6rem 0.75rem; text-align: left; }
td { padding: 0.55rem 0.75rem; border-top: 1px solid var(--sand-deep); vertical-align: middle; }
tr:nth-child(even) td { background: rgba(242,232,213,0.4); }
.ach-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--paper-edge); }

/* ---------- FAQ (homepage only) ---------- */
details.faq-item {
  background: var(--paper);
  border: 2px solid var(--paper-edge);
  border-radius: var(--border-organic);
  padding: 0.75rem 1.1rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow-soft);
}
details.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::before { content: '🌿 '; }
details.faq-item[open] summary { color: var(--ocean-dark); }
details.faq-item p { font-size: 0.92rem; color: var(--ink-soft); margin: 0.6rem 0 0.2rem; }

/* ---------- video embed ---------- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 18px 7px 16px 8px;
  border: 2px solid var(--paper-edge);
  box-shadow: var(--shadow-soft);
  margin: 1.2rem 0 0.4rem;
}
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-source { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 1.4rem; }

/* ---------- related guides ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 0.8rem;
}

/* ---------- steam CTA panel ---------- */
.steam-cta {
  background: linear-gradient(135deg, var(--paper) 0%, #fdf3e0 100%);
  border: 2px solid var(--paper-edge);
  border-radius: var(--border-organic);
  padding: 1.5rem 1.6rem;
  margin: 2.2rem 0 0.6rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.steam-cta .cta-text { flex: 1; min-width: 220px; }
.steam-cta .cta-text h3 { margin: 0 0 0.3rem; }
.steam-cta .cta-text p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- feedback note ---------- */
.feedback-note {
  margin-top: 2.4rem;
  padding: 0.85rem 1.2rem;
  background: rgba(242,193,78,0.15);
  border: 2px dashed var(--yellow);
  border-radius: var(--border-organic);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--sand-deep);
  border-top: 3px solid var(--paper-edge);
  margin-top: 2rem;
  padding: 2rem 1.2rem 1.6rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  justify-content: space-between;
}
.footer-col { min-width: 150px; }
.footer-col strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--forest-dark);
  margin-bottom: 0.5rem;
}
.footer-col a { display: block; font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; padding: 0.14rem 0; }
.footer-col a:hover { color: var(--sunset-dark); text-decoration: underline; }
.footer-copy { max-width: 1080px; margin: 1.4rem auto 0; font-size: 0.75rem; color: var(--ink-faint); text-align: center; }

/* ---------- misc ---------- */
.game-divider { text-align: center; color: var(--ink-faint); letter-spacing: 6px; margin: 1.2rem 0; }
.page-intro { font-size: 1.05rem; color: var(--ink-soft); }
.last-updated { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.tag--common { background: rgba(92,138,79,0.15); color: var(--forest-dark); }
.tag--rare { background: rgba(242,193,78,0.25); color: #8a6a1c; }
.tag--ultra { background: rgba(196,106,74,0.15); color: var(--clay); }
.tag--hidden { background: rgba(61,126,166,0.12); color: var(--ocean-dark); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 4rem 0; }
.notfound .big { font-size: 4.5rem; }
.notfound h1 { margin: 0.6rem 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .entry-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .entry-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .header-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.6rem 0 0.2rem;
    gap: 0.2rem;
  }
  .header-nav.open { display: flex; }
  .nav-card { flex-wrap: wrap; }
  .game-info-bar { grid-template-columns: repeat(2, 1fr); }
}
