/* ============================================================
   WORLDBUILDING MUSIC (wb-*)
   ============================================================ */

.wb-page {
  --paper:   var(--parchment-lightest);
  --paper-2: var(--parchment-light);
  --paper-3: var(--parchment);
  --line:    #d6cbb8;
  --ink-2:   #3a3026;
  --ink-3:   #6b5a44;

  --display: var(--font-display);
  --body:    var(--font-body);
  --accent:  var(--font-accent);
  --mono:    var(--font-mono, ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace);

  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  position: relative;
}
.wb-page::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(120,90,55,0.04), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(120,90,55,0.04), transparent 60%);
}
.wb-page > * { position: relative; z-index: 1; }
:where(.wb-page a) { color: inherit; text-decoration: none; }

.wb-section { max-width: 1340px; margin: 0 auto; padding: 80px 40px; }
.wb-section-head { margin-bottom: 40px; max-width: 920px; }
.wb-kicker {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.wb-kicker::after { content: ""; width: 48px; height: 1px; background: var(--sepia); opacity: 0.5; }
.wb-h {
  font-family: var(--display);
  font-size: 50px; line-height: 1.04; letter-spacing: -0.005em;
  font-weight: 500; margin: 0 0 18px;
  color: var(--ink); text-wrap: balance;
}
.wb-h em { font-family: var(--accent); font-style: italic; color: var(--sepia); font-weight: 400; }
.wb-lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 720px; margin: 0; text-wrap: pretty; }

/* Hero */
.wb-hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
}
.wb-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.5) saturate(0.9);
}
.wb-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,12,0.55) 0%, rgba(20,16,12,0.65) 50%, rgba(20,16,12,0.95) 100%),
    radial-gradient(ellipse at 30% 70%, rgba(122,92,56,0.2), transparent 55%);
}
.wb-hero__inner {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
  padding: 120px 40px 130px;
  text-align: center;
}
.wb-hero__kicker {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 14px;
}
.wb-hero__kicker::before { content: ""; width: 50px; height: 1px; background: var(--gold); }
.wb-hero__kicker::after { content: ""; width: 50px; height: 1px; background: var(--gold); }
.wb-hero__h {
  font-family: var(--display);
  font-size: 88px; line-height: 0.96; letter-spacing: -0.01em;
  font-weight: 500; margin: 0 0 22px;
  color: var(--paper);
  text-wrap: balance;
}
.wb-hero__h em { font-family: var(--accent); font-style: italic; color: var(--gold); font-weight: 400; }
.wb-hero__sub {
  font-size: 21px; line-height: 1.5;
  color: rgba(245,240,232,0.92);
  margin: 0 auto 36px;
  max-width: 760px;
  font-style: italic;
  text-wrap: pretty;
}
.wb-hero__sub em { color: var(--gold); font-style: italic; }
.wb-hero__actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center;
}
.wb-btn-primary {
  background: var(--paper); color: var(--ink);
  font-family: var(--display); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  padding: 16px 24px;
  display: inline-flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: background 0.15s ease;
}
.wb-btn-primary:hover { background: var(--gold); color: var(--ink); }
.wb-btn-primary .arrow { font-family: var(--body); font-style: italic; border-left: 1px solid rgba(26,22,18,0.25); padding-left: 14px; }
.wb-btn-ghost {
  background: transparent; color: var(--paper);
  font-family: var(--display); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  padding: 14px 22px;
  border: 1px solid rgba(245,240,232,0.4);
}
.wb-btn-ghost:hover { border-color: var(--paper); }

/* Content body */
.wb-content-wrap { background: var(--paper); border-bottom: 1px solid var(--line); }
.wb-content { max-width: 780px; margin: 0 auto; padding: 80px 40px; }
.wb-content__body { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.wb-content__body h2, .wb-content__body h3 {
  font-family: var(--display); color: var(--ink);
  margin: 36px 0 14px; font-weight: 500;
  line-height: 1.2;
}
.wb-content__body h2 { font-size: 32px; }
.wb-content__body h3 { font-size: 24px; }
.wb-content__body p { margin: 16px 0; text-wrap: pretty; }
.wb-content__body ul { padding-left: 24px; }
.wb-content__body li { padding: 6px 0; }
.wb-content__body a { color: var(--rouge); text-decoration: underline; text-underline-offset: 2px; }
.wb-content__body strong { color: var(--ink); font-weight: 600; }
.wb-content__body img { max-width: 100%; height: auto; display: block; margin: 28px auto; border: 1px solid var(--line); }

/* Projects grid */
.wb-projects-wrap { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wb-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wb-project {
  background: var(--paper); border: 1px solid var(--line);
  padding: 30px 28px 26px;
  display: flex; flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.wb-project:hover { border-color: var(--sepia); transform: translateY(-1px); }
.wb-project--cta { background: transparent; border: 1px dashed var(--line); }
.wb-project--cta:hover { border-color: var(--rouge); }
.wb-project__num {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  font-weight: 600;
}
.wb-project__num--cta { color: var(--rouge); }
.wb-project__h {
  font-family: var(--display); font-size: 22px;
  line-height: 1.15; font-weight: 500;
  margin: 0 0 12px; color: var(--ink);
}
.wb-project__h em { font-family: var(--accent); font-style: italic; color: var(--sepia); font-weight: 400; }
.wb-project__desc {
  font-size: 15px; color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 18px;
  text-wrap: pretty;
  flex: 1;
}
.wb-project__link {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rouge); font-weight: 500;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dotted var(--line);
}

/* Mentoring CTA */
.wb-mentor-wrap { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.wb-mentor-wrap::before {
  content: ""; position: absolute;
  right: -120px; top: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(176,56,56,0.18), transparent 65%);
  pointer-events: none;
}
.wb-mentor { max-width: 880px; margin: 0 auto; padding: 80px 40px; text-align: center; position: relative; z-index: 1; }
.wb-mentor__kicker {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-pale); font-weight: 600;
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.wb-mentor__kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold-pale); }
.wb-mentor__h {
  font-family: var(--display); font-size: 40px; line-height: 1.08; font-weight: 500;
  margin: 0 0 18px; color: var(--paper);
}
.wb-mentor__h em { font-family: var(--accent); font-style: italic; color: var(--gold-pale); font-weight: 400; }
.wb-mentor__p {
  font-size: 17px; color: rgba(245,240,232,0.85);
  line-height: 1.55;
  margin: 0 auto 28px; max-width: 640px;
  text-wrap: pretty;
}

/* Commission CTA */
.wb-commission { background: var(--paper); }
.wb-commission__inner { max-width: 880px; margin: 0 auto; padding: 80px 40px; text-align: center; }

@media (max-width: 1100px) {
  .wb-hero__h { font-size: 64px; }
  .wb-projects { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .wb-section { padding: 60px 22px; }
  .wb-hero__inner { padding: 80px 22px 90px; }
  .wb-hero__h { font-size: 48px; }
  .wb-h { font-size: 32px; }
  .wb-content { padding: 60px 22px; }
  .wb-projects { grid-template-columns: 1fr; }
  .wb-mentor { padding: 60px 22px; }
}
