/*
 * blazebite.com theme for Jeff's 3D setup guides.
 *
 * Loaded after each guide's own <style>, so it only restyles: the guide pages
 * and scripts stay Jeff's. Colors, type, and shapes follow app/globals.css
 * (paper/ink/school-red, Cabinet Grotesk + Satoshi, pill buttons, 20px cards).
 * When Jeff ships an update, re-copy his files and keep the <link> to this file.
 */

@font-face { font-family: 'Cabinet Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/cabinet-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Cabinet Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/cabinet-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 400; font-display: swap; src: url('/fonts/satoshi-400.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 500; font-display: swap; src: url('/fonts/satoshi-500.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 700; font-display: swap; src: url('/fonts/satoshi-700.woff2') format('woff2'); }

:root {
  --red: #b7271f;
  --plum: #111111;
  --cream: #f4f4f4;
  --ink: #111111;
  --muted: #4b4b4b;
  --line: #e5e5e5;
  --orange: #b7271f;
  --display: 'Cabinet Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body: 'Satoshi', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Headings: the site's display type is medium weight with tight tracking. */
#title, #ck h1 { font-weight: 500; letter-spacing: -0.02em; }
#before h2 { font-weight: 700; letter-spacing: -0.01em; }
#brand span { font-weight: 700; color: var(--ink); }
.meta { font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; font-size: 12px; }

/* Buttons: site pills. */
#start, #nav button { border-radius: 999px; font-family: var(--body); font-weight: 600; }
#start { font-size: 17px; transition: background-color 200ms ease, transform 160ms cubic-bezier(.23,1,.32,1); }
#start:hover, #next:hover { background: #9f1f19; }
#start:active, #nav button:active { transform: scale(.97); }
#back { border-width: 1.5px; }
.vbtn { border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
#brand, #hint { border-radius: 999px; }
#brand { padding: 7px 14px; }

/* Cards and lists. */
#card { border-radius: 20px 20px 0 0; box-shadow: 0 -12px 32px -16px rgba(0,0,0,.18); }
.item { border: 1px solid var(--line); border-radius: 20px; }
.item:has(input:checked) { border-color: var(--ink); }
.item img { border-radius: 12px; }
.item .box { border-radius: 999px; border-width: 1.5px; border-color: #bdbdbd; }
.item.locked input:checked + .box { background: #8a8a8a; border-color: #8a8a8a; }
#progress { background: var(--line); }
#dots i { background: #dcdcdc; }
#dots i.opt { background: #ececec; outline-color: #c9c9c9; }

/* Callouts: same as the written guides, a red rule on white. */
#warn, #before { background: #fff; border-radius: 0; border-left-color: var(--red); }
#warnLine { color: var(--ink); }

/* 3D labels are styled inline by the engine. */
#label, .tag {
  color: var(--ink) !important;
  border: 1px solid var(--ink) !important;
  border-radius: 999px !important;
  font-family: var(--body) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.14) !important;
}

#ck .foot a, #skip { color: var(--ink); }
#change { color: var(--muted); }

/* Inside the site (iframe under the site header): the header already shows the logo. */
html.embedded #ck .logo, html.embedded #brand img { display: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
