/* =====================================================================
   WildGrove - Adventure, naturally.
   Nature / forest field-journal aesthetic.
   Paper, forest green, moss, bark. Fraunces serif + Nunito Sans body.
   ===================================================================== */

:root {
  --paper:      #f4f1e6;
  --paper-2:    #ece6d3;
  --paper-3:    #e3dbc2;
  --forest:     #2f6b3c;
  --forest-dk:  #23512d;
  --forest-xdk: #1a3d22;
  --moss:       #7a9b57;
  --moss-lt:    #9cb87a;
  --bark:       #6b4f34;
  --bark-lt:    #8a6d4c;
  --ink:        #37311f;
  --ink-soft:   #5c543c;
  --berry:      #a24b4b;
  --sun:        #d9a34a;

  --shadow-soft: 0 18px 40px -24px rgba(45, 60, 30, 0.55);
  --shadow-card: 0 12px 30px -18px rgba(58, 45, 25, 0.45);
  --ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--moss);

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;
  --r-blob: 62% 38% 55% 45% / 55% 48% 52% 45%;

  --wrap: 1120px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.65;
  background-color: var(--paper);
  /* layered organic paper texture, all inline gradients (offline-safe) */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(122, 155, 87, 0.12), transparent 38%),
    radial-gradient(circle at 88% 8%,  rgba(47, 107, 60, 0.10), transparent 42%),
    radial-gradient(circle at 78% 92%, rgba(107, 79, 52, 0.09), transparent 46%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
}

.leaf-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

img { max-width: 100%; }

a { color: var(--forest); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  color: var(--forest-xdk);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }

/* ---------- decorative leaf icon ---------- */
.leaf { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; fill: currentColor; }

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(244, 241, 230, 0.94), rgba(244, 241, 230, 0.74));
  border-bottom: 1px solid rgba(107, 79, 52, 0.16);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--serif); font-weight: 600; font-size: 1.42rem;
  color: var(--forest-xdk); letter-spacing: -0.02em;
}
.brand .mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  color: var(--paper);
  background: radial-gradient(circle at 35% 30%, var(--moss), var(--forest) 70%);
  border-radius: 50% 45% 52% 48% / 48% 52% 46% 54%;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25), var(--shadow-card);
}
.brand .mark .leaf { width: 24px; height: 24px; transform: rotate(-14deg); }
.brand small { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bark-lt); }

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  font-weight: 600; font-size: 0.94rem; color: var(--ink-soft);
  padding: 9px 15px; border-radius: 999px; transition: 0.18s;
  position: relative;
}
.nav-links a:hover { color: var(--forest-dk); background: rgba(122, 155, 87, 0.16); }
.nav-links a[aria-current="page"] {
  color: var(--forest-xdk);
  background: rgba(47, 107, 60, 0.12);
}
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px;
  background: var(--moss); border-radius: 2px;
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 0.96rem;
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
  white-space: nowrap;
}
.btn-discord {
  color: var(--paper);
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dk) 100%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.16);
}
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(35, 81, 45, 0.6); }
.btn-discord .leaf { width: 18px; height: 18px; }
.btn-ghost {
  color: var(--forest-dk); background: transparent;
  box-shadow: inset 0 0 0 2px rgba(47, 107, 60, 0.4);
}
.btn-ghost:hover { background: rgba(47, 107, 60, 0.08); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }

/* mobile nav collapse */
.nav-toggle { display: none; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding: 78px 0 96px; overflow: hidden; }
.hero-blob {
  position: absolute; z-index: 0; filter: blur(2px); opacity: 0.9;
  animation: drift 18s ease-in-out infinite;
}
.hero-blob.b1 {
  width: 460px; height: 460px; right: -120px; top: -60px;
  background: radial-gradient(circle at 40% 35%, var(--moss-lt), var(--moss) 60%, var(--forest) 100%);
  border-radius: var(--r-blob); opacity: 0.42;
}
.hero-blob.b2 {
  width: 300px; height: 300px; left: -90px; bottom: -80px;
  background: radial-gradient(circle at 60% 40%, #cdd9b3, var(--moss-lt));
  border-radius: 58% 42% 46% 54% / 44% 56% 44% 56%; opacity: 0.5;
  animation-delay: -6s;
}
@keyframes drift {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(-16px, 20px) rotate(8deg); }
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bark);
  background: var(--paper-2); padding: 7px 15px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(107, 79, 52, 0.18);
}
.eyebrow .leaf { width: 15px; height: 15px; color: var(--moss); }

.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5rem);
  margin: 22px 0 12px;
}
.hero h1 em { font-style: italic; color: var(--forest); font-weight: 400; }
.hero-lede {
  font-size: 1.22rem; color: var(--ink-soft); max-width: 34ch;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 0.86rem; color: var(--bark-lt); display: flex; align-items: center; gap: 7px; }
.hero-note .leaf { width: 14px; height: 14px; color: var(--moss); }

/* hero illustration card - a "specimen" panel */
.specimen {
  position: relative; background: var(--paper);
  border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-soft);
  border: 1px solid rgba(107, 79, 52, 0.16);
  transform: rotate(1.6deg);
}
.specimen::before {
  content: ""; position: absolute; inset: 12px; border-radius: calc(var(--r-lg) - 12px);
  border: 1.5px dashed rgba(122, 155, 87, 0.5); pointer-events: none;
}
.specimen-tag {
  position: absolute; top: -14px; left: 24px;
  background: var(--bark); color: var(--paper);
  font-family: var(--serif); font-style: italic; font-size: 0.9rem;
  padding: 5px 16px; border-radius: 999px; box-shadow: var(--shadow-card);
}
.specimen-scene {
  height: 240px; border-radius: var(--r-md); position: relative; overflow: hidden;
  background:
    linear-gradient(to bottom, #dfe9cb 0%, #eef1e0 62%, #e8dfc6 100%);
}
.specimen-hill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: radial-gradient(120% 100% at 50% 100%, var(--moss) 0%, var(--forest) 90%);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
}
.specimen-sun {
  position: absolute; top: 26px; right: 34px; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle, var(--sun), #e9be6f);
  box-shadow: 0 0 34px 6px rgba(217, 163, 74, 0.4);
}
.specimen-tree { position: absolute; bottom: 34%; color: var(--forest-dk); }
.specimen-tree.t1 { left: 26px; width: 56px; }
.specimen-tree.t2 { left: 92px; bottom: 40%; width: 40px; color: var(--forest); }
.specimen-tree.t3 { right: 40px; width: 48px; color: var(--forest-dk); }
.specimen-caption { margin-top: 18px; font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 0.98rem; text-align: center; }

/* =====================================================================
   SECTION SCAFFOLD
   ===================================================================== */
.section { padding: 72px 0; position: relative; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  font-family: var(--serif); font-style: italic; font-size: 1.06rem; color: var(--bark);
}
.section-kicker .rule { width: 34px; height: 1.5px; background: var(--moss); display: inline-block; }

.band-moss { background: linear-gradient(180deg, rgba(122,155,87,0.14), rgba(122,155,87,0.06)); }
.band-paper2 { background: var(--paper-2); }

/* leafy divider between sections */
.vine-divider { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--moss); padding: 6px 0; }
.vine-divider .rule { height: 1.5px; width: min(180px, 22vw); background: linear-gradient(to right, transparent, var(--moss), transparent); }
.vine-divider .leaf { width: 22px; height: 22px; }

/* =====================================================================
   SERVICES - field guide cards
   ===================================================================== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px;
}
.svc-card {
  position: relative; background: var(--paper);
  border-radius: var(--r-md); padding: 26px 24px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(107, 79, 52, 0.14);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.svc-card::after {
  content: ""; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px;
  background: radial-gradient(circle at 40% 60%, rgba(122,155,87,0.22), transparent 70%);
  border-radius: 50%;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.svc-card .corner-leaf {
  position: absolute; right: 16px; bottom: 12px; width: 42px; height: 42px;
  color: rgba(122, 155, 87, 0.28); transform: rotate(-18deg);
}
.svc-icon {
  display: grid; place-items: center; width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--paper-2), #dfe6cd);
  border-radius: 50% 46% 54% 48% / 50% 54% 46% 50%;
  box-shadow: inset 0 0 0 1.5px rgba(122,155,87,0.4);
  margin-bottom: 16px;
}
.svc-icon img { width: 40px; height: 40px; object-fit: contain; display: block; }
.svc-card h3 { font-size: 1.34rem; margin-bottom: 8px; }
.svc-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; position: relative; z-index: 1; }
.svc-index {
  position: absolute; top: 18px; right: 20px; z-index: 1;
  font-family: var(--serif); font-style: italic; font-size: 0.86rem; color: var(--bark-lt);
}

/* =====================================================================
   TRAIL / WHY US strip
   ===================================================================== */
.trail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.trail-step { position: relative; text-align: center; padding: 12px; }
.trail-marker {
  width: 66px; height: 66px; margin: 0 auto 16px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.5rem; color: var(--paper);
  background: radial-gradient(circle at 36% 30%, var(--moss), var(--forest) 72%);
  border-radius: 54% 46% 50% 50% / 46% 52% 48% 54%;
  box-shadow: var(--shadow-card);
}
.trail-step h3 { font-size: 1.28rem; }
.trail-step p { color: var(--ink-soft); font-size: 0.98rem; }
.trail-connector { position: relative; }
@media (min-width: 760px) {
  .trail-step:not(:last-child)::after {
    content: ""; position: absolute; top: 33px; right: -13px; width: 26px; height: 2px;
    background: repeating-linear-gradient(to right, var(--moss) 0 6px, transparent 6px 12px);
  }
}

/* =====================================================================
   TESTIMONIALS - field notes
   ===================================================================== */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.note-card {
  background: var(--paper);
  border-radius: var(--r-md); padding: 26px 26px 22px; position: relative;
  box-shadow: var(--shadow-card);
  border-left: 5px solid var(--moss);
}
.note-card:nth-child(2) { transform: rotate(-1deg); border-left-color: var(--bark-lt); }
.note-card:nth-child(3) { transform: rotate(0.8deg); border-left-color: var(--forest); }
.note-quote { font-family: var(--serif); font-style: italic; font-size: 1.14rem; color: var(--ink); line-height: 1.5; margin-bottom: 18px; }
.note-quote::before { content: "\201C"; font-size: 2.4rem; line-height: 0; color: var(--moss); vertical-align: -0.35em; margin-right: 4px; }
.note-by { display: flex; align-items: center; gap: 12px; }
.note-av {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: var(--paper); font-weight: 700; font-family: var(--serif); flex: none;
  background: linear-gradient(135deg, var(--moss), var(--forest));
}
.note-name { font-weight: 700; color: var(--forest-xdk); font-size: 0.98rem; }
.note-role { font-size: 0.82rem; color: var(--bark-lt); }
.note-placeholder {
  position: absolute; top: 16px; right: 18px; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bark-lt); background: var(--paper-2);
  padding: 3px 9px; border-radius: 999px;
}

/* =====================================================================
   RAIDS
   ===================================================================== */
.raid-layout { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.boss-list {
  display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: 92px;
}
.boss-chip {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--paper); border: 1px solid rgba(107,79,52,0.16);
  border-radius: var(--r-md); padding: 14px 16px; cursor: pointer;
  font-family: var(--sans); transition: 0.18s; color: var(--ink);
  box-shadow: var(--shadow-card);
}
.boss-chip:hover { transform: translateX(3px); border-color: var(--moss); }
.boss-chip .boss-art {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--paper-2), #dfe6cd);
  border-radius: 52% 48% 46% 54% / 50% 52% 48% 50%;
  overflow: hidden;
}
.boss-chip .boss-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.boss-chip .boss-name { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; color: var(--forest-xdk); }
.boss-chip .boss-meta { font-size: 0.78rem; color: var(--bark-lt); }
.boss-chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dk) 100%);
  border-color: var(--forest-dk);
}
.boss-chip[aria-pressed="true"] .boss-name,
.boss-chip[aria-pressed="true"] .boss-meta { color: var(--paper); }
.boss-chip[aria-pressed="true"] .boss-art { background: rgba(255,255,255,0.16); }

.counter-panel {
  background: var(--paper); border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(107,79,52,0.14);
  position: relative; overflow: hidden;
}
.counter-panel::before {
  content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(122,155,87,0.16), transparent 70%); border-radius: 50%;
}
.counter-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; position: relative; }
.counter-head .boss-art-lg {
  width: 68px; height: 68px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--paper-2), #dfe6cd);
  border-radius: 54% 46% 50% 50% / 46% 54% 48% 52%;
  box-shadow: inset 0 0 0 1.5px rgba(122,155,87,0.4);
  overflow: hidden;
}
.counter-head .boss-art-lg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.counter-head h2 { font-size: 2.1rem; margin: 0; }
.counter-head .tier-tag {
  display: inline-flex; gap: 8px; margin-top: 6px; flex-wrap: wrap;
}
.type-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; background: rgba(47,107,60,0.12); color: var(--forest-dk);
}
.type-icon { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; flex: none; }
.type-icon-sm { width: 14px; height: 14px; }
.counter-name .ctype {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--sans); font-weight: 600; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--moss);
}
.type-pill.tier { background: rgba(162,75,75,0.14); color: var(--berry); }
.type-pill.cp { background: var(--paper-2); color: var(--bark); }

.counter-intro { color: var(--ink-soft); margin: 14px 0 22px; position: relative; }

.counter-table { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.counter-row {
  display: grid; grid-template-columns: 30px 1.4fr 1.7fr 132px; gap: 16px; align-items: center;
  background: var(--paper-2); border-radius: var(--r-sm); padding: 14px 18px;
  transition: 0.16s;
}
.counter-row:hover { background: #e6ddc4; }
.counter-rank { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--bark-lt); }
.counter-name { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--forest-xdk); }
.counter-move { font-size: 0.92rem; color: var(--ink-soft); }
.rating-wrap { display: flex; align-items: center; gap: 10px; }
.rating-bar { flex: 1; height: 9px; border-radius: 999px; background: rgba(107,79,52,0.16); overflow: hidden; }
.rating-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--moss), var(--forest)); }
.rating-num { font-weight: 700; font-size: 0.9rem; color: var(--forest-dk); min-width: 26px; text-align: right; }

.table-head { display: grid; grid-template-columns: 30px 1.4fr 1.7fr 132px; gap: 16px; padding: 0 18px 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bark-lt); font-weight: 700; }

/* =====================================================================
   FRIENDS
   ===================================================================== */
.friend-layout { display: grid; grid-template-columns: 340px 1fr; gap: 34px; align-items: start; }
.friend-form-card {
  background: var(--paper); border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(107,79,52,0.14);
  position: sticky; top: 92px;
}
.friend-form-card h3 { font-size: 1.5rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--bark); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper-2); border: 1.5px solid rgba(107,79,52,0.2);
  border-radius: var(--r-sm); padding: 11px 14px; transition: 0.16s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(122,155,87,0.24); background: var(--paper); }
.team-radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.team-radios label {
  cursor: pointer; text-align: center; padding: 10px 4px; border-radius: var(--r-sm);
  border: 1.5px solid rgba(107,79,52,0.2); background: var(--paper-2); font-size: 0.84rem;
  font-weight: 700; margin: 0; transition: 0.16s; text-transform: capitalize; letter-spacing: 0;
}
.team-radios input { position: absolute; opacity: 0; pointer-events: none; }
.team-radios label:hover { border-color: var(--moss); }
.team-radios input:checked + span { }
.team-radios label.sel-mystic.on { background: rgba(63,110,196,0.16); border-color: #3f6ec4; color: #2f56a0; }
.team-radios label.sel-valor.on { background: rgba(196,63,63,0.16); border-color: #c43f3f; color: #a23333; }
.team-radios label.sel-instinct.on { background: rgba(217,163,74,0.2); border-color: #d9a34a; color: #a9791f; }

.form-msg { font-size: 0.86rem; color: var(--forest-dk); margin-top: 4px; min-height: 1.2em; }

.friend-note {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  background: rgba(122,155,87,0.14); border-radius: var(--r-md); padding: 14px 18px;
  color: var(--forest-dk); font-size: 0.94rem;
  border: 1px solid rgba(122,155,87,0.36);
}
.friend-note .leaf { width: 20px; height: 20px; color: var(--moss); flex: none; }

.friend-list { display: grid; gap: 14px; }
.friend-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  background: var(--paper); border-radius: var(--r-md); padding: 16px 20px;
  box-shadow: var(--shadow-card); border: 1px solid rgba(107,79,52,0.12);
  transition: 0.16s;
}
.friend-card:hover { box-shadow: var(--shadow-soft); }
.friend-card.is-mine { border-color: var(--moss); background: linear-gradient(180deg, rgba(122,155,87,0.08), var(--paper)); }
.friend-av {
  width: 52px; height: 52px; border-radius: 50% 46% 52% 48% / 50% 52% 46% 50%;
  display: grid; place-items: center; color: var(--paper); font-family: var(--serif);
  font-weight: 600; font-size: 1.3rem; flex: none;
}
.av-mystic { background: linear-gradient(135deg, #5b83d6, #34579e); }
.av-valor { background: linear-gradient(135deg, #d46464, #a23333); }
.av-instinct { background: linear-gradient(135deg, #e2b45f, #b98a2a); }
.friend-main { min-width: 0; }
.friend-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.friend-name { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--forest-xdk); }
.team-badge { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.tb-mystic { background: rgba(63,110,196,0.16); color: #34579e; }
.tb-valor { background: rgba(196,63,63,0.16); color: #a23333; }
.tb-instinct { background: rgba(217,163,74,0.22); color: #a9791f; }
.mine-badge { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--forest); color: var(--paper); }
.friend-code { font-family: 'Fraunces', serif; font-variant-numeric: tabular-nums; font-size: 1.06rem; letter-spacing: 0.06em; color: var(--bark); margin-top: 2px; }
.friend-sub { font-size: 0.82rem; color: var(--bark-lt); margin-top: 3px; }
.friend-sub .dot { margin: 0 7px; opacity: 0.5; }

.bump-btn {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans);
  font-weight: 700; font-size: 0.86rem; padding: 10px 16px; border-radius: 999px;
  border: none; cursor: pointer; color: var(--paper);
  background: linear-gradient(135deg, var(--moss), var(--forest)); transition: 0.16s;
  white-space: nowrap;
}
.bump-btn .leaf { width: 15px; height: 15px; }
.bump-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.bump-btn:disabled { background: var(--paper-3); color: var(--bark-lt); cursor: not-allowed; box-shadow: inset 0 0 0 1px rgba(107,79,52,0.2); }

.friend-empty { text-align: center; padding: 40px; color: var(--bark-lt); font-family: var(--serif); font-style: italic; }

/* =====================================================================
   BLOG - field journal / specimen cards
   ===================================================================== */
.blog-hero { padding: 60px 0 20px; text-align: center; }
.blog-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); }
.blog-hero p { color: var(--ink-soft); font-size: 1.14rem; max-width: 36rem; margin-inline: auto; }

.journal-stack { display: grid; gap: 36px; max-width: 820px; margin: 0 auto; }

.journal-entry {
  position: relative; display: grid; grid-template-columns: 148px 1fr;
  background: var(--paper); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); border: 1px solid rgba(107,79,52,0.14);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.journal-entry:nth-child(odd) { transform: rotate(-0.5deg); }
.journal-entry:nth-child(even) { transform: rotate(0.6deg); margin-left: 14px; }
.journal-entry:hover {
  transform: translateY(-5px) rotate(0deg);
  box-shadow: var(--shadow-soft);
}
.journal-entry::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--moss), var(--forest)); z-index: 1;
}
.journal-cover {
  position: relative; background: linear-gradient(180deg, #dfe9cb, var(--paper-2));
  display: grid; place-items: center; padding: 16px 12px;
  border-right: 1px dashed rgba(122,155,87,0.45);
}
.journal-cover img { width: 100%; max-width: 110px; height: auto; object-fit: contain; display: block; }
.journal-cover-fallback { color: var(--moss); opacity: 0.45; }
.journal-cover-fallback .leaf { width: 48px; height: 48px; }
.journal-body { position: relative; padding: 24px 28px 22px 22px; }
.journal-specimen {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--serif); font-style: italic; font-size: 0.78rem; color: var(--bark-lt);
  background: var(--paper-2); padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(107,79,52,0.14);
}
.journal-corner {
  position: absolute; right: 18px; bottom: 14px; width: 34px; height: 34px;
  color: rgba(122,155,87,0.28); transform: rotate(-18deg);
}
.journal-category {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--forest-dk);
  background: rgba(122,155,87,0.18); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.journal-title { font-size: clamp(1.35rem, 2.8vw, 1.75rem); margin-bottom: 10px; line-height: 1.15; }
.journal-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.8rem; color: var(--bark-lt);
  margin-bottom: 12px; font-weight: 600;
}
.journal-meta time { letter-spacing: 0.04em; text-transform: uppercase; }
.journal-excerpt { color: var(--ink-soft); font-size: 0.97rem; margin: 0 0 14px; line-height: 1.6; }
.journal-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.86rem; color: var(--forest);
}
.journal-cta-leaf { width: 14px; height: 14px; color: var(--moss); }

.journal-empty {
  text-align: center; padding: 56px 28px; background: var(--paper);
  border-radius: var(--r-lg); border: 1px dashed rgba(122,155,87,0.45);
  box-shadow: var(--shadow-card);
}
.journal-empty-leaf { width: 42px; height: 42px; color: var(--moss); margin-bottom: 14px; }
.journal-empty h2 { font-size: 1.6rem; margin-bottom: 8px; }
.journal-empty p { color: var(--ink-soft); margin: 0; max-width: 36ch; margin-inline: auto; }

/* single post */
.post-article {
  max-width: 720px; margin: 0 auto;
  background: var(--paper); border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-soft); border: 1px solid rgba(107,79,52,0.14);
  position: relative;
}
.post-article::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(var(--moss), var(--forest)); border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.post-back { margin-bottom: 22px; }
.post-back a {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 0.9rem; color: var(--bark);
}
.post-back-leaf { width: 16px; height: 16px; color: var(--moss); }
.post-cover {
  margin: 0 0 28px; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(180deg, #dfe9cb, var(--paper-2));
  border: 1px solid rgba(107,79,52,0.12);
  text-align: center; padding: 24px;
}
.post-cover img { max-width: 220px; height: auto; object-fit: contain; display: inline-block; }
.post-header { margin-bottom: 28px; }
.post-category {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--forest-dk);
  background: rgba(122,155,87,0.18); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.post-title { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 14px; }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.86rem; color: var(--bark-lt); font-weight: 600;
}
.post-meta time { letter-spacing: 0.04em; text-transform: uppercase; }
.post-body { color: var(--ink); font-size: 1.06rem; line-height: 1.78; }
.post-body h2 {
  font-size: 1.5rem; margin: 1.6em 0 0.6em; color: var(--forest-xdk);
}
.post-body p { margin-bottom: 1.1em; }
.post-body p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.2rem; float: left; line-height: 0.82;
  margin: 6px 12px 0 0; color: var(--forest);
}
.post-body ul { margin: 0 0 1.2em; padding-left: 1.4em; }
.post-body li { margin-bottom: 0.45em; }

/* related articles */
.related-section { max-width: 900px; margin: 56px auto 0; padding-bottom: 24px; }
.related-head { text-align: center; margin-bottom: 28px; }
.related-head-leaf { width: 28px; height: 28px; color: var(--moss); margin-bottom: 10px; }
.related-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 6px; }
.related-head p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.related-card {
  display: flex; flex-direction: column; background: var(--paper);
  border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-card); border: 1px solid rgba(107,79,52,0.12);
  transition: transform 0.18s, box-shadow 0.18s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.related-cover {
  height: 120px; display: grid; place-items: center;
  background: linear-gradient(180deg, #dfe9cb, var(--paper-2));
  border-bottom: 1px dashed rgba(122,155,87,0.35);
  padding: 12px;
}
.related-cover img { max-height: 96px; width: auto; object-fit: contain; }
.related-cover-fallback { color: var(--moss); opacity: 0.4; }
.related-cover-fallback .leaf { width: 36px; height: 36px; }
.related-body { padding: 16px 18px 18px; }
.related-category {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forest-dk); margin-bottom: 6px; display: block;
}
.related-title { font-size: 1.12rem; margin-bottom: 8px; line-height: 1.2; }
.related-meta { font-size: 0.78rem; color: var(--bark-lt); font-weight: 600; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  margin-top: 40px; padding: 56px 0 32px; color: #d9e0cb;
  background:
    radial-gradient(circle at 82% 0%, rgba(122,155,87,0.35), transparent 42%),
    linear-gradient(180deg, var(--forest-dk), var(--forest-xdk));
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; left: -60px; bottom: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(156,184,122,0.28), transparent 68%); border-radius: 50%;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; position: relative; }
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand .mark { background: radial-gradient(circle at 35% 30%, #cde0af, var(--moss) 70%); }
.footer-brand p { color: #c4d2ac; max-width: 30ch; margin-top: 14px; }
.footer-col h4 { color: var(--paper); font-size: 1.06rem; margin-bottom: 12px; }
.footer-col a { display: block; color: #cdd8ba; padding: 4px 0; font-weight: 600; }
.footer-col a:hover { color: var(--paper); }
.footer-cta { margin-top: 18px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; position: relative;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
}
.footer-disclaimer { font-size: 0.8rem; color: #b6c69c; max-width: 62ch; line-height: 1.55; }
.footer-levelcap { font-size: 0.82rem; color: #d9e0cb; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.footer-levelcap .leaf { width: 16px; height: 16px; color: var(--moss-lt); }
.footer-copy { font-family: var(--serif); font-style: italic; color: #c4d2ac; font-size: 0.9rem; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .specimen { transform: rotate(0deg); max-width: 420px; margin: 8px auto 0; }
  .raid-layout, .friend-layout { grid-template-columns: 1fr; }
  .boss-list { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .boss-chip { min-width: 220px; }
  .friend-form-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; left: 4vw; right: 4vw; top: 70px;
    flex-direction: column; align-items: stretch; background: var(--paper);
    padding: 12px; border-radius: var(--r-md); box-shadow: var(--shadow-soft);
    border: 1px solid rgba(107,79,52,0.16); z-index: 60; }
  .nav-links.open a { padding: 12px 15px; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: var(--paper-2); border: 1px solid rgba(107,79,52,0.2); border-radius: 12px;
    cursor: pointer; color: var(--forest-dk);
  }
  .nav-toggle .leaf { width: 22px; height: 22px; }
  .trail { grid-template-columns: 1fr; }
  .counter-row { grid-template-columns: 24px 1fr; grid-auto-rows: auto; row-gap: 6px; }
  .counter-move { grid-column: 2; }
  .rating-wrap { grid-column: 2; }
  .table-head { display: none; }
  .friend-card { grid-template-columns: auto 1fr; }
  .friend-card .bump-btn { grid-column: 1 / -1; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .counter-head h2 { font-size: 1.6rem; }
  .journal-entry { grid-template-columns: 1fr; margin-left: 0 !important; transform: none !important; }
  .journal-entry:hover { transform: translateY(-4px) !important; }
  .journal-cover { border-right: none; border-bottom: 1px dashed rgba(122,155,87,0.45); padding: 20px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
  * { scroll-behavior: auto; }
}
