/* Copper pipe and circuit board styling, loaded after site.css.
   Kept in its own file because build_pages.py rewrites site.css.
   Artwork comes from draw.py. Design record: build/brand/visual-direction.md */
:root {
  /* Accents: indicator-light green, red and amber, darkened to hold against the
     white page (each at least 3:1 on #fafaf8; the -deep text shades at least 5:1).
     The variable names keep their old colour words because site.css uses them. */
  --blue: #2a9d5c;  --blue-deep: #1c7a44;   /* customers: green */
  --coral: #d63a3f; --coral-deep: #b02a30;  /* tradespeople: red */
  --gold: #c97a0c;  --gold-deep: #8a5a0a;   /* apprenticeships: amber */
  --board: #17322d;
  --copper: #b5652f;
  --pipe-v: linear-gradient(90deg, #5e2c14 0, #5e2c14 9%, #b5652f 9%, #b5652f 20%, #d98b52 20%, #d98b52 30%, #f4cfa6 30%, #f4cfa6 40%, #d98b52 40%, #d98b52 62%, #b5652f 62%, #b5652f 91%, #5e2c14 91%);
  --pipe-h: linear-gradient(180deg, #5e2c14 0, #5e2c14 9%, #b5652f 9%, #b5652f 20%, #d98b52 20%, #d98b52 30%, #f4cfa6 30%, #f4cfa6 40%, #d98b52 40%, #d98b52 62%, #b5652f 62%, #b5652f 91%, #5e2c14 91%);
}

/* Wordmark */
.top { padding-top: 14px; padding-bottom: 14px; }
.mark img { display: block; height: 56px; width: auto; }

/* Home page: headline and the ask at the top, then the board and the three pipes */
.works { display: flex; flex-direction: column; padding-top: 20px; }
.works h1 { order: 0; font-size: clamp(2.125rem, 5.4vw, 4rem); }
.works .lede { order: 1; margin: 18px 0 0; }
.band-top { order: 2; display: block; margin: 24px 0 0; padding: 22px 24px 24px; border-radius: 20px; }
.band-top h2 { margin-bottom: 8px; font-size: 1.625rem; line-height: 1.1; }
.band-top p { margin-bottom: 16px; font-size: 1rem; line-height: 1.45; }
.band-top .btn { padding: 12px 22px; font-size: 1.0625rem; }
.rig { display: none; position: relative; }
.rig::before { content: ''; position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; height: 360px; background: var(--board); }
body { overflow-x: clip; }
.rig-wide { display: block; position: relative; overflow: visible; }
.rig-narrow { order: 3; margin: 28px -24px 0; background: var(--board); line-height: 0; overflow: hidden; }
.rig-narrow svg { display: block; overflow: visible; }

.pillars {
  order: 4;
  position: relative;
  padding: 34px 0 8px 46px;
  display: grid;
  row-gap: 40px;
}
/* the pipe down the left */
.pillars::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 16px;
  background: var(--pipe-v);
}
/* (the nut is drawn on the chip now) */
.pillars::after {
  content: none;
  position: absolute;
  top: 2px;
  left: -6px;
  width: 28px;
  height: 18px;
  border-radius: 3px;
  border: 1.5px solid #7d6220;
  background: linear-gradient(90deg, #c8a44a 0, #ecd58c 30%, #c8a44a 55%, #a88633 100%);
}
.works .pillar { padding: 0; }
.works .pillar h2 { padding-left: 0; }
/* branch to each commitment, with a band of coloured tape */
.works .pillar::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -32px;
  width: 22px;
  height: 14px;
  background: var(--pipe-h);
}
.works .pillar::after {
  content: '';
  position: absolute;
  top: 3px;
  left: -19px;
  width: 9px;
  height: 18px;
  border-radius: 1.5px;
  border: 1px solid var(--cd);
  background: var(--c);
}

@media (min-width: 1120px) {
  .works {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 388px;
    column-gap: 56px;
    padding-top: 12px;
  }
  .works h1 { grid-column: 1; grid-row: 1; align-self: end; max-width: 17ch; font-size: 3.75rem; }
  .works .lede { grid-column: 1; grid-row: 2; margin: 20px 0 0; max-width: 46ch; font-size: 1.3125rem; color: var(--ink); }
  /* the panel's top edge lines up with the top of the logo in the header above */
  .band-top { grid-column: 2; grid-row: 1 / 3; align-self: start; margin: -82px 0 0; position: relative; z-index: 1; }
  .rig { display: block; grid-column: 1 / -1; grid-row: 3; height: 204px; margin-top: 36px; }
  .rig::before { height: 148px; }
  .rig-narrow { display: none; }
  .pillars {
    grid-column: 1 / -1;
    grid-row: 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
    padding: 12px 0 0;
  }
  .pillars::before, .works .pillar::before, .works .pillar::after { content: none; }
  .works .pillar h2 { font-size: 1.125rem; }
  .works .claim { font-size: 1.875rem; line-height: 1.1; }
  .works .pillar li { font-size: 1.0625rem; }
}

.pcb { opacity: 0.6; }

/* Less empty space between the lower sections */
.lower, .name { padding-top: clamp(44px, 6vw, 72px); }
.name { padding-bottom: clamp(44px, 6vw, 72px); }

/* Other pages: the run down the page is copper, the colour is a band of tape */
.run::before { width: 14px; border-radius: 0; background: var(--pipe-v); }
.joint:not(.step)::before { top: 8px; left: -34px; height: 12px; background: var(--pipe-h); }
.joint:not(.step)::after {
  content: '';
  position: absolute;
  top: 5px;
  left: -20px;
  width: 8px;
  height: 18px;
  border-radius: 1.5px;
  background: var(--c);
}
.which::before { width: 10px; height: 24px; border: 0; border-radius: 2px; background: var(--c); }
.circuit { border-color: var(--copper); }
.band { background: var(--board); }

@media (max-width: 860px) {
  .mark img { height: 40px; }
  .joint:not(.step)::before { left: -26px; width: 16px; }
  .joint:not(.step)::after { left: -16px; width: 6px; }
}

.btn:hover { background: #fff; }
.choice input:focus-visible + span, .tell input:focus-visible, .tell textarea:focus-visible { outline-color: var(--blue-deep); }

/* Changelog on the home page: one pipe down, a branch for each date */
.log { --c: var(--ink); --cd: var(--ink); padding-top: clamp(44px, 6vw, 72px); }
.log > h2 { margin: 0 0 22px; font-weight: 900; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.15; }
.log .joint { padding-bottom: 28px; }
.log .joint:last-child { padding-bottom: 6px; }
.log .joint h3 { margin: 0 0 8px; font-weight: 900; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.log .joint p { margin: 0 0 4px; }

/* What TLCR stands for: a loop on wide screens, the same four steps down a pipe on narrow ones */
.name { --c: var(--ink); --cd: var(--ink); }
.name-intro { margin: 0 0 20px; max-width: 58ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.loop { display: block; width: 100%; height: auto; }
.loop-list { list-style: none; margin: 0; }
.loop-list .joint { padding-bottom: 22px; }
.loop-list b { display: block; font-weight: 900; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em; }
@media (min-width: 861px) {
  .loop-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
  .loop-list::before { content: none; }
}
@media (max-width: 860px) {
  .loop { display: none; }
}

/* ---- Balance: a tinted middle band of three columns, larger section headings, a smaller centred loop ---- */
.lower {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
  background: #edf0ea;
  box-shadow: 0 0 0 100vmax #edf0ea;
  clip-path: inset(0 -100vmax);
}
.lower .log { --c: var(--ink); padding-top: 0; }
.lower h2, .lower .log > h2, .name h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-bottom: 16px; }
.name { padding-top: clamp(48px, 6vw, 80px); }
@media (min-width: 861px) {
  .lower { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .name { text-align: center; }
  .name-intro { margin-left: auto; margin-right: auto; }
  .loop { max-width: 900px; margin: 12px auto 0; text-align: left; }
}

.lower .next { margin: 22px 0 0; }

/* The three columns: what we see, what we will try, what we do not know */
.tlc { margin: 0; }
.tlc dt { font-weight: 700; font-size: 0.9375rem; color: var(--cd); }
.tlc dd { margin: 2px 0 16px; max-width: 38ch; }
.tlc dd:last-child { margin-bottom: 0; }
.works .pillar .more { margin-top: 18px; }
