/* 123arc, second pass: organized like the education products on Mobbin. SchoolAI's
   toolkit grid (tabs + compact tool cards), Adobe Express's learn cards (pastel tile +
   centered picture + title), Pinterest Business hub's resource cards, ClassDojo's calm
   two-column hero. One grid, one card system, one type scale. Light only. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/fredoka-latin.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/fonts/nunito-latin.woff2) format("woff2"); }

:root {
  --paper: #fffaf1;
  --paper-2: #fbf2e2;
  --white: #ffffff;
  --ink: #2b1d14;
  --ink-2: #5b4738;
  --muted: #8b7b6d;
  --line: #ecdfcb;
  --line-2: #f4ebdc;
  --yellow: #f4c230;
  --yellow-2: #ffd96a;
  --red: #e8442f;
  --blue: #2e7fe0;
  --green: #35b45b;
  --pink: #f27bb0;
  --orange: #f58a1f;
  --purple: #8a4fd6;
  --sky: #e6f2ff;
  --mint: #e4f7ea;
  --lemon: #fff3c6;
  --rose: #ffe6ee;
  --lilac: #ede7ff;
  --display: "Fredoka", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 10px 28px rgba(74, 48, 24, 0.1), 0 2px 6px rgba(74, 48, 24, 0.06);
  --shadow-sm: 0 3px 10px rgba(74, 48, 24, 0.08);
  --head-h: 68px;
  --wrap: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16.5px/1.6 var(--body); overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.4em; color: var(--ink); }
h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }
.world { display: none; }
.art-field { display: none; }

mark.hl { background: linear-gradient(104deg, transparent 2%, var(--yellow-2) 2%, var(--yellow-2) 96%, transparent 96%); color: inherit; padding: 0 0.1em; border-radius: 4px; box-decoration-break: clone; }
.js mark.hl-now { background-size: 0% 100%; background-repeat: no-repeat; animation: swipe 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s forwards; }
.js [data-reveal] mark.hl { background-size: 0% 100%; background-repeat: no-repeat; }
.js [data-reveal].in mark.hl { animation: swipe 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards; }
@keyframes swipe { to { background-size: 100% 100%; } }

/* ---------- buttons, pills, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: 700 14.5px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: #d9c9b0; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #3a281c; border-color: #3a281c; }
.btn-secondary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-secondary:hover { background: var(--yellow-2); border-color: var(--yellow-2); }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-bar { border-color: var(--line); }
.btn-bar-primary { background: var(--yellow); border-color: var(--yellow); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: transparent; border: 1.5px solid transparent; font: 700 14px/1 var(--body); text-decoration: none; color: var(--ink-2); transition: background 0.15s, color 0.15s; }
.pill svg { width: 15px; height: 15px; }
.pill:hover { background: var(--paper-2); color: var(--ink); }
.pill[aria-current="page"] { background: var(--ink); color: #fff; }
.pill-xs { padding: 4px 9px; font-size: 12px; background: var(--paper-2); }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font: 800 12px/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; background: var(--lemon); color: var(--ink); text-decoration: none; }
.chip-sm { text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 13.5px; background: var(--white); border: 1.5px solid var(--line); padding: 8px 14px; }
.chip-sm:hover { border-color: var(--ink); }
.chip-coloring { background: var(--rose); } .chip-puzzles { background: var(--sky); } .chip-learning { background: var(--lemon); } .chip-games { background: var(--mint); } .chip-paper { background: var(--lilac); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 241, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 14px; height: var(--head-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-one { height: 46px; width: auto; }
.site-nav { display: flex; gap: 2px; margin-left: 10px; }
.head-blog { margin-left: auto; font-weight: 800; font-size: 14.5px; text-decoration: none; color: var(--ink-2); padding: 8px 10px; }
.head-blog[aria-current="page"] { color: var(--ink); }
.head-cta { margin-left: 2px; }

/* ---------- hero ---------- */
.hero { padding: 26px 0 8px; }
.hero-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; padding: 48px 56px; border-radius: var(--r-lg); background: linear-gradient(135deg, #f1f7ff 0%, #fff6e3 100%); border: 1px solid var(--line); }
.hero-text { max-width: 560px; }
.eyebrow { font: 800 12.5px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 16px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 20px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: baseline; gap: 8px 18px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.hero-facts li { white-space: nowrap; }
.hero-facts li::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 6px; }
.hero-facts b { color: var(--ink); font-weight: 800; }
.js .hero-text > * { opacity: 0; transform: translateY(12px); animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.js .hero-text > :nth-child(1) { animation-delay: 0.05s; }
.js .hero-text > :nth-child(2) { animation-delay: 0.12s; }
.js .hero-text > :nth-child(3) { animation-delay: 0.2s; }
.js .hero-text > :nth-child(4) { animation-delay: 0.28s; }
.js .hero-text > :nth-child(5) { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(100%, 460px); height: auto; border-radius: var(--r-lg); }

/* the generator window mockup */
.mock-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
.mock-window { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.mock-chrome { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.mock-chrome span { width: 10px; height: 10px; border-radius: 50%; }
.mock-chrome span:nth-child(1) { background: var(--red); } .mock-chrome span:nth-child(2) { background: var(--yellow); } .mock-chrome span:nth-child(3) { background: var(--green); }
.mock-url { margin-left: 8px; flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font: 600 12px/1.2 var(--body); color: var(--muted); }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mock-bar b { font-family: var(--display); font-size: 15px; font-weight: 600; }
.mock-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--yellow); font: 700 13px/1 var(--body); cursor: pointer; color: var(--ink); }
.mock-btn svg { width: 15px; height: 15px; }
.mock-pill { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 12px/1 var(--body); }
.mock-body { display: grid; grid-template-columns: 150px 1fr; }
.mock-side { padding: 14px; border-right: 1px solid var(--line); background: var(--paper); font-size: 12px; }
.mock-field { margin-bottom: 10px; }
.mock-field label { display: block; font-weight: 800; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.mock-field span { display: block; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-weight: 700; }
.mock-toggle { display: flex; align-items: center; gap: 7px; font-weight: 700; margin-top: 12px; }
.mock-toggle i { width: 28px; height: 16px; border-radius: 999px; background: var(--green); position: relative; }
.mock-toggle i::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.mock-canvas { padding: 16px; background: #eef3f8; display: grid; place-items: center; }
.live-paper { width: 100%; max-width: 240px; aspect-ratio: 8.5 / 11; background: #fff; box-shadow: var(--shadow); padding: 10px 11px; display: flex; flex-direction: column; gap: 6px; transition: transform 0.25s, opacity 0.25s; }
.live.roll .live-paper { transform: scale(0.97); opacity: 0.75; }
.live-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1.5px solid #222; padding-bottom: 4px; font: 700 10px/1.2 var(--body); color: #111; }
.live-head span { font-weight: 500; color: #555; display: inline-flex; align-items: flex-end; gap: 4px; }
.live-head i { display: inline-block; width: 50px; border-bottom: 1px solid #333; height: 1em; }
.live-sheet { flex: 1; min-height: 0; display: grid; place-items: center; }
.live-sheet svg { width: 100%; height: 100%; }
.live-foot { display: flex; justify-content: space-between; font: 600 8px/1 var(--body); color: #999; border-top: 1px solid #eee; padding-top: 4px; }
.mock-text h2 { margin-bottom: 10px; }
.mock-text p { color: var(--ink-2); }
.mock-text ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-2); }
.mock-text li { margin-bottom: 6px; }

/* ---------- sections ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--ink-2); max-width: 60ch; font-size: 15.5px; }
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease calc(var(--i, 0) * 50ms), transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 50ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.band { padding: 44px 0; }
.band + .band { padding-top: 8px; }
.block { position: relative; }

/* toolkit: tabs + compact cards */
.kit-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 5px; background: var(--paper-2); border-radius: 999px; width: max-content; max-width: 100%; }
.kit-tabs a { padding: 8px 16px; border-radius: 999px; font: 700 14px/1 var(--body); color: var(--ink-2); text-decoration: none; }
.kit-tabs a:hover { color: var(--ink); background: #fff; }
.kit-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kit-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.kit-card:hover { border-color: #d9c9b0; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.kit-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); }
.kit-icon svg { width: 22px; height: 22px; }
.kit-icon.coloring { background: var(--rose); } .kit-icon.puzzles { background: var(--sky); } .kit-icon.learning { background: var(--lemon); } .kit-icon.games { background: var(--mint); } .kit-icon.paper { background: var(--lilac); }
.kit-name { display: block; font: 600 15.5px/1.25 var(--display); margin-bottom: 3px; }
.kit-desc { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* category cards */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cat-card { display: flex; flex-direction: column; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-pic { aspect-ratio: 1; display: grid; place-items: center; padding: 14px; }
.cat-pic img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.cat-pic .fan { position: relative; width: 100%; height: 100%; }
.cat-pic .fan img { position: absolute; width: 58%; height: auto; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); border-radius: 4px; object-fit: cover; }
.cat-pic .fan img:nth-child(1) { left: 2%; top: 14%; transform: rotate(-6deg); }
.cat-pic .fan img:nth-child(2) { left: 22%; top: 6%; }
.cat-pic .fan img:nth-child(3) { left: 42%; top: 14%; transform: rotate(6deg); }
.cat-pic.coloring { background: var(--rose); } .cat-pic.puzzles { background: var(--sky); } .cat-pic.learning { background: var(--lemon); } .cat-pic.games { background: var(--mint); } .cat-pic.paper { background: var(--lilac); }
.cat-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.cat-name { font: 600 19px/1.15 var(--display); }
.cat-count { font: 700 12.5px/1 var(--body); color: var(--muted); }
.cat-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }
.cat-cta { display: inline-flex; align-items: center; gap: 6px; font: 800 13.5px/1 var(--body); margin-top: 10px; }
.cat-cta svg { width: 15px; height: 15px; }

/* packs */
.packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pack { display: flex; flex-direction: column; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.pack:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pack-pic { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 12px; background: var(--paper-2); }
.pack-pic img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.pack-pic.coloring { background: var(--rose); } .pack-pic.puzzles { background: var(--sky); } .pack-pic.learning { background: var(--lemon); } .pack-pic.games { background: var(--mint); }
.pack-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.pack-name { font: 600 17px/1.2 var(--display); }
.pack-desc { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.pack .cat-cta { margin-top: 8px; }

/* tool cards: one system */
.tgroup { margin-bottom: 26px; }
.tgroup-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.tgroup-head h2, .tgroup-head h3 { margin: 0; font-size: 21px; }
.tgroup-head .count { font: 700 13px/1 var(--body); color: var(--muted); }
.tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tcard { display: flex; flex-direction: column; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tcard-paper { display: grid; place-items: end center; aspect-ratio: 4 / 3; padding: 14px 18px 0; background: var(--paper-2); overflow: hidden; }
.tcard-coloring .tcard-paper { background: var(--rose); } .tcard-puzzles .tcard-paper { background: var(--sky); } .tcard-learning .tcard-paper { background: var(--lemon); } .tcard-games .tcard-paper { background: var(--mint); } .tcard-paper-cat .tcard-paper { background: var(--lilac); }
.tcard-paper img { width: 68%; height: auto; display: block; border-radius: 4px 4px 0 0; box-shadow: 0 6px 18px rgba(43, 29, 20, 0.16); transition: transform 0.2s; }
.tcard:hover .tcard-paper img { transform: translateY(-4px); }
.tcard-blank { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink-2); opacity: 0.5; }
.tcard-blank svg { width: 36%; height: 36%; stroke-width: 1.4; }
.tcard-body { display: block; padding: 12px 14px 14px; }
.tcard-name { display: block; font: 600 15.5px/1.25 var(--display); }
.tcard-grade { display: block; font: 700 12px/1.3 var(--body); color: var(--muted); margin-top: 3px; }

/* steps */
.steps-band { padding: 44px 0 56px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 18px; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); font: 600 17px/1 var(--display); margin-bottom: 12px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- category and collection pages ---------- */
.crumbs { display: flex; gap: 8px; font: 700 13px/1 var(--body); color: var(--muted); margin: 18px 0 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.cat-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; align-items: center; padding: 36px 44px; border-radius: var(--r-lg); border: 1px solid var(--line); margin: 0 0 28px; background: var(--white); }
.cat-hero .crumbs { margin-top: 0; }
.cat-hero .dek { max-width: 62ch; }
.cat-hero-pic { display: grid; place-items: center; }
.cat-hero-pic img { width: 100%; max-width: 260px; height: auto; border-radius: var(--r); }
.cat-coloring { background: linear-gradient(135deg, #fff, var(--rose)); }
.cat-puzzles { background: linear-gradient(135deg, #fff, var(--sky)); }
.cat-learning { background: linear-gradient(135deg, #fff, var(--lemon)); }
.cat-games { background: linear-gradient(135deg, #fff, var(--mint)); }
.cat-paper { background: linear-gradient(135deg, #fff, var(--lilac)); }
.cat-hero h1 { max-width: 18ch; }
.dek { font-size: 17px; color: var(--ink-2); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- tool page ---------- */
.tool-page { padding-bottom: 40px; }
.tool-head { margin: 4px 0 18px; max-width: 900px; }
.tool-head h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 8px; }
.tool-head .dek { font-size: 16.5px; }
.tool { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.tool-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--white); }
.tool-title { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tool-title b { font: 600 16px/1.2 var(--display); }
.tool-title span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.tool-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 560px; min-width: 0; }
.tool-opts { padding: 16px 16px 22px; border-right: 1px solid var(--line); background: var(--paper); }
.opts-head { display: none; }
.opts-label { font: 800 11.5px/1 var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 12px; }
.field { margin-bottom: 13px; }
.field label { display: block; font: 800 12.5px/1.3 var(--body); margin-bottom: 5px; color: var(--ink-2); }
.field select, .field input, .field textarea { width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); font: 600 14.5px/1.3 var(--body); color: var(--ink); }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 127, 224, 0.18); }
.field textarea { resize: vertical; min-height: 110px; }
.opts-none { font-size: 14px; color: var(--muted); }
.switch { display: flex; align-items: center; gap: 10px; font: 700 13.5px/1.3 var(--body); cursor: pointer; margin: 8px 0 6px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #d8ccb8; transition: background 0.2s; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.opts-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.tool-stage { padding: 22px; background: #eef2f6; min-width: 0; }
.ws-scaler { position: relative; width: 100%; max-width: 816px; margin: 0 auto; overflow: hidden; }
.ws-print-area .ws-page { box-shadow: 0 8px 26px rgba(32, 46, 70, 0.16); margin: 0 0 22px; }
.ws-print-area.no-key .ws-keypage { display: none; }
.ws-print-area.shuffle { animation: shuffle 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes shuffle { 0% { opacity: 0.4; transform: scale(var(--s, 1)) translateY(8px); } 100% { opacity: 1; } }
.tool-status { display: flex; gap: 18px; padding: 8px 14px; border-top: 1px solid var(--line); font: 700 12px/1 var(--body); color: var(--muted); background: var(--white); }
.tool-text { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 10px; }
.note { padding: 20px 20px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); }
.note h2 { font-size: 18px; margin-bottom: 8px; }
.note p { margin: 0; font-size: 15px; color: var(--ink-2); }
.note-yellow { background: var(--lemon); border-color: transparent; } .note-blue { background: var(--sky); border-color: transparent; } .note-pink { background: var(--rose); border-color: transparent; }
.related { margin-top: 30px; }
.mobile-bar, .drawer-backdrop { display: none; }

/* ---------- blog and prose ---------- */
/* ---- blog: panels like nation1 (tinted, faint grid, crayon picture on the right) ---- */
.blog-hero, .post-head { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; padding: 44px 52px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.blog-hero.has-pic, .post-head.has-pic { grid-template-columns: minmax(0, 1fr) 280px; }
.blog-hero::before, .post-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(91, 71, 56, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 71, 56, 0.06) 1px, transparent 1px); background-size: 28px 28px; }
.blog-hero > *, .post-head > * { position: relative; }
.blog-hero { background: linear-gradient(135deg, #fff 0%, var(--lemon) 100%); margin: 18px 0 26px; }
.blog-hero-text { max-width: 620px; }
.blog-hero-pic, .post-head-pic { display: grid; place-items: center; }
.blog-hero-pic img, .post-head-pic img { width: 100%; max-width: 280px; height: auto; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.pcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.pcard-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 700 12.5px/1 var(--body); color: var(--muted); }
.pcard-title { font: 600 19px/1.25 var(--display); color: var(--ink); }
.pcard-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
/* the featured post: text left, picture right */
.pcard-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); margin-bottom: 36px; border-radius: var(--r-lg); }
.pcard-feat .pcard-img { order: 2; aspect-ratio: auto; min-height: 340px; }
.pcard-feat .pcard-body { order: 1; justify-content: center; gap: 12px; padding: 44px 48px; }
.pcard-feat .pcard-title { font-size: 32px; line-height: 1.15; }
.pcard-feat .pcard-desc { font-size: 16px; }
.pcard-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; margin-top: 8px; color: var(--ink); }
.pcard-cta svg { width: 15px; height: 15px; }
/* ---- post page ---- */
.post .wrap, .post-page .wrap { padding-top: 10px; }
.post h1 { margin: 10px 0 18px; }
.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 26px; margin: 1.6em 0 0.5em; }
.prose h3 { margin: 1.3em 0 0.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--blue); }
.prose img { border-radius: var(--r); }
.post-head { margin: 18px 0 24px; }
.post-head h1 { max-width: 17em; margin: 0 0 14px; }
.post-head .crumbs { margin: 0 0 14px; }
.post-head .crumbs span { color: var(--muted); }
.post-head .dek { max-width: 38em; }
.post-kicker { display: flex; align-items: center; gap: 10px; font: 700 13px/1 var(--body); color: var(--muted); margin: 0 0 14px; }
.post-kicker .pill { background: var(--white); border: 1px solid var(--line); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font: 700 13.5px/1 var(--body); color: var(--ink-2); margin: 20px 0 0; }
.post-avatar { width: 34px; height: 28px; object-fit: contain; }
.post-cover { margin: 0; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.post-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; margin-top: 36px; }
.post-prose { font-size: 18px; line-height: 1.75; max-width: 46em; }
.post-prose > p:first-child { font-size: 20px; line-height: 1.6; color: var(--ink); }
.post-prose h2 { font-size: 29px; margin: 1.5em 0 0.55em; scroll-margin-top: calc(var(--head-h) + 16px); }
.post-prose h3 { font-size: 21px; margin: 1.3em 0 0.4em; }
.post-prose p { margin: 0 0 1.1em; }
.post-prose ul, .post-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.post-prose li { margin: 0.35em 0; padding-left: 0.2em; }
.post-prose ol > li::marker { font-weight: 800; color: var(--red); }
.post-prose ul > li::marker { color: var(--red); }
.post-prose a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
/* the sidebar scrolls with the page; each block is a card */
.post-side { display: flex; flex-direction: column; gap: 22px; align-self: start; }
.post-side > * { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.side-label { font: 800 12px/1 var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 7px; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.toc-top { display: none; }
.post-side .side-cta { background: linear-gradient(135deg, #fff, var(--lemon)); border-color: #f3e3a6; }
.side-cta img { width: 49px; height: 40px; object-fit: contain; }
.side-cta-title { font: 600 19px/1.2 var(--display); margin: 12px 0 6px; }
.side-cta p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; }
.side-cta .btn { width: 100%; justify-content: center; }
.side-tools { display: flex; flex-direction: column; gap: 14px; }
.side-tools .side-label { margin-bottom: 2px; }
.side-tool { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.side-tool img { width: 56px; height: 72px; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 6px; background: var(--white); flex: none; }
.side-tool b { display: block; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.side-tool small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.side-tool:hover b { color: var(--blue); }
.post-more { margin-top: 50px; }
.notfound { padding: 60px 0 100px; }

/* ---------- footer ---------- */
.site-foot { margin-top: 60px; padding: 52px 0 32px; background: var(--ink); color: #f3e6d2; }
.site-foot .logo-one { height: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
.foot-small { font-size: 14px; color: #c9b8a4; margin-top: 12px; max-width: 34ch; }
.foot-col { display: flex; flex-direction: column; gap: 7px; }
.foot-col a { font-size: 14px; color: #e8dcc8; text-decoration: none; }
.foot-col a:hover { color: var(--yellow); }
.foot-label { font: 800 12px/1 var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--yellow); margin: 0 0 6px; }
.foot-note { font-size: 13px; color: #a8957f; margin: 36px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.foot-note a { color: #e8dcc8; }

/* ---------- phones and tablets ---------- */
.tabbar { display: none; }
@media (max-width: 1100px) {
  .cats, .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kit, .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero-panel { grid-template-columns: 1fr; padding: 40px 32px; }
  .hero-text { max-width: 640px; }
  .mock-block { grid-template-columns: 1fr; }
  .mock-window { max-width: 640px; }
  .post-grid-2 { grid-template-columns: 1fr; }
  .blog-hero.has-pic, .post-head.has-pic { grid-template-columns: minmax(0, 1fr) 200px; }
  .pcard-feat .pcard-body { padding: 32px 34px; }
  .pcard-feat .pcard-title { font-size: 26px; }
  .toc-top { display: block; margin: 18px 0 0; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
  .toc-top summary { cursor: pointer; font: 800 14px/1.2 var(--body); color: var(--ink); }
  .toc-top[open] summary { margin-bottom: 12px; }
  .post-side .toc { display: none; }
  .cat-hero { grid-template-columns: 1fr; }
  .cat-hero-pic { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .head-row { gap: 10px; }
  .logo-one { height: 40px; }
  .site-nav, .head-blog, .head-cta { display: none; }
  .hero { padding-top: 12px; }
  .hero-panel { padding: 26px 18px 22px; border-radius: var(--r); gap: 22px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 16.5px; }
  .hero-cta .btn { width: 100%; }
  .hero-art img { width: min(100%, 320px); }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .band { padding: 30px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .kit-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; border-radius: 14px; }
  .kit-tabs a { white-space: nowrap; }
  .kit { grid-template-columns: 1fr; gap: 10px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-desc { display: none; }
  .cat-body { padding: 10px 12px 12px; }
  .cat-name { font-size: 16px; }
  .packs { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tgrid.scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px; }
  .tgrid.scroll .tcard { flex: 0 0 64%; scroll-snap-align: start; }
  .steps-band { padding: 30px 0 40px; }
  .steps-grid { grid-template-columns: 1fr; }
  .cat-hero, .blog-hero, .post-head { padding: 24px 18px 20px; border-radius: var(--r); }
  .blog-hero.has-pic, .post-head.has-pic { grid-template-columns: 1fr; gap: 6px; }
  .blog-hero-pic, .post-head-pic { order: -1; justify-items: start; }
  .blog-hero-pic img, .post-head-pic img { max-width: 120px; }
  .post-grid-2 { margin-top: 24px; gap: 28px; }
  .post-prose { font-size: 17px; }
  .post-prose > p:first-child { font-size: 18px; }
  .post-prose h2 { font-size: 24px; }
  .tool-head h1 { font-size: 27px; }
  .tool-bar { padding: 10px 12px; }
  .tool-bar .btn-bar, .tool-bar .btn-bar-primary { display: none; }
  .tool-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tool-stage { padding: 12px; }
  .tool-opts { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 78vh; overflow: auto; border-right: 0; border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2); padding-bottom: 30px; }
  .tool-opts.open { transform: none; }
  .opts-head { display: flex; align-items: center; justify-content: space-between; font: 600 18px/1 var(--display); margin-bottom: 14px; }
  .opts-label { display: none; }
  .drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(43, 29, 20, 0.45); z-index: 60; }
  .drawer-open .drawer-backdrop { display: block; }
  .drawer-open { overflow: hidden; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 250, 241, 0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-bar .btn { padding: 11px 8px; font-size: 13.5px; }
  .has-bar { padding-bottom: 76px; }
  .tool-text { grid-template-columns: 1fr; gap: 10px; }
  .post-grid { grid-template-columns: 1fr; }
  .pcard-feat { grid-template-columns: 1fr; }
  .pcard-feat .pcard-img { order: 0; min-height: 0; aspect-ratio: 16 / 9; }
  .pcard-feat .pcard-body { padding: 18px 18px 22px; }
  .pcard-feat .pcard-title { font-size: 23px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .site-foot { padding: 40px 0 100px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(255, 250, 241, 0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; text-decoration: none; font: 800 11px/1 var(--body); color: var(--ink-2); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--ink); background: var(--lemon); }
  .has-tabs { padding-bottom: 70px; }
  .has-tabs .site-foot { padding-bottom: 60px; }
}
@media (max-width: 420px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .hero-facts { font-size: 13px; flex-wrap: wrap; }
}
