/* Batchwright site.
 *
 * Self-contained: no external fonts, scripts, images or analytics. Nothing here
 * makes a request to a third party, so visiting the page cannot leak a
 * visitor's address to anyone but this server. That is the same promise the
 * plugin makes about your files, and the site should not break it.
 *
 * Design note: the product's whole argument is "every operation is a plan, not
 * an action", so the page leads with a plan readout — including the things it
 * declined to touch and why. Data-shaped things are set in monospace, prose in
 * sans. Green marks what is safe, ochre what was declined, red what would be
 * removed. That colour vocabulary is the plugin's, not decoration.
 */

:root {
  --paper: #eef1f4;
  --ink: #12161c;
  --muted: #59626e;
  --rule: #d3d9e0;
  --card: #ffffff;
  --plan-bg: #151a21;
  --plan-ink: #dde3ea;
  --plan-muted: #8b95a3;
  --keep: #2f6f4f;
  --decline: #8a5a12;
  --remove: #a5342f;
  --link: #24449c;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1318;
    --ink: #e6eaef;
    --muted: #98a2ae;
    --rule: #262d36;
    --card: #161b22;
    --plan-bg: #0a0d11;
    --keep: #6cc79a;
    --decline: #d6a24a;
    --remove: #e2716b;
    --link: #8fa9ff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

header.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.masthead nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 2rem 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

.lede { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.5rem; }

.price {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--muted);
}

.price strong { color: var(--ink); }

/* ---- the plan readout: the one loud element on the page ---- */

.plan {
  background: var(--plan-bg);
  color: var(--plan-ink);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  overflow-x: auto;
}

.plan .caption {
  color: var(--plan-muted);
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan .row { white-space: pre; }
.plan .rm { color: var(--remove); }
.plan .kp { color: var(--keep); }
.plan .dc { color: var(--decline); }
.plan .note { color: var(--plan-muted); }

.planfoot {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

/* ---- content ---- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem;
}

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

th { font-weight: 600; }

td:first-child { font-family: var(--mono); font-size: 0.88rem; }

ol, ul { padding-left: 1.25rem; }
li { margin: 0.3rem 0; }

.chores { columns: 2; column-gap: 2rem; font-size: 0.95rem; }
@media (max-width: 34rem) { .chores { columns: 1; } }

.callout {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

.callout p:last-child { margin-bottom: 0; }

.buy {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 5px;
  margin: 0.5rem 0;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.updated { font-size: 0.88rem; color: var(--muted); font-family: var(--mono); }

code { font-family: var(--mono); font-size: 0.9em; }

@media (prefers-reduced-motion: no-preference) {
  a, .buy { transition: opacity 120ms ease; }
  a:hover, .buy:hover { opacity: 0.82; }
}
