/* ============================================================
   THE HOOK AND SKEIN — scoped product styling
   Burnt Thumb Works · adapted from the studio HAS Design System.

   SCOPE: every rule is namespaced under `.has-world` (or `.has-*`)
   so this file ONLY affects Hook-and-Skein page sections that opt in.
   It does NOT override the shared site shell (header / footer / nav)
   or any global token, component, or other product page.

   Look: bark/iron ground, bone-pale text, a single lantern-amber
   accent, carved Cinzel caps, Spectral story serif, Courier Prime
   ledger voice. Weathered · counted · local. No neon, no purple.
   ============================================================ */

.has-world {
  /* ---- HAS design tokens, scoped (do not leak to the rest of the site) ---- */
  --has-void:    #0C0A07;
  --has-base:    #120F0A;
  --has-panel:   #1A1610;
  --has-card:    #221C14;
  --has-raised:  #2C261C;
  --has-edge:    #3C3528;
  --has-edge-lit:#6B5C44;
  --has-brass:   #A98A4C;

  --has-bone:    #F4EEDE;
  --has-body:    #E8DECA;
  --has-muted:   #D2C6AC;
  --has-faint:   #B3A687;

  --has-lantern:     #D2882B;
  --has-lantern-lit: #F1C681;
  --has-lantern-soft: rgba(210,136,43,.12);

  --has-moon:    #A7B4BB;   /* ritual / reflective notes */
  --has-rust:    #A9532A;   /* danger, used sparingly */

  --has-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --has-serif:   "Spectral", Georgia, "Times New Roman", serif;
  --has-ledger:  "Courier Prime", "Courier New", ui-monospace, monospace;

  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(210,136,43,.10), rgba(18,15,10,0) 55%),
    radial-gradient(100% 60% at 50% 100%, rgba(106,116,78,.05), rgba(18,15,10,0) 70%),
    var(--has-base);
  color: var(--has-body);
  font-family: var(--has-serif);
  border-block: 1px solid var(--has-edge);
  overflow: hidden;
}

/* faint paper/soot grain — texture, never heavy */
.has-world::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 30% 18%, rgba(244,238,222,.022), transparent 60%),
    radial-gradient(circle at 82% 72%, rgba(0,0,0,.12), transparent 55%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.03) 0 1px, transparent 1px 3px);
}

.has-world__inner {
  position: relative; z-index: 1;
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 88px) 24px;
}

/* ---- the game mark (ring-and-hook), tarnished brass / lantern ---- */
.has-world .has-mark {
  display: block; width: clamp(48px, 9vw, 68px); height: auto;
  color: var(--has-brass); margin: 0 0 20px;
}
.has-world .has-mark svg { width: 100%; height: 100%; display: block; }

/* ---- type ---- */
.has-world .has-eyebrow {
  font-family: var(--has-ledger);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--has-lantern); margin: 0 0 14px;
}
.has-world .has-title {
  font-family: var(--has-display); font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.08;
  letter-spacing: .02em; color: var(--has-bone); margin: 0 0 18px;
}
.has-world .has-heading {
  font-family: var(--has-display); font-weight: 600;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem); line-height: 1.18;
  letter-spacing: .04em; color: var(--has-bone); margin: 0 0 12px;
}
.has-world .has-lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.6;
  color: var(--has-muted); max-width: 64ch; margin: 0 0 18px;
}
.has-world p { font-size: 1.0625rem; line-height: 1.62; color: var(--has-body); max-width: 64ch; }
.has-world a { color: var(--has-lantern-lit); }
.has-world a:hover { color: var(--has-lantern); }

/* stamped tag */
.has-world .has-tag {
  display: inline-block; font-family: var(--has-ledger);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--has-faint); border: 1px solid var(--has-edge);
  border-radius: 2px; padding: 5px 10px; margin-bottom: 16px;
}

/* ---- story / world panel: dark paper with a brass top-rule ---- */
.has-world .has-panel {
  position: relative;
  background: linear-gradient(180deg, var(--has-panel), var(--has-card));
  border: 1px solid var(--has-edge);
  border-radius: 5px;
  padding: 24px 22px;
  box-shadow: 0 2px 0 rgba(0,0,0,.4), 0 18px 48px rgba(0,0,0,.5);
}
.has-world .has-panel::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--has-brass) 12%, var(--has-brass) 88%, transparent);
}

/* ---- ledger fact list (record-screen feel) ---- */
.has-world .has-fact {
  font-family: var(--has-ledger); font-size: 13px;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-top: 1px solid var(--has-edge);
}
.has-world .has-fact:first-child { border-top: 0; }
.has-world .has-fact dt { color: var(--has-faint); letter-spacing: .04em; }
.has-world .has-fact dd { margin: 0; color: var(--has-body); text-align: right; }

/* ---- layout helpers ---- */
.has-world .has-lead { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }
.has-world .has-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.has-world .has-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.has-world .has-stack > * + * { margin-top: 16px; }
.has-world .has-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* small card for "what the player does" etc. */
.has-world .has-mini {
  background: var(--has-card); border: 1px solid var(--has-edge);
  border-left: 3px solid var(--has-edge-lit); border-radius: 3px; padding: 18px 18px;
  transition: border-color .15s ease;
}
.has-world .has-mini:hover { border-color: var(--has-edge-lit); border-left-color: var(--has-lantern); }
.has-world .has-mini h3 {
  font-family: var(--has-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .03em;
  color: var(--has-bone); margin: 0 0 8px;
}
.has-world .has-mini p { font-size: .98rem; color: var(--has-muted); margin: 0; }

/* ---- buttons (lantern primary; carved ghost) ---- */
.has-world .has-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--has-ledger); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  min-height: 48px; padding: 12px 20px; border-radius: 3px; cursor: pointer;
  text-decoration: none; border: 1px solid var(--has-edge); color: var(--has-body);
  background: var(--has-card); transition: border-color .15s, background .15s, transform .05s, box-shadow .15s;
}
.has-world .has-btn:hover { border-color: var(--has-edge-lit); }
.has-world .has-btn:active { transform: translateY(1px); }
.has-world .has-btn--primary {
  background: linear-gradient(180deg, var(--has-lantern-lit), var(--has-lantern));
  color: var(--has-void); border: none; font-weight: 700;
}
.has-world .has-btn--primary:hover { box-shadow: 0 0 0 1px rgba(210,136,43,.35), 0 0 22px rgba(210,136,43,.18); }
.has-world .has-btn .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---- a quiet "skein" rule used as section divider ---- */
.has-world .has-rule {
  height: 1px; border: 0; margin: 36px 0;
  background: linear-gradient(90deg, transparent, var(--has-edge-lit) 18%, var(--has-edge-lit) 82%, transparent);
}

/* ---- a darker variant band for lore sections ---- */
.has-world--deep { background: var(--has-void); }

/* ---- mobile: stack, keep tap targets honest ---- */
@media (max-width: 860px) {
  .has-world .has-lead,
  .has-world .has-grid-2,
  .has-world .has-grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .has-world__inner { padding: 48px 18px; }
}
