:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6670;
  --line: #d9dde3;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-dark: #134e4a;
  --warm: #a16207;
  --rose: #9f1239;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.site-footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  margin-top: 56px;
  color: var(--muted);
}

.brand,
.nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: white;
  background: var(--accent-dark);
  font-size: 0.78rem;
}

.nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--accent-dark);
}

.home-hero,
.page-shell,
.section-band {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 40px;
  align-items: center;
  min-height: 520px;
  padding: 64px 0 42px;
}

.page-shell {
  padding: 54px 0 0;
}

.page-kicker {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4.6rem);
}

h2 {
  margin-top: 36px;
  font-size: 1.8rem;
}

h3 {
  font-size: 1.18rem;
}

.lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quick-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 24px;
}

.quick-paths a {
  display: grid;
  gap: 2px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.quick-paths a:hover {
  border-color: rgba(19, 78, 74, 0.48);
  background: white;
}

.quick-paths strong,
.quick-paths span {
  display: block;
}

.quick-paths strong {
  line-height: 1.22;
}

.quick-paths span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.task-route-band {
  padding-top: 10px;
}

.task-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.task-route-card {
  min-height: 168px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  text-decoration: none;
}

.task-route-card:hover {
  border-color: rgba(19, 78, 74, 0.5);
  box-shadow: 0 10px 26px rgba(32, 33, 36, 0.08);
}

.task-route-card span {
  display: block;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.task-route-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.task-route-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.next-move-band {
  padding-top: 12px;
}

.next-move-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.next-move-panel h2 {
  margin: 0;
  font-size: 1.28rem;
}

.next-move-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.next-move-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(19, 78, 74, 0.2);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #f6fbfa;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
}

.next-move-links a:hover {
  border-color: rgba(19, 78, 74, 0.5);
  background: #ffffff;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  color: white;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.print-button {
  margin-top: 22px;
  cursor: pointer;
  font: inherit;
}

.hero-art {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(32, 33, 36, 0.12);
}

.hero-art img,
.card-visual,
.page-visual {
  display: block;
  width: 100%;
  height: auto;
}

.page-hero.with-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 30px;
  align-items: center;
}

.page-visual {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card-visual {
  margin: -4px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f1e8;
}

.section-band {
  padding: 22px 0 20px;
}

.feature-band {
  padding: 34px 0;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading-row h2,
.section-heading-row p {
  margin-top: 0;
}

.section-heading-row > p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto auto 1fr;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.feature-card:hover {
  border-color: rgba(19, 78, 74, 0.48);
  box-shadow: 0 14px 30px rgba(32, 33, 36, 0.1);
}

.feature-card img {
  display: block;
  width: calc(100% + 36px);
  aspect-ratio: 16 / 9;
  height: auto;
  margin: -18px -18px 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  object-fit: cover;
}

.feature-card span {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-card strong {
  font-size: 1.08rem;
  line-height: 1.12;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.resource-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.resource-card {
  display: block;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.resource-card h3,
.resource-card p {
  margin-top: 0;
}

.resource-card ul {
  margin: 0;
  padding-left: 18px;
}

.resource-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.content-body {
  max-width: 820px;
  margin-top: 34px;
}

.content-body li + li {
  margin-top: 8px;
}

.content-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--rose);
  background: white;
}

.article-visual {
  margin: 28px 0;
}

.article-visual img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.related {
  margin-top: 48px;
}

.tool-panel {
  display: grid;
  gap: 18px;
  margin: 30px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tool-panel h2,
.tool-panel p {
  margin-top: 0;
}

.prompt-output {
  min-height: 154px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f6fbfa;
  font-size: 1.12rem;
  font-weight: 750;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-actions button {
  cursor: pointer;
  font: inherit;
}

.tool-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.worksheet-block {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.worksheet-block p {
  min-height: 44px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.worksheet-block p:last-child {
  border-bottom: 0;
}

.worksheet-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.worksheet-preview {
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 24px rgba(32, 33, 36, 0.08);
}

.worksheet-preview strong,
.worksheet-preview span {
  display: block;
}

.worksheet-preview strong {
  margin-bottom: 18px;
  color: var(--accent-dark);
}

.worksheet-preview span {
  height: 18px;
  margin: 14px 0;
  border-bottom: 2px solid var(--line);
}

.worksheet-preview span.short {
  width: 70%;
}

.preview-checks,
.preview-timeline {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.preview-checks i,
.preview-timeline i {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 4px;
}

.preview-timeline {
  justify-content: space-between;
  border-top: 3px solid var(--accent-dark);
  padding-top: 12px;
}

.preview-timeline i {
  border-radius: 50%;
  background: #eaf4f2;
}

.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.spot-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.spot-card img {
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 8px;
}

.spot-card strong,
.spot-card span {
  display: block;
}

.spot-card span {
  color: var(--muted);
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .quick-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero.with-visual {
    grid-template-columns: 1fr;
  }

  .section-heading-row,
  .feature-grid,
  .next-move-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.35rem;
  }
}

@media (max-width: 460px) {
  .quick-paths {
    grid-template-columns: 1fr;
  }

  .task-route-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 0.65in;
  }

  .site-header,
  .site-footer,
  .related,
  .tool-actions,
  .print-button,
  .page-kicker,
  .page-visual,
  .article-visual {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .page-shell,
  .content-body {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  h1 {
    margin-bottom: 10pt;
    font-size: 28pt;
  }

  h2 {
    break-after: avoid;
    font-size: 18pt;
  }

  h3,
  p,
  li {
    orphans: 3;
    widows: 3;
  }

  .lede {
    color: black;
    font-size: 12pt;
  }

  .worksheet-block {
    break-inside: avoid;
    border-color: #999;
    box-shadow: none;
    background: white;
  }

  .worksheet-block p {
    min-height: 48pt;
    border-bottom-color: #aaa;
  }

  .worksheet-preview,
  .resource-card,
  .tool-panel,
  .prompt-output {
    box-shadow: none;
    background: white;
  }
}
