/* ==========================================================================
   Erich Schweikher — Education Consulting
   V1 static build. Visual direction follows the source PDF:
   quiet serif, muted greys, generous whitespace, the double-rule divider
   carried through as the recurring structural device.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colour — sampled from the PDF */
  --paper:      #ffffff;
  --paper-alt:  #f7f6f4;
  --ink:        #2e2e2e;
  --ink-soft:   #5c5c5c;
  --ink-mute:   #8a8a8a;
  --rule:       #c9c9c9;
  --rule-soft:  #e4e2df;

  /* Type — system serif stack; no webfont dependency in V1.
     Swap for a licensed slab serif when the design direction is revisited. */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
           sans-serif;

  /* Scale */
  --fs-hero:  2.75rem;
  --fs-h2:    1.875rem;
  --fs-h3:    1.125rem;
  --fs-body:  1.0625rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Metrics */
  --measure:    34rem;   /* prose width */
  --shell:      60rem;   /* page width */
  --header-h:   4rem;
  --gap:        1.25rem;
  --section-y:  5.5rem;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   Layout shell
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.measure {
  max-width: var(--measure);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: var(--sans);
  font-size: var(--fs-small);
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Masthead / navigation
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.masthead__mark {
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 0;
  font-weight: 400;
  white-space: nowrap;
}

.masthead__mark a { text-decoration: none; }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: var(--fs-micro);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* --------------------------------------------------------------------------
   The divider — the PDF's signature device, reused throughout
   -------------------------------------------------------------------------- */

.rule {
  border: 0;
  height: 5px;
  width: 100%;
  max-width: 22rem;
  margin: 1.5rem auto;
  background:
    linear-gradient(var(--rule), var(--rule)) top    left / 100% 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) bottom left / 100% 1px no-repeat;
}

.rule--center { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-y);
  scroll-margin-top: calc(var(--header-h) + 1rem);
  border-top: 1px solid var(--rule-soft);
}

.section--tint { background: var(--paper-alt); }

.section__title {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
  text-align: center;
}

.section__lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
  margin-block: 0 2rem;
}

.section p { margin-block: 0 1.25rem; }
.section p:last-child { margin-bottom: 0; }

.subhead {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-block: 2.75rem 0.875rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: 4rem 4.5rem;
  text-align: center;
  border-top: 0;
}

.hero__portrait {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  filter: grayscale(100%);
}

.hero__name {
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 2rem 0 0;
}

.hero__role {
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin: 0;
}

.hero__positioning {
  max-width: 32rem;
  margin: 2rem auto 0;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */

.list {
  list-style: none;
  margin-inline: auto;
  padding: 0;
  max-width: var(--measure);
}

.list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.625rem;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.4rem;
  height: 1px;
  background: var(--rule);
}

.list--loose li { margin-bottom: 0.875rem; }

/* --------------------------------------------------------------------------
   Process — a genuine sequence, so it is numbered
   -------------------------------------------------------------------------- */

.phases {
  list-style: none;
  margin: 1.5rem auto 0;
  padding: 0;
  counter-reset: phase;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-soft);
}

.phases li {
  counter-increment: phase;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule-soft);
}

.phases li::before {
  content: counter(phase, decimal-leading-zero);
  font-family: var(--sans);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  flex: 0 0 2rem;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  text-align: center;
}

.stats > div { margin: 0; }

.stats dt {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}

.stats dd {
  margin: 0;
  font-size: 1.875rem;
  line-height: 1.15;
}

.stats dd small {
  display: block;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 0.375rem;
}

/* --------------------------------------------------------------------------
   Call to action
   -------------------------------------------------------------------------- */

.cta {
  display: block;
  width: fit-content;
  margin-inline: auto;
  font-family: var(--sans);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.75rem 1.5rem;
  margin-top: 2rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cta:hover {
  border-color: var(--ink);
  background: var(--paper-alt);
}

.section--tint .cta:hover { background: var(--paper); }

/* --------------------------------------------------------------------------
   Rates
   -------------------------------------------------------------------------- */

.rates {
  margin-inline: auto;
  max-width: var(--measure);
  border-top: 1px solid var(--rule-soft);
}

.rates__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule-soft);
}

.rates dt { color: var(--ink); }

.rates dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  color: var(--ink);
}

.footnote {
  font-size: var(--fs-small);
  color: var(--ink-mute);
  line-height: 1.6;
  margin: 1rem auto 0;
  max-width: var(--measure);
}

.contact-lines {
  margin: 0 auto 2rem;
  max-width: var(--measure);
}

.contact-lines div {
  display: flex;
  gap: 0.75rem;
  padding-block: 0.375rem;
}

.contact-lines dt {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex: 0 0 4.5rem;
  padding-top: 0.3em;
}

.contact-lines dd { margin: 0; }

/* --------------------------------------------------------------------------
   Results page
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: 4rem 2.5rem;
  border-top: 0;
  text-align: center;
}

.page-head__eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.75rem;
}

.page-head__title {
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}

.schools {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  columns: 2;
  column-gap: 3rem;
}

.schools {
  text-align: left;
}

.schools li {
  break-inside: avoid;
  padding-block: 0.3125rem;
  line-height: 1.45;
}

.schools .count,
.schools .note {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.schools .note::before {
  content: "· ";
}

.legend {
  font-size: var(--fs-small);
  color: var(--ink-mute);
  margin: 0.5rem auto 0;
  max-width: var(--measure);
}

.backlink {
  display: block;
  width: fit-content;
  margin-inline: auto;
  font-family: var(--sans);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
}

.backlink:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--rule-soft);
  padding-block: 2.5rem 3.5rem;
  font-family: var(--sans);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.footer__inner {
  text-align: center;
}

.footer p { margin: 0; }

.footer a { color: var(--ink-mute); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 46rem) {
  :root {
    --fs-hero: 2.125rem;
    --fs-h2: 1.5rem;
    --section-y: 3.5rem;
  }

  .masthead__inner { justify-content: center; text-align: center; }
  .nav ul { gap: 1.125rem; justify-content: center; }
  .schools { columns: 1; }
  .rates__row { flex-direction: column; gap: 0.125rem; }
  .rates dd { text-align: left; }
  .contact-lines div { flex-direction: column; gap: 0; }
  .contact-lines dt { padding-top: 0; }
}

@media print {
  .masthead, .cta, .skip-link { display: none; }
  body { font-size: 11pt; }
  .section { border: 0; page-break-inside: avoid; }
}
