:root {
  --bg: #f7f8f5;
  --paper: #ffffff;
  --ink: #141716;
  --muted: #626b66;
  --line: #d9ded8;
  --line-strong: #aeb8b0;
  --teal: #0f766e;
  --teal-soft: #d7f2ee;
  --amber: #d88a1d;
  --amber-soft: #faecd6;
  --green: #246b45;
  --red: #9a3f35;
  --shadow: 0 18px 50px rgba(23, 32, 28, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(216, 138, 29, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--ink);
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--teal);
  font-weight: 900;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
}

.topnav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.topnav a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 56px;
  align-items: center;
  padding: 24px 0 58px;
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(2.75rem, 5.1vw, 4.75rem);
  line-height: 1.04;
  font-weight: 900;
}

.hero-copy p {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.68;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.button:hover {
  transform: translateY(-1px);
}

.system-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.signal {
  border-left: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.68);
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.45;
}

.shelf-panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-head h2,
.section-head h2,
.pack-title {
  margin: 5px 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.05;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.artifact {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.artifact h3 {
  margin: 0;
  font-size: 1.5rem;
}

.artifact p,
.section-head p,
.pack-card p,
.ledger-row p,
.setup-list p,
.fineprint,
.pack-body p,
.pack-body li {
  color: var(--muted);
  line-height: 1.62;
}

.mini-cover {
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--teal-soft), rgba(250, 236, 214, 0.82)),
    var(--paper);
  color: var(--teal);
  text-align: center;
  font-weight: 900;
}

.artifact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 520px;
  margin: 0;
}

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

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

.pack-card,
.tier-card,
.ledger-row,
.setup-list,
.pack-body,
.print-sheet {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.pack-card {
  padding: 18px;
}

.tier-card {
  padding: 22px;
}

.pack-card h3,
.tier-card h3 {
  margin: 8px 0 0;
  font-size: 1.25rem;
}

.tier-card p {
  color: var(--muted);
  line-height: 1.58;
}

.tier-amount {
  color: var(--teal);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}

.pack-date {
  color: var(--amber);
  font-weight: 900;
  font-size: 0.86rem;
}

.ledger {
  display: grid;
  gap: 12px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.ledger-row strong {
  display: block;
}

.row-actions {
  display: grid;
  gap: 8px;
}

.row-actions .button {
  width: 100%;
}

.topic-links,
.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-link,
.policy-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.setup-list {
  padding: 8px;
}

.setup-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.setup-item:last-child {
  border-bottom: 0;
}

.setup-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 900;
}

.setup-item.done .setup-dot {
  background: var(--teal-soft);
  color: var(--green);
}

.bundle-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: 24px;
}

.bundle-panel h3 {
  margin: 6px 0 10px;
  font-size: 1.55rem;
}

.bundle-panel p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.bundle-stat {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--ink);
  text-align: center;
}

.bundle-stat span {
  color: var(--teal);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.bundle-stat small {
  color: var(--muted);
  font-weight: 800;
}

.signal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: 22px;
}

.signal-panel h3 {
  margin: 6px 0 10px;
  font-size: 1.45rem;
}

.signal-panel p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.signal-actions {
  display: grid;
  gap: 10px;
}

.signal-actions .button {
  width: 100%;
}

.support-card {
  grid-column: 1 / -1;
  margin: 22px 0 0;
}

.support-card a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.support-card img {
  display: block;
  width: 100%;
  height: auto;
}

.support-card figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.site-footer {
  padding: 40px 0 60px;
  color: var(--muted);
}

.pack-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.pack-body {
  padding: 28px;
}

.pack-body h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.98;
}

.pack-body h2 {
  margin-top: 34px;
}

.print-sheet {
  width: min(860px, calc(100% - 24px));
  margin: 24px auto;
  padding: 30px;
}

.print-grid {
  display: grid;
  gap: 14px;
}

.print-box {
  min-height: 82px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 14px;
}

.print-support {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--teal-soft);
}

.print-support h2,
.print-support p {
  margin: 0;
}

.print-support h2 {
  font-size: 1.2rem;
}

.print-support p {
  color: var(--muted);
  line-height: 1.5;
}

.print-support a {
  color: var(--teal);
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .topbar,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
  }

  .system-note,
  .pack-grid,
  .tier-grid,
  .artifact,
  .ledger-row,
  .bundle-panel,
  .signal-panel {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .topbar,
  .actions,
  .site-footer,
  .button {
    display: none;
  }

  .print-sheet,
  .pack-body {
    box-shadow: none;
  }
}
