/* ============================================================
   TOOLS FOR STUPID WIZARDS — shared shell
   pure-white light theme · pixel accents · brand purple
   ============================================================ */

@font-face {
  font-family: 'Vickie';
  src: url('assets/fonts/CSVickiePixel-Regular.woff2') format('woff2'),
       url('assets/fonts/CSVickiePixel-Regular.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'VickieOutline';
  src: url('assets/fonts/CSVickiePixel-Outline.woff2') format('woff2'),
       url('assets/fonts/CSVickiePixel-Outline.woff') format('woff');
  font-display: swap;
}

:root {
  --bg:      #ffffff;   /* pure white base */
  --bg-2:    #f4f3f6;   /* faint cool gray */
  --card:    #ffffff;
  --line:    #e6e4ea;   /* light hairline */
  --ink:     #17131c;   /* near-black (matches logo text) */
  --ink-2:   #565064;   /* muted */
  --dim:     #9a94a6;   /* faint */

  --purple:  #7a2f9e;   /* wizard robe */
  --purple-d:#52206b;   /* deep */
  --purple-l:#f3ebf8;   /* tint wash */
  --gold:    #f5a300;   /* staff / coffee */
  --lime:    #4fb336;   /* MC accent */
  --amazon:  #ff9900;   /* review accent */
  --red:     #ff2b45;   /* thumbnail accent */

  /* legacy aliases so tool pages keep working */
  --paper:   #ffffff;
  --paper-2: #f4f3f6;
  --violet:  #7a2f9e;
  --grape:   #52206b;
  --coral:   #ff2b45;
  --sky:     #2f9be6;

  --shadow:    5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);

  --disp: 'Vickie', system-ui, monospace;
  --body: 'Vickie', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.35;
  min-height: 100vh;
  -webkit-font-smoothing: none;
}

::selection { background: var(--purple); color: #fff; }
img { image-rendering: pixelated; }
a { color: var(--purple); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }
.brand:hover img { transform: translateY(-1px); }

/* ---------- coffee button (persistent, right) ---------- */
.coffee {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  font-family: var(--disp);
  font-size: 15px;
  text-decoration: none;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 14px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .08s steps(1), box-shadow .08s steps(1);
  white-space: nowrap;
}
.coffee .cup { font-size: 15px; }
.coffee:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.coffee:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }

/* ---------- pixel buttons ---------- */
.pbtn {
  font-family: var(--disp);
  font-size: 16px;
  cursor: pointer;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .08s steps(1), box-shadow .08s steps(1);
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.pbtn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.pbtn:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }
.pbtn.violet { background: var(--purple); color: #fff; }
.pbtn.lime   { background: var(--lime); color: #fff; }
.pbtn.coral  { background: var(--red); color: #fff; }
.pbtn.big    { width: 100%; font-size: 18px; padding: 18px; }

/* ---------- tool page shell ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 30px 22px 90px; }
.crumb { font-family: var(--disp); font-size: 13px; letter-spacing: 1px; color: var(--ink-2); text-transform: uppercase; margin-bottom: 18px; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--purple); }
.page-title { font-family: var(--disp); font-size: 32px; line-height: 1.3; margin-bottom: 10px; }
.page-intro { font-size: 22px; color: var(--ink-2); margin-bottom: 28px; max-width: 60ch; }

.tool-grid { display: grid; grid-template-columns: 400px 1fr; gap: 26px; align-items: start; }
@media (max-width: 920px) { .tool-grid { grid-template-columns: 1fr; } }

.panel { background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 22px; }
.step { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-size: 15px; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; letter-spacing: 1px; }
.step .n { width: 28px; height: 28px; border: 2px solid var(--purple); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: var(--purple-l); }
.block { margin-bottom: 26px; }
.block:last-child { margin-bottom: 0; }

label.f { display: block; font-family: var(--disp); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-2); margin: 14px 0 6px; }
input[type=text], textarea, input[type=number] {
  width: 100%; font-family: var(--body); font-size: 20px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink); padding: 9px 11px; outline: none;
}
input[type=text]:focus, textarea:focus, input[type=number]:focus { border-color: var(--purple); }
textarea { resize: vertical; min-height: 100px; line-height: 1.4; }
input[type=range] { width: 100%; accent-color: var(--purple); }

.foot-note { max-width: 1180px; margin: 0 auto; padding: 0 22px 50px; font-size: 18px; color: var(--dim); line-height: 1.5; }

/* ---------- plain-font tool pages ----------
   Vickie stays on headings/labels/buttons; controls and body copy
   use a basic font so the setup UI reads clean. */
body.plain { font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.plain input[type=text], body.plain textarea, body.plain input[type=number] { font-family: Arial, Helvetica, sans-serif; font-size: 15px; }
body.plain .page-intro { font-size: 17px; }
body.plain .ctrl { font-size: 15px; }
body.plain .tog { font-size: 15px; }
body.plain .hint { font-size: 13px; }
body.plain .empty { font-size: 14px; }
body.plain .msg-text { font-size: 14px; }
body.plain .seo-body p, body.plain .seo-body ol { font-size: 16px; }
body.plain .seo-body .also { font-size: 15px; }
body.plain .foot-note { font-size: 13px; }

/* ---------- tool page SEO content ---------- */
.seo-body { max-width: 760px; margin-top: 40px; border-top: 2px solid var(--line); padding-top: 34px; }
.seo-body h2 { font-family: var(--disp); font-size: 22px; line-height: 1.35; margin: 34px 0 12px; }
.seo-body h2:first-child { margin-top: 0; }
.seo-body p { font-size: 21px; color: var(--ink-2); line-height: 1.45; margin-bottom: 14px; }
.seo-body ol { font-size: 21px; color: var(--ink-2); line-height: 1.5; padding-left: 26px; margin-bottom: 14px; }
.seo-body ol li { margin-bottom: 8px; }
.seo-body .faq-item { margin-bottom: 18px; }
.seo-body .faq-item h3 { font-family: var(--disp); font-size: 15px; margin-bottom: 6px; }
.seo-body .faq-item p { margin-bottom: 0; }
.seo-body .also { margin-top: 30px; font-size: 20px; }
.seo-body .also a { color: var(--purple); }
