/* Failed Charge Desk — paper, ink, no theater */

:root {
  --paper: #f3eee4;
  --paper-2: #faf7f0;
  --ink: #1c1914;
  --muted: #5a544a;
  --rule: #cfc6b6;
  --rule-strong: #1c1914;
  --rust: #9a3b24;
  --rust-ink: #7a2e1c;
  --forest: #24362c;
  --high: #9a3b24;
  --med: #7a5a20;
  --low: #4a5548;
  --focus: #9a3b24;
  --prose: 38rem;
  --wide: 46rem;
}

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

html {
  font-size: 106.25%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

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

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin: 0 auto;
}

.prose-w {
  width: min(var(--prose), 100%);
}

/* Masthead */

.mast {
  padding: 1.35rem 0 0;
  border-top: 4px solid var(--rust);
}

.mast-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.mast-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Hero */

.hero {
  padding: 2.6rem 0 2.2rem;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4.4vw, 2.45rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 0.85rem;
  font-size: 1.08rem;
  max-width: 36rem;
}

.aside {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 34rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.btn {
  display: inline-block;
  background: var(--forest);
  color: #f4efe6;
  text-decoration: none;
  padding: 0.78rem 1.1rem;
  min-height: 2.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid var(--forest);
  border-radius: 2px;
}

.btn:hover {
  background: var(--ink);
  color: #f4efe6;
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Sections */

.sec {
  padding: 2.15rem 0;
  border-bottom: 1px solid var(--rule);
}

.sec h2 {
  margin: 0 0 0.85rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.sec p {
  margin: 0 0 0.8rem;
  max-width: 36rem;
}

.sec p:last-child,
.sec ul:last-child {
  margin-bottom: 0;
}

.week {
  display: grid;
  gap: 1.15rem;
  margin: 1.15rem 0 0;
}

@media (min-width: 640px) {
  .week {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.35rem;
  }
}

.week article {
  padding: 0.95rem 0 0;
  border-top: 2px solid var(--ink);
}

.week h3 {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.week .who {
  margin: 0 0 0.45rem;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.05rem;
}

.week p {
  margin: 0;
  font-size: 0.95rem;
}

.get {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}

.get li {
  margin: 0 0 0.85rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--rule);
  max-width: 38rem;
}

.get li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.get strong {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 600;
}

.dont {
  margin: 0.7rem 0 0;
  padding: 0 0 0 1.15rem;
  max-width: 34rem;
}

.dont li {
  margin: 0.28rem 0;
}

.price-num {
  margin: 0.35rem 0 0.7rem;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.start ol {
  margin: 0.7rem 0 1.25rem;
  padding: 0 0 0 1.2rem;
  max-width: 36rem;
}

.start li {
  margin: 0.4rem 0;
}

/* Sample week */

.sample {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.15rem 1.25rem;
}

.sample-flag {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--rust);
  color: var(--rust-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sample h2 {
  margin-bottom: 0.35rem;
}

.sample .note {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 38rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem 1rem;
  margin: 1.1rem 0;
}

@media (min-width: 560px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  border-top: 1px solid var(--ink);
  padding-top: 0.4rem;
}

.stat b {
  display: block;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.stat span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.35rem 0 0.85rem;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 32rem;
}

th,
td {
  text-align: left;
  padding: 0.42rem 0.55rem 0.42rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

td:nth-child(2),
th:nth-child(2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84rem;
}

.pri {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pri-high { color: var(--high); }
.pri-med { color: var(--med); }
.pri-low { color: var(--low); }

.reasons {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.reasons li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 22rem;
  padding: 0.22rem 0;
  border-bottom: 1px solid var(--rule);
}

.reasons b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Footer */

.foot {
  padding: 2rem 0 2.6rem;
}

.sign {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.25rem;
}

.foot p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

@media (max-width: 480px) {
  html { font-size: 100%; }
  .wrap { width: calc(100% - 1.75rem); }
  .hero { padding-top: 2rem; }
  .sample { padding: 1rem; }
  .btn { width: 100%; text-align: center; }
}

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

@media print {
  body { background: #fff; }
  .btn, .skip { display: none !important; }
  .sec, .hero { border-color: #ccc; }
  .sample { border-color: #999; }
}
