@charset "UTF-8";
/* =========================================================
   site.css: the one stylesheet for designinstruction.info
   Used by the home page, software page and every lesson.

   1. Tokens (colors, fonts)      6. Lesson page: text
   2. Base                        7. Lesson page: components
   3. Site header and footer      8. Business Forms components
   4. Home page                   9. Small screens, print
   5. Lesson page: layout

   TO CHANGE A LESSON'S COLOR: change the "spot-" class on
   that lesson's <body> (spot-coral, spot-purple, spot-green,
   spot-amber, spot-blue, spot-teal, spot-magenta, spot-slate).
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #f7f6f2;      /* page */
  --sheet: #ffffff;      /* raised surfaces */
  --ink: #17212b;        /* text */
  --muted: #55616b;      /* secondary text */
  --rule: #dcdcd4;       /* hairlines */
  --accent: #0a716c;     /* links, focus */
  --accent-soft: #e0f0ee;
  --mark: #ffe79a;       /* highlighter */
  --code-bg: #14202a;    /* code stays dark in both themes */
  --code-fg: #e8eef0;
  --plate: #ffffff;      /* behind screenshots */

  /* Spot colors: each lesson gets one. All pass 4.5:1 on white. */
  --coral: #c2421a;   --coral-soft: #fbe9e2;
  --purple: #6a43c2;  --purple-soft: #eee8fa;
  --green: #2e7d32;   --green-soft: #e5f2e5;
  --amber: #9a5b00;   --amber-soft: #fbefd9;
  --blue: #1c64c8;    --blue-soft: #e3edfb;
  --teal: #0a716c;    --teal-soft: #e0f0ee;
  --magenta: #b02a6b; --magenta-soft: #f8e4ee;
  --slate: #3d5a80;   --slate-soft: #e4eaf2;

  --spot: var(--teal);
  --spot-soft: var(--teal-soft);

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --font-code: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --sidebar: 280px;
  --measure: 46rem;
  --wrap: 1180px;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11171c; --sheet: #1a2229; --ink: #e6ecef; --muted: #a3b0b8; --rule: #2c3842;
    --accent: #5cc8bf; --accent-soft: #15302f; --mark: #6b5a17; --code-bg: #0b1116; --plate: #f2f5f5;
    --coral: #ff9a76;   --coral-soft: #3a2119;
    --purple: #b9a2f5;  --purple-soft: #2a2340;
    --green: #8fd694;   --green-soft: #1d3020;
    --amber: #f2bd63;   --amber-soft: #352a15;
    --blue: #8dbaff;    --blue-soft: #1b2a40;
    --teal: #5cc8bf;    --teal-soft: #15302f;
    --magenta: #f59ac4; --magenta-soft: #3a1d2b;
    --slate: #a9bedb;   --slate-soft: #232d3a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11171c; --sheet: #1a2229; --ink: #e6ecef; --muted: #a3b0b8; --rule: #2c3842;
  --accent: #5cc8bf; --accent-soft: #15302f; --mark: #6b5a17; --code-bg: #0b1116; --plate: #f2f5f5;
  --coral: #ff9a76;   --coral-soft: #3a2119;
  --purple: #b9a2f5;  --purple-soft: #2a2340;
  --green: #8fd694;   --green-soft: #1d3020;
  --amber: #f2bd63;   --amber-soft: #352a15;
  --blue: #8dbaff;    --blue-soft: #1b2a40;
  --teal: #5cc8bf;    --teal-soft: #15302f;
  --magenta: #f59ac4; --magenta-soft: #3a1d2b;
  --slate: #a9bedb;   --slate-soft: #232d3a;
  color-scheme: dark;
}

.spot-coral   { --spot: var(--coral);   --spot-soft: var(--coral-soft); }
.spot-purple  { --spot: var(--purple);  --spot-soft: var(--purple-soft); }
.spot-green   { --spot: var(--green);   --spot-soft: var(--green-soft); }
.spot-amber   { --spot: var(--amber);   --spot-soft: var(--amber-soft); }
.spot-blue    { --spot: var(--blue);    --spot-soft: var(--blue-soft); }
.spot-teal    { --spot: var(--teal);    --spot-soft: var(--teal-soft); }
.spot-magenta { --spot: var(--magenta); --spot-soft: var(--magenta-soft); }
.spot-slate   { --spot: var(--slate);   --spot-soft: var(--slate-soft); }

/* Icons: drawn with a mask so they take the current color. */
.icon { display: inline-block; width: 1.5rem; height: 1.5rem; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.icon-palette   { --i: url(../images/icons/palette.svg); }
.icon-hierarchy { --i: url(../images/icons/hierarchy.svg); }
.icon-file      { --i: url(../images/icons/file.svg); }
.icon-form      { --i: url(../images/icons/icon_form.svg); }
.icon-photoshop { --i: url(../images/icons/photoshop.svg); }
.icon-code      { --i: url(../images/icons/code.svg); }
.icon-paw       { --i: url(../images/icons/paw.svg); }
.icon-triad     { --i: url(../images/icons/triad.svg); }
.icon-layout    { --i: url(../images/icons/layout.svg); }
.icon-play      { --i: url(../images/icons/play.svg); }
.icon-book      { --i: url(../images/icons/book.svg); }
.icon-home      { --i: url(../images/icons/home.svg); }
.icon-arrow     { --i: url(../images/icons/arrow.svg); }

/* A colored square holding a lesson icon */
.badge { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none;
  border-radius: 10px; background: var(--spot); color: var(--sheet); }
.badge .icon { width: 1.6rem; height: 1.6rem; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--paper);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px;
}
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip, .skip-link { position: absolute; left: -999px; top: 0; background: var(--sheet); color: var(--ink); padding: 8px 12px; z-index: 100; font-weight: 700; }
.skip:focus, .skip-link:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- 3. Site header and footer (home, software) ---------- */
.site-header { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.wordmark img { display: block; width: 29px; height: 35px; object-fit: contain; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark img { filter: brightness(0) invert(1); }
}
:root[data-theme="dark"] .wordmark img { filter: brightness(0) invert(1); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-weight: 700; text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-nav .nav-home { display: inline-flex; align-items: center; gap: 6px; }
.site-nav .nav-home .icon { width: 1.15rem; height: 1.15rem; }
.site-footer { border-top: 1px solid var(--rule); background: var(--sheet); padding: 24px 0; font-size: 0.95rem; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer a { font-weight: 700; }

/* ---------- 4. Home page ---------- */
.hero { padding: 32px 0 24px; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.5vw, 3.75rem); margin: 0 0 14px; max-width: 18ch; }
.hero .lede { font-size: 1.25rem; color: var(--muted); max-width: 40rem; margin: 0; }
.spots { display: flex; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.spots li { width: 36px; height: 10px; border-radius: 5px; background: var(--c); }

.section { padding: 32px 0 48px; }
.section-head { margin: 0 0 20px; }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem); margin: 0 0 4px; }
.section-head p { margin: 0; color: var(--muted); max-width: 46rem; }
.group-label { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%;
  background: var(--sheet); border: 1px solid var(--rule); border-top: 6px solid var(--spot);
  border-radius: var(--radius); padding: 20px; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card is clickable */
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--spot-soft); color: var(--spot); }
.chip .icon { width: 0.95rem; height: 0.95rem; }
.card .go { position: absolute; right: 18px; top: 22px; color: var(--spot); }
.card .go .icon { width: 1.4rem; height: 1.4rem; transition: transform .15s ease; }
.card:hover .go .icon { transform: translateX(4px); }

.more { margin: 20px 0 0; font-weight: 700; }

/* Design principles gallery: swipe or scroll, no autoplay */
.principles { background: var(--sheet); border-block: 1px solid var(--rule); }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 720px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0; list-style: none;
}
.gallery figure { margin: 0; scroll-snap-align: start; background: var(--plate); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; max-width: none; }
.gallery figcaption { margin: 0; padding: 14px 18px; border-top: 6px solid var(--spot); color: var(--ink); background: var(--sheet); font-size: 0.95rem; }
.gallery figcaption strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.gallery-hint { margin: 8px 0 0; font-size: 0.9rem; color: var(--muted); }

/* Video embed (software page) */
.embed { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--sheet); }
.embed iframe { display: block; width: 100%; height: 800px; border: 0; }

/* Simple centered message page (end of an interactive lesson) */
.message { max-width: 34rem; margin: 12vh auto; padding: 32px; text-align: center; background: var(--sheet); border: 1px solid var(--rule); border-top: 6px solid var(--spot); border-radius: var(--radius); }
.message h1 { font-size: 1.8rem; margin: 0 0 8px; }
.message p { color: var(--muted); }

/* ---------- 5. Lesson page: layout ---------- */
/* Phone: sticky bar on top with a "Steps" button.
   Desktop (1000px+): fixed step list on the left. */
.shell { display: block; }
.sidebar {
  position: sticky; top: 0; z-index: 20; background: var(--sheet); border-bottom: 1px solid var(--rule);
  padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.home-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 0.95rem; font-weight: 700; color: var(--spot); background: var(--spot-soft); border: 1px solid transparent; border-radius: 999px; padding: 6px 14px 6px 10px; text-decoration: none; }
.home-link .icon { width: 1.2rem; height: 1.2rem; }
.home-link:hover { border-color: var(--spot); }
.sidebar .home-link { order: -2; }
.sidebar .menu-btn { order: -1; }
.sidebar .brand { flex-basis: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand .badge { width: 2.25rem; height: 2.25rem; border-radius: 8px; }
.brand .badge .icon { width: 1.3rem; height: 1.3rem; }
.brand span:not(.badge):not(.icon) { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.brand strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; }
.menu-btn { font: 700 0.9rem var(--font-body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 14px; cursor: pointer; }
#guide-nav { width: 100%; }
#guide-nav[data-open="false"] { display: none; }
.nav-section { margin: 14px 0 4px; font: 700 0.72rem/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nav-section:first-child { margin-top: 6px; }
#guide-nav ol { list-style: none; margin: 0; padding: 0; max-width: none; }
#guide-nav li { margin: 0; }
#guide-nav a, .warmup-step-links a {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; line-height: 1.35;
  color: var(--ink); text-decoration: none;
}
#guide-nav a {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 4px; align-items: baseline;
  padding: 6px 8px; border-radius: 6px; border-left: 3px solid transparent;
}
#guide-nav a .num { font: 500 0.78rem var(--font-code); color: var(--muted); font-variant-numeric: tabular-nums; }
#guide-nav a:hover { background: var(--paper); }
#guide-nav a[aria-current="page"] { background: var(--spot-soft); color: var(--spot); font-weight: 700; border-left-color: var(--spot); }
#guide-nav a[aria-current="page"] .num { color: var(--spot); }
#guide-nav a:not(:has(.num)) { display: block; }
#guide-nav .nav-sub { margin: 2px 0 6px 10px; }
#guide-nav .nav-sub a { font-weight: 400; }
#guide-nav .nav-sub a[aria-current="page"] { font-weight: 700; }
#guide-nav .nav-extra { margin: 14px 0 0; padding: 0; font-size: 0.9rem; max-width: none; }
.sidebar > .credit {
  flex: 0 1 100%; max-width: none; margin: 12px 8px 0; padding-top: 12px;
  border-top: 1px solid var(--rule); font-size: 0.78rem;
}

.content { padding: 28px 16px 64px; max-width: calc(var(--measure) + 32px); margin: 0 auto; min-width: 0; }

@media (min-width: 1000px) {
  .shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .sidebar {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap;
    border-bottom: 0; border-right: 1px solid var(--rule); border-top: 6px solid var(--spot); padding: 18px 16px;
  }
  .sidebar .home-link { margin: 0 8px 16px; }
  .sidebar .brand { flex-basis: auto; }
  .sidebar > .credit { flex: 0 0 auto; margin: 0 8px; }
  .brand { padding: 0 8px 16px; border-bottom: 1px solid var(--rule); }
  .brand .badge { width: 2.75rem; height: 2.75rem; border-radius: 10px; }
  .brand .badge .icon { width: 1.6rem; height: 1.6rem; }
  .menu-btn { display: none; }
  #guide-nav, #guide-nav[data-open="false"] { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  .content { padding: 48px 48px 96px; margin: 0; }
}

/* Single-page lesson (VS Code Warm-Up): one bar on top with the step tabs */
.topbar { position: sticky; top: 0; z-index: 20; display: grid; gap: 8px; background: var(--sheet); border-bottom: 1px solid var(--rule); border-top: 6px solid var(--spot); padding: 10px 16px; }
.topbar .brand { max-width: calc(var(--measure) + 32px); width: 100%; margin: 0 auto; padding: 0; border-bottom: 0; }
.topbar .home-link { justify-self: start; }
.topbar .warmup-stepper { width: 100%; }
.content.solo { margin-inline: auto; }
@media (min-width: 1000px) {
  .content.solo { padding: 48px 16px 96px; }
  .shell > .content.solo { margin: 0; }
  .topbar { grid-template-columns: max-content max-content minmax(0, 1fr); gap: 24px; align-items: center; }
  .topbar .brand { width: auto; margin: 0; }
}
.warmup-stepper { min-width: 0; max-width: calc(var(--measure) + 32px); margin: 0 auto; padding: 0; }
.warmup-step-links { list-style: none; margin: 0; padding: 0; max-width: none; }
.warmup-step-links li { margin: 0; }
.warmup-step-links a { display: block; padding: 6px 8px; border-radius: 6px; }
.warmup-step-links a:hover { background: var(--paper); }
.warmup-step-links a[aria-current="step"] { color: var(--spot); background: var(--spot-soft); font-weight: 700; border-left: 3px solid var(--spot); }
.warmup-step-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; margin-top: 14px; }
.warmup-step-controls a { display: inline-block; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 6px; color: var(--accent); text-decoration: none; font-size: 0.85rem; font-weight: 700; }
.warmup-step-controls a:first-child { justify-self: start; }
.warmup-step-controls .warmup-step-status { grid-column: 1 / -1; grid-row: 1; }
.warmup-step-controls a:last-child { justify-self: end; background: var(--spot); border-color: var(--spot); color: var(--sheet); }
.warmup-step-controls a[hidden] { display: none; }
.warmup-step-status { margin: 0; color: var(--muted); font-size: 0.8rem; text-align: center; white-space: nowrap; }
.warmup-panel { scroll-margin-top: 10rem; }
.warmup-panel[hidden] { display: none; }
@media (min-width: 1000px) { .warmup-stepper { max-width: none; margin: 0; } }

/* ---------- 6. Lesson page: text ---------- */
.eyebrow { display: inline-block; margin: 0 0 10px; font: 700 0.78rem var(--font-code); letter-spacing: 0.04em; text-transform: uppercase; color: var(--spot); background: var(--spot-soft); padding: 3px 10px; border-radius: 999px; }
.hero .eyebrow { background: var(--accent-soft); }
.content h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin: 0 0 12px; }
.content h1 .mark, .mark { background: linear-gradient(transparent 60%, var(--spot-soft) 60%); padding: 0 .08em; }
.content h2 { font-size: 1.5rem; margin: 48px 0 12px; padding-top: 20px; border-top: 1px solid var(--rule); position: relative; }
.content h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 4px; border-radius: 0 0 4px 4px; background: var(--spot); }
.content.solo h2 { margin-top: 28px; }
.content h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.lede { font-size: 1.2rem; color: var(--muted); margin: 0 0 20px; max-width: 40rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 8px; padding: 12px 0; border-block: 1px solid var(--rule); }
.meta div { min-width: 0; }
.meta dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.meta dd { margin: 0; font-size: 0.95rem; }

.content p, .content ul, .content ol { max-width: var(--measure); }
.content p { margin: 0 0 14px; }
.content li { margin-bottom: 6px; }
mark { background: var(--mark); color: inherit; padding: 0 0.15em; border-radius: 2px; }
.do { color: var(--spot); font-weight: 700; }
:not(pre) > code { font-family: var(--font-code); font-size: 0.86em; background: var(--spot-soft); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
kbd { font-family: var(--font-code); font-size: 0.82em; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 0 0.35em; background: var(--sheet); }

/* ---------- 7. Lesson page: components ---------- */
/* Numbered steps */
ol.steps { list-style: none; padding: 0; margin: 16px 0 24px; counter-reset: step var(--start, 0); }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 18px 3rem; margin: 0 0 18px; border-bottom: 1px solid var(--rule); }
ol.steps > li:last-child { border-bottom: 0; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; font: 700 0.95rem var(--font-code); color: var(--sheet); background: var(--spot);
}
ol.steps > li > *:last-child { margin-bottom: 0; }

/* Callouts: tip (default), warn, info, vs (VS Code). Each gets an icon. */
.callout { --c: var(--accent); --c-soft: var(--sheet); --ci: url(../images/icons/tip.svg);
  border: 1px solid var(--rule); border-left: 5px solid var(--c); background: var(--c-soft);
  padding: 14px 18px; margin: 20px 0; border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--measure); }
.callout > :last-child { margin-bottom: 0; }
.callout .label { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--c); margin-bottom: 6px; }
.callout .label:not(:has(svg))::before { content: ""; width: 1.15rem; height: 1.15rem; flex: none; background: currentColor;
  -webkit-mask: var(--ci) center / contain no-repeat; mask: var(--ci) center / contain no-repeat; }
.callout.warn { --c: var(--coral); --c-soft: var(--coral-soft); --ci: url(../images/icons/warn.svg); }
.callout.info { --c: var(--blue); --c-soft: var(--blue-soft); --ci: url(../images/icons/info.svg); }
.callout.vs   { --c: var(--blue); --ci: url(../images/icons/code.svg); }

/* Figures and captions */
.content figure { margin: 24px 0; max-width: var(--measure); }
figure .plate { background: var(--plate); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px; }
figure .plate img, figure .plate video { margin: 0 auto; }
.content figcaption { display: flex; gap: 8px; align-items: baseline; font-size: 0.9rem; color: var(--muted); margin-top: 8px; padding-left: 10px; border-left: 3px solid var(--spot); }

/* Code */
.code { margin: 16px 0 22px; max-width: var(--measure); border-radius: var(--radius); overflow: hidden; background: var(--code-bg); }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; background: rgba(255,255,255,0.06); color: #b9cbc8; font: 500 0.8rem var(--font-code); border-top: 4px solid var(--spot); }
.code-head .file { overflow-wrap: anywhere; }
.code .copy { font: 700 0.78rem var(--font-body); color: #e5eeec; background: transparent; border: 1px solid rgba(255,255,255,0.3); border-radius: 5px; padding: 4px 10px; cursor: pointer; flex: none; }
.code .copy:hover { background: rgba(255,255,255,0.12); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 0.86rem/1.55 var(--font-code); color: var(--code-fg); tab-size: 2; }
.code pre code { font: inherit; background: none; padding: 0; }
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #8aa39f; font-style: italic; }
.token.tag, .token.selector, .token.keyword { color: #7fd6cf; }
.token.attr-name, .token.property { color: #f2c879; }
.token.attr-value, .token.string { color: #b8e08a; }
.token.punctuation { color: #a9bcb9; }
.token.number, .token.unit, .token.boolean { color: #f59f80; }
.token.function { color: #9ec8ff; }
.token.atrule, .token.rule { color: #e39ad8; }

/* Inline file, folder and app icons */
.folder-icon { display: inline-block; width: 1.5em; height: 1.5em; margin-right: 0.5em; vertical-align: -0.15em; fill: #017e37; stroke: white; stroke-width: .5; stroke-linecap: round; stroke-linejoin: round; }
.file-icon { display: inline-block; width: 1.25em; height: 1.25em; margin-right: 0.5em; vertical-align: -0.15em; fill: #aaff9b; stroke: currentColor; stroke-width: .5; stroke-linecap: round; stroke-linejoin: round; }
.photoshop-icon, .vscode-icon { display: inline-block; width: 3em; height: 3em; margin-inline: 0.15em; vertical-align: middle; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; max-width: var(--measure); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
tr:last-child td { border-bottom: 0; }
th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--spot); background: var(--spot-soft); }
td code { white-space: nowrap; }
tbody th { text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--ink); background: var(--spot-soft); }

/* Folder trees */
.tree { font: 0.9rem/1.6 var(--font-code); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; max-width: var(--measure); margin: 16px 0 22px; white-space: pre; }
.tree b { color: var(--spot); }
.tree i { color: var(--muted); font-style: normal; }

/* Checklists (ticks are saved in the browser) */
.checklist { list-style: none; padding: 0; margin: 12px 0 24px; }
.checklist li { margin: 0; border-bottom: 1px solid var(--rule); }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; cursor: pointer; }
.checklist input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--spot); flex: none; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--spot); }
.progress { font: 700 0.9rem var(--font-code); color: var(--spot); }

/* Buttons and link lists */
.btn, .button { display: inline-block; font-weight: 700; text-decoration: none; color: var(--sheet); background: var(--spot); padding: 10px 16px; border-radius: 6px; margin: 4px 8px 4px 0; border: 2px solid var(--spot); }
.btn.ghost { color: var(--spot); background: transparent; }
.btn:hover, .button:hover { filter: brightness(0.92); }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px; max-width: var(--measure); margin: 16px 0 24px; padding: 0; list-style: none; }
.links li { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--spot); border-radius: var(--radius); padding: 14px 16px; }
.links a { font-weight: 700; }
.links p { margin: 4px 0 0; font-size: 0.92rem; color: var(--muted); }

/* Previous / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; max-width: var(--measure); }
.pager a { display: block; text-decoration: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 16px; min-width: 0; color: var(--ink); background: var(--sheet); }
.pager .next { color: var(--sheet); background: var(--spot); border-color: var(--spot); text-align: right; grid-column: 2; }
.pager a:hover { filter: brightness(0.94); }
.pager small { display: block; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.pager .prev small { color: var(--muted); }
.pager span { font-family: var(--font-display); font-weight: 700; }
.credit { margin-top: 40px; font-size: 0.85rem; color: var(--muted); }

/* Week timeline (project overview pages) */
.week-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 12px; max-width: var(--measure); margin: 16px 0 24px; }
.week { background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--spot); border-radius: var(--radius); padding: 14px 16px; }
.week h3 { margin: 0 0 6px; font-size: 1rem; }
.week ul { margin: 0; padding-left: 1.1rem; font-size: 0.93rem; }

/* ---------- 8. Business Forms components ---------- */
.big-list { margin: 0 0 16px; padding: 0; list-style: none; }
.big-list li { position: relative; padding: 10px 0 10px 1.75rem; margin: 0; border-bottom: 1px solid var(--rule); }
.big-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: .7rem; border-radius: 3px; background: var(--spot); }

/* Two big choices with a photo */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: var(--measure); }
.path { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.path:hover, .path:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.path img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 6px solid var(--spot); }
.path-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.path-kicker { font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--spot); }
.path h3 { font-size: 1.5rem; margin: 2px 0 6px; }
.path p { margin: 0 0 14px; color: var(--muted); }
.path .cta { margin-top: auto; font-weight: 700; color: var(--spot); }

/* Numbered list of sub-pages */
.section-list { list-style: none; margin: 16px 0 24px; padding: 0; counter-reset: sec; max-width: var(--measure); }
.section-list li { margin: 0 0 10px; counter-increment: sec; }
.section-list .lesson-row { display: grid; grid-template-columns: 2.4rem 1fr 1.5rem; gap: 2px 14px; align-items: start; padding: 14px 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.section-list .lesson-row::before { content: counter(sec); grid-row: 1 / 3; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem var(--font-code); color: var(--sheet); background: var(--spot); }
.section-list .lesson-row h3 { margin: 4px 0 0; font-size: 1.15rem; }
.section-list .lesson-row p { grid-column: 2; margin: 0; font-size: .95rem; color: var(--muted); }
.section-list .lesson-row .go { grid-column: 3; grid-row: 1 / 3; align-self: center; color: var(--spot); font-size: 1.3rem; }
.section-list .lesson-row:hover { border-color: var(--spot); background: var(--spot-soft); }

/* Two-step cards */
.step-cards { list-style: none; margin: 16px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: var(--measure); }
.step-cards li { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--spot); border-radius: var(--radius); padding: 16px; }
.step-num { display: inline-block; font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; background: var(--spot-soft); color: var(--spot); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.step-cards h3 { margin: 0 0 6px !important; font-size: 1.1rem !important; }
.step-cards p { margin: 0 !important; color: var(--muted); }

/* Sample text boxes with a copy button */
.sample { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin: 18px 0 24px; max-width: var(--measure); }
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 16px; background: var(--spot-soft); border-bottom: 1px solid var(--rule); }
.sample-label { font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--spot); }
.sample .copy { font: 700 .8rem var(--font-body); cursor: pointer; background: var(--sheet); color: var(--spot); border: 1px solid var(--spot); border-radius: 6px; padding: 4px 10px; }
.sample .copy:hover, .sample .copy.done { background: var(--spot); color: var(--sheet); }
.sample-body { padding: 16px 18px 4px; font-size: 1rem; }
.sample-body p, .sample-body ul { margin: 0 0 14px; }
.sample-body ul { padding-left: 1.25rem; }
.fees { margin: 0 0 14px; border-top: 1px solid var(--rule); }
.fees div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.fees dt { font-weight: 700; }
.fees dd { margin: 0; }

/* Placeholder text the student replaces */
.fill { color: var(--purple); background: var(--purple-soft); font-weight: 700; padding: 0 .2em; border-bottom: 2px dashed var(--purple); }
.legend { font-size: .95rem; color: var(--muted); }
.para-tag { display: inline-block; vertical-align: middle; margin-right: .35rem; font: 700 .72rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; background: var(--spot); color: var(--sheet); padding: 3px 8px; border-radius: 999px; position: relative; top: -.15em; }

/* Instructor notes look like callouts */
.note { --c: var(--coral); border: 1px solid var(--rule); border-left: 5px solid var(--c); background: var(--coral-soft); padding: 14px 18px; margin: 20px 0; border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--measure); }
.note p { margin: 0 0 8px !important; }
.note p:last-child { margin-bottom: 0 !important; }
.note .note-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.note .note-label::before { content: ""; width: 1.15rem; height: 1.15rem; background: currentColor; -webkit-mask: url(../images/icons/note.svg) center / contain no-repeat; mask: url(../images/icons/note.svg) center / contain no-repeat; }

/* Assignment box */
.action { background: var(--spot-soft); border: 1px solid var(--rule); border-left: 5px solid var(--spot); border-radius: 0 var(--radius) var(--radius) 0; padding: 4px 20px 14px; margin: 40px 0 0; max-width: var(--measure); }
.content .action h2 { border-top: 0; margin: 14px 0 8px; padding-top: 0; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; color: var(--spot); }
.content .action h2::before { position: static; content: ""; width: 1.3rem; height: 1.3rem; border-radius: 0; background: currentColor; -webkit-mask: url(../images/icons/check.svg) center / contain no-repeat; mask: url(../images/icons/check.svg) center / contain no-repeat; }
.action ul { margin: 0; padding-left: 1.25rem; }

/* Image + text resource links */
.resources { display: grid; gap: 14px; max-width: var(--measure); }
.resource { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px; color: var(--ink); text-decoration: none; }
.resource:hover { border-color: var(--spot); }
.resource img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.resource h3 { margin: 0 0 4px !important; font-size: 1.1rem !important; }
.resource p { margin: 0 0 6px !important; color: var(--muted); font-size: .95rem; }
.resource .cta { font-weight: 700; color: var(--spot); }

.figure img { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--plate); }

/* ---------- 8b. Concept lessons (Color Theory, Visual Hierarchy, File Types, Photoshop Intro) ---------- */
/* A grid of picture cards, each with a heading and short text */
.concepts { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; max-width: var(--measure); }
.concepts.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.concepts > li { margin: 0; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); border-top: 5px solid var(--spot); border-radius: var(--radius); overflow: hidden; }
.concepts img { width: auto; max-width: 100%; height: auto; max-height: 280px; object-fit: contain; margin: 0 auto; padding: 10px 10px 0; }
.concepts .body { padding: 14px 16px 16px; }
.content .concepts h3 { margin: 0 0 6px; font-size: 1.15rem; }
.concepts p, .concepts ul { margin: 0 0 8px !important; font-size: 0.97rem; }
.concepts ul { padding-left: 1.1rem; }
.concepts .credit-line { font-size: 0.8rem; color: var(--muted); margin: 0 !important; }

/* Key idea: a short sentence to remember */
.key-idea { position: relative; margin: 28px 0; padding: 18px 20px 18px 58px; max-width: var(--measure); background: var(--spot-soft); border-radius: var(--radius); font-family: var(--font-display); font-size: 1.2rem; line-height: 1.35; }
.key-idea::before { content: "\201C"; position: absolute; left: 16px; top: 4px; font-size: 3.2rem; line-height: 1; color: var(--spot); }
.key-idea p { margin: 0 0 6px !important; }
.key-idea p:last-child { margin-bottom: 0 !important; }

/* Sorting exercise */
.sort { max-width: var(--measure); margin: 18px 0 32px; padding: 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
.sort-items { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sort-item { margin: 0; padding: 10px; border: 2px solid var(--rule); border-radius: 8px; }
.sort-item img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.sort-item label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.sort-item select { width: 100%; font: inherit; padding: 6px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); }
.sort-mark { display: block; min-height: 1.4em; margin-top: 6px; font-size: 0.85rem; font-weight: 700; }
.sort-item.is-right { border-color: var(--green); }
.sort-item.is-right .sort-mark { color: var(--green); }
.sort-item.is-wrong { border-color: var(--coral); }
.sort-item.is-wrong .sort-mark { color: var(--coral); }
.sort-check { font: 700 1rem var(--font-body); cursor: pointer; }
.sort-result { display: inline-block; margin: 0 0 0 10px; font-weight: 700; }

/* Video link card */
.video-link { display: flex; align-items: center; gap: 14px; max-width: var(--measure); margin: 18px 0 24px; padding: 14px 16px; background: var(--sheet); border: 1px solid var(--rule); border-left: 5px solid var(--spot); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); text-decoration: none; }
.video-link .icon { width: 2rem; height: 2rem; color: var(--spot); }
.video-link strong { display: block; font-family: var(--font-display); }
.video-link span { color: var(--muted); font-size: 0.92rem; }
.video-link:hover { border-color: var(--spot); }

/* ---------- 9. Small screens, motion, print ---------- */
@media (max-width: 560px) {
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; grid-row: 1; }
  .resource { grid-template-columns: 1fr; }
  .resource img { height: 160px; }
  .embed iframe { height: 600px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .sidebar, .topbar, .pager, .copy, .skip, .skip-link, .site-nav { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
}

/* ---------- 8c. Choosing Fonts lesson ---------- */
.icon-type { --i: url(../images/icons/type.svg); }

/* Row of big letters in different typefaces */
.type-strip { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: baseline; gap: 8px 18px; padding: 22px 16px; background: var(--sheet); border: 1px solid var(--rule); border-top: 6px solid var(--spot); border-radius: var(--radius); font-size: clamp(2.6rem, 2rem + 3vw, 4rem); line-height: 1.1; color: var(--ink); }

/* Type specimen cards */
.specimens { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; max-width: var(--measure); }
.specimens.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.specimens > li { margin: 0; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); border-top: 5px solid var(--spot); border-radius: var(--radius); overflow: hidden; }
.spec { font-size: 2.9rem; line-height: 1.15; padding: 16px 16px 6px; color: var(--ink); overflow-wrap: anywhere; }
.specimens .body { padding: 0 16px 16px; }
.content .specimens h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.specimens p { margin: 0 0 6px !important; font-size: 0.93rem; }
.specimens .shown { font-size: 0.8rem; color: var(--muted); margin: 0 !important; }
.concepts.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.spec-para { font-size: 1.1rem; line-height: 1.5; }

/* Fits / mismatch labels */
.verdict { display: inline-block; margin: 0 0 6px; font: 700 0.72rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; }
.verdict.good { color: var(--green); background: var(--green-soft); }
.verdict.bad { color: var(--coral); background: var(--coral-soft); }
.verdict.meh { color: var(--amber); background: var(--amber-soft); }

/* Mock business cards */
.mock { display: grid; place-content: center; gap: 4px; min-height: 150px; padding: 24px 16px; text-align: center; background: var(--paper); border-bottom: 1px solid var(--rule); color: var(--ink); }
.mock .m-name { font-size: 2rem; line-height: 1.15; }
.mock .m-sub { font-size: 0.95rem; color: var(--muted); }

/* Font tryout: buttons swap the typeface of the sample */
.font-try, .pair-lab { max-width: var(--measure); margin: 18px 0 32px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.font-try-show { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; padding: 24px 18px; background: var(--paper); border-bottom: 1px solid var(--rule); text-align: center; }
.content .font-try-stage { margin: 0; max-width: none; color: var(--ink); }
.content .alphabet { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); line-height: 1.4; overflow-wrap: anywhere; }
.font-try-controls { padding: 14px 18px 16px; }
.content .font-try-label { margin: 0 0 8px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.font-try-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.font-try-buttons button { font: 700 0.9rem var(--font-body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.font-try-buttons button:hover { border-color: var(--spot); }
.font-try-buttons button[aria-pressed="true"] { color: var(--sheet); background: var(--spot); border-color: var(--spot); }
.content .font-try-note { margin: 12px 0 0; min-height: 3.2em; }

/* Tree illustration (imagery page) */
.tree-art { width: 100%; max-width: 240px; height: auto; flex: none; }
.tree-art .canopy, .tree-art .trunk, .tree-art .ground { fill: var(--green); }
.tree-art .holes { fill: var(--paper); }
.tree-plate .tree-art .holes { fill: var(--plate); }
.tree-plate .tree-art .canopy, .tree-plate .tree-art .trunk, .tree-plate .tree-art .ground { fill: #2e7d32; }
.tree-art .guide { fill: none; stroke: var(--coral); stroke-width: 2; stroke-dasharray: 6 4; }
.tree-plate .tree-art .guide { stroke: #c2421a; }
.tree-card .tree-art { max-width: 170px; }
.tree-card .font-try-stage { display: grid; gap: 4px; }
.tree-card .t-big { font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.4rem); line-height: 1; }
.tree-card .t-small { font-size: 1.05rem; }

/* Shape matching and color blending demos */
.shape-demo { display: grid; justify-items: center; gap: 8px; padding: 22px 16px; background: var(--paper); border-bottom: 1px solid var(--rule); color: var(--ink); }
.shape-demo svg { width: 150px; height: auto; fill: var(--spot); }
.shape-demo span { font-size: 2.2rem; line-height: 1.1; }
.blend-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; padding: 24px 16px !important; }
.blend-demo svg { width: 110px; height: 110px; }
.blend-text { font-size: clamp(2.4rem, 1.8rem + 3vw, 3.8rem); line-height: 1; background: linear-gradient(180deg, #f6c344, #c0571b); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Sample articles and the pairing lab */
.pair-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.pair-controls label { display: block; margin-bottom: 4px; font-size: 0.85rem; font-weight: 700; }
.pair-controls select { width: 100%; font: inherit; padding: 6px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); }
.article-sample { padding: 20px 18px; background: var(--paper); border-bottom: 1px solid var(--rule); color: var(--ink); }
.pair-lab .article-sample { border-bottom: 0; padding: 24px 22px; }
.content .article-sample h3 { margin: 0 0 6px; font-family: var(--pair-head, var(--font-display)); font-size: 1.75rem; line-height: 1.1; letter-spacing: 0; }
.pair-lab .article-sample h3 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); }
.content .article-sample p { margin: 0 0 10px; font-family: var(--pair-body, var(--font-body)); font-size: 1rem; line-height: 1.55; }
.content .article-sample p:last-child { margin-bottom: 0; }
.content .article-sample .kicker { margin-bottom: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--spot); }

/* Font samples inside quiz labels */
.sort-item .sample-line { display: block; font-size: 1.5rem; line-height: 1.15; font-weight: 400; }
.sort-item .sample-line.small { font-size: 1rem; margin: 2px 0 6px; }
.tree-plate .tree-art { display: block; margin: 0 auto; }

/* Do / don't examples under each pairing rule */
.rule-demo { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 12px 0 4px; }
.rd { min-width: 0; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); }
.rd.wide { grid-column: 1 / -1; }
.rd .demo { display: grid; gap: 2px; }
.rd .h { display: block; font-size: 1.45rem; line-height: 1.15; margin-top: 4px; }
.rd .b { display: block; font-size: 0.95rem; line-height: 1.45; }
.rd .bones { display: flex; gap: 14px; font-size: 2.6rem; line-height: 1.1; }
.rd .fam { display: block; font-size: 1.05rem; line-height: 1.6; }
.rd .fam-name { display: inline-block; min-width: 7.5rem; font: 700 0.75rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rd.squint .demo { filter: blur(2.5px); }
.rd .adj { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }

/* Pictures and type samples on quiz cards */
.sort-pic { display: grid; place-content: center; justify-items: center; gap: 2px; height: 112px; margin-bottom: 8px; padding: 8px; overflow: hidden; text-align: center; background: var(--paper); border-radius: 6px; color: var(--ink); }
.sort-pic svg { width: auto; height: 84px; max-width: 100%; }
.sort-pic .line-icon { fill: none; stroke: var(--spot); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sort-pic .fill-art { fill: var(--spot); }
.sort-pic .stroke-art { fill: none; stroke: var(--spot); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sort-pic .stroke-art.heavy { stroke-width: 7; }
.sort-pic .tree-art { height: 96px; }
.sort-pic .tree-art .holes { fill: var(--paper); }
.sort-pic .pic-row { display: flex; align-items: center; gap: 8px; }
.sort-pic .dots { height: 34px; fill: var(--spot); }
.sort-pic .sample-line { margin: 0; }
.sort-pic .mix { line-height: 1.3; }

/* Quiz picture helpers shared by any lesson */
.sort-pic .ic-text { fill: var(--spot); stroke: none; font: 700 13px var(--font-body); }
.sort-pic .fill-icon { fill: var(--spot); }
.sort-pic .spot-fill { fill: var(--spot); stroke: none; }
.trans-demo svg { display: block; width: 100%; height: auto; }
.sort-pic .cat-sample { font-size: 1.55rem; line-height: 1.15; }
.sort-item label small { font-weight: 400; color: var(--muted); }

/* ---------- 8d. Figma Workflow lesson ---------- */
.icon-frame { --i: url(../images/icons/frame.svg); }

/* Course order: pills joined by arrows, current one filled */
.sequence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 16px 0 24px; padding: 0; max-width: var(--measure); }
.content .sequence li { display: flex; align-items: center; gap: 8px; margin: 0; }
.sequence li + li::before { content: "\2192"; color: var(--spot); font-weight: 700; }
.sequence a, .sequence .here { display: block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); color: var(--ink); font-weight: 700; font-size: 0.95rem; line-height: 1.25; text-decoration: none; }
.sequence a:hover { border-color: var(--spot); background: var(--spot-soft); }
.sequence .here { background: var(--spot); border-color: var(--spot); color: var(--sheet); }
.sequence small { display: block; font-weight: 400; font-size: 0.75rem; }
.sort-pic code { font-size: 0.95rem; }
/* Small "where to click" drawings inside steps */
.content figure.cue { max-width: 30rem; margin: 12px 0 6px; }
.cue .plate { padding: 6px; }
.icon-figma { --i: url(../images/icons/icon-figma.svg); }
/* VS Code Warm-Up step list: current step looks like the current page in the other guides */
#guide-nav a[aria-current="step"] { background: var(--spot-soft); color: var(--spot); font-weight: 700; border-left-color: var(--spot); }
#guide-nav a[aria-current="step"] .num { color: var(--spot); }
/* Lesson list with a small picture in each row (Figma Workflow overview) */
.section-list.with-pics .lesson-row { grid-template-columns: 2.4rem 4.5rem 1fr 1.5rem; }
.section-list.with-pics .lesson-row::before { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.section-list.with-pics .row-pic { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 100%; height: auto; border-radius: 6px; }
.section-list.with-pics .lesson-row h3 { grid-column: 3; grid-row: 1; }
.section-list.with-pics .lesson-row p { grid-column: 3; grid-row: 2; }
.section-list.with-pics .lesson-row .go { grid-column: 4; }
/* Lesson overview pages: one short featured banner at the top */
.content figure.feature { margin: 4px 0 28px; }
.feature .banner { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; background: #f4f3ef; border: 1px solid var(--rule); border-top: 6px solid var(--spot); border-radius: var(--radius); }
.feature .type-strip { padding-top: 16px; padding-bottom: 16px; }
@media (max-width: 520px) {
  .section-list.with-pics .lesson-row { grid-template-columns: 2.1rem 3.5rem 1fr 1rem; gap: 2px 10px; padding: 12px; }
}

/* Wide drawn figures that sit straight on the page (no plate) */
.content figure .banner-img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: #f4f3ef; }
/* Step cards with a small picture on top (Color harmony fixes) */
.fix-steps .step-pic { display: block; width: 100%; height: auto; margin: 0 0 10px; border-radius: 6px; }
/* "How to edit" box: palette icon instead of the check */
.content .action.howto h2::before { -webkit-mask-image: url(../images/icons/palette.svg); mask-image: url(../images/icons/palette.svg); }
.action.howto ol { margin: 0 0 10px; padding-left: 1.4rem; }
.action.howto li { margin: 0 0 8px; }
.howto-note { font-size: 0.93rem; color: var(--muted); margin: 0 !important; }
/* Visual overview cards (Assessing a typeface) */
.visual-overview { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vo-show { display: flex; justify-content: center; align-items: flex-end; gap: 18px; padding: 16px 12px 10px; margin-bottom: 12px; background: var(--paper); border-bottom: 1px solid var(--rule); color: var(--ink); }
.vo-item { display: grid; justify-items: center; gap: 2px; }
.vo-glyph { font-size: 2.6rem; line-height: 1.1; }
.vo-item small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--spot); }
