:root {
  --paper: #fbfcfe;
  --grid: #dfe8f3;
  --ink: #1b2a4a;
  --graphite: #566070;
  --redpen: #c2342b;
  --rule: #c9d6e6;
  --sans: "Libre Franklin", system-ui, sans-serif;
  --hand: "Kalam", "Comic Sans MS", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
a { color: var(--ink); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--redpen);
  outline-offset: 3px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* header */
header.site {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
}
.name { font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
nav a { margin-left: 22px; text-decoration: none; color: var(--graphite); font-weight: 500; }
nav a:hover { color: var(--ink); text-decoration: underline; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: center; padding: 56px 0 72px;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 800;
  margin: 0 0 22px;
}
.lede { font-size: 1.2rem; color: var(--graphite); max-width: 34em; margin: 0 0 30px; }
.button {
  display: inline-block; background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 700; padding: 14px 26px; border-radius: 4px;
}
.button:hover { background: #2c4170; }
.aside-link { display: inline-block; margin: 12px 0 0 18px; font-weight: 500; }

/* white paper card used for the hero illustrations */
.sheet {
  background: #fff; border: 1px solid var(--rule); border-radius: 3px;
  padding: 28px 28px 22px; box-shadow: 6px 6px 0 var(--grid);
}
.sheet h2 { font-size: 0.95rem; font-weight: 700; margin: 0 0 22px; color: var(--graphite); }
.note {
  font-family: var(--hand); color: var(--redpen); font-size: 1.2rem; line-height: 1.25;
  margin: 0;
}

/* score chart (test prep page) */
.test { margin-bottom: 26px; }
.test:last-of-type { margin-bottom: 8px; }
.test-row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.test-row span:last-child { color: var(--graphite); font-weight: 500; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 18px; background: #eef2f8; border-radius: 2px; }
.fill {
  position: absolute; inset: 0 auto 0 0; width: var(--w);
  background: var(--ink); border-radius: 2px 0 0 2px;
  transform-origin: left; animation: fill 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.gap {
  position: absolute; top: -4px; bottom: -4px; left: var(--w); right: 0;
  border: 2px solid var(--redpen); border-radius: 50% / 60%;
  animation: appear .5s ease 1.1s both;
}
.sheet .note.end { text-align: right; margin-top: 18px; animation: appear .5s ease 1.4s both; }

/* worked problem (school page) */
.work { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.line {
  display: grid; grid-template-columns: 1fr 11em; gap: 16px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed var(--rule);
}
.line:last-of-type { border-bottom: 0; }
.line .note { font-size: 1.05rem; animation: appear .5s ease both; }
.line:nth-child(2) .note { animation-delay: .4s; }
.line:nth-child(3) .note { animation-delay: .8s; }
.answer { display: inline-block; border: 2px solid var(--redpen); border-radius: 50%; padding: 0 12px; }

@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* sections */
section { padding: 64px 0; border-top: 1px solid var(--rule); }
h2.section {
  font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.02em;
  font-weight: 800; margin: 0 0 12px; line-height: 1.15;
}
.intro { color: var(--graphite); max-width: 38em; margin: 0 0 40px; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
.service h3 { font-size: 1.25rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.service p { margin: 0; color: var(--graphite); }
.service.lead {
  grid-column: span 2; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start;
  background: #fff; border: 1px solid var(--rule); padding: 30px; border-radius: 3px;
}
.service.lead h3 { font-size: 1.6rem; }
.tests { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.tests span { border: 2px solid var(--ink); font-weight: 800; padding: 4px 12px; border-radius: 3px; }
.service .more { display: inline-block; margin-top: 10px; font-weight: 600; }

/* method */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--hand); font-weight: 700;
  color: var(--redpen); font-size: 2.2rem; line-height: 1; margin-bottom: 10px;
}
.steps h3 { margin: 0 0 8px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--graphite); }

.sample {
  margin-top: 48px; background: #fff; border: 1px solid var(--rule); border-radius: 3px;
  padding: 26px 30px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.sample p { margin: 0; }
.sample .q { font-weight: 500; }
.sample .note { font-size: 1.15rem; max-width: 15em; text-align: right; }

/* five-step process */
.process { list-style: none; margin: 0; padding: 0; max-width: 46em; counter-reset: step; }
.process li {
  counter-increment: step; display: grid; grid-template-columns: 56px 1fr; column-gap: 8px;
  padding: 18px 0; border-bottom: 1px dashed var(--rule);
}
.process li:first-child { padding-top: 0; }
.process li:last-child { border-bottom: 0; }
.process li::before {
  content: counter(step); grid-row: span 2; font-family: var(--hand); font-weight: 700;
  color: var(--redpen); font-size: 2.2rem; line-height: 1;
}
.process h3 { margin: 0 0 4px; font-size: 1.15rem; }
.process p { margin: 0; color: var(--graphite); }

/* about page */
.about-hero { padding: 56px 0 40px; max-width: 46em; }
.about-hero .lede { margin-bottom: 0; }
.about-creds { max-width: 46em; padding-top: 40px; }
.about-creds .creds li { padding: 16px 0; }
.about-creds .creds li:first-child { padding-top: 0; }
.about-creds .creds strong { font-size: 1.1rem; }
.about-layout {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start;
  padding: 56px 0 64px;
}
.about-intro h1 { margin-bottom: 18px; }
.about-intro .lede { margin: 0; }
.about-layout .creds li { padding: 14px 0; }
.about-layout .creds li:first-child { padding-top: 6px; }
@media (max-width: 860px) {
  .about-layout { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 48px; }
}
.about-next { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.button.quiet { background: #e8eef7; color: var(--ink); font-weight: 600; }
.button.quiet:hover { background: #d6e0ee; }

/* testimonials */
.t-hero { padding: 56px 0 32px; }
.t-hero h1 { margin: 0; }
.results { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-bottom: 28px; align-items: start; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: 72px; align-items: start; }
.tcard {
  margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 3px;
  padding: 28px; box-shadow: 6px 6px 0 var(--grid);
}
.tcard h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.tcard blockquote { margin: 0 0 14px; color: var(--ink); line-height: 1.6; }
.tcard figcaption { color: var(--graphite); font-weight: 600; font-size: .95rem; }
.tcard figcaption::before { content: "— "; }
.big-result {
  margin: 0; font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.result-label { margin: 8px 0 18px; font-family: var(--hand); color: var(--redpen); font-size: 1.3rem; line-height: 1.2; }
.fine { margin: 10px 0 0; font-size: .85rem; color: var(--graphite); }
@media (max-width: 860px) {
  .results, .quotes { grid-template-columns: 1fr; gap: 20px; }
  .t-hero { padding: 32px 0 24px; }
  .tcard { padding: 22px; }
}

/* "how narrow it gets" ladder */
.zoom {
  margin-top: 44px; background: #fff; border: 1px solid var(--rule); border-radius: 3px;
  padding: 26px 30px 22px; box-shadow: 6px 6px 0 var(--grid); max-width: 46em;
}
.zoom h3 { margin: 0 0 14px; font-size: 1.2rem; }
.zoom dl { margin: 0; }
.zoom dl > div {
  display: grid; grid-template-columns: 11em 1fr; gap: 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px dashed var(--rule);
}
.zoom dt { color: var(--graphite); font-size: .95rem; }
.zoom dd { margin: 0; font-weight: 600; color: var(--graphite); }
.zoom dl > div:nth-child(2) dd { color: var(--ink); }
.zoom .mine { border-bottom: 0; }
.zoom .mine dt { color: var(--ink); font-weight: 700; }
.zoom .mine dd { color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.zoom .eg { display: block; margin-top: 4px; font-weight: 400; font-size: .95rem; color: var(--graphite); }
.zoom .note { margin: 6px 0 0; text-align: right; }
.zoom-sub {
  margin: 18px 0 2px; padding-top: 14px; border-top: 1px solid var(--rule);
  font-weight: 800; font-size: .95rem; color: var(--ink);
}
.zoom h3 + .zoom-sub { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 860px) {
  .zoom { padding: 22px; }
  .zoom dl > div { grid-template-columns: 1fr; gap: 2px; }
}

/* sample link */
.try {
  margin-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 24px 0 0; border-top: 1px dashed var(--rule);
}
.try h3 { margin: 0 0 4px; font-size: 1.2rem; }
.try p { margin: 0; color: var(--graphite); }
@media (max-width: 860px) { .try { grid-template-columns: 1fr; gap: 14px; } }

/* background */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.about p { margin: 0 0 16px; max-width: 34em; }
.creds { list-style: none; margin: 0; padding: 0; }
.creds li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.creds li:first-child { padding-top: 0; }
.creds strong { display: block; }
.creds span { color: var(--graphite); }

/* cross-link band */
.crosslink {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.crosslink p { margin: 0; color: var(--graphite); max-width: 36em; }
.crosslink h2 { margin-bottom: 8px; }

.contact .button { margin-top: 8px; }

/* home page: two paths */
.home-hero { padding: 64px 0 48px; max-width: 46em; }
.facts { list-style: none; margin: 4px 0 0; padding: 0; max-width: 36em; }
.facts li {
  position: relative; padding: 10px 0 10px 40px;
  font-size: 1.2rem; line-height: 1.45; color: var(--ink);
  border-bottom: 1px dashed var(--rule);
}
.facts li:last-child { border-bottom: 0; }
.facts li::before {
  content: "✓"; position: absolute; left: 4px; top: 4px;
  font-family: var(--hand); font-weight: 700; font-size: 1.6rem; color: var(--redpen);
}
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 72px; }
.path {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 3px;
  padding: 32px; box-shadow: 6px 6px 0 var(--grid);
}
.path h2 { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.02em; font-weight: 800; margin: 0 0 6px; }
.path .sub { font-weight: 600; margin: 0 0 14px; }
.path p { margin: 0 0 22px; color: var(--graphite); }
.path .links { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.path .button {
  background: #e8eef7;      /* pale blue-gray */
  color: var(--ink);
  font-weight: 600;
  padding: 10px 18px;
}
.path .button:hover { background: #d6e0ee; }
.path .button.ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.path .button.ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.path .tests { margin: 0 0 18px; }
.home-contact { border-top: 1px solid var(--rule); padding: 40px 0; }
.home-contact p { margin: 0; color: var(--graphite); }
.home-contact a { font-weight: 700; color: var(--ink); }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .home-hero { padding-top: 32px; }
  .path { padding: 24px; }
  .process li { grid-template-columns: 40px 1fr; }
  .path .button { padding: 10px 14px; font-size: .95rem; }
}

footer {
  padding: 28px 0 40px; border-top: 1px solid var(--rule); color: var(--graphite); font-size: 0.95rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer a { color: var(--graphite); margin-left: 18px; }

@media (max-width: 860px) {
  .hero, .about, .crosslink { grid-template-columns: 1fr; gap: 32px; }
  .services, .steps { grid-template-columns: 1fr; gap: 32px; }
  .service.lead { grid-column: auto; grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .sample { grid-template-columns: 1fr; }
  .sample .note { text-align: left; }
  .line { grid-template-columns: 1fr; gap: 2px; }
  header.site { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 0 10px; }
  nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  nav a { margin-left: 0; }
  nav a.hide-sm { display: none; }
  .hero { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
