/* The landing page on the brand (docs/brand-implementation.md S2; brand/handoff/redlines.html). Built to the
   frozen reference's measures, on the token sheet. Rules heavier than the hairline are DRAWN -- gradient
   edges -- not bordered: a 1.5px border renders as 1px in Chromium. */

.landing-section { padding-top: var(--section-gap); }
.landing h2 {
  margin: var(--space-6) 0 var(--space-4); max-width: 18em;
  font: var(--type-h2); letter-spacing: var(--type-h2-tracking); color: var(--ink);
}
.landing .landing-sub { margin: 0; max-width: 38em; font: var(--type-sub); color: var(--ink-2); }

/* The hero: two columns, 5fr : 7fr, 64px apart. */
.hero { padding: var(--space-10) 0 var(--space-9); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-10);
  align-items: center; margin-top: var(--space-8);
}
.hero .kf-wordmark { display: block; width: 100%; max-width: 340px; height: auto; color: var(--ink); }
.hero h1 {
  margin: 28px 0 var(--space-6);
  font: var(--type-display); letter-spacing: var(--type-display-tracking); color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--signal); }
.hero .lede { margin: 0 0 var(--space-7); max-width: 34em; font: var(--type-lede); color: var(--ink-2); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero .note { margin: var(--space-5) 0 0; font: var(--type-mono-note); color: var(--ink-2); }

/* The plate: the depiction under --board-shadow, its real dimensions drawn around it. */
.plate { position: relative; padding: 42px 46px 54px 20px; }
.plate .hero-depiction img { filter: var(--board-shadow); }
.dimline {
  position: absolute; display: flex; align-items: center; color: var(--ink-2);
  font: var(--type-mono-annotation); letter-spacing: .06em;
}
.dimline.h { left: 20px; right: 46px; top: 12px; }
.dimline.h::before, .dimline.h::after { content: ""; flex: 1; height: var(--hairline); background: var(--ink-2); }
.dimline.h span { padding: 0 10px; background: var(--paper); }
.dimline.h i { position: absolute; top: -6px; width: var(--hairline); height: 13px; background: var(--ink-2); }
.dimline.h i:first-child { left: 0; }
.dimline.h i:last-child { right: 0; }
.dimline.v { top: 42px; bottom: 54px; right: 8px; width: 20px; flex-direction: column; justify-content: center; }
.dimline.v::before, .dimline.v::after { content: ""; flex: 1; width: var(--hairline); background: var(--ink-2); }
.dimline.v span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 0; background: var(--paper); }
.dimline.v i { position: absolute; left: 3px; width: 13px; height: var(--hairline); background: var(--ink-2); }
.dimline.v i:first-child { top: 0; }
.dimline.v i:last-child { bottom: 0; }
.callout {
  position: absolute; left: 20px; bottom: 14px;
  font: var(--type-mono-annotation); letter-spacing: .04em; color: var(--ink-2);
}
.callout b { color: var(--ink); font-weight: 600; }

/* The hero's depiction box: the design's own proportions, so the dimension lines meet its edges. */
figure.hero-depiction { margin: 0; position: relative; }
figure.hero-depiction img { display: block; width: 100%; height: 100%; object-fit: contain; }
figure.hero-depiction .design-card-placeholder { position: absolute; inset: 0; }

/* Title blocks: a grid of label/value cells, hairline frame, on the panel. */
.titleblock {
  display: grid; grid-template-columns: repeat(var(--titleblock-cells, 4), auto); margin-top: var(--space-2);
  border: var(--hairline) solid var(--ink); background: var(--panel);
  font: var(--type-mono-annotation); letter-spacing: var(--type-mono-annotation-tracking); color: var(--ink-2);
}
.titleblock div { padding: var(--space-2) var(--space-3); border-right: var(--hairline) solid var(--line); }
.titleblock div:last-child { border-right: 0; }
.titleblock b, .sheet-titleblock b {
  display: block; margin-top: 3px; font: var(--type-mono-value); letter-spacing: 0; color: var(--ink);
}

/* The progression: one drawing sheet, framed at --rule, 86% paper over the grid, stages stacked. */
.sheet {
  position: relative; margin-top: var(--space-9);
  background:
    linear-gradient(var(--ink), var(--ink)) top / 100% var(--rule) no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom / 100% var(--rule) no-repeat,
    linear-gradient(var(--ink), var(--ink)) left / var(--rule) 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) right / var(--rule) 100% no-repeat,
    color-mix(in srgb, var(--paper) 86%, transparent);
  padding: var(--rule);
}
.stage {
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 4fr) minmax(0, 8fr);
  gap: 0 var(--space-7); padding: 44px 40px 44px 28px;
  border-bottom: var(--hairline) dashed var(--line);
}
.stage::after {
  content: attr(data-zone); position: absolute; left: 0; top: 0; bottom: 0; width: 28px;
  display: flex; align-items: center; justify-content: center;
  border-right: var(--hairline) solid var(--line); font: var(--type-mono-annotation); color: var(--ink-2);
}
.stage .rail { position: relative; display: flex; justify-content: center; }
.stage .rail::before {
  content: ""; position: absolute; top: -44px; bottom: -44px; left: 50%; width: var(--hairline); background: var(--line);
}
.stage:first-of-type .rail::before { top: 22px; }
.balloon {
  position: relative; box-sizing: border-box; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: var(--type-mono-figure); line-height: 1; color: var(--ink); background: var(--panel);
  box-shadow: inset 0 0 0 var(--rule) var(--ink); /* a ring at --rule: drawn, not bordered */
}
.stage.final .balloon { background: var(--signal); color: var(--on-signal); box-shadow: none; }
.stage .kicker {
  font: var(--type-mono-label); letter-spacing: .1em; text-transform: uppercase; color: var(--signal);
}
.stage h3 { margin: var(--space-1) 0 var(--space-3); font: var(--type-h3); letter-spacing: var(--type-h3-tracking); color: var(--ink); }
.stage .txt p { margin: 0 0 var(--space-4); color: var(--ink-2); }
.stage .ref {
  display: inline-block; padding-top: 10px; border-top: var(--hairline) solid var(--line);
  font: var(--type-mono-annotation); letter-spacing: .06em; color: var(--ink-2);
}
.stage figure { margin: 0; }
.assembled { position: relative; padding: 34px 30px 30px 0; }
.assembled .dimline.h { left: 0; right: 30px; top: 6px; }
.assembled .dimline.v { top: 34px; bottom: 30px; right: 0; }
.assembled .hero-depiction img { filter: var(--board-shadow); }
.sheet-titleblock {
  display: grid; grid-template-columns: 2fr 3fr 1fr 1fr 1fr 1fr; margin-left: 28px;
  background: linear-gradient(var(--ink), var(--ink)) top / 100% var(--rule) no-repeat, var(--panel);
  padding-top: var(--rule);
  font: var(--type-mono-annotation); letter-spacing: var(--type-mono-annotation-tracking); color: var(--ink-2);
}
.sheet-titleblock div { padding: 10px 14px; border-right: var(--hairline) solid var(--line); }
.sheet-titleblock div:last-child { border-right: 0; }

/* The drawing language of the progression's illustrations. */
svg.dw { display: block; width: 100%; height: auto; overflow: visible; }
.dw .dw-ink, .dw .dw-soft, .dw .dw-sig, .dw .dw-cu2 { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dw .dw-ink { stroke: var(--ink); stroke-width: 1.25; }
.dw .dw-key { stroke-width: 1; }
.dw .dw-edge { stroke-width: 1.75; }
.dw .dw-soft { stroke: var(--ink-2); stroke-width: 1; }
.dw .dw-thin { stroke-width: .75; }
.dw .dw-sig { stroke: var(--signal); stroke-width: 1.5; }
.dw .dw-cu { stroke-width: 2; }
.dw .dw-cu2 { stroke: var(--copper-2); stroke-width: 1.6; stroke-dasharray: 4 3; }
.dw .dw-dash { stroke-dasharray: 4 3; stroke-width: 1.25; }
.dw .dw-sketch { stroke-width: 1.6; opacity: .9; }
.dw .dw-fill-ink { fill: var(--ink); }
.dw .dw-fill-sig { fill: var(--signal); }
.dw .dw-fill-soft { fill: var(--ink-2); }
.dw .dw-bg { fill: var(--paper); }
.dw .dw-txt { fill: var(--ink-2); font: var(--type-mono-annotation); letter-spacing: .04em; }
.dw .dw-small { font-size: 9px; }
.dw .dw-sigtxt { fill: var(--signal); }
/* Decorative sketch lettering, from the system's cursive faces: no webfont for an annotation. */
.dw .dw-hand { fill: var(--ink); font: italic 400 15px 'Bradley Hand', 'Segoe Print', 'Comic Neue', cursive; }
.dw .dw-legend { fill: var(--ink); font: 600 30px var(--sans); }

/* What you buy: a --rule framed table on the panel. */
.bom {
  margin-top: 44px;
  background:
    linear-gradient(var(--ink), var(--ink)) top / 100% var(--rule) no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom / 100% var(--rule) no-repeat,
    linear-gradient(var(--ink), var(--ink)) left / var(--rule) 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) right / var(--rule) 100% no-repeat,
    var(--panel);
  padding: var(--rule);
}
.bom .row {
  display: grid; grid-template-columns: 72px minmax(0, 7fr) 160px; align-items: stretch;
  border-bottom: var(--hairline) solid var(--line);
}
.bom .row:last-child { border-bottom: 0; }
.bom .row > div { padding: 20px 18px; border-right: var(--hairline) solid var(--line); }
.bom .row > div:last-child { border-right: 0; }
.bom .head {
  background: var(--paper-2);
  font: var(--type-mono-annotation); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.bom .head > div { padding: 10px 18px; }
.bom .no { font: var(--type-mono-figure); color: var(--ink); }
.bom h3 { margin: 0 0 6px; font: var(--type-title-s); color: var(--ink); }
.bom .what { margin: 0; font: var(--type-body-s); color: var(--ink-2); }
.bom .price {
  font: var(--type-mono-price); letter-spacing: var(--type-mono-price-tracking); color: var(--ink); text-align: right;
}
.bom .price small {
  display: block; margin-top: var(--space-2);
  font: var(--type-mono-annotation); letter-spacing: .06em; color: var(--ink-2);
}
.bom-foot {
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); align-items: center; justify-content: space-between;
  margin-top: var(--space-5);
}
.bom-foot p { margin: 0; max-width: 44em; color: var(--ink-2); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .stage { grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-5); }
  .stage figure, .stage .assembled { grid-column: 2; }
  .sheet-titleblock { grid-template-columns: 1fr 1fr 1fr; }
  .bom .row { grid-template-columns: 56px minmax(0, 1fr) 110px; }
  .bom .head { display: none; }
}

@media (max-width: 720px) {
  .hero { padding-top: var(--space-8); }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock div:nth-child(2n) { border-right: 0; }
  .titleblock div:nth-child(-n+2) { border-bottom: var(--hairline) solid var(--line); }
  .plate { padding: 34px 30px 24px 0; }
  .plate .dimline.h { left: 0; right: 30px; }
  .plate .dimline.v { top: 34px; bottom: 24px; right: 0; }
  .plate .callout { display: none; }
  .hide-s { display: none; }
  .stage { grid-template-columns: 40px minmax(0, 1fr); padding: 32px 14px 32px 34px; gap: var(--space-4) 14px; }
  .stage .rail::before { top: -32px; bottom: -32px; }
  .stage figure, .stage .assembled { grid-column: 1 / -1; }
  .balloon { width: 34px; height: 34px; font-size: 13px; }
  .stage::after { width: 20px; }
  .sheet-titleblock { margin-left: 20px; grid-template-columns: 1fr 1fr; }
  .bom .row { grid-template-columns: 44px minmax(0, 1fr) 96px; }
  .bom .price { font-size: 22px; }
}
