/* jonabalos.com: support, founders wall, account. Same felt letterboard as the home page,
   then plain reading on a light wall. The price is a kraft shop tag; the spots are dots. */
:root {
  --wall: #D3D6D0; --paper: #FAFAF7; --ink: #1C1D1F; --soft: #565A57; --rule: #D9DBD4;
  --felt: #1B1C1E; --felt-2: #232427; --letter: #F1EEE6; --letter-dim: #A9A69E; --pick: #FFD15C;
  --frame: #5C3E26; --frame-2: #7A5534; --frame-3: #3F2A19;
  --kraft: #C9A46C; --kraft-ink: #3A2A12; --go: #1F5C4A; --go-2: #174739; --live: #1E6B45; --soon: #8A5A12; --wip: #5B5F66;
  --groove: 22px; --font: "Archivo", "Arial Narrow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-variation-settings: "wdth" 100; font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--go); }
a:hover { color: var(--go-2); }
:focus-visible { outline: 3px solid var(--pick); outline-offset: 3px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--soft); } .small { font-size: 15px; }
.hp { position: absolute; left: -9999px; }

.topnav { display: flex; align-items: center; gap: 18px; max-width: 1080px; margin: 0 auto; padding: 14px 20px; font-size: 15px; font-weight: 600; }
.topnav .home { font-weight: 800; font-variation-settings: "wdth" 115; text-decoration: none; color: var(--ink); letter-spacing: .02em; }
.topnav .sp { flex: 1; }
.topnav a { color: var(--ink); }
body.support, body.plainpage { background: var(--wall); }
body.support .topnav, body.plainpage .topnav { background: transparent; }

/* ---------- the felt letterboard (same as the home page) ---------- */
.board-hero { padding: 8px 16px 0; }
.board-hero .frame { max-width: 1080px; margin: 0 auto; padding: clamp(10px, 1.6vw, 15px); border-radius: 6px; background: linear-gradient(135deg, var(--frame-2), var(--frame) 40%, var(--frame-3)); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 30px 60px -24px rgba(30,26,20,.55); }
.board-hero .board {
  padding: calc(var(--groove) * 2) clamp(18px, 5vw, 56px); border-radius: 2px; background-color: var(--felt);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--groove) - 3px), rgba(0,0,0,.55) calc(var(--groove) - 3px), rgba(0,0,0,.55) calc(var(--groove) - 2px), rgba(255,255,255,.035) calc(var(--groove) - 2px), rgba(255,255,255,.035) var(--groove)), radial-gradient(ellipse 90% 80% at 40% 30%, var(--felt-2), var(--felt));
  box-shadow: inset 0 2px 10px rgba(0,0,0,.7);
}
.l { margin: 0; font-weight: 600; font-variation-settings: "wdth" 68; text-transform: uppercase; letter-spacing: .06em; color: var(--letter); text-shadow: 0 1px 0 rgba(255,255,255,.18), 0 2px 1px rgba(0,0,0,.6), 0 3px 4px rgba(0,0,0,.45); }
.board-hero h1.l { font-size: clamp(32px, 6.2vw, 64px); line-height: calc(var(--groove) * 3); max-width: 15ch; }
.board-hero.small h1.l { font-size: clamp(28px, 5vw, 48px); line-height: calc(var(--groove) * 3); }
@media (max-width: 560px) { .board-hero h1.l { line-height: calc(var(--groove) * 2); } }

/* ---------- reading column ---------- */
.page { max-width: 1080px; margin: 0 auto; padding: 32px 20px 40px; }
.page.narrow { max-width: 700px; }
.page section { margin: 0 0 56px; }
.page h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.1; font-weight: 800; font-variation-settings: "wdth" 112; margin: 8px 0 14px; letter-spacing: -.01em; }
.page h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; font-weight: 800; font-variation-settings: "wdth" 112; margin: 0 0 16px; letter-spacing: -.005em; }
.page h3 { font-size: 22px; line-height: 1.2; margin: 0; font-weight: 800; font-variation-settings: "wdth" 108; }
.lede { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.6; max-width: 62ch; margin: 0 0 18px; }
.intro .counts { font-size: 17px; font-weight: 600; margin: 0 0 18px; }
.intro .counts b { font-variant-numeric: tabular-nums; }
.video { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.video::before { content: ""; width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* ---------- tiers: three columns, a kraft tag for the price ---------- */
.tier-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--paper); border-radius: 10px; box-shadow: 0 18px 40px -26px rgba(20, 22, 20, .45); }
.tier { padding: 26px 24px 24px; display: flex; flex-direction: column; border-left: 1px solid var(--rule); scroll-margin-top: 20px; }
.tier:first-child { border-left: 0; }
.tier h3 { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tier .tag {
  position: relative; display: inline-block; padding: 7px 14px 7px 26px; background: var(--kraft); color: var(--kraft-ink); font-size: 16px; font-weight: 700; font-variation-settings: "wdth" 90;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); transform: rotate(-2deg);
}
.tier .tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(58,42,18,.35); }
.tier .for { margin: 14px 0 6px; font-weight: 600; }
.tier ul { margin: 0 0 14px; padding-left: 20px; font-size: 16.5px; line-height: 1.55; }
.tier li { margin: 0 0 6px; }
.tier .note { font-size: 15.5px; color: var(--soft); margin: 0 0 14px; }
.buyrow { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--rule); }
.buyrow p { margin: 8px 0 12px; font-size: 15.5px; }
.buyrow b { font-variant-numeric: tabular-nums; }
.spots { display: flex; flex-wrap: wrap; gap: 3px; }
.spots i { width: 7px; height: 7px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px #9EA29B; }
.spots i.t { background: var(--ink); box-shadow: none; }
.spots-family i, .spots-patron i { width: 12px; height: 12px; }
.buy, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--go); color: #fff; font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; }
.buy:hover, .btn:hover { background: var(--go-2); color: #fff; }
.buy[disabled] { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.patron-buy { display: flex; flex-wrap: wrap; gap: 8px; }
.patron-buy .amounts { display: flex; gap: 8px; }
.patron-buy .amounts[hidden] { display: none; }
.soldout { display: block; font-weight: 700; color: var(--soft); }
.err { color: #A32A18; font-weight: 700; margin: 14px 0 0; }
.math { display: grid; gap: 4px; margin: 0 0 14px; font-size: 13.5px; }
.math span { display: block; position: relative; padding: 3px 8px; white-space: nowrap; }
.math span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #E7E1D2; border-radius: 3px; z-index: -1; }
.math span:first-child::before { background: var(--kraft); }
.math { position: relative; z-index: 0; }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; background: var(--paper); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 16.5px; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 14px; font-weight: 700; color: var(--soft); background: #F1F1EC; }
tr:last-child td { border-bottom: 0; }
.money td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.chip-live { background: var(--live); } .chip-soon { background: var(--soon); } .chip-wip { background: var(--wip); }

/* ---------- wall ---------- */
.wall-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 19px; font-weight: 700; font-variation-settings: "wdth" 95; }
.wall-list.big { font-size: 22px; }
.wall-list .w-patron { color: var(--frame); }
.fine ul { padding-left: 20px; max-width: 70ch; }
.fine li { margin: 0 0 10px; }

/* ---------- forms + account ---------- */
.card { background: var(--paper); border-radius: 10px; padding: 22px; box-shadow: 0 14px 30px -24px rgba(20,22,20,.5); margin: 0 0 22px; }
.field { display: block; font-weight: 700; font-size: 16px; margin: 0 0 14px; }
.field input { display: block; width: 100%; margin-top: 6px; font: 400 17px/1.3 var(--font); padding: 11px 12px; border: 1.5px solid #BFC2BA; border-radius: 8px; background: #fff; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--go); box-shadow: 0 0 0 3px rgba(31,92,74,.2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; margin: 0 0 14px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--go); }
.msg { min-height: 1.4em; margin: 0 0 12px; font-weight: 700; }
.msg.bad { color: #A32A18; } .msg.good { color: var(--live); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0 0 22px; background: var(--paper); padding: 18px 22px; border-radius: 10px; }
.facts dt { color: var(--soft); } .facts dd { margin: 0; font-weight: 600; }
.next ul { padding-left: 20px; } .next li { margin: 0 0 10px; }
pre.license { white-space: pre-wrap; font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper); padding: 20px; border-radius: 10px; }
.foot { max-width: 1080px; margin: 0 auto; padding: 20px 20px 40px; font-size: 15px; color: var(--soft); }
.foot p { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink); }

/* ---------- admin ---------- */
.adminbar { display: flex; gap: 16px; align-items: center; padding: 12px 20px; background: var(--felt); color: var(--letter); font-size: 15px; }
.adminbar a, .adminbar button { color: var(--letter); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.adminbar .sp { flex: 1; }
.page.wide { max-width: 1240px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0 0 24px; }
.adm-grid .card { margin: 0; }
.big-n { font-size: 34px; font-weight: 800; font-variation-settings: "wdth" 110; line-height: 1; }
.adminpage table { font-size: 14.5px; }
.adminpage td button, .adminpage td select { font: inherit; font-size: 13.5px; }
.toggle { display: flex; gap: 10px; align-items: center; font-weight: 700; margin: 0 0 10px; }
.toggle input { width: 20px; height: 20px; accent-color: #A32A18; }
.adminpage .field input, .adminpage select { font-size: 15px; }

@media (max-width: 900px) {
  .tier-row { grid-template-columns: 1fr; }
  .tier { border-left: 0; border-top: 1px solid var(--rule); }
  .tier:first-child { border-top: 0; }
  body { font-size: 17px; }
  th, td { padding: 9px 12px; }
}
