/* The Firecraft Journal — Campfire Ember visual.
   Charred-black ground, flame-orange accent, ashen ink. Ember glow + hairline rules.
   Angular corners only (no rounded edges). Sans throughout. */

:root {
  --bg: #1f1a16;
  --pit: #262019;
  --coal: #15110d;
  --ink: #e7e0d6;
  --ash: #9a8f80;
  --ember: #f97316;
  --ember-hot: #ffb066;
  --ember-dim: #7a3a12;
  --line: #3a3128;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.68;
  font-size: 16px;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% -10%, rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0) 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0, rgba(255, 255, 255, 0.014) 1px, transparent 1px, transparent 3px);
}

.ember-container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
a { color: var(--ember-hot); text-decoration: none; }
a:hover { color: var(--ember); text-decoration: underline; }

/* ---- header ---- */
.kiln-header { background: var(--coal); border-bottom: 2px solid var(--ember-dim); }
.kiln-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 22px; }
.mark { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.mark:hover { text-decoration: none; }
.mark svg { display: block; }
.mark-name { font-weight: 700; letter-spacing: .4px; font-size: 18px; }
.mark-tag { display: block; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ash); }
.ember-nav { display: flex; gap: 20px; }
.ember-nav a { color: var(--ink); font-size: 14px; padding: 4px 0; border-bottom: 2px solid transparent; }
.ember-nav a:hover { border-bottom-color: var(--ember); text-decoration: none; }

/* ---- firepit hero ---- */
.pit-hero { position: relative; padding: 54px 0 46px; border-bottom: 1px solid var(--line); overflow: hidden; }
.pit-glow {
  position: absolute; left: 50%; bottom: -140px; width: 620px; height: 320px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.34), rgba(249, 115, 22, 0) 68%);
  pointer-events: none;
}
.pit-inner { position: relative; }
.pit-kicker { color: var(--ember); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.pit-title { font-size: 38px; line-height: 1.14; font-weight: 700; margin-bottom: 16px; max-width: 720px; }
.pit-lede { max-width: 660px; color: var(--ash); font-size: 17px; }

.pit-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; max-width: 760px; }
.ring { border: 1px solid var(--line); border-left: 3px solid var(--ember); background: rgba(21, 17, 13, 0.6); padding: 14px 16px; }
.ring-tier { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ember); font-weight: 700; }
.ring p { font-size: 13px; color: var(--ash); margin-top: 6px; }

/* ---- section scaffolding ---- */
.panel { padding: 34px 0; }
.panel-label { font-size: 12px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--ash); font-weight: 700; margin-bottom: 16px; }

.fuel-key-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fuel-key-list li { font-size: 14px; color: var(--ink); }

/* category chip */
.method-chip {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  padding: 2px 9px; border: 1px solid currentColor;
}
.m-bow { color: #f0b429; }
.m-cook { color: #e0682e; }
.m-start { color: var(--ember); }
.m-flint { color: #c9a15a; }

/* ---- method tiles (category cards) ---- */
.tinder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.method-tile {
  background: var(--coal); border: 1px solid var(--line); border-top: 3px solid var(--ember);
  padding: 16px; display: flex; flex-direction: column; gap: 7px; color: var(--ink);
}
.method-tile:hover { border-color: var(--ember); background: #191410; text-decoration: none; }
.tile-count { font-size: 12px; color: var(--ash); font-variant-numeric: tabular-nums; }
.tile-name { font-weight: 700; font-size: 17px; }

/* ---- bank (grouped entries) ---- */
.bank { padding: 30px 0; border-top: 1px solid var(--line); }
.bank-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.bank-title { font-size: 22px; font-weight: 700; }
.bank-link { font-size: 13px; }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.method-card {
  background: var(--coal); border: 1px solid var(--line); padding: 16px;
  display: flex; flex-direction: column; gap: 10px; color: var(--ink);
  border-left: 3px solid var(--ember-dim);
}
.method-card:hover { border-left-color: var(--ember); background: #191410; text-decoration: none; }
.mc-title { font-weight: 700; font-size: 16px; line-height: 1.32; }
.mc-spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mc-spec-row { display: flex; flex-direction: column; font-size: 12px; }
.mc-spec-row b { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--ash); font-weight: 700; }
.mc-spec-row span { color: var(--ink); }
.mc-desc { font-size: 13px; color: var(--ash); }

/* ---- page head ---- */
.page-head { padding: 38px 0 10px; }
.crumb { font-size: 13px; color: var(--ash); margin-bottom: 8px; }
.crumb a { color: var(--ash); }
.page-head h1 { font-size: 32px; line-height: 1.2; font-weight: 700; }
.lede { color: var(--ash); margin-top: 8px; }

/* ---- entry layout: fact card + prose ---- */
.method-body { display: grid; grid-template-columns: 320px 1fr; gap: 26px; padding-top: 22px; padding-bottom: 40px; }
.method-sheet { align-self: start; background: var(--coal); border: 1px solid var(--line); border-top: 3px solid var(--ember); }
.sheet-head { padding: 12px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-badge { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ash); font-weight: 700; }
.fact-list { font-variant-numeric: tabular-nums; }
.fact-row { display: flex; border-bottom: 1px solid var(--line); font-size: 14px; }
.fact-row:last-child { border-bottom: 0; }
.fact-k { flex: 0 0 42%; padding: 9px 15px; color: var(--ash); border-right: 1px solid var(--line); }
.fact-v { flex: 1; padding: 9px 15px; }
.fact-v ul { list-style: none; }
.fact-v li { padding: 1px 0; }

.prose { background: var(--pit); border: 1px solid var(--line); padding: 26px 30px; }
.prose .sec { margin-bottom: 26px; }
.prose .sec:last-child { margin-bottom: 0; }
.prose h2 { font-size: 19px; font-weight: 700; margin-bottom: 11px; display: flex; align-items: baseline; gap: 11px; }
.sec-num { color: var(--ember); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; }
.prose p { margin-bottom: 12px; color: #ddd5c9; }
.prose p:last-child { margin-bottom: 0; }
.link-list { list-style: none; }
.link-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 0; }

/* ---- footer ---- */
.kiln-footer { background: var(--coal); border-top: 2px solid var(--ember-dim); margin-top: 20px; padding: 30px 0; }
.kiln-footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.kiln-brand { flex: 1 1 320px; }
.kiln-brand p { color: var(--ash); font-size: 14px; margin-top: 6px; }
.kiln-brand .mark-name { font-weight: 700; }
.kiln-footer-nav { display: flex; gap: 16px; }
.kiln-footer-nav a { color: var(--ink); font-size: 14px; }
.kiln-copy { flex: 1 1 100%; font-size: 12px; color: var(--ash); margin-top: 10px; }

@media (max-width: 880px) {
  .pit-rings { grid-template-columns: 1fr; }
  .tinder-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .fuel-key-list { grid-template-columns: 1fr; }
  .method-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tinder-grid, .method-grid { grid-template-columns: 1fr; }
  .pit-title { font-size: 29px; }
  .kiln-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ember-nav { gap: 14px; }
}
