:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #122033;
  --muted: #5c6678;
  --border: #dce4f0;
  --accent: #2457d6;
  --accent-dark: #173c97;
  --accent-soft: #e8efff;
  --green: #13795b;
  --green-soft: #e6f5ef;
  --amber: #8a5c12;
  --amber-soft: #fff2d9;
  --shadow: 0 18px 38px rgba(24, 39, 75, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: 1120px;
  --checklist-row-bg: #fbfcff;
  --header-bg: rgba(246, 248, 252, 0.94);
  --tile-hover-border: #c8d8ff;
  --brand-mark-bg: #2457d6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a101d;
    --surface: #121b2f;
    --surface-soft: #1c2740;
    --text: #e8edf7;
    --muted: #9aa8bf;
    --border: #273553;
    --accent: #6b9cff;
    --accent-dark: #a8c4ff;
    --accent-soft: #243353;
    --green: #5bd4a7;
    --green-soft: #14352a;
    --amber: #f0c674;
    --amber-soft: #3a3020;
    --shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
    --checklist-row-bg: #171f33;
    --header-bg: rgba(10, 16, 29, 0.94);
    --tile-hover-border: #3d5588;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a101d;
  --surface: #121b2f;
  --surface-soft: #1c2740;
  --text: #e8edf7;
  --muted: #9aa8bf;
  --border: #273553;
  --accent: #6b9cff;
  --accent-dark: #a8c4ff;
  --accent-soft: #243353;
  --green: #5bd4a7;
  --green-soft: #14352a;
  --amber: #f0c674;
  --amber-soft: #3a3020;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
  --checklist-row-bg: #171f33;
  --header-bg: rgba(10, 16, 29, 0.94);
  --tile-hover-border: #3d5588;
}

:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px 20px;
  min-height: 68px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.nav-toggle:hover {
  border-color: var(--tile-hover-border);
}

.nav-toggle__icon {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.theme-toggle:hover {
  border-color: var(--tile-hover-border);
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: none;
  font-size: 18px;
  line-height: 1;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle__sun {
    display: inline;
  }
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle__moon {
    display: inline;
  }
}

:root[data-theme="dark"] .theme-toggle__sun {
  display: inline;
}

:root[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle__moon {
  display: inline;
}

:root[data-theme="light"] .theme-toggle__sun {
  display: none;
}

.nav--primary {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-mark-bg);
  color: #fff;
  font-weight: 800;
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__name {
  font-weight: 800;
}

.brand__tag {
  color: var(--muted);
  font-size: 13px;
}

.nav,
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav a,
.footer__nav a,
.text-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav a {
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover,
.footer__nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.hero,
.page-hero,
.section {
  padding: 48px 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.card,
.tile,
.page-hero__surface,
.hero-card,
.checklist-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.tile,
.hero-card {
  transition:
    box-shadow 0.2s ease,
    border-color 0.18s ease;
}

.tile:hover,
.hero-card:hover {
  border-color: var(--tile-hover-border);
  box-shadow: var(--shadow);
}

.page-hero__surface,
.hero-card,
.tile {
  padding: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid var(--tile-hover-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.small,
small {
  font-size: 14px;
}

.muted {
  color: var(--muted);
}

.hero__actions,
.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero__decor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 18px 0 0;
  font-size: 22px;
  line-height: 1;
  opacity: 0.78;
}

.hero__decor__dash {
  flex-basis: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

@media (min-width: 560px) {
  .hero__decor__dash {
    flex-basis: auto;
  }
}

.tile--accent {
  border-top: 3px solid var(--tile-accent, var(--accent));
}

.tile__emoji {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1;
}

.content-reading__h {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.content-reading p {
  margin: 0;
  max-width: 68ch;
  color: var(--text);
  line-height: 1.6;
}

.content-reading p + p {
  margin-top: 14px;
}

.button,
button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 11px 16px;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease;
}

.button--primary:active,
.button--secondary:active,
.button--ghost:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--primary:hover {
  background: var(--accent-dark);
}

.button--secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.button--ghost {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-weight: 700;
}

.button--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.section__header {
  margin-bottom: 24px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.hero-card__list,
.compact-list,
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card__list {
  display: grid;
  gap: 14px;
}

.hero-card__list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.hero-card__step {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.hero-card__list li:last-child {
  border-bottom: 0;
}

.hero-card__value {
  color: var(--text);
  line-height: 1.45;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compact-list li,
.link-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.compact-list li:last-child,
.link-list li:last-child {
  border-bottom: 0;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.checklist-toolbar {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (min-width: 720px) {
  .checklist-toolbar {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .checklist-toolbar > .checklist-progress {
    grid-column: 1 / -1;
  }

  .checklist-toolbar > .checklist-filter {
    justify-self: start;
  }

  .checklist-toolbar > .button--ghost {
    justify-self: end;
  }
}

.checklist-progress__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.checklist-progress__label {
  font-weight: 800;
  color: var(--text);
}

.checklist-progress__fraction {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--muted);
  font-size: 14px;
}

.checklist-progress__bar {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.checklist-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.28s ease;
}

.checklist-filter {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.checklist-filter__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.checklist-filter__choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.checklist-filter__choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.checklist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.checklist-main {
  display: grid;
  gap: 18px;
}

.checklist-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.checklist-section {
  padding: 0;
}

.checklist-section__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
  user-select: none;
}

.checklist-section__summary::-webkit-details-marker {
  display: none;
}

.checklist-section__title {
  flex: 1;
  min-width: 0;
}

.checklist-section__hint {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

details.checklist-section[open] .checklist-section__hint::before {
  content: "▼ ";
}

details.checklist-section:not([open]) .checklist-section__hint::before {
  content: "▶ ";
}

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

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-item label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--checklist-row-bg);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    opacity 0.18s ease;
}

.checklist-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
  transition: transform 0.12s ease;
}

.checklist-item input:checked {
  transform: scale(1.06);
}

.checklist-item--filtered {
  display: none;
}

.checklist-section--empty {
  display: none;
}

.checklist-item:has(input:checked) strong {
  opacity: 1;
}

.checklist-item:has(input:checked) label {
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 52%, var(--border));
  box-shadow: inset 3px 0 0 var(--green);
}

.checklist-item:has(input:checked) small,
.checklist-item:has(input:checked) em,
.checklist-item:has(input:checked) .checklist-item__qty,
.checklist-item:has(input:checked) .checklist-item__note {
  opacity: 1;
}

.checklist-item:has(input:checked) .checklist-item__note {
  border-left-color: color-mix(in srgb, var(--green) 45%, var(--accent-soft));
}

.checklist-item strong {
  display: block;
  margin-bottom: 2px;
}

.checklist-item small,
.checklist-item em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.checklist-item__qty,
.checklist-item__note {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.checklist-item__k {
  font-weight: 800;
  color: var(--text);
  margin-right: 6px;
}

.checklist-item__note {
  border-left: 3px solid var(--accent-soft);
  padding-left: 12px;
}

.footer {
  padding: 36px 0 44px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero__grid,
  .grid--2,
  .grid--3,
  .checklist-layout {
    grid-template-columns: 1fr;
  }

  .checklist-sidebar {
    position: static;
  }

  h1 {
    font-size: 42px;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav--primary {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-start;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0 8px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }

  .site-header--nav-open .nav--primary {
    display: flex;
  }

  .footer__grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .page-hero,
  .section {
    padding: 32px 0;
  }

  h1 {
    font-size: 34px;
  }

  .checklist-section__summary {
    font-size: 18px;
    padding: 14px 16px;
  }

  details.checklist-section .checklist {
    padding: 0 16px 16px;
  }
}

.print-brand {
  display: none;
}

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

  html,
  body {
    font-size: 12px;
    line-height: 1.35;
  }

  .print-brand {
    display: block;
    color: #122033;
  }

  .print-brand--top {
    padding: 14px 0 12px;
    margin: 0 0 14px;
    border-bottom: 3px solid #2457d6;
    break-after: avoid;
  }

  .print-brand__inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .print-brand__wordmark {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .print-brand__sub {
    font-size: 12px;
    color: #5c6678;
  }

  .print-brand--bottom {
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid #dce4f0;
    break-inside: avoid;
  }

  .print-brand__foot {
    font-size: 11px;
    color: #5c6678;
    font-weight: 600;
    line-height: 1.4;
  }

  :root,
  :root[data-theme="dark"],
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: #fff;
    --surface: #fff;
    --surface-soft: #f6f8fc;
    --text: #122033;
    --muted: #5c6678;
    --border: #dce4f0;
    --accent: #2457d6;
    --accent-dark: #173c97;
    --accent-soft: #e8efff;
    --green: #13795b;
    --green-soft: #e6f5ef;
    --amber: #8a5c12;
    --amber-soft: #fff2d9;
    --shadow: none;
    --checklist-row-bg: #fff;
    --header-bg: #fff;
    --tile-hover-border: #dce4f0;
    --brand-mark-bg: #2457d6;
  }

  .site-header,
  .footer,
  .hero__actions,
  .checklist-sidebar,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #122033 !important;
  }

  .card,
  .page-hero__surface,
  .checklist-section {
    box-shadow: none;
  }

  .section,
  .page-hero {
    padding: 18px 0;
  }

  .page-meta {
    gap: 8px 12px;
  }

  details.checklist-section .checklist {
    padding: 0 0 10px;
  }

  .checklist-section__summary {
    padding: 10px 0;
    font-size: 16px;
    break-after: avoid;
  }

  .checklist {
    gap: 6px;
  }

  .checklist-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .checklist-item label {
    padding: 8px;
    gap: 10px;
    border-color: #cfd8e6;
  }

  .checklist-item strong {
    margin-bottom: 1px;
  }

  .checklist-item__qty,
  .checklist-item__note {
    margin-top: 4px;
    font-size: 12px;
  }
}