/* Additions for the static host: sticky section tabs, syllabus, forms. */
html { scroll-padding-top: 8.5rem; }

.section-tabs {
  font-family: var(--font-grotesk);
  border-bottom: 2px solid var(--foreground);
  background: var(--background);
  position: sticky;
  top: 0;
  z-index: 40;
}
@media (min-width: 768px) {
  /* Sit under the sticky header (channels row + wordmark). */
  .section-tabs { top: 6.35rem; }
}

.section-tabs-list {
  display: flex;
  gap: 0;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.section-tabs-list a {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 0.85rem 0.65rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.section-tabs-list a:hover,
.section-tabs-list a[aria-current="true"],
.section-tabs-list a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.section-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--foreground);
}
.section-jump .kicker { width: 100%; margin-bottom: 0.15rem; }
.section-jump a {
  font-family: var(--font-grotesk);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.section-jump a:hover { color: var(--accent); }

.syllabus { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.syllabus > li {
  border-top: 2px solid var(--foreground);
  padding: 2rem 0;
}
.syllabus-tools {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  counter-reset: tool;
}
.syllabus-tools > li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem;
  border-top: 1px solid var(--foreground);
  padding: 1rem 0;
  counter-increment: tool;
}
.syllabus-tools > li > .num {
  font-family: var(--font-grotesk);
  font-weight: 900;
  color: var(--accent);
  font-size: 1.1rem;
}

.form-note[hidden] { display: none; }
.form-note {
  margin-top: 1rem;
  font-weight: 600;
}

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

/* Textbook chapters, share bar, bylines */
.chapter-kicker { margin-bottom: 0.5rem; }
.chapter-dek { font-size: 1.25rem; max-width: 40rem; margin-top: 1rem; }
.chapter-byline { margin-top: 1.25rem; font-size: 0.95rem; color: var(--muted-foreground); }
.chapter-section { margin-top: 2.75rem; }
.chapter-section h2 { font-family: var(--font-display); font-size: 1.9rem; border-top: 2px solid var(--foreground); padding-top: 1rem; margin-bottom: 1.1rem; }
.chapter-tools { list-style: none; padding: 0; margin: 1rem 0 0; }
.chapter-tools li { border-top: 1px solid var(--foreground); padding: 0.9rem 0; }
.chapter-tools a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.share-bar, .more-chapters { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 2px solid var(--foreground); }
.share-bar ul, .more-chapters ul { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; list-style: none; padding: 0; margin: 0.75rem 0 0; }
.share-bar a, .more-chapters a {
  font-family: var(--font-grotesk);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.cite { font-size: 0.95rem; }
.cite-limit { color: var(--muted-foreground); font-size: 0.95rem; margin-top: 0.5rem; }

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.brand-mark img {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border: 2px solid var(--foreground);
  background: var(--background);
  object-fit: cover;
}
@media (min-width: 768px) {
  .brand-mark img { width: 3.25rem; height: 3.25rem; }
}

.hero-banner {
  margin: 0 auto;
  max-width: 72rem;
  padding: 1rem 1.25rem 0;
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid var(--foreground);
  background: var(--background);
}

.author-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--foreground);
}
.author-card img {
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid var(--foreground);
  object-fit: cover;
}

/* Sticky chrome: header + section tabs travel together */
.sticky-chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
  border-bottom: 2px solid var(--foreground);
}
.sticky-chrome .section-tabs {
  position: static;
  top: auto;
  border-bottom: 0;
  border-top: 1px solid color-mix(in oklab, var(--foreground) 20%, transparent);
}
.channel-link {
  font-family: var(--font-grotesk), "Archivo", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-link {
  font-family: var(--font-grotesk), "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#mobile-menu {
  border-top: 1px solid color-mix(in oklab, var(--foreground) 20%, transparent);
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--background);
}
#mobile-menu[hidden] { display: none; }
#mobile-menu a {
  font-family: var(--font-grotesk), "Archivo", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 2px solid var(--foreground);
  margin-top: 4rem;
  padding: 3rem 1.25rem 2rem;
}
.site-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .site-footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer-fine {
  max-width: 72rem;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--foreground);
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  background: var(--foreground);
  color: var(--background);
  padding: 0.5rem 0.75rem;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.hero-banner { padding-top: 1.25rem; }

.form-stack label { display: block; }
.form-stack input[type="email"],
.form-stack input[type="text"],
.form-stack textarea {
  width: 100%;
  border: 2px solid var(--foreground);
  background: var(--background);
  padding: 0.75rem 1rem;
  font: inherit;
  border-radius: 0;
}


/* How we teach, hero fold, syllabus chapters */
.hero-fold {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0.5rem 1.25rem 0;
}
.hero-banner.hero-banner--teach {
  margin: 0;
  max-width: none;
  padding: 0;
}
.hero-banner-frame {
  position: relative;
  border: 6px solid var(--foreground);
  background: var(--foreground);
  overflow: hidden;
}
.hero-banner--teach img,
.hero-banner.hero-banner--teach img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  background: var(--background);
}
.hero-banner-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--foreground);
  color: var(--background);
  padding: 0.8rem 0.9rem 0.9rem;
}
.hero-living {
  font-family: var(--font-grotesk), "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 4.8vw, 3.7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--background);
  margin: 0;
  text-wrap: balance;
}
.hero-living-sub {
  margin: 0.5rem 0 0;
  font-family: var(--font-grotesk), "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(0.78rem, 1.55vw, 1.12rem);
  line-height: 1.3;
  color: var(--background);
  max-width: 46rem;
}
.teach-strip {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  background: var(--accent);
  color: var(--accent-foreground, #fff);
  border: 6px solid var(--foreground);
  border-top: 0;
}
.teach-strip li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem 0.7rem;
  font-family: var(--font-grotesk), "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  position: relative;
}
.teach-strip a {
  color: inherit;
  text-decoration: none;
}
.teach-strip a:hover .teach-strip-label,
.teach-strip a:focus-visible .teach-strip-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.teach-strip-num {
  font-weight: 900;
  font-size: 1.05rem;
  flex: 0 0 auto;
}
.teach-strip-label {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 767px) {
  .hero-banner-frame { min-height: 0; }
  .hero-banner--teach img,
  .hero-banner.hero-banner--teach img {
    height: auto;
    object-fit: contain;
    object-position: top center;
  }
  .hero-banner-copy { position: static; padding: 0.85rem 0.85rem 0.95rem; }
  .hero-living { font-size: clamp(1.55rem, 9.2vw, 2.15rem); }
  .teach-strip li:nth-child(odd) { border-right: 2px solid color-mix(in oklab, #fff 35%, transparent); }
  .teach-strip li:nth-child(-n+2) { border-bottom: 2px solid color-mix(in oklab, #fff 35%, transparent); }
}
@media (min-width: 768px) {
  .hero-fold { padding-top: 0.7rem; }
  .hero-banner-copy { padding: 1.05rem 1.4rem 1.15rem; }
  .teach-strip { grid-template-columns: repeat(4, 1fr); }
  .teach-strip li { padding: 0.8rem 1.35rem 0.85rem 0.95rem; }
  .teach-strip-label { font-size: 0.86rem; }
  .teach-strip li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -0.15rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--accent-foreground, #fff);
  }
}

.teach-cards {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 2px solid var(--foreground);
}
.teach-cards > li {
  border-bottom: 2px solid var(--foreground);
  padding: 1.5rem 0 1.7rem;
}
.teach-cards h3 {
  font-family: var(--font-display), "Bodoni Moda", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.1;
  margin: 0.4rem 0 0.7rem;
}
.teach-cards .teach-lead { margin: 0; }
.teach-example {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--foreground);
  font-size: 0.95rem;
}
.teach-byline {
  margin-top: 1.75rem;
  font-size: 1.05rem;
}
@media (min-width: 768px) {
  .teach-cards { grid-template-columns: repeat(4, 1fr); }
  .teach-cards > li {
    border-bottom: 0;
    border-right: 2px solid var(--foreground);
    padding: 1.75rem 1.2rem 1.5rem;
  }
  .teach-cards > li:first-child { padding-left: 0; }
  .teach-cards > li:last-child { border-right: 0; padding-right: 0; }
}

.syllabus-lede { max-width: 42rem; }
.syllabus-pillar { margin-top: 3.25rem; }
.syllabus-toc { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.syllabus-toc > li {
  border-top: 2px solid var(--foreground);
  padding: 1.6rem 0 1.75rem;
}
.syllabus-toc h3 {
  font-family: var(--font-display), "Bodoni Moda", Georgia, serif;
  font-size: 2rem;
  line-height: 1.1;
  margin: 0.25rem 0 0.75rem;
}
.syllabus-key { font-size: 1.1rem; max-width: 44rem; }
.syllabus-meta {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
}
@media (min-width: 768px) {
  .syllabus-meta { grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
}
.syllabus-meta h4 {
  font-family: var(--font-grotesk), "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
.syllabus-meta p { margin: 0; }
.syllabus-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
}
.syllabus-links a {
  font-family: var(--font-grotesk), "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.syllabus-missing { color: var(--muted-foreground); }
