/* The lead app's own dress: its sign lettering, its mark, its drawings and
   its home page. No color values here: every color is a variable, set in
   colors.css. The foundation owns every shared part and its sizes. */

/* Bowlby One. Copyright (c) 2011 Vernon Adams. SIL Open Font License 1.1
   (OFL-bowlby-one.txt beside this file). Used for the site name in the top
   bar and the home page's headline, and nowhere else. */
@font-face {
  font-family: "Bowlby One";
  src: url("bowlby-one-latin.e2f3c84b.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --font-display-weight: 400;
}

/* The mark beside the site name: a stand-in, swapped by replacing one piece. */
.mark-pin { fill: var(--color-primary); }
.mark-eye { fill: var(--color-brand); }

/* Drawings */
.roofline { display: block; width: 100%; height: 4.5rem; }
.rl-shape { fill: var(--color-brand-strong); }
.rl-light { fill: var(--color-primary); }
.van { display: block; width: 100%; max-width: 22rem; height: auto; }
.van-body, .van-rack { fill: var(--color-brand); }
.van-panel { fill: var(--color-brand-strong); }
.van-glass, .van-hub { fill: var(--color-on-brand); }
.van-tire, .van-road { fill: var(--color-on-primary); }

/* Home: the top band. The headline at the left, the start panel at the
   right on a computer and under the words on a phone. The start panel is the
   place the trade picker will take when search exists. */
.home-top { padding-bottom: 0; }
.home-top .band-inner { gap: var(--space-6); }
.home-words { display: flex; flex-direction: column; gap: var(--space-4); }
.home-words .display > span { display: block; }
.home-words .display > span:first-child { color: var(--color-primary); }
.home-words .lede { color: var(--color-on-brand); max-width: 34rem; }
.home-start { box-shadow: var(--shadow-2); color: var(--color-text); gap: var(--space-4); }
.home-start h2 { font-size: var(--text-4); color: var(--color-brand); }
.home-start .btn { align-self: stretch; }
.home-start .stack { gap: var(--space-2); }
.home-start a:not(.btn) { color: var(--color-brand); }
.home-start :focus-visible { outline-color: var(--color-focus); }
.home-roof { margin-top: var(--space-6); }

/* The two facts, as two yard signs on stakes. */
.signs { display: grid; align-items: start; gap: var(--space-7) var(--space-6); padding-bottom: 2.75rem; }
.sign { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); border: 3px solid var(--color-text); border-radius: var(--radius-2); background: var(--color-surface); box-shadow: var(--shadow-1); }
.sign h3 { font-size: var(--text-5); }
.sign-gold { background: var(--color-primary); color: var(--color-on-primary); transform: rotate(-1deg); }
.sign-plain { border-color: var(--color-brand); transform: rotate(0.6deg); }
.sign-plain h3 { color: var(--color-brand); }
.sign::before, .sign::after { content: ""; position: absolute; top: 100%; width: 6px; height: 2.75rem; background: var(--color-control-border); }
.sign::before { left: 18%; }
.sign::after { right: 18%; }
.home-facts { border-bottom: 10px solid var(--color-brand); padding-bottom: 0; }

/* How it works */
.steps { list-style: none; padding: 0; display: grid; gap: var(--space-5); counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: var(--space-2); counter-increment: step; }
.steps li::before { content: counter(step); font-size: 2.75rem; font-weight: var(--weight-bold); line-height: 1; color: var(--color-x-accent); }
.steps p { color: var(--color-text-muted); }

/* For contractors */
.home-trade .band-inner { gap: var(--space-6); }
.home-trade ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.home-trade li { padding-left: 1.6rem; position: relative; font-weight: var(--weight-medium); }
.home-trade li::before { content: ""; position: absolute; left: 0.15rem; top: 0.3rem; width: 0.5rem; height: 0.85rem; border-right: 3px solid var(--color-brand); border-bottom: 3px solid var(--color-brand); transform: rotate(40deg); }
.home-trade .stack { gap: var(--space-4); }

@media (min-width: 56rem) {
  .home-top .band-inner { display: grid; grid-template-columns: minmax(0, 1fr) 28rem; align-items: start; column-gap: var(--space-7); }
  .home-start { grid-column: 2; grid-row: 1 / span 2; min-height: 23rem; margin-bottom: calc(-1 * var(--space-6)); position: relative; z-index: 1; }
  .home-words { padding-top: var(--space-4); }
  .home-roof { grid-column: 1 / -1; grid-row: 2; align-self: end; }
  .signs { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: var(--space-6); }
  .steps li + li { border-left: var(--line-1) solid var(--color-border); padding-left: var(--space-6); }
  .home-trade .band-inner { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: center; column-gap: var(--space-8); }
}

@media (forced-colors: active) {
  .sign, .home-start { border: 2px solid CanvasText; }
}
