/* ============================================================
   PulseFable — surface sheet
   A. Editorial voice
   B. Wordmark
   C. Action geometry
   D. Palette & scale
   E. Tiles & entries
   F. Ledger surface
   G. Crumb strip
   ============================================================ */

/* --- A. Editorial voice -------------------------------------- */
.pf9-display {
  font-family: var(--pf9-desk);
  font-weight: 700;
  font-size: clamp(2.7rem, 7.4vw, 5.7rem);
  line-height: 0.93;
  letter-spacing: -0.038em;
  margin: 18px 0 0;
}
.pf9-title {
  font-family: var(--pf9-desk);
  font-weight: 700;
  font-size: clamp(1.95rem, 4.3vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  margin: 0;
}
.pf9-sub {
  font-family: var(--pf9-desk);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
}
.pf9-kick {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.pf9-kick::before {
  content: "";
  width: 26px;
  height: 4px;
  background: var(--pf9-pulse);
  flex: none;
}
.pf9-lede {
  font-size: 1.19rem;
  line-height: 1.55;
  margin: 0;
}
.pf9-quiet { color: var(--pf9-mute); }
.pf9-tight { margin: 14px 0 0; }

.pf9-anchor {
  color: var(--pf9-ink);
  text-decoration: underline;
  text-decoration-color: var(--pf9-pulse);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.pf9-anchor:hover { text-decoration-thickness: 4px; }

/* --- B. Wordmark --------------------------------------------- */
.pf9-mark {
  font-family: var(--pf9-desk);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
.pf9-mark span { color: var(--pf9-pulse); }
.pf9-routes a {
  font-weight: 600;
  font-size: 0.97rem;
}
.pf9-routes a:hover { text-decoration: underline; text-decoration-color: var(--pf9-pulse); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.pf9-toggle {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pf9-ink);
  cursor: pointer;
}

/* --- C. Action geometry -------------------------------------- */
.pf9-act {
  --pf9-cut: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  font-family: var(--pf9-read);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: var(--pf9-ink);
  color: var(--pf9-sheet);
  clip-path: polygon(var(--pf9-cut) 0, 100% 0, 100% calc(100% - var(--pf9-cut)), calc(100% - var(--pf9-cut)) 100%, 0 100%, 0 var(--pf9-cut));
  transition: background-color 0.16s ease, color 0.16s ease;
}
.pf9-act:hover {
  background: var(--pf9-pulse);
  color: var(--pf9-ink);
}
.pf9-act:active { background: var(--pf9-deep); color: var(--pf9-sheet); }
.pf9-act:focus-visible { outline: 3px solid var(--pf9-pulse); outline-offset: 4px; }
.pf9-act--pale {
  background: var(--pf9-wash);
  color: var(--pf9-ink);
}
.pf9-act--pale:hover { background: var(--pf9-pulse); color: var(--pf9-ink); }

/* --- D. Palette & scale -------------------------------------- */
:root {
  --pf9-sheet: #ffffff;
  --pf9-wash: #f3f2f0;
  --pf9-ink: #0a0a0a;
  --pf9-mute: #5b5b5b;
  --pf9-rule: #e3e1de;
  --pf9-hair: #eeecea;
  --pf9-pulse: #ff5a1f;
  --pf9-deep: #2b2b2b;
  --pf9-desk: "Archivo Desk", "Helvetica Neue", Arial, sans-serif;
  --pf9-read: "Source Read", "Helvetica Neue", Arial, sans-serif;
}

/* --- E. Tiles & entries -------------------------------------- */
.pf9-veins__entry { border: 0; }
.pf9-veins__ord {
  font-family: var(--pf9-desk);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--pf9-pulse);
}
.pf9-veins__seen {
  font-size: 0.94rem;
  color: var(--pf9-mute);
  margin: 10px 0 0;
}
.pf9-veins__plate figcaption {
  font-size: 0.9rem;
  color: var(--pf9-mute);
  margin-top: 12px;
}

.pf9-shelf__tile { position: relative; }
.pf9-shelf__frame { background: var(--pf9-wash); }
.pf9-shelf__body { padding: 20px 0 0; }
.pf9-shelf__maker {
  font-size: 0.95rem;
  color: var(--pf9-mute);
  margin: 8px 0 0;
}
.pf9-shelf__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 16px 0 0;
}
.pf9-shelf__facts dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf9-mute);
  margin: 0;
}
.pf9-shelf__facts dd {
  font-family: var(--pf9-desk);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pf9-shelf__facts div { min-width: 84px; }
.pf9-shelf__star { width: 15px; height: 15px; fill: var(--pf9-pulse); flex: none; }
.pf9-shelf__body p { margin: 16px 0 0; }
.pf9-shelf__tile:hover .pf9-shelf__frame { box-shadow: inset 0 5px 0 0 var(--pf9-pulse); }

/* --- F. Ledger surface --------------------------------------- */
.pf9-ledger__grid caption {
  text-align: left;
  color: var(--pf9-mute);
  font-size: 0.95rem;
  padding-bottom: 18px;
}
.pf9-ledger__grid thead th {
  font-family: var(--pf9-read);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf9-ink);
  border-bottom: 2px solid var(--pf9-ink);
  white-space: nowrap;
}
.pf9-ledger__grid tbody th {
  font-family: var(--pf9-desk);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  min-width: 190px;
}
.pf9-ledger__grid tbody td {
  font-size: 0.98rem;
  color: var(--pf9-mute);
}
.pf9-ledger__grid tbody tr + tr th,
.pf9-ledger__grid tbody tr + tr td { border-top: 1px solid var(--pf9-hair); }
.pf9-ledger__yes { width: 19px; height: 19px; fill: var(--pf9-pulse); }
.pf9-ledger__no { width: 19px; height: 19px; fill: var(--pf9-mute); }
.pf9-ledger__cost { color: var(--pf9-ink); font-weight: 600; white-space: nowrap; }

/* --- G. Crumb strip ------------------------------------------ */
.pf9-crumb {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--pf9-sheet);
  box-shadow: 0 -1px 0 0 var(--pf9-rule);
  padding: 16px 0;
}
.pf9-crumb[hidden] { display: none; }
.pf9-crumb__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.pf9-crumb__text {
  margin: 0;
  font-size: 0.94rem;
  max-width: 660px;
}
.pf9-crumb__acts { display: flex; gap: 12px; flex-wrap: wrap; }
.pf9-crumb .pf9-act { min-height: 48px; padding: 12px 24px; font-size: 0.94rem; }

.pf9-page { padding: 20px 0 96px; max-width: 860px; }
.pf9-page h2 { margin: 44px 0 0; }
.pf9-page h3 { margin: 30px 0 0; }
.pf9-page p { margin: 14px 0 0; }
.pf9-page ul { margin: 14px 0 0; padding-left: 22px; }
.pf9-page li { margin: 7px 0 0; }
.pf9-page table { width: 100%; border-collapse: collapse; margin-top: 22px; }
.pf9-page caption { text-align: left; color: var(--pf9-mute); font-size: 0.92rem; padding-bottom: 16px; }
.pf9-page th, .pf9-page td { text-align: left; padding: 13px 18px 13px 0; vertical-align: top; font-size: 0.96rem; }
.pf9-page thead th { border-bottom: 2px solid var(--pf9-ink); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.pf9-page tbody tr + tr th, .pf9-page tbody tr + tr td { border-top: 1px solid var(--pf9-hair); }
.pf9-gone { padding: 90px 0 140px; }
