/* The Build guides at /build/guides. Loaded after /legal.css and /guides/guides.css,
   which set the type, header, footer, steps and guide cards; this swaps in the brick tokens
   and the floorplan ground from /build/ (frontend/src/index.css, :root[data-edition="build"])
   and adds the hammer and screwdriver mark and the "build" line under the wordmark. */

:root {
  --paper: #f3e7dc;
  --surface: #fdf8f4;
  --surface-2: #f8eee6;
  --ink: #2d211b;
  --ink-soft: #6f5a4e;
  --line: #e3cfc0;
  --line-soft: #efe1d6;
  --accent-ink: #933f1d;
  --brand-ochre: #b4532a;
  --brand-stone: #8e8577;
  --mat-line: #b08a55;
  /* How strongly the floorplans show, and a wash of pale paper over them, heavier than the
     landing page's because these pages are long runs of text on the page ground. */
  --floorplan-strength: 30%;
  --floorplan-veil: rgba(243, 231, 220, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1e130d;
    --surface: #281a13;
    --surface-2: #301f17;
    --ink: #f4e8e0;
    --ink-soft: #b9a194;
    --line: #4a3125;
    --line-soft: #3a261d;
    --accent-ink: #f3b294;
    --brand-ochre: #e58a5f;
    --mat-line: #e6c48e;
    --floorplan-strength: 12%;
    --floorplan-veil: transparent;
  }
}

body {
  background-color: var(--paper);
}

/* The floorplan drawings (a white-on-transparent mask) in a line colour, fixed behind the
   page as on /build/. */
body::before,
body::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body::before {
  background-color: color-mix(in srgb, var(--mat-line) var(--floorplan-strength), transparent);
  -webkit-mask: url("/build/build-floorplans.webp") 0 0 / 600px 600px repeat;
  mask: url("/build/build-floorplans.webp") 0 0 / 600px 600px repeat;
}

body::after {
  background: var(--floorplan-veil);
}

header.top .brand {
  align-items: center;
}

.bd-wordmark {
  display: inline-block;
  line-height: 1;
}

.bd-name {
  color: var(--brand-stone);
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.42em;
  margin-top: 0.3em;
  text-transform: uppercase;
}

/* Sample rows in a guide (a parts list, a vehicle record): a card around the table. */
.guide table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 18px 0 26px;
  max-width: 44rem;
}

.guide th:first-child,
.guide td:first-child {
  padding-left: 14px;
}

.guide table caption {
  color: var(--ink-soft);
  caption-side: bottom;
  font-size: 14px;
  padding: 8px 14px;
  text-align: left;
}

/* The call to action at the foot of each guide. */
.try {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin: 40px 0 0;
  max-width: 44rem;
  padding: 18px 20px;
}

.try p {
  margin-bottom: 12px;
}

.try a.go {
  background: var(--accent-ink);
  border-radius: 9px;
  color: var(--surface);
  display: inline-block;
  font-weight: 600;
  padding: 8px 14px;
  text-decoration: none;
}
