/* StoreHog: colours sampled from the avatar (sky #B8EDFF, pig pink #F7BAAD / #EA8F88, gold chain, bold dark outline) */
:root {
  --sky: #b8edff;
  --sky-soft: #e4f7ff;
  --sky-deep: #4fb6e3;
  --pink: #f7baad;
  --pink-deep: #ea8f88;
  --gold: #e8b63c;
  --gold-deep: #c9951f;
  --ink: #1d1a17;
  --ink-soft: #4a4540;
  --paper: #ffffff;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 18px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--sky-soft);
  font: 17px/1.6 "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
h1, h2, h3, .brand { font-family: "Fredoka", "Inter", system-ui, sans-serif; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--sky-deep); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }

/* disclosure strip + header */
.disclosure { background: var(--ink); color: #fff; font-size: .85rem; text-align: center; padding: 8px 16px; }
.disclosure a { color: var(--gold); }
header.site { background: var(--sky); border-bottom: var(--line); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.35rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: var(--line); background: var(--sky); }
nav.main { display: flex; gap: 6px; flex-wrap: wrap; }
nav.main a { text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { border-color: var(--ink); background: var(--paper); color: var(--ink); }
header.site .menu-toggle { display: none; }

/* buttons */
.btn { display: inline-block; font-weight: 700; text-decoration: none; padding: 12px 22px; border: var(--line); border-radius: 999px;
  background: var(--gold); box-shadow: var(--shadow); transition: transform .08s, box-shadow .08s; cursor: pointer; font-size: 1rem; color: var(--ink); }
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); }
.btn.alt { background: var(--paper); }
.btn.pink { background: var(--pink); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* sections + cards */
section { padding: 56px 0; }
section.tint { background: var(--sky); border-top: var(--line); border-bottom: var(--line); }
section.pinkband { background: var(--pink); border-top: var(--line); border-bottom: var(--line); }
.card { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.step { font-family: "Fredoka", sans-serif; font-weight: 700; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: var(--line); background: var(--pink); margin-bottom: 10px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--sky); }
.tag.pink { background: var(--pink); }
.tag.gold { background: var(--gold); }

/* hero */
.hero { padding: 64px 0 56px; background: var(--sky); border-bottom: var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero .pig { border: var(--line); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); background: var(--sky); width: 100%; max-width: 380px; justify-self: center; }
.hero p.lede { font-size: 1.2rem; max-width: 34em; }

/* honesty box */
.honest { border: var(--line); border-radius: var(--radius); background: #fff8e6; padding: 18px 20px; box-shadow: var(--shadow); }
.honest strong:first-child { display: block; font-family: "Fredoka", sans-serif; font-size: 1.1rem; margin-bottom: 4px; }

/* lists */
ul.check, ul.cross { list-style: none; padding: 0; margin: 0; }
ul.check li, ul.cross li { padding-left: 30px; position: relative; margin: 8px 0; }
ul.check li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: #1c8a4a; }
ul.cross li::before { content: "✕"; position: absolute; left: 0; font-weight: 800; color: #c0392b; }

/* tables */
.table-wrap { overflow-x: auto; border: var(--line); border-radius: 14px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #d9d4cf; vertical-align: top; }
th { background: var(--sky); font-family: "Fredoka", sans-serif; }
tr:last-child td { border-bottom: 0; }

/* video facade (YouTube loads only after a click) */
.video { position: relative; aspect-ratio: 16 / 9; border: var(--line); border-radius: 14px; overflow: hidden; background: var(--ink); }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 16px;
  background: linear-gradient(135deg, #2b2622, #3b2f2a); }
.video button .play { width: 68px; height: 68px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; display: grid; place-items: center;
  color: var(--ink); font-size: 26px; margin: 0 auto 10px; }
.video button .note { font-size: .8rem; opacity: .8; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }

/* stat tiles */
.stat { text-align: left; }
.stat b { display: block; font-family: "Fredoka", sans-serif; font-size: 1.6rem; }
.stat span { font-size: .88rem; color: var(--ink-soft); }

/* quiz */
.quiz fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.quiz legend { font-weight: 700; margin-bottom: 8px; font-size: 1.05rem; }
.quiz label.opt { display: block; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; margin: 8px 0; cursor: pointer; background: var(--paper); }
.quiz label.opt:hover { background: var(--sky-soft); }
.quiz input[type=radio] { margin-right: 10px; accent-color: var(--ink); }
.quiz input[type=text], .quiz input[type=email] { width: 100%; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; font: inherit; }
.result { display: none; }
.result.show { display: block; }

/* guide pages (rendered from markdown) */
.doc { max-width: 780px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { margin-top: 1.6em; padding-top: 1em; border-top: 3px dashed var(--ink); font-size: 1.6rem; }
.doc blockquote { margin: 1em 0; padding: 12px 16px; border-left: 6px solid var(--pink-deep); background: var(--paper); border-radius: 0 12px 12px 0; }
.doc pre { background: var(--ink); color: #f4efe9; padding: 14px; border-radius: 12px; overflow-x: auto; font-size: .9rem; white-space: pre-wrap; }
.doc code { background: #f1ece6; padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.doc pre code { background: none; padding: 0; }
.doc table { margin: 1em 0; }
.doc .table-wrap { margin: 1em 0; }

footer.site { background: var(--ink); color: #eee; padding: 34px 0; font-size: .9rem; }
footer.site a { color: var(--gold); }
footer.site .brand { display: inline; font-size: 1.1rem; }
footer.site .wrap { display: grid; gap: 10px; }

@media (max-width: 860px) {
  .hero .wrap, .lesson, .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .hero .pig { max-width: 260px; }
  nav.main { display: none; width: 100%; }
  nav.main.open { display: flex; flex-direction: column; }
  header.site .wrap { flex-wrap: wrap; }
  header.site .menu-toggle { display: inline-block; padding: 6px 14px; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }
}

/* ── landing page (structure follows the official site) ── */
.center { justify-content: center; }
.center-text { text-align: center; }
.lede-sm { font-size: 1.08rem; max-width: 46em; color: var(--ink-soft); margin: 0 0 26px; }
.btn.big { padding: 15px 28px; font-size: 1.08rem; }
nav.main a.nav-cta { background: var(--gold); border: var(--line); box-shadow: 3px 3px 0 var(--ink); margin-left: 6px; }
nav.main a.nav-cta:hover { background: var(--gold); }
.hero-proof { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero-collage { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; opacity: .22; filter: saturate(.6);
  transform: rotate(-6deg); pointer-events: none; }
.hero-collage img { width: 100%; height: 460px; object-fit: cover; border-radius: 16px; border: 3px solid var(--ink); }
.hero-center { position: relative; text-align: center; display: block !important; }
.hero-center h1 { max-width: 15em; margin-left: auto; margin-right: auto; font-size: clamp(2.3rem, 5.4vw, 4rem); }
.hero-center h1 em { font-style: normal; background: var(--pink); padding: 0 .2em; border-radius: 12px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-center .lede { margin: 0 auto; font-size: 1.15rem; }
.hero-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats div { background: var(--paper); border: var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 18px; min-width: 150px; }
.hero-stats b { display: block; font-family: "Fredoka", sans-serif; font-size: 1.5rem; }
.hero-stats span { font-size: .85rem; color: var(--ink-soft); }
.ticker { background: var(--ink); color: #fff; overflow: hidden; padding: 14px 0; border-bottom: var(--line); }
.ticker-track { display: flex; gap: 46px; white-space: nowrap; width: max-content; animation: tick 50s linear infinite; font-weight: 700; }
.ticker-track span::before { content: "▲ "; color: #5be38f; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.giant { display: block; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 5rem; line-height: 1; color: var(--pink-deep); -webkit-text-stroke: 3px var(--ink); }
.lead-quote { font-family: "Fredoka", sans-serif; font-size: 1.6rem; font-weight: 600; margin-top: 0; }
.system { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 20px; }
.system .node { background: var(--paper); border: var(--line); padding: 20px; position: relative; }
.system .node + .node { border-left: 0; }
.system .node:first-child { border-radius: 18px 0 0 18px; } .system .node:last-child { border-radius: 0 18px 18px 0; }
.system .node span { font-weight: 700; color: var(--pink-deep); } .system .node b { display: block; font-family: "Fredoka", sans-serif; font-size: 1.4rem; }
.system .node em { font-style: normal; color: var(--ink-soft); font-size: .92rem; }
.founding-grid { columns: 3 300px; column-gap: 22px; }
.founding-card { break-inside: avoid; background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 22px; }
.founding-card img, .founding-card video { width: 100%; border-radius: 10px; border: 2px solid var(--ink); margin-top: 10px; background: #111; }
.founding-who strong { font-family: "Fredoka", sans-serif; font-size: 1.15rem; display: block; }
.founding-who span { font-size: .88rem; color: var(--ink-soft); display: block; }
.pill { display: inline-block; margin-top: 6px; background: var(--gold); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
.discord { background: #313338; color: #dbdee1; border-radius: 10px; padding: 14px; margin-top: 10px; font-size: .92rem; }
.discord-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.discord-head img { width: 32px; height: 32px; border-radius: 50%; margin: 0; border: 0; }
.discord-head b { color: #f2f3f5; } .discord-head span { font-size: .75rem; opacity: .7; }
.discord p { margin: 6px 0; }
section.dark { background: var(--ink); color: #f4efe9; }
section.dark .small { color: #cfc8c0; }
.vt { margin: 12px 0 4px; font-size: 1.1rem; }
.video[data-thumb] button { background-size: cover; background-position: center; }
.video button .play { box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.yt-link { display: inline-block; margin-top: 6px; font-size: .85rem; }
section.dark .yt-link, section.dark a { color: var(--gold); }
.proof-group { margin: 38px 0; }
.proof-group-head h3 { font-size: 1.5rem; margin: 10px 0 2px; }
.proof-grid { columns: 4 230px; column-gap: 18px; margin-top: 16px; }
.proof-card { break-inside: avoid; margin: 0 0 18px; background: var(--paper); border: var(--line); border-radius: 14px; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); }
.proof-card img { width: 100%; border-bottom: 2px solid var(--ink); }
.proof-card figcaption { padding: 10px 12px; }
.proof-card b { display: block; font-family: "Fredoka", sans-serif; font-size: 1.3rem; }
.proof-card span { display: block; font-size: .85rem; color: var(--ink-soft); }
.proof-card em { font-style: normal; font-size: .8rem; font-weight: 700; }
.disclaimer { max-width: 52em; margin: 10px auto 0; text-align: center; }
.support { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-top: 22px; }
.support-stats { display: grid; gap: 10px; }
.support-stats div { border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; background: var(--sky-soft); }
.support-stats b { display: block; font-family: "Fredoka", sans-serif; } .support-stats span { font-size: .88rem; }
.thumb-card { display: block; text-decoration: none; background: var(--paper); border: var(--line); border-radius: 14px; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); }
.thumb-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-bottom: 2px solid var(--ink); }
.thumb-card b { display: block; padding: 10px 12px; }
.faq { max-width: 820px; }
.faq details { background: var(--paper); border: var(--line); border-radius: 14px; margin: 12px 0; box-shadow: 3px 3px 0 var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 18px; list-style: none; }
.faq summary::after { content: "+"; float: right; font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 14px; margin: 0; }
section.final { background: var(--sky); border-top: var(--line); padding: 70px 0; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: grid; place-items: center; z-index: 50; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; max-width: 96vw; width: auto; border-radius: 10px; }
@media (max-width: 860px) {
  .hero-collage { grid-template-columns: repeat(3, 1fr); }
  .system { grid-template-columns: 1fr 1fr; } .system .node { border: var(--line) !important; border-radius: 14px !important; margin: 4px; }
  .support { grid-template-columns: 1fr; }
  nav.main a.nav-cta { margin: 6px 0 0; text-align: center; }
}

/* header fits on one line at desktop widths */
@media (min-width: 861px) {
  header.site .wrap { flex-wrap: nowrap; max-width: 1240px; }
  nav.main { flex-wrap: nowrap; align-items: center; gap: 2px; }
  nav.main a { padding: 6px 9px; font-size: .92rem; white-space: nowrap; }
  nav.main a.nav-cta { padding: 8px 14px; }
}
@media (min-width: 861px) and (max-width: 1150px) { nav.main a[href$="guides.html"], nav.main a[href$="#faq"] { display: none; } }
.hero-center .lede { background: rgba(228, 247, 255, .88); border-radius: 14px; padding: 10px 16px; max-width: 44em; }

.hero-links { margin-top: 18px; font-size: .95rem; background: rgba(228,247,255,.88); display: inline-block; padding: 6px 14px; border-radius: 999px; }
.ticker-note { margin: 6px 0 0; }
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--sky); border-top: var(--line); }
  .sticky-cta .btn { flex: 1; text-align: center; padding: 12px 10px; box-shadow: none; }
  .sticky-cta .btn:first-child { flex: 2; }
  body { padding-bottom: 70px; }
  header.site .menu-toggle { padding: 10px 18px; min-height: 44px; }
  nav.main a { padding: 12px 10px; }
  .hero-center h1 { font-size: 2.1rem; }
}
html, body { overflow-x: hidden; max-width: 100%; }
.hero-links { display: block; max-width: 34em; margin-left: auto; margin-right: auto; border-radius: 16px; line-height: 1.7; }
.hero-center, .hero-center > * { min-width: 0; }
.hero-center .lede, .hero-center h1 { overflow-wrap: anywhere; }
@media (max-width: 860px) { .hero-center .lede { font-size: 1rem; } .hero-center .btn-row.center { flex-direction: column; align-items: stretch; } }

/* member names that link to their X profile */
a.xlink { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--gold); }
a.xlink:hover { text-decoration-color: var(--ink); }
a.xlink::after { content: " 𝕏"; font-size: .8em; opacity: .7; }

/* post landing page (start.html): one headline, one video, one path down */
body.landing { padding-bottom: 0; }
.land-hero { padding: 40px 0 32px; text-align: center; }
.land-hero .wrap { display: block; max-width: 920px; }
.land-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-top: 14px; }
.land-hero p.lede { margin: 0 auto 22px; }
.land-hero .video { box-shadow: 8px 8px 0 var(--ink); }
.land-skip { margin: 22px 0 0; font-weight: 700; }
