/*
 * Warmtewerf, a fictional installer, as a technical drawing: off-white sheet, thin frame lines
 * with crosshairs at their corners, a bold engineering sans with monospaced notes, charcoal
 * panels and one signal lime. Lime is only ever a fill under charcoal text (12:1) or a mark on
 * charcoal (12:1), never text on white. The hero photo is cut on a diagonal and labelled like a
 * drawing (Unsplash, README.md, "Website concepts"; the maker's logo on the unit retouched out).
 */
:root {
  --sheet: #f2f2ee;
  --ink: #1d2321;
  --soft: #4c5552;
  --line: #c9ccc6;
  --char: #1f2624;
  --char-ink: #eef0ea;
  --lime: #d4f000;
  --display: Bahnschrift, 'DIN Alternate', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: Consolas, 'SF Mono', Menlo, ui-monospace, monospace;
}
body {
  background: var(--sheet);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
}
.mono {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}
.label {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
/* The sheet: one frame down the page, ruled left and right. */
.top,
main > section,
.foot {
  width: min(100% - 2.5rem, 82rem);
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}

.top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-right: 1px solid var(--line);
  font: 700 1.375rem/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.logo svg {
  width: 1.5rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1rem;
  padding: 0 1.5rem;
  font: 400 0.9375rem var(--mono);
}
.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.top nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ink);
  text-underline-offset: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0 1.25rem;
  background: var(--lime);
  color: var(--ink);
  font: 700 0.9375rem var(--mono);
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.btn:hover {
  background: var(--ink);
  color: var(--lime);
}
.btn span {
  font-family: var(--sans);
  font-size: 1.25rem;
}
.btn-small {
  align-self: center;
  margin: 0.5rem 0.75rem;
  min-height: 44px;
}
@media (max-width: 39.99rem) {
  .top {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .top nav {
    display: none;
  }
  .logo {
    border-right: 0;
    padding-inline: 1rem 0.5rem;
    font-size: 1.0625rem;
    letter-spacing: 0.02em;
  }
  .btn-small {
    margin-inline: 0 0.75rem;
    padding-inline: 0.875rem;
  }
}

/* The hero: the word huge, the photo cut on a diagonal with drawing labels, a charcoal box. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  grid-template-rows: auto 1fr;
  min-height: 40rem;
}
.hero::before,
.hero::after {
  content: '+';
  position: absolute;
  top: 0.25rem;
  color: var(--soft);
  font: 300 1.5rem/1 var(--sans);
}
.hero::before {
  left: 0.5rem;
}
.hero::after {
  right: 0.5rem;
}
.hero-head {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.5rem 0;
}
.hero h1 {
  font-size: clamp(4.5rem, 14vw, 12rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
}
.sub {
  margin-top: 0.75rem;
  font: 400 clamp(1.75rem, 3vw, 2.5rem) / 1 var(--display);
  letter-spacing: -0.02em;
}
.hero-photo {
  grid-column: 1 / -1;
  grid-row: 1 / 3;
  position: relative;
  margin-top: 9rem;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%, 0 38%);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
}
/* Labels point at parts of the unit; the photo keeps its proportions from 64rem, so they stay on
   them. Below that they are left out. */
.tag {
  position: absolute;
  display: none;
  color: #fff;
  font: 400 0.875rem var(--mono);
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.6);
}
.tag span {
  display: block;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #fff;
}
.tag::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 1px;
  height: 3rem;
  background: #fff;
}
.tag::before {
  content: '';
  position: absolute;
  left: -0.25rem;
  top: calc(100% + 3rem);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #fff;
}
@media (min-width: 64rem) {
  .hero-photo img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1600 / 1050;
    object-position: center 70%;
  }
  .tag {
    display: block;
  }
  .tag-unit {
    left: 50%;
    top: 37%;
  }
  .tag-air {
    left: 33%;
    top: 22%;
  }
}
.hero-box {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  max-width: 26rem;
  padding: 2rem 1.5rem 2.25rem;
  background: var(--char);
  color: var(--char-ink);
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
  padding-right: 4.5rem;
}
.hero-box p {
  font: 400 0.9375rem/1.55 var(--mono);
}
.bar {
  display: block;
  width: 2rem;
  height: 3px;
  background: var(--lime);
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  color: var(--lime);
  font: 700 0.9375rem var(--mono);
  text-decoration: none;
}
.more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 01: the services as big rows; one lights up lime under the mouse, the first when none is. */
.services {
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}
.rows {
  margin-top: 1rem;
}
.rows a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem) 3rem;
  gap: 0.25rem 2rem;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: background-color 0.15s;
}
.rows .name {
  font: 700 clamp(2.25rem, 5vw, 4rem) / 1.05 var(--display);
  letter-spacing: -0.04em;
}
.rows .what {
  color: var(--soft);
}
.rows .arrow {
  font-size: 1.75rem;
  text-align: right;
}
.rows a:hover,
.rows a:focus-visible,
.rows:not(:hover, :focus-within) li:first-child a {
  background: var(--lime);
}
.rows a:hover .what,
.rows a:focus-visible .what,
.rows:not(:hover, :focus-within) li:first-child .what {
  color: var(--ink);
}
.rows a:focus-visible {
  outline-offset: -3px;
}

/* An example, in charcoal: the photo cut like the hero's, the text, a detail of pipework. */
.example {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.6fr);
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem 2.5rem;
  padding: 2rem 1.5rem 2.5rem;
  background: var(--char);
  color: var(--char-ink);
}
.example .label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.example .label::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--lime);
}
.example-photo {
  grid-column: 1;
  grid-row: 2 / 4;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
  clip-path: polygon(0 0, 88% 0, 100% 16%, 100% 100%, 0 100%);
}
.example-text {
  grid-column: 2 / 4;
  grid-row: 2;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.example h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}
.example-text p {
  max-width: 24rem;
}
.example-pipes {
  grid-column: 3;
  grid-row: 3;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.steps-band {
  padding: 3rem 1.5rem;
  position: relative;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.steps li {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.step-num {
  display: flex;
  align-items: center;
  gap: 1rem;
  font: 700 4rem/1 var(--display);
  letter-spacing: -0.04em;
}
.step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink);
  mask-image: linear-gradient(90deg, #000 calc(100% - 0.6rem), transparent calc(100% - 0.6rem));
}
.steps h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.steps p {
  color: var(--soft);
}

.area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--line);
}
.area h2 {
  margin: 1rem 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
}
.area p.mono:not(.label) {
  color: var(--soft);
}
.towns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0 2rem;
}
.towns li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

/* The close on lime: the question huge, the choices, a charcoal button. */
.cta {
  display: grid;
  gap: 1rem 3rem;
  padding: 3rem 1.5rem 3.5rem;
  background: var(--lime);
  clip-path: polygon(0 0, calc(100% - 3rem) 0, 100% 3rem, 100% 100%, 0 100%);
}
.cta h2 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  letter-spacing: -0.05em;
}
.cta-sub {
  font: 400 1rem var(--mono);
}
.cta .picker {
  --pick-line: var(--ink);
  --pick-on-bg: var(--ink);
  --pick-on-ink: var(--lime);
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.9375rem;
}
.cta .picker legend {
  font-family: var(--sans);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: #fff;
  color: var(--ink);
}
.cta .picked {
  border-color: var(--ink);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.25rem 1.5rem 3rem;
  color: var(--soft);
  font-size: 0.8125rem;
}

@media (max-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero-photo {
    grid-row: 2;
    margin-top: 1.5rem;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 0 20%);
  }
  .hero-photo img {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .hero-box {
    grid-row: 3;
    max-width: none;
    clip-path: none;
    padding-right: 1.5rem;
  }
  .rows a {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .rows .what {
    grid-column: 1;
    grid-row: 2;
  }
  .rows .arrow {
    grid-row: 1 / 3;
  }
  .example {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
  }
  .example-photo {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
  .example-text {
    grid-column: 1;
    grid-row: 3;
  }
  .example-pipes {
    grid-column: 2;
    grid-row: 3;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .area {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 34rem) {
  .hero-head,
  .services,
  .example,
  .steps-band,
  .area,
  .cta,
  .foot {
    padding-inline: 1rem;
  }
  .example {
    grid-template-columns: minmax(0, 1fr);
  }
  .example-pipes {
    grid-column: 1;
    grid-row: 4;
    aspect-ratio: 16 / 9;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
