/* The landing page, written as plain brutalist CSS. The right half of the page is this file run
 * through postcss-sketchify; the left half is this file as it is. Everything here is something the
 * plugin draws: solid px borders, square or small radius corners, one-sided lines, link underlines
 * and --sketch-fill. No shadows, gradients or dashed lines.
 *
 * All text is set in Monaspace Neon, a monospaced font. The sketched copy swaps it for Monaspace
 * Radon (hand.css, not part of the plugin): the two share every metric, so the swap moves nothing. */
@font-face { font-family: 'Monaspace Neon'; src: url('fonts/MonaspaceNeon-Regular.woff2') format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Monaspace Neon'; src: url('fonts/MonaspaceNeon-Bold.woff2') format('woff2'); font-weight: 700; font-display: block; }

:root {
  --paper: #f3efe6;
  --ink: #111111;
  --yellow: #ffd23f;
  --blue: #3355ff;
  --red: #ff5a36;
  --yellow-soft: #ffd23f;
  --blue-soft: #9fb0ff;
  --red-soft: #ffab96;
  --mono: 'Monaspace Neon', ui-monospace, Menlo, Consolas, monospace;
}

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

html { background: var(--paper); }
body { margin: 0; font: 16px/1.6 var(--mono); color: var(--ink); background: var(--paper); }
h1, h2, h3 { font-family: var(--mono); line-height: 1.1; margin: 0; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.92em; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------------------------------------------------------------- Header */

.top { border-bottom: 3px solid var(--ink); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { font: 700 22px/1 var(--mono); letter-spacing: -0.02em; }
.logo__dot { color: var(--red); }
.nav { display: flex; gap: 20px; font-family: var(--mono); font-size: 15px; }
.nav a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.nav a:hover { color: var(--blue); }

/* ---------------------------------------------------------------- Hero */

.hero { padding-top: 72px; padding-bottom: 72px; display: grid; gap: 24px; justify-items: start; }
.eyebrow { font: 700 14px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.hero__title { font-size: 72px; letter-spacing: -0.03em; }
.hl { background-color: var(--yellow); --sketch-fill: marker; }
.hero__lead { max-width: 640px; font-size: 20px; }

.install { display: flex; align-items: stretch; border: 3px solid var(--ink); background-color: #ffffff; }
.install__cmd { padding: 12px 16px; font-size: 16px; white-space: nowrap; }
.copy { width: 96px; font: 700 15px/1 var(--mono); color: var(--ink); background-color: var(--yellow); border: 0; border-left: 3px solid var(--ink); cursor: pointer; }
.copy:hover { background-color: #ffe27a; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block;
  padding: 12px 20px;
  font: 700 16px/1.2 var(--mono);
  color: var(--ink);
  text-decoration: none;
  background-color: #ffffff;
  border: 3px solid var(--ink);
  cursor: pointer;
  --sketch-fill: rough;
}
.btn.btn--primary { background-color: var(--yellow); }
.btn:hover { color: #ffffff; background-color: var(--blue); }
.btn.btn--hover:hover { color: var(--ink); background-color: #ffffff; border-color: var(--blue); }

/* ---------------------------------------------------------------- Blocks */

.block { padding-top: 24px; padding-bottom: 64px; display: grid; gap: 28px; }
.block__title { font-size: 40px; letter-spacing: -0.02em; }

/* Promises: px size, so the hatch is drawn line by line with uneven ends. */
.stats { display: flex; flex-wrap: wrap; gap: 20px; }
.stat {
  width: 330px;
  height: 190px;
  padding: 22px;
  display: grid;
  align-content: space-between;
}
/* Each card is one complete rule (no shared modifiers, so no combinations to generate). The yellow
   card is hatched line by line: its size is known in px, so each stroke ends unevenly at the outline. */
.stat-hatch { width: 330px; height: 190px; border: 3px solid var(--ink); background-color: var(--yellow-soft); --sketch-fill: hatch; }
.stat-blue { border: 3px solid var(--ink); background-color: var(--blue-soft); --sketch-fill: rough; }
.stat-red { border: 3px solid var(--ink); background-color: var(--red-soft); --sketch-fill: marker; }
.stat__num { font: 700 48px/1 var(--mono); letter-spacing: -0.03em; }
.stat__label { font-size: 16px; }

/* Steps: the same rule three times, drawn three different ways. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.step { padding: 22px; display: grid; gap: 12px; align-content: start; border: 3px solid var(--ink); background-color: #ffffff; }
.step__num { width: 44px; height: 44px; display: grid; place-items: center; font: 700 22px/1 var(--mono); border: 3px solid var(--ink); background-color: var(--yellow); --sketch-fill: rough; }
.step__title { font-size: 22px; }

.code-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 20px; }
.code { margin: 0; border: 3px solid var(--ink); background-color: #ffffff; }
.code__label { padding: 10px 16px; font: 700 14px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 3px solid var(--ink); }
.code__body { margin: 0; padding: 16px; font: 15px/1.6 var(--mono); overflow-x: auto; }

/* ---------------------------------------------------------------- Features */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.feature { padding: 22px; display: grid; gap: 14px; align-content: start; border: 3px solid var(--ink); background-color: #ffffff; }
.feature__title { font-size: 24px; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 64px; height: 44px; display: grid; place-items: center; font: 700 14px/1 var(--mono); }
.swatch-w1 { border: 1px solid var(--ink); }
.swatch-w2 { border: 2px solid var(--ink); }
.swatch-w4 { border: 4px solid var(--ink); }
.swatch-round { border: 2px solid var(--ink); border-radius: 12px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 8px 0; border-bottom: 2px solid var(--ink); }

a.ulink { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }
a.ulink:hover { color: var(--red); }

.fills { display: flex; flex-wrap: wrap; gap: 12px; }
.fill { padding: 8px 14px; font: 700 15px/1 var(--mono); }
.fill.fill--rough { background-color: var(--yellow); --sketch-fill: rough; }
.fill.fill--marker { background-color: var(--yellow); --sketch-fill: marker; }
/* A known size and no border: the hatch is drawn line by line, each stroke ending unevenly. */
.fill.fill--hatch { width: 96px; height: 40px; display: grid; place-items: center; background-color: var(--blue-soft); --sketch-fill: hatch; }

.rule { margin: 4px 0; border: 0; border-top: 3px solid var(--ink); }
.small { font: 14px/1 var(--mono); }

/* ---------------------------------------------------------------- Options table */

.options { background-color: #ffffff; border: 3px solid var(--ink); }
.options__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.options__row.options__head { font: 700 14px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; border-bottom-width: 3px; }

/* ---------------------------------------------------------------- Limits, footer */

.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.limits li { min-height: 48px; padding: 10px 0 10px 18px; border-left: 4px solid var(--red); }

.foot { padding-bottom: 48px; display: grid; gap: 18px; }
.foot__text { font: 14px/1.4 var(--mono); }

/* ---------------------------------------------------------------- Small screens */

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
  .hero__title { font-size: 42px; }
  .hero__lead { font-size: 18px; }
  .block__title { font-size: 30px; }
  .install__cmd { font-size: 14px; padding: 10px 12px; }
  .copy { width: 76px; }
  .options__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .options__row > :last-child { grid-column: 1 / -1; }
}
