:root {
  color-scheme: light;
  --ink: #2d261f;
  --muted: #6f6256;
  --paper: #f7f1e6;
  --line: #d2bea4;
  --accent: #8b3f2a;
  --moss: #536348;
  --white: #fffaf1;
  font-family: Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

.site-header,
.site-footer,
.hero,
.section,
.page-heading,
.article-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-color: var(--line);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

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

nav,
.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero {
  min-height: 56vh;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.section,
.page-heading,
.article-shell {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero h1,
.page-heading h1,
.article-header h1 {
  max-width: 780px;
  margin: 0.25rem 0 1rem;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p,
.page-heading p,
.article-header p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  margin: 0;
  color: var(--moss);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

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

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2,
.related-links h2 {
  margin: 0.2rem 0 0;
  font-size: 1.8rem;
}

.category-grid,
.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.category-tile,
.node-card,
.download-row,
.field-sheet-preview,
.related-links {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
}

.category-tile {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.category-tile span,
.download-row small,
.node-card p {
  color: var(--muted);
}

.node-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.node-card-real {
  border-color: var(--moss);
  box-shadow: 0 14px 30px rgba(45, 38, 31, 0.1);
}

.node-card-placeholder {
  background: rgba(255, 250, 241, 0.68);
}

.node-card > :not(.card-thumb) {
  margin-right: 1.1rem;
  margin-left: 1.1rem;
}

.node-card > :last-child {
  margin-bottom: 1.1rem;
}

.card-thumb {
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(83, 99, 72, 0.12), rgba(139, 63, 42, 0.08)),
    var(--paper);
}

.node-card-placeholder .card-thumb {
  background:
    linear-gradient(135deg, rgba(111, 98, 86, 0.08), rgba(210, 190, 164, 0.18)),
    var(--paper);
}

.node-card-real .card-thumb {
  background:
    linear-gradient(135deg, rgba(83, 99, 72, 0.2), rgba(217, 154, 71, 0.18)),
    var(--white);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
}

.card-format {
  align-self: flex-start;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.84);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-kicker {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.content-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-real {
  border-color: var(--moss);
  background: rgba(83, 99, 72, 0.12);
  color: var(--moss);
}

.badge-placeholder {
  border-color: var(--accent);
  background: rgba(139, 63, 42, 0.11);
  color: var(--accent);
}

.node-card h2 {
  margin: 0.3rem 0 0.6rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.node-card p:not(.eyebrow) {
  flex: 1;
}

.card-actions {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(210, 190, 164, 0.72);
}

.card-link {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.launch-note {
  max-width: 1120px;
  margin: -0.5rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: rgba(255, 250, 241, 0.62);
  color: var(--muted);
}

.tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  gap: 0.75rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
}

.tools input,
.tools select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.article-shell {
  max-width: 860px;
}

.node-article,
.node-hero,
.learn-box,
.quick-answer,
.visual-guide,
.article-body,
.bottom-download,
.field-sheet-preview,
.related-links {
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
}

.node-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 350px);
  gap: clamp(1.5rem, 4vw, 2.6rem);
  align-items: center;
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(234, 220, 200, 0.74)),
    var(--white);
  box-shadow: 0 18px 42px rgba(45, 38, 31, 0.1);
}

.node-hero h1 {
  max-width: 14ch;
  margin: 0.25rem 0 1rem;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: clamp(2.45rem, 5.4vw, 4.85rem);
  line-height: 1;
  letter-spacing: 0;
}

.node-hero-copy {
  min-width: 0;
}

.node-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.node-hero .eyebrow {
  color: var(--accent);
}

.hero-subheadline {
  margin-bottom: 0.8rem;
  font-size: 1.24rem;
}

.hero-curiosity {
  margin-top: 0;
  color: var(--ink);
  font-style: italic;
}

.hero-diagram {
  position: relative;
  min-height: 340px;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(247, 241, 230, 0.2), rgba(139, 63, 42, 0.08)),
    var(--paper);
}

.hero-diagram-svg {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.25rem;
}

.hero-diagram-svg svg {
  width: 100%;
  max-height: 285px;
}

.sun-shape {
  position: absolute;
  top: 5rem;
  right: 4rem;
  width: 4.8rem;
  height: 4.8rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #d99a47;
  box-shadow: 0 0 0 12px rgba(217, 154, 71, 0.13);
}

.sun-path {
  position: absolute;
  right: 2.2rem;
  bottom: 5.4rem;
  width: 82%;
  height: 58%;
  border-top: 3px dashed var(--accent);
  border-radius: 100% 100% 0 0;
  transform: rotate(-8deg);
}

.ground-line {
  position: absolute;
  right: 1.5rem;
  bottom: 4.5rem;
  left: 1.5rem;
  height: 2px;
  background: var(--ink);
}

.stick-shape {
  position: absolute;
  bottom: 4.5rem;
  left: 44%;
  width: 7px;
  height: 112px;
  background: var(--ink);
  transform-origin: bottom center;
  transform: rotate(1deg);
}

.shadow-shape {
  position: absolute;
  bottom: 4.45rem;
  left: 44%;
  width: 148px;
  height: 4px;
  background: var(--accent);
  transform-origin: left center;
  transform: rotate(15deg);
}

.time-mark {
  position: absolute;
  bottom: 4.1rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--moss);
}

.time-mark-one {
  left: 28%;
}

.time-mark-two {
  left: 44%;
}

.time-mark-three {
  left: 61%;
}

.learn-box,
.quick-answer,
.build-order-card,
.visual-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.learn-box {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
}

.learn-box ul,
.do-card ul,
.not-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.learn-box li,
.do-card li,
.not-card li {
  margin: 0.3rem 0;
}

.quick-answer {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-left: 6px solid var(--accent);
}

.quick-answer p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.12rem;
}

.build-order-card {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem;
}

.build-order-card ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.5rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: build-step;
}

.build-order-card li {
  min-width: 0;
  padding: 0.65rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  text-align: center;
  counter-increment: build-step;
}

.build-order-card li::before {
  content: counter(build-step);
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0 auto 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45rem;
}

.build-order-card span {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.15;
}

.placeholder-banner {
  max-width: 960px;
  margin: 1rem auto 0;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: rgba(139, 63, 42, 0.11);
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.visual-guide {
  padding: 1.25rem 1.25rem 2.25rem;
}

.visual-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.visual-card {
  padding: 1rem;
  overflow: hidden;
}

.visual-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.visual-placeholder {
  min-height: 180px;
  display: grid;
  align-items: center;
  padding: 1rem;
  border: 1px dashed var(--accent);
  background: rgba(139, 63, 42, 0.07);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
}

.visual-inline-diagram {
  width: 100%;
  height: 220px;
  max-height: 220px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.visual-inline-diagram svg {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.visual-image-slot,
.field-image-slot {
  display: grid;
}

.visual-image-slot img,
.field-image-slot img {
  width: 100%;
  min-height: 180px;
  max-height: 280px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--paper);
}

.field-image-slot {
  margin-bottom: 0.65rem;
}

.field-image-slot img {
  min-height: 210px;
}

.article-body {
  padding: 0 1.25rem;
  font-size: 1.08rem;
  line-height: 1.72;
}

.intro-body {
  padding-top: 2rem;
}

.article-body h2 {
  margin-top: 2.35rem;
  margin-bottom: 0.7rem;
  font-size: 1.75rem;
  line-height: 1.15;
}

.article-body h3 {
  margin-top: 1.45rem;
  margin-bottom: 0.35rem;
  font-size: 1.18rem;
  line-height: 1.2;
}

.article-body p {
  max-width: 720px;
  margin-top: 0.55rem;
  margin-bottom: 0.9rem;
}

.article-body ul,
.article-body ol {
  max-width: 760px;
  margin-top: 0.55rem;
  margin-bottom: 1.1rem;
  padding-left: 1.25rem;
}

.article-body li {
  margin: 0.28rem 0;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.article-body table {
  width: 100%;
  max-width: 920px;
  margin: 1rem 0 1.4rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--paper);
  font-weight: 800;
}

.bottom-download {
  padding: 1.35rem 1.25rem 0;
}

.field-sheet-preview,
.related-links {
  margin-top: 2rem;
  padding: 1.25rem;
}

.field-sheet-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(247, 241, 230, 0.76)),
    var(--white);
  box-shadow: 0 16px 38px rgba(45, 38, 31, 0.1);
  overflow: hidden;
}

.field-sheet-preview > .section-heading {
  margin-bottom: 1rem;
}

.field-sheet-preview .field-sheet,
.field-sheet-preview .sheet,
.field-sheet-preview .page {
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.field-sheet {
  display: grid;
  gap: 0.85rem;
}

.field-sheet-hero {
  border: 3px solid var(--ink);
  padding: 1rem;
  background: var(--paper);
}

.field-sheet-hero h2 {
  margin: 0.25rem 0;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  line-height: 0.9;
}

.field-rule {
  margin: 0;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 700;
}

.field-sheet-strip {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--accent);
  background: var(--white);
}

.field-sheet-strip h3,
.field-sheet-strip p {
  margin: 0;
}

.field-sheet-strip p {
  color: var(--muted);
  font-weight: 700;
}

.field-sheet-grid,
.field-sheet-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.field-sheet-columns {
  grid-template-columns: repeat(2, 1fr);
}

.diagram-card,
.field-sheet-band,
.field-sheet-columns section {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  background: var(--white);
}

.diagram-card {
  position: relative;
  border-width: 2px;
}

.diagram-number {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  margin: 0 0 0.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.diagram-card h3,
.field-sheet-columns h3,
.field-sheet-band h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.diagram-card p,
.field-sheet-columns p,
.field-sheet-band p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.diagram-box {
  min-height: 210px;
  display: grid;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 1rem;
  border: 2px dashed var(--accent);
  background: rgba(139, 63, 42, 0.07);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.84rem;
  line-height: 1.35;
}

.do-card {
  border-color: var(--moss);
}

.not-card {
  border-color: var(--accent);
}

.download-list {
  display: grid;
  gap: 0.75rem;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.download-row span {
  display: grid;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 1.25rem;
  color: var(--muted);
  background: rgba(255, 250, 241, 0.58);
}

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

  .tools {
    grid-template-columns: 1fr;
  }

  .card-kicker {
    flex-direction: column;
  }

  .card-thumb {
    min-height: 112px;
  }

  .card-actions {
    flex-direction: column;
    gap: 0.45rem;
  }

  .node-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 0;
    padding: 1.25rem;
  }

  .node-hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.4rem);
  }

  .hero-diagram {
    min-height: 280px;
  }

  .sun-shape {
    top: 4.5rem;
    right: 2.2rem;
    width: 3.7rem;
    height: 3.7rem;
  }

  .stick-shape {
    height: 86px;
  }

  .shadow-shape {
    width: 112px;
  }

  .quick-answer,
  .visual-guide,
  .article-body,
  .bottom-download {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .visual-guide-grid,
  .field-sheet-grid,
  .field-sheet-columns {
    grid-template-columns: 1fr;
  }

  .visual-placeholder,
  .diagram-box {
    min-height: 150px;
  }

  .visual-inline-diagram {
    height: 180px;
    max-height: 180px;
  }

  .build-order-card ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .card-actions,
  .tools {
    display: none;
  }

  body {
    background: white;
  }

  .article-shell.printable-document {
    max-width: none;
    padding: 0;
  }

  .printable-document .field-sheet-hero {
    padding: 0.6rem;
  }

  .printable-document .field-sheet-hero h2 {
    font-size: 3rem;
  }

  .printable-document .field-rule {
    font-size: 1.05rem;
  }

  .field-sheet {
    gap: 0.45rem;
  }

  .field-sheet-strip,
  .diagram-card,
  .field-sheet-band,
  .field-sheet-columns section {
    padding: 0.55rem;
  }

  .diagram-box {
    min-height: 130px;
  }

  .diagram-card p,
  .field-sheet-columns li,
  .field-sheet-band p {
    font-size: 0.82rem;
  }
}

.checklist-cta {
  max-width: 960px;
  margin: 1.45rem auto;
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--moss);
  border-left: 8px solid var(--accent);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(247, 241, 230, 0.86)),
    var(--white);
  box-shadow: 0 12px 28px rgba(45, 38, 31, 0.08);
}

.checklist-cta h2 {
  margin: 0.22rem 0 0.4rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.12;
}

.checklist-cta p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.checklist-cta .eyebrow {
  color: var(--accent);
}

.checklist-note {
  margin-top: 0.45rem !important;
  font-size: 0.86rem;
  font-style: italic;
}

.checklist-button {
  flex: 0 0 auto;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
}

.checklist-article {
  margin-top: 1rem;
}

.site-footer {
  justify-content: center;
  align-items: center;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  text-align: center;
}

.site-footer > div {
  max-width: 820px;
  margin: 0 auto;
}

.site-footer p {
  margin: 0.12rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .node-hero {
    grid-template-columns: 1fr;
  }

  .node-hero h1 {
    max-width: 16ch;
    font-size: clamp(2.35rem, 8.5vw, 4rem);
  }
}

@media (max-width: 520px) {
  .node-hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 12vw, 3.35rem);
    line-height: 1;
  }
}

@media (max-width: 700px) {
  .checklist-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .checklist-button {
    width: 100%;
  }
}
