/* The home page, direction A (decision 2826). Tokens and shared components
   are in base.css. The hero is the finished still: nothing drawn through the
   ink filter moves (decision 2832). This sheet is the home page's own and
   free; base.css, which the console's shell loads too, is held to the
   console's sheet rules (decision 2816). */

/* The sprite holds the ink filter and the icons; it is drawn by reference
   only, never shown, and keeps a box so every browser builds its filter. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip { position: absolute; left: 12px; top: -60px; padding: 10px 16px; background: var(--ink); color: var(--card); border-radius: 8px; z-index: 2; }
.skip:focus { top: 12px; }

.s-display { font-family: var(--display); font-weight: 700; }
.s-italic { font-family: var(--display); font-style: italic; font-weight: 400; }
.s-text { font-family: var(--text); font-weight: 400; }
.s-text-m { font-family: var(--text); font-weight: 500; }
.s-mono { font-family: var(--mono); }

/* The page sets its name in a span at more than one size; its spacing is
   taken at the span's own size, as base.css's .brand takes it at its own. */
.brand span { letter-spacing: -.01em; }

/* Header and footer */
.site-head, .site-foot {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.head-signin { font-weight: 500; font-size: 18px; }

/* Hero */
.hero {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 18px var(--gutter) 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 40px;
  align-items: center;
}
.label {
  font: 400 13px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--kiln);
  display: flex;
  align-items: center;
  gap: 12px;
}
.label::before { content: ""; width: 28px; height: 2px; background: var(--kiln); }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(44px, 4.8vw, 70px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.004em;
}
.hero h1 em { display: block; font-style: italic; font-weight: 600; color: var(--kiln); }
.lead { margin-top: 28px; font-size: 21px; line-height: 1.5; color: var(--walnut); max-width: 33em; }
.cta { margin-top: 36px; }
.preview-note {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1.5px dashed rgb(92 77 63 / .45);
  max-width: 30em;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--walnut);
}
.hero-art { margin: 0; }
.scene { width: 100%; height: auto; }

/* Sections */
section h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.012em; }
section h3 { font-size: 24px; line-height: 1.2; }

.steps, .build, .control {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 104px var(--gutter);
}
.steps h2 { max-width: 14em; }
.step-list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.spot { width: 100%; max-width: 260px; height: auto; aspect-ratio: 200 / 140; }
.step-number {
  display: block;
  margin-top: 18px;
  font: italic 400 46px/1 var(--display);
  color: var(--kiln);
}
.step-list h3 { margin-top: 10px; }
.step-list p { margin-top: 10px; color: var(--walnut); }

/* What you get: the kit, on kraft */
.kit { background: var(--kraft); border-block: 2px solid var(--ink); }
.kit-inner {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 104px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.kit h2 { position: sticky; top: 40px; max-width: 9em; }
.kit-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1.5px dashed rgb(43 33 24 / .35);
}
.kit-list li:first-child { padding-top: 0; }
.kit-list li:last-child { border-bottom: 0; }
.kit-list p { margin-top: 6px; color: var(--walnut); }
.icon { width: 64px; height: 64px; color: var(--ink); }

/* What you can build */
.build h2 { max-width: 16em; }
.featured {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.vignette { width: 100%; height: auto; aspect-ratio: 360 / 220; }
.featured h3 { margin-top: 18px; }
.featured p { margin-top: 8px; color: var(--walnut); }

.cards {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.cards li {
  background: var(--card);
  border: 1.5px solid rgb(43 33 24 / .7);
  border-radius: 6px;
  padding: 30px 20px 22px;
  position: relative;
  box-shadow: 0 3px 0 rgb(191 154 102 / .55);
}
.cards li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 2px;
  background: var(--kiln-bright);
  opacity: .8;
}
.cards li::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 74px;
  height: 22px;
  margin-left: -37px;
  background: rgb(224 168 58 / .55);
  border-left: 2px dotted rgb(255 250 242 / .7);
  border-right: 2px dotted rgb(255 250 242 / .7);
  transform: rotate(-3deg);
}
.cards li:nth-child(3n + 2)::after { background: rgb(143 178 127 / .6); transform: rotate(4deg); }
.cards li:nth-child(3n)::after { background: rgb(196 70 42 / .35); transform: rotate(-1deg); }
.cards li:nth-child(odd) { transform: rotate(-.6deg); }
.cards li:nth-child(even) { transform: rotate(.5deg); }
.cards .icon { width: 52px; height: 52px; margin-top: 8px; }
.cards h3 { margin-top: 14px; font-size: 21px; }
.cards p { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--walnut); }
.cards .yours {
  background: transparent;
  border: 2px dashed var(--walnut);
  box-shadow: none;
  display: flex;
  align-items: center;
}
.cards .yours::before { display: none; }
.cards .yours p { font: italic 400 23px/1.3 var(--display); color: var(--ink); }

/* Trust: the dark bench */
.trust { background: var(--ink); color: var(--paper); }
.trust-inner {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 104px var(--gutter);
}
.trust h2 { max-width: 13em; }
.trust-list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.trust .icon { color: var(--paper); }
.trust h3 { margin-top: 18px; font-size: 22px; }
.trust p { margin-top: 8px; color: var(--dust); }

/* Control */
.control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.control-text p { margin-top: 20px; font-size: 21px; color: var(--walnut); max-width: 26em; }
.control-text .cta { margin-top: 36px; }
.pegboard { width: 100%; height: auto; }

/* Footer */
.site-foot { border-top: 2px solid var(--ink); padding-block: 30px 40px; }
.site-foot .brand::before { width: 28px; height: 28px; }
.site-foot .brand span { font-size: 22px; }
.site-foot > a:last-child { font-weight: 500; }

/* Narrow screens */
@media (max-width: 980px) {
  .hero, .control, .kit-inner { grid-template-columns: minmax(0, 1fr); }
  .kit h2 { position: static; }
  .step-list, .featured { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-head { padding-block: 16px; }
  .brand span { font-size: 24px; }
  .brand::before { width: 30px; height: 30px; }
  .hero { padding-bottom: 72px; gap: 36px; }
  .hero h1 { margin-top: 20px; font-size: 42px; }
  .lead { font-size: 19px; margin-top: 22px; }
  .steps, .build, .control, .kit-inner, .trust-inner { padding-block: 72px; }
  section h2 { font-size: 34px; }
  .step-list { margin-top: 40px; }
  .spot { max-width: 220px; }
  .trust-list, .cards { grid-template-columns: minmax(0, 1fr); }
  .kit-list li { grid-template-columns: 56px minmax(0, 1fr); gap: 18px; }
  .kit-list .icon { width: 56px; height: 56px; }
  .control-text p { font-size: 19px; }
}
