/* Greenwashing Literacy visual system — "forensic clarity".
   Start with the root variables when changing colour, spacing or type. */
:root {
  --paper: #f6efdf;
  --paper-deep: #eadfc8;
  --surface: #fffaf0;
  --surface-cool: #eef3e8;
  --ink: #29252c;
  --muted: #645d66;
  --purple: #4b245f;
  --purple-ink: #30143e;
  --sage: #5d7d68;
  --sage-ink: #2f5340;
  --rust: #9a5a3c;
  --line: rgba(75, 36, 95, 0.22);
  --line-strong: rgba(75, 36, 95, 0.55);
  --focus: #176d87;
  --shadow: 0 24px 70px rgba(48, 20, 62, 0.12);
  --shadow-soft: 0 12px 34px rgba(48, 20, 62, 0.08);
  --max-width: 1200px;
  --gutter: clamp(20px, 4vw, 58px);
  --section-y: clamp(64px, 9vw, 112px);
  --radius: 6px;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(90deg, rgba(75, 36, 95, 0.035) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(180deg, rgba(75, 36, 95, 0.03) 1px, transparent 1px) 0 0 / 84px 84px,
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--sage);
  color: #fff;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
label,
summary {
  touch-action: manipulation;
}

a {
  color: var(--purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--purple-ink);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-180%);
  background: var(--purple);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 239, 223, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.site-nav a {
  position: relative;
  padding: 3px 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--purple);
  transition: right 0.2s ease;
}

.site-nav a:hover {
  color: var(--purple);
}

.site-nav a:hover::after,
.site-nav a.is-current::after {
  right: 0;
}

.site-nav a.is-current {
  color: var(--purple);
  font-weight: 700;
}

/* ============ Shared section chrome ============ */
.section-band {
  border-bottom: 1px solid var(--line);
}

.section-tinted {
  background: rgba(255, 250, 240, 0.52);
}

.section-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 72px);
  max-width: calc(var(--max-width) + (var(--gutter) * 2));
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.section-kicker {
  position: sticky;
  top: 88px;
  align-self: start;
  color: var(--purple);
}

.section-content {
  min-width: 0;
  max-width: 950px;
}

h1,
h2,
h3,
p,
blockquote,
figure {
  margin-top: 0;
}

h1,
h2 {
  color: var(--purple-ink);
  font-family: var(--serif);
  font-weight: 650;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 1.04;
  max-width: 16ch;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  color: var(--purple-ink);
  font-size: clamp(1.08rem, 1.5vw, 1.26rem);
  line-height: 1.25;
}

.section-intro,
.lead-grid p {
  max-width: 780px;
  color: var(--ink);
  font-size: 1.08rem;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.question-rail span,
.section-kicker,
.mono-label,
.matrix-number,
.tool-index,
.specimen-topline,
.lab-progress,
.ws-label,
.quiz-score,
.strength-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.4;
  text-transform: uppercase;
}

.mono-label {
  margin-bottom: 14px;
  color: var(--sage);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

html.no-observer .reveal,
html.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  align-items: center;
  gap: clamp(34px, 5vw, 70px);
  max-width: calc(var(--max-width) + (var(--gutter) * 2));
  min-height: min(760px, calc(100vh - 62px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(40px, 6vw, 72px);
}

.hero-copy {
  min-width: 0;
  max-width: 600px;
}

.hero-kicker {
  margin-bottom: 18px;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-definition {
  max-width: 560px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--sage);
  background: rgba(255, 250, 240, 0.6);
  color: var(--purple-ink);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.8vw, 1.26rem);
  line-height: 1.5;
}

.hero-definition strong {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sage-ink);
  display: block;
  margin-bottom: 4px;
}

.hero-subheading {
  max-width: 540px;
  margin-bottom: 30px;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.5;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-footnote {
  max-width: 480px;
  color: var(--muted);
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--purple);
  color: #fff;
}

.button-primary:hover {
  background: var(--purple-ink);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 250, 240, 0.62);
  color: var(--purple);
}

.button-secondary:hover {
  background: var(--surface);
}

/* Hero evidence desk */
.evidence-desk {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(22px, 3.4vw, 36px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(75, 36, 95, 0.055) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, rgba(75, 36, 95, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
    rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow);
}

.evidence-desk figcaption {
  margin-bottom: 20px;
  color: var(--purple);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.claim-specimen {
  position: relative;
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-specimen {
  padding: 24px;
  transform: rotate(-1.2deg);
  transition: transform 0.3s ease;
}

.evidence-desk:hover .hero-specimen {
  transform: rotate(-0.4deg);
}

.specimen-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--sage);
}

.claim-specimen blockquote {
  margin: 26px 0 18px;
  color: var(--purple-ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  line-height: 1.14;
}

.specimen-note {
  margin-top: 26px;
  padding-top: 13px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.specimen-stamp {
  position: absolute;
  top: -13px;
  right: 16px;
  padding: 5px 10px;
  border: 2px solid var(--rust);
  border-radius: 3px;
  color: var(--rust);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(6deg);
  opacity: 0.85;
  background: rgba(255, 250, 240, 0.85);
}

/* Interactive specimen parts */
.spec-part {
  border-radius: 2px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.spec-part.is-lit[data-part="claim"] {
  background: rgba(75, 36, 95, 0.14);
  box-shadow: 0 2px 0 var(--purple);
}

.spec-part.is-lit[data-part="evidence"] {
  background: rgba(93, 125, 104, 0.2);
  box-shadow: 0 2px 0 var(--sage);
}

.spec-part.is-lit[data-part="omission"] {
  background: rgba(154, 90, 60, 0.16);
  box-shadow: 0 2px 0 var(--rust);
}

.spec-part.is-lit[data-part="future"] {
  background: rgba(23, 109, 135, 0.13);
  box-shadow: 0 2px 0 var(--focus);
}

.annotation-tray {
  margin-top: 22px;
}

.tray-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  min-height: 1.4em;
}

.annotation-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.chip {
  padding: 10px 10px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.chip span {
  display: block;
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--purple);
}

.chip:hover {
  transform: translateY(-1px);
  border-color: var(--purple);
}

.chip[aria-pressed="true"] {
  background: var(--purple);
  border-color: var(--purple);
  color: rgba(255, 255, 255, 0.85);
}

.chip[aria-pressed="true"] span {
  color: #fff;
}

/* ============ Path strip ============ */
.path-band {
  background: rgba(255, 250, 240, 0.4);
}

.path-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: calc(var(--max-width) + (var(--gutter) * 2));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.path-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 38px) clamp(18px, 2.4vw, 30px);
  border-left: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s ease;
}

.path-card:last-child {
  border-right: 1px solid var(--line);
}

.path-card:hover {
  background: var(--surface);
}

.path-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.path-card p:last-of-type {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.path-card .mono-label {
  margin-bottom: 10px;
}

.path-cta {
  margin-top: auto;
  color: var(--purple);
  font-weight: 800;
  font-size: 0.92rem;
}

.path-card:hover .path-cta {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* ============ Example table ============ */
.example-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.example-table article {
  padding: 22px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 250, 240, 0.66);
  transition: background 0.2s ease;
}

.example-table article:hover {
  background: var(--surface);
}

.example-table h3 {
  min-height: 3.1em;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.example-table p:last-child,
.delay-board p:last-child,
.tool-card p:last-child,
.project-card p:last-child,
.resource-group li:last-child {
  margin-bottom: 0;
}

/* ============ Delay board ============ */
.delay-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.delay-board article {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 250, 240, 0.62);
  transition: background 0.2s ease;
}

.delay-board article:hover {
  background: var(--surface);
}

.delay-tell {
  margin-top: auto;
  padding-top: 14px;
  color: var(--rust);
  font-size: 0.88rem;
}

.matrix-number,
.tool-index {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border: 1px solid var(--purple);
  color: var(--purple);
  background: var(--surface);
}

/* ============ Quiz ============ */
.quiz-shell {
  margin-top: 40px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow-soft);
}

.quiz-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line-strong);
}

.quiz-head h3 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.quiz-head p {
  margin: 0;
  color: var(--muted);
}

.quiz-score {
  color: var(--sage);
  white-space: nowrap;
}

.quiz-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.quiz-item:last-child {
  border-bottom: 0;
}

.quiz-statement {
  margin-bottom: 14px;
  color: var(--purple-ink);
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.4;
}

.quiz-statement .qnum {
  margin-right: 10px;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 850;
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-option {
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--surface);
  color: var(--purple);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.quiz-option:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--purple);
}

.quiz-option:disabled {
  cursor: default;
  opacity: 0.55;
}

.quiz-option.is-correct {
  background: var(--sage);
  border-color: var(--sage-ink);
  color: #fff;
  opacity: 1;
}

.quiz-option.is-wrong {
  background: rgba(154, 90, 60, 0.14);
  border-color: var(--rust);
  color: var(--rust);
  opacity: 1;
}

.quiz-feedback {
  margin: 12px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--sage);
  color: var(--muted);
  font-size: 0.93rem;
}

.quiz-feedback.is-wrong {
  border-left-color: var(--rust);
}

.quiz-complete {
  padding: 20px 24px 22px;
  border-top: 1px solid var(--line-strong);
  background: var(--surface-cool);
}

.quiz-complete p {
  margin: 0 0 14px;
  color: var(--sage-ink);
}

.quiz-reset {
  margin: 0;
}

/* ============ Tool board ============ */
.tool-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.tool-card {
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tool-card dl {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
}

.tool-card dt {
  margin-top: 8px;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tool-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============ Claim lab ============ */
.lab-shell {
  margin-top: 36px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow);
}

.lab-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-strong);
}

.lab-tab {
  min-height: 72px;
  padding: 15px 18px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: transparent;
  color: var(--purple);
  cursor: pointer;
  font-weight: 850;
  text-align: left;
  transition: background 0.15s ease;
}

.lab-tab:hover:not(.is-active) {
  background: rgba(75, 36, 95, 0.06);
}

.lab-tab:nth-child(3n) {
  border-right: 0;
}

.lab-tab:nth-child(-n+3) {
  border-bottom: 1px solid var(--line-strong);
}

.lab-tab span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.lab-tab.is-active {
  background: var(--purple);
  color: #fff;
}

.lab-tab.is-active span {
  color: rgba(255, 255, 255, 0.78);
}

.lab-panel {
  display: grid;
  grid-template-columns: minmax(270px, 0.88fr) minmax(0, 1.12fr);
  gap: 28px;
  padding: clamp(22px, 4vw, 34px);
}

.lab-panel[hidden] {
  display: none;
}

.lab-specimen {
  position: relative;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--purple);
  background:
    linear-gradient(180deg, transparent 48px, var(--line) 49px, transparent 50px) 0 0 / 100% 58px,
    var(--surface);
}

.lab-specimen h3 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.lab-specimen blockquote {
  margin: 0 0 24px;
  color: var(--purple-ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.14;
}

.lab-specimen .lab-note {
  margin-bottom: 0;
  color: var(--muted);
}

.lab-analysis {
  min-width: 0;
}

.lab-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--sage);
}

.lab-progress-track {
  flex: 1 1 auto;
  height: 4px;
  max-width: 200px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.lab-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sage);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.lens-block {
  border-top: 1px solid var(--line-strong);
  padding: 16px 0 18px;
}

.lens-title {
  margin: 0 0 4px;
  color: var(--purple-ink);
  font-weight: 850;
  font-size: 1rem;
}

.lens-prompt {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.lens-options {
  display: grid;
  gap: 8px;
}

.lens-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.93rem;
  line-height: 1.45;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.lens-option:hover {
  border-color: var(--purple);
}

.lens-option .marker {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  font-size: 0.7rem;
  font-weight: 850;
  transition: background 0.12s ease, color 0.12s ease;
}

.lens-option.is-chosen {
  border-color: var(--purple);
  background: rgba(75, 36, 95, 0.05);
}

.lens-option.is-chosen .marker {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.lens-verdict {
  display: inline-block;
  margin: 12px 0 6px;
  padding: 3px 9px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lens-verdict.v-strongest {
  background: var(--sage);
  color: #fff;
}

.lens-verdict.v-partial {
  background: rgba(154, 90, 60, 0.16);
  color: var(--rust);
  border: 1px solid var(--rust);
}

.lens-verdict.v-weak {
  background: rgba(100, 93, 102, 0.14);
  color: var(--muted);
  border: 1px solid var(--muted);
}

.lens-feedback {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.lab-summary {
  margin-top: 4px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-cool);
  color: var(--sage-ink);
  font-size: 0.95rem;
}

.lab-summary[hidden] {
  display: none;
}

.lab-summary strong {
  color: var(--purple-ink);
}

.noscript-note {
  margin-top: 18px;
  color: var(--rust);
}

/* ============ Rewrite lab ============ */
.rewrite-lab {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(220px, 0.8fr) minmax(280px, 1.18fr);
  gap: 18px;
  margin: 36px 0 24px;
}

.rewrite-original,
.rewrite-controls,
.rewrite-output,
.project-card,
.resource-group {
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.rewrite-original,
.rewrite-controls,
.rewrite-output {
  padding: 24px;
}

blockquote {
  color: var(--purple-ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.1vw, 1.54rem);
  line-height: 1.36;
}

.rewrite-controls fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rewrite-controls legend {
  margin-bottom: 10px;
  color: var(--purple-ink);
  font-weight: 850;
}

.rewrite-controls label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
}

.rewrite-controls input {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}

.strength-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 20px;
}

.strength-meter span {
  height: 7px;
  border-radius: 99px;
  background: var(--line);
  transition: background 0.25s ease;
}

.strength-meter span.is-on {
  background: var(--sage);
}

.strength-label {
  margin: 8px 0 0;
  color: var(--sage);
}

.rewrite-output p:last-child {
  margin-bottom: 0;
  color: var(--purple-ink);
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.42;
}

.scrutiny-question,
.educator-note {
  max-width: 850px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

/* ============ Glossary ============ */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  margin-top: 30px;
}

/* ============ Educators ============ */
.workshop-list {
  display: grid;
  margin: 36px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: workshop;
  border-top: 1px solid var(--line-strong);
}

.workshop-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 2px 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: workshop;
}

.workshop-list li::before {
  content: counter(workshop, decimal-leading-zero);
  color: var(--sage);
  font-family: var(--mono);
  font-weight: 850;
}

.workshop-list span {
  display: block;
  color: var(--purple-ink);
  font-weight: 850;
}

.workshop-list p {
  grid-column: 2;
  margin: 4px 0 0;
  color: var(--muted);
}

.educator-actions {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 26px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.educator-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.educator-actions .small-text {
  margin: 0;
}

/* ============ Project / resources / FAQ ============ */
.project-card {
  display: grid;
  gap: 14px;
  max-width: 590px;
  margin-top: 30px;
  padding: 24px;
}

.project-card p {
  margin-bottom: 0;
}

.small-text {
  color: var(--muted);
  font-size: 0.92rem;
}

.resource-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.resource-group {
  padding: 24px;
}

.resource-group ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 1.1rem;
}

.resource-group li {
  color: var(--muted);
}

.resource-group a {
  font-weight: 750;
}

.faq-list {
  margin-top: 30px;
}

details {
  border-top: 1px solid var(--line-strong);
}

.glossary-grid details:last-child,
.faq-list details:last-child {
  border-bottom: 1px solid var(--line-strong);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 15px 0;
  color: var(--purple-ink);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-strong);
  color: var(--purple);
  font-family: var(--mono);
  line-height: 1;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "−";
  background: var(--purple);
  color: #fff;
}

details p {
  max-width: 780px;
  margin: 0 0 20px;
  color: var(--muted);
}

/* ============ Footer ============ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: calc(var(--max-width) + (var(--gutter) * 2));
  margin: 0 auto;
  padding: 34px var(--gutter);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin-bottom: 0;
}

/* ============ Print worksheet ============ */
.worksheet {
  display: none;
}

@media print {
  body.print-worksheet > *:not(.worksheet) {
    display: none !important;
  }

  body.print-worksheet {
    background: #fff;
  }

  body.print-worksheet .worksheet {
    display: block;
    max-width: 180mm;
    margin: 0 auto;
    color: #1c1a1e;
    font-size: 11pt;
    line-height: 1.5;
  }

  .ws-head {
    margin-bottom: 10mm;
    padding-bottom: 4mm;
    border-bottom: 2px solid #4b245f;
  }

  .ws-head h1 {
    margin: 0 0 2mm;
    color: #30143e;
    font-family: Georgia, serif;
    font-size: 18pt;
  }

  .ws-head p {
    margin: 0;
    color: #645d66;
    font-size: 9pt;
  }

  .ws-label {
    margin: 0 0 2mm;
    color: #5d7d68;
    font-family: Menlo, Consolas, monospace;
    font-size: 8pt;
    font-weight: 700;
    text-transform: uppercase;
  }

  .ws-claimbox,
  .ws-rewrite {
    min-height: 26mm;
    margin-bottom: 7mm;
    padding: 4mm;
    border: 1px solid #4b245f;
  }

  .ws-questions {
    margin: 0 0 7mm;
    padding-left: 6mm;
  }

  .ws-questions li {
    min-height: 22mm;
    margin-bottom: 4mm;
    padding-bottom: 2mm;
    border-bottom: 1px dotted #9b8fa3;
  }

  .ws-delay {
    margin-bottom: 7mm;
    padding: 4mm;
    border: 1px dashed #4b245f;
  }

  .ws-delay p:last-child {
    margin: 0;
    font-size: 10pt;
  }

  .ws-foot p {
    color: #645d66;
    font-size: 8pt;
  }
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .delay-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rewrite-lab {
    grid-template-columns: 1fr 1fr;
  }

  .rewrite-output {
    grid-column: 1 / -1;
  }
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .section-layout,
  .lab-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section-kicker {
    position: static;
  }

  .lead-grid,
  .example-table,
  .tool-board,
  .resource-groups,
  .glossary-grid,
  .path-strip {
    grid-template-columns: 1fr;
  }

  .path-card {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .path-card:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .example-table h3 {
    min-height: 0;
  }

  .glossary-grid details:nth-last-child(2) {
    border-bottom: 0;
  }
}

@media (max-width: 660px) {
  body {
    background:
      linear-gradient(90deg, rgba(75, 36, 95, 0.035) 1px, transparent 1px) 0 0 / 58px 58px,
      linear-gradient(180deg, rgba(75, 36, 95, 0.03) 1px, transparent 1px) 0 0 / 58px 58px,
      var(--paper);
  }

  .site-header {
    position: static;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  h1 {
    font-size: clamp(2.2rem, 9.4vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.85rem, 8.6vw, 2.4rem);
  }

  .hero-actions,
  .lab-tabs,
  .delay-board,
  .rewrite-lab {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-specimen {
    transform: none;
  }

  .annotation-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-tab,
  .lab-tab:nth-child(3n),
  .lab-tab:nth-child(-n+3) {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .lab-tab:last-child {
    border-bottom: 0;
  }

  .quiz-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quiz-option {
    border-radius: var(--radius);
    text-align: left;
  }

  .workshop-list li {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .educator-actions {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
