/* ED Pioneer — shared stylesheet
   Design direction: clean education publisher. White paper base, deep navy
   #16324f and amber #d9a13b accents, system sans-serif, hairline rules
   between sections, textbook grid layout, numbered section markers.
   Mobile-first responsive. */

:root {
  --navy: #16324f;
  --navy-2: #204a6f;
  --navy-deep: #0d2237;
  --amber: #d9a13b;
  --amber-dark: #c8902f;
  --amber-soft: #f7ecd4;
  --paper: #ffffff;
  --paper-soft: #f6f8fa;
  --hairline: #e3e8ee;
  --ink: #22303f;
  --muted: #5c6b7a;
  --maxw: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--navy-2); }
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--navy-deep);
  padding: .6rem 1rem;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}
.brand-row { display: flex; align-items: center; gap: .55rem; }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand-word {
  font-weight: 800;
  letter-spacing: .05em;
  font-size: 1.05rem;
  color: var(--navy);
}
.brand-dot { color: var(--amber); }
.tagline {
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .02em;
  margin-top: .1rem;
  margin-left: 2.4rem;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.1rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--amber); }
.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--amber);
}

/* ---- main shell ---- */
.main-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* ---- breadcrumbs ---- */
.crumbs {
  padding-top: 1.1rem;
  font-size: .8rem;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumb-sep { margin: 0 .45rem; color: var(--hairline); }

/* ---- hero (home) ---- */
.hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  color: #ffffff;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.2rem 1.25rem;
  display: grid;
  gap: 2.2rem;
  align-items: center;
}
.hero-kicker {
  color: var(--amber);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 .9rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #ffffff;
}
.hero-accent { color: var(--amber); }
.hero-lede {
  margin: 0 0 1.6rem;
  max-width: 34em;
  font-size: 1.05rem;
  color: #c9d8e6;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn {
  display: inline-block;
  padding: .72rem 1.35rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
}
.btn-primary { background: var(--amber); color: var(--navy-deep); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .45); color: #ffffff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.hero-art { display: none; }
.hero-books { width: min(100%, 340px); height: auto; }

/* ---- page head (subpages) ---- */
.page-head {
  padding: 2.1rem 0 1.3rem;
  border-bottom: 1px solid var(--hairline);
}
.kicker {
  margin: 0 0 .5rem;
  color: var(--amber-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.page-head h1 {
  margin: 0 0 .55rem;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.page-head .lede {
  margin: 0;
  max-width: 46em;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---- sections with numbered markers ---- */
.sec { padding: 2.4rem 0; border-top: 1px solid var(--hairline); }
.sec:first-of-type { border-top: none; }
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.sec-no {
  flex: 0 0 auto;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--amber-dark);
  font-variant-numeric: tabular-nums;
}
.sec-no::after {
  content: "";
  display: inline-block;
  width: 2.1rem;
  height: 1px;
  background: var(--amber);
  vertical-align: middle;
  margin-left: .55rem;
}
.sec-title h2 { margin: 0; font-size: 1.35rem; color: var(--navy); letter-spacing: -0.01em; }
.sec-sub { margin: .15rem 0 0; font-size: .92rem; color: var(--muted); }

/* ---- card grids ---- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.4rem 1.4rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover {
  border-color: var(--amber);
  box-shadow: 0 8px 20px rgba(22, 50, 79, .09);
  transform: translateY(-2px);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  color: var(--navy);
  margin-bottom: .9rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
  margin: 0 0 .4rem;
  font-size: 1.06rem;
  color: var(--navy);
}
.card p { margin: 0 0 1.1rem; font-size: .9rem; color: var(--muted); flex: 1 0 auto; }
.go { font-weight: 700; font-size: .86rem; color: var(--navy); }
.go::after { content: " →"; color: var(--amber-dark); }
.card:hover .go { color: var(--navy-2); }

/* ---- prose (generated editorial copy) ---- */
.prose { max-width: 72ch; }
.prose p { margin: 0 0 1rem; }
.prose p:first-child { font-size: 1.06rem; }
.prose h2 {
  font-size: 1.22rem;
  color: var(--navy);
  margin: 1.9rem 0 .6rem;
  padding-left: .75rem;
  border-left: 3px solid var(--amber);
  letter-spacing: -0.005em;
}

/* ---- article meta ---- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin-top: .9rem;
  padding: .65rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: .84rem;
  color: var(--muted);
}
.article-meta span { white-space: nowrap; }

/* ---- editorial note ---- */
.note {
  max-width: 72ch;
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  font-size: .92rem;
}
.note strong { color: var(--navy); }

/* ---- hub rows ---- */
.hub-rows { max-width: 72ch; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem .1rem;
  border-bottom: 1px solid var(--hairline);
}
.row:first-child { border-top: 1px solid var(--hairline); }
.row a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.row a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.row-note { font-size: .84rem; color: var(--muted); text-align: right; white-space: nowrap; }

/* ---- contact card ---- */
.contact-card {
  max-width: 72ch;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 1.6rem 0;
}
.contact-card p { margin: 0 0 .5rem; }
.contact-card .mailto {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
}
.contact-card .mailto:hover { color: var(--navy-2); }

/* ---- footer ---- */
.site-footer {
  margin-top: 3.5rem;
  background: var(--navy);
  color: #c9d8e6;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.6rem 1.25rem 0;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-brand {
  margin: 0 0 .6rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: .07em;
}
.footer-about p { margin: 0; font-size: .9rem; }
.footer-heading {
  margin: 0 0 .7rem;
  color: #ffffff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: .4rem 0; }
.footer-col a { color: #c9d8e6; text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: 1.1rem 0 1.4rem;
  font-size: .8rem;
  color: #8fa3b6;
}
.footer-bottom p { margin: 0; }

/* ---- responsive ---- */
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .hero-inner { grid-template-columns: 1.25fr .75fr; padding: 3.8rem 1.25rem; }
  .hero-art { display: flex; justify-content: center; }
  .footer-grid { grid-template-columns: 1.4fr .8fr .8fr; }
}
@media (min-width: 980px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}

.author-box{margin:1.5rem 0 0;padding:1rem 1.3rem;background:var(--paper-soft);border:1px solid var(--hairline);border-radius:var(--radius);color:var(--muted)}
.author-box-label{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--navy);margin:0 0 .35rem}
.author-box-name{font-weight:600;color:var(--ink);margin:0 0 .4rem}
.author-box-bio{margin:0}
.author-box-bio a{color:var(--navy)}
.editorial-roles{list-style:none;padding:0;margin:1rem 0}
.editorial-roles li{margin-bottom:.55rem}

