:root {
  --ink: #161616;
  --muted: #3c3834;
  --paper: #f6f4f1;
  --white: #fffcf8;
  --line: #e0d9d0;
  --accent: #6d3414;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --wrap: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

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

a:hover {
  color: var(--accent);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 5;
  font-weight: 700;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 3rem));
  }
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  max-width: 16em;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  max-width: 18em;
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

.intro,
.lede {
  max-width: 42rem;
}

.lede {
  font-size: 1.2rem;
}

cite {
  font-style: italic;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(70vw, 280px);
  background: none;
  filter: none;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  padding: 0.45rem 0.05rem;
}

.js .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 899px) {
  .js .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0.5rem;
  }

  .js .nav.is-open {
    display: flex;
  }
}

@media (min-width: 900px) {
  .brand img {
    height: 72px;
    max-width: 340px;
  }

  .js .nav-toggle {
    display: none;
  }

  .nav {
    justify-content: flex-end;
    flex: 1 1 520px;
  }
}

.hero {
  padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.75rem);
}

.hero-mark {
  display: block;
  height: 104px;
  width: auto;
  max-width: 100%;
  margin: 0 0 1.25rem;
  background: none;
  filter: none;
  box-shadow: none;
}

@media (min-width: 800px) {
  .hero-mark {
    height: 168px;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}

.button:hover {
  background: #000;
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

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

@media (max-width: 640px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.section {
  padding: clamp(3.25rem, 6vw, 5.5rem) 0;
}

.band {
  background: var(--white);
}

.cards {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.cards li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem 1.45rem;
}

.band .cards li {
  background: var(--paper);
}

.goals {
  counter-reset: goal;
}

.goals li::before {
  counter-increment: goal;
  content: counter(goal, decimal-leading-zero);
  display: block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.oj {
  margin: -0.15rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.for-whom,
.soon {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.soon {
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 0.15rem 0.45rem;
}

.settings {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.settings li {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0;
  font-family: var(--serif);
}

.book-layout {
  display: grid;
  gap: 2rem;
}

.book-note {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 0.9rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.prose {
  max-width: 42rem;
}

.contact-block .identity {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 36rem;
}

.contact-block a {
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 3.5rem);
}

@media (min-width: 720px) {
  .cards.goals,
  .cards.teachings,
  .cards.resources {
    grid-template-columns: 1fr 1fr;
  }

  .cards.upcoming {
    grid-template-columns: 1fr 1fr;
  }

  .book-layout {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .cards.goals,
  .cards.teachings {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cards.upcoming {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
  }
}

@media print {
  .skip,
  .nav-toggle,
  .nav {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .button {
    border: 1px solid #000;
    background: #fff;
    color: #000;
  }
}

/* ---------- v2 additions ---------- */
.tagline-banner {
  background: linear-gradient(180deg, #0e244a 0%, #25679f 100%);
  line-height: 0;
  text-align: center;
}
.tagline-banner img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-width: 1200px;
  max-height: min(38vh, 500px);
  object-fit: contain;
}

/* Native word first: large Ojibwe word, pronunciation beside it, English smaller underneath */
.tw { display: block; margin: 0 0 0.6rem; }
.tw-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; }
.tw-oj {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.tw-say {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
  white-space: nowrap;
}
.tw-en {
  display: block;
  font-family: var(--sans);
  margin-top: 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
h2 .tw-oj { font-size: clamp(2rem, 4vw, 2.8rem); }
.tw-inline .tw-oj { font-size: 1.15rem; }
.tw-inline .tw-say { font-size: 0.82rem; }
.tw-inline .tw-en { font-size: 0.78rem; }
.say-note { font-size: 0.92rem; color: var(--muted); max-width: 42rem; }

.page-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 0.4rem; color: var(--accent); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; }
.crumbs { font-size: 0.95rem; margin: 0 0 0.75rem; }
.crumbs a { font-weight: 700; }
.toc { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.toc a { font-weight: 700; text-decoration-color: var(--accent); text-underline-offset: 0.25em; }
.content { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.content h2 { margin-top: 2.5rem; }
.content > .wrap > h2:first-child { margin-top: 0; }
.block { background: var(--white); border: 1px solid var(--line); padding: 1.35rem 1.25rem 1.2rem; margin: 1.25rem 0; }
.block h3 { margin-top: 0; }
.label { display: block; margin: 0.9rem 0 0.25rem; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.block ul, .block ol, .prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.block li { margin-bottom: 0.35rem; }
.say-this { border-left: 3px solid var(--ink); padding: 0.2rem 0 0.2rem 0.9rem; margin: 0 0 1rem; font-family: var(--serif); }
.meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; font-size: 0.95rem; color: var(--muted); margin: 0 0 0.5rem; }
.meta b { color: var(--ink); }
.steps-v { counter-reset: stepv; list-style: none; padding: 0; margin: 1rem 0; }
.steps-v > li { position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.steps-v > li::before { counter-increment: stepv; content: counter(stepv); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border: 2px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; }
.note { border-top: 2px solid var(--ink); padding-top: 0.9rem; font-size: 0.98rem; color: var(--muted); }
.card-link { display: inline-block; margin-top: 0.4rem; font-weight: 700; text-decoration-color: var(--accent); text-underline-offset: 0.25em; }
.cards li .card-link { margin-top: 0.2rem; }
.print-btn { cursor: pointer; font: inherit; }

table.map { width: 100%; border-collapse: collapse; margin: 1.25rem 0; background: var(--white); font-size: 0.98rem; }
table.map th, table.map td { border: 1px solid var(--line); padding: 0.65rem 0.7rem; text-align: left; vertical-align: top; }
table.map th { background: var(--paper); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
@media (max-width: 760px) {
  table.map thead { display: none; }
  table.map, table.map tbody, table.map tr, table.map td { display: block; width: 100%; }
  table.map tr { border: 1px solid var(--line); margin-bottom: 1rem; }
  table.map td { border: 0; border-top: 1px solid var(--line); }
  table.map td::before { content: attr(data-th); display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
}
.flow { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.flow li { border: 2px solid var(--ink); background: var(--white); padding: 0.7rem 0.8rem; font-size: 0.95rem; }
.flow li .pg { display: block; font-size: 0.8rem; font-weight: 700; color: var(--accent); letter-spacing: 0.05em; text-transform: uppercase; }
.flow li.story { border-style: solid; }
.flow li.matter { border-style: dashed; }
.downloads { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.75rem; }
.downloads li { background: var(--white); border: 1px solid var(--line); padding: 1rem 1.1rem; }
.downloads a { font-weight: 700; }
.arc { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 1rem; }
.arc li { border-top: 2px solid var(--ink); padding-top: 0.8rem; }
.arc .phase { display: block; color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
blockquote.stance { margin: 1.25rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--ink); background: var(--white); font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.35; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } .arc { grid-template-columns: 1fr 1fr 1fr; } }
.cards.programs { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards.programs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards.programs { grid-template-columns: 1fr 1fr 1fr; } }
.anchor-alias { display: block; position: relative; top: 0; height: 0; }

@media print {
  .tagline-banner, .site-header, .site-footer .contact-block a[href^="tel"]::after, .toc, .print-btn, .crumbs { display: none !important; }
  .site-header { display: none; }
  body { font-size: 11pt; line-height: 1.45; }
  .wrap { width: 100%; }
  .block { break-inside: avoid; border: 1px solid #999; background: #fff; }
  .page-hero { border: 0; padding-top: 0; }
  a { color: #000; text-decoration: none; }
  table.map { font-size: 9.5pt; }
  .site-footer { border-top: 1px solid #999; padding: 0.5rem 0 0; }
}


/* Book sample preview */
.book-sample {
  margin-top: 2.5rem;
}
.sample-pages {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.sample-pages a {
  display: block;
  line-height: 0;
  background: var(--white);
  border: 1px solid var(--line);
}
.sample-pages img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 720px) {
  .sample-pages {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

/* Instagram link in header */
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-left: auto;
}
.ig-link:hover, .ig-link:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
@media (max-width: 520px) {
  .ig-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ig-link { padding: 0.4rem 0.6rem; }
}
