/* Toon layer for the public page only (index.html). ours.html keeps plain style.css.
   Look = the Unfold toon cast: cream, thick ink outline, flat colour, gold for curiosity, red for threat. */
:root {
  --bg: #fbf4e6; --card: #fffdf8; --ink: #1a1410; --muted: #6d6152; --line: #eadfca;
  --a: #2f6fdb; --b: #f2a623; --good: #2e9a5b; --bad: #e5322d; --dim: #c2b7a4;
  --gold: #ffc42e; --red: #e5322d; --edge: #1a1410; --pop: 4px 4px 0 var(--edge);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1124; --card: #181c36; --ink: #f3eee4; --muted: #a49cb8; --line: #2b3058;
    --a: #6b9cf0; --b: #ffb84d; --good: #5cc487; --bad: #ff5a52; --dim: #4a4f74;
    --edge: #05060f; --pop: 4px 4px 0 #05060f; }
}
body { font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg) radial-gradient(circle at 1px 1px, rgba(26,20,16,.06) 1px, transparent 0) 0 0 / 22px 22px; }
@media (prefers-color-scheme: dark) { body { background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0); } }
main { max-width: 1060px; padding-top: 14px; }

/* headings like the Short captions: condensed, heavy, one gold word */
h1, h2, .disp { font-family: "Barlow Condensed", "Futura Condensed ExtraBold", Impact, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
h2 { font-size: 34px; line-height: 1.05; margin: 56px 0 14px; }
h2 .k { color: var(--gold); -webkit-text-stroke: 1.5px var(--edge); paint-order: stroke fill; }
h2::before { content: ""; display: inline-block; vertical-align: 4px; margin-right: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--edge); }
.note { font-size: 15px; margin-top: -6px; }

/* hero: full-bleed stage, canvas behind, words on top */
.stage { position: relative; margin: 0 -16px; height: min(78vh, 600px); min-height: 460px; overflow: hidden; border-bottom: 4px solid var(--edge); }
@media (min-width: 1092px) { .stage { margin: 0; border-radius: 28px; border: 4px solid var(--edge); box-shadow: 8px 8px 0 var(--edge); } }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .copy { position: relative; z-index: 2; padding: 30px 26px; max-width: 540px; }
@media (min-width: 761px) { .stage .copy { max-width: 46%; } }
.stage .tag { display: inline-block; background: var(--red); color: #fff; font: 800 13px/1 "Nunito", sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 10px 6px; border: 3px solid #1a1410; border-radius: 8px; box-shadow: 3px 3px 0 #1a1410; transform: rotate(-2deg); }
.stage .tag i { display: inline-block; width: 8px; height: 8px; background: #fff; border-radius: 50%; margin-right: 6px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.stage h1 { margin: 14px 0 8px; font-size: clamp(46px, 9vw, 92px); line-height: .88; color: #fff;
  -webkit-text-stroke: 3px #1a1410; paint-order: stroke fill; text-shadow: 4px 4px 0 #1a1410; }
.stage h1 .k { color: var(--gold); }
.stage p { margin: 0; color: #1a1410; font-weight: 800; font-size: 18px; background: rgba(255,253,248,.88); display: inline; padding: 2px 8px; border-radius: 6px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.75; }
.stage .note { margin-top: 10px; font-size: 13px; color: #1a1410; font-weight: 700; }
.stage .note span { background: rgba(255,253,248,.75); padding: 2px 6px; border-radius: 6px; }
@media (prefers-color-scheme: dark) { .stage p, .stage .note span { background: rgba(14,17,36,.8); color: #f3eee4; } }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 16px; padding: 12px 20px; border: 3px solid #1a1410; box-shadow: 4px 4px 0 #1a1410;
  transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #1a1410; filter: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1a1410; }
.btn.ghost { background: #fffdf8; color: #1a1410; }
.btn.gold { background: var(--gold); color: #1a1410; }
@media (max-width: 760px) {
  .stage { height: 700px; }
  .stage .copy { padding: 20px 16px; }
  .stage p { font-size: 16px; }
  .cta .btn { padding: 10px 16px; font-size: 15px; }
}

/* sticker cards: ink outline + hard offset shadow */
.tile, .card, .goal, .win, .vcard, .rec { border: 3px solid var(--edge); box-shadow: var(--pop); border-radius: 18px; }
.tile, .card, .goal { background: var(--card); }
.tiles.four { margin-top: -54px; position: relative; z-index: 3; padding: 0 10px; }
@media (min-width: 1092px) { .tiles.four { padding: 0 28px; } }
.tiles.four .tile { text-align: left; padding: 16px; }
.tiles.four .tile:nth-child(1) { background: var(--gold); color: #1a1410; transform: rotate(-1.2deg); }
.tiles.four .tile:nth-child(2) { transform: rotate(.8deg); }
.tiles.four .tile:nth-child(3) { transform: rotate(-.6deg); }
.tiles.four .tile:nth-child(4) { background: var(--a); color: #fff; transform: rotate(1deg); }
.tiles.four .tile:nth-child(1) span { color: #4a3a1a; }
.tiles.four .tile:nth-child(4) span { color: #dbe6ff; }
.tile b { font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tile span { font-weight: 700; }
.tile.call b { font-size: 34px; }
.tile.call { border-left-width: 3px; position: relative; overflow: hidden; }
.tile.call::after { content: ""; position: absolute; top: 0; right: 0; width: 46px; height: 46px; border-bottom-left-radius: 46px; background: var(--dim); opacity: .35; }
.tile.call.up::after { background: var(--good); } .tile.call.down::after { background: var(--bad); }

.goal { padding: 16px 18px; }
.gnow b { font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; font-size: 40px; letter-spacing: 0; }
.gbar { height: 16px; border: 2.5px solid var(--edge); border-radius: 10px; background: var(--line); }
.gbar i { background: repeating-linear-gradient(-45deg, var(--gold) 0 10px, #ffd866 10px 20px); border-radius: 0; animation: stripes 1s linear infinite; background-size: 28px 28px; }
@keyframes stripes { to { background-position: 28px 0; } }
.gbar.thin { height: 8px; border-width: 2px; }
.gbar.thin i { background: var(--a); animation: none; }
.gthumb { border: 2.5px solid var(--edge); }
.gpct { font-family: "Barlow Condensed", Impact, sans-serif; font-size: 17px; text-transform: uppercase; }

.rec { background: #1a1410; }
.rec .rt b { font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; color: var(--gold); font-size: 46px; }
.rec:hover, .win:hover, .vcard:hover { transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 7px 8px 0 var(--edge); }
.vcard { transition: transform .15s, box-shadow .15s; }
.vcard:hover { border-color: var(--edge); }
.wbadge { font-family: "Barlow Condensed", Impact, sans-serif; font-size: 28px; border: 2.5px solid #1a1410; box-shadow: 3px 3px 0 #1a1410; background: var(--gold); }
.win.miss .wbadge { background: var(--red); color: #fff; }
.meter { height: 9px; border: 2px solid var(--edge); border-radius: 6px; }
.meter i { background: var(--gold); }
.tabs button { border: 2.5px solid var(--edge); font-weight: 800; color: var(--ink); }
.tabs button.on { background: var(--gold); color: #1a1410; border-color: var(--edge); box-shadow: 3px 3px 0 var(--edge); }
.ht { height: 18px; border: 2.5px solid var(--edge); border-radius: 10px; }
.ht i { border-radius: 0; }
.row, .timeline { padding: 4px 8px 16px 2px; }

/* how it's made (Foldline) */
.made { margin-top: 64px; background: #1a1410; color: #f3eee4; border-radius: 26px; border: 4px solid var(--edge); box-shadow: 8px 8px 0 var(--gold);
  padding: 28px 22px; display: grid; gap: 24px; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 760px) { .made { grid-template-columns: 1fr; padding: 22px 16px; } }
.made h2 { margin: 0 0 10px; color: #fff; font-size: 40px; }
.made h2::before { display: none; }
.made p { color: #d8cfbf; margin: 0 0 12px; }
.made ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.made li { padding-left: 28px; position: relative; color: #f3eee4; }
.made li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid #000; }
.made li b { color: var(--gold); }
.made .small { font-size: 13px; color: #a49a88; margin: 12px 0 0; }
.made .small a { color: var(--gold); }
.code { background: #0c0a08; border: 3px solid #000; border-radius: 16px; padding: 16px; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: #e8e2d6; overflow-x: auto; white-space: pre; }
.code .c { color: #8c8370; } .code .y { color: var(--gold); } .code .r { color: #ff7a6e; } .code .b { color: #8cb4ff; }
.code .bar { display: flex; gap: 6px; margin-bottom: 12px; } .code .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .code .bar i:nth-child(2) { background: #febc2e; } .code .bar i:nth-child(3) { background: #28c840; }
footer.foot { margin: 40px 0 0; padding: 20px 0 0; border-top: 3px dashed var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer.foot a { color: var(--ink); font-weight: 800; }

/* scroll reveal */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1.2); }
.js .rv.in { opacity: 1; transform: none; }
.tiles.four .tile { animation: pop .5s cubic-bezier(.2,.8,.2,1.4) backwards; }
.tiles.four .tile:nth-child(2) { animation-delay: .07s; } .tiles.four .tile:nth-child(3) { animation-delay: .14s; } .tiles.four .tile:nth-child(4) { animation-delay: .21s; }
@keyframes pop { from { transform: scale(.7) rotate(-6deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .gbar i, .stage .tag i, .tiles.four .tile { animation: none; }
}
@media (max-width: 760px) { .tiles.four { margin-top: 18px; padding: 0; } }
