/* Trade — the side of a work van. Sign-written condensed capitals, one signal colour,
   the phone number as big as the page allows, and one rising edge on every band. */
:root {
  --ink: #14161a;
  --paper: #f1ede4;
  --white: #fffdf8;
  --accent: #ff4d14;
  --soft-on-ink: #c6c7c4;
  --soft-on-paper: #4b4d50;
  --rule: #14161a;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --wrap: 90rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --pitch: clamp(1.25rem, 5vw, 4.5rem);
  --dock: 3.75rem;
  --focus: var(--ink);
}

* {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-padding-bottom: calc(var(--dock) + 1.5rem);
}
body {
  margin: 0;
  padding-bottom: var(--dock);
  background: var(--paper);
  overflow-wrap: anywhere;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  hyphens: auto;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Surfaces: every section is one of three grounds. */
.s-ink {
  --focus: var(--accent);
  background: var(--ink);
  color: var(--white);
}
.s-accent {
  --focus: var(--ink);
  background: var(--accent);
  color: var(--ink);
}

/* The rising edge: a band climbs over whatever comes before it, left low, right high. */
.band {
  position: relative;
  margin-top: calc(var(--pitch) * -1);
  padding-top: calc(var(--pitch) + clamp(2rem, 5vw, 4rem));
  clip-path: polygon(0 var(--pitch), 100% 0, 100% 100%, 0 100%);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus {
  top: 1rem;
}

/* Buttons and labels */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem 0.85rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
}
.btn-ink {
  background: var(--ink);
  color: var(--white);
}
.btn-ink:hover {
  background: var(--white);
  color: var(--ink);
}
.btn-accent {
  background: var(--accent);
  color: var(--ink);
}
.btn-accent:hover {
  background: var(--white);
}
.label {
  margin: 0 0 0.25rem;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.date,
.crumb {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.crumb a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.crumb a:hover {
  text-decoration: none;
}

/* Masthead: on a phone the dock carries the number and the button. */
.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  flex-basis: 100%;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}
.nav a {
  padding: 0.25rem 0;
}
.nav a:hover {
  color: var(--accent);
}
.masthead-phone,
.masthead-quote {
  display: none;
}
@media (min-width: 48rem) {
  .brand {
    flex-basis: auto;
    margin-right: auto;
  }
  .masthead-phone {
    display: block;
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    color: var(--accent);
  }
  .masthead-phone:hover {
    color: var(--white);
  }
  .masthead-quote {
    display: inline-block;
    padding: 0.55rem 1.1rem 0.6rem;
    font-size: 1.25rem;
  }
}

/* Home: hero */
.hero {
  padding-top: clamp(2rem, 6vw, 5rem);
  padding-bottom: calc(var(--pitch) + clamp(2.5rem, 6vw, 5rem));
}
.tag {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.25rem 0.6rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-title {
  max-width: 15ch;
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: 0.88;
  text-wrap: balance;
}
.hero-text {
  max-width: 38rem;
  margin: 1.5rem 0 2rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
}

/* The number, painted as large as the van door allows. */
.bigphone {
  display: block;
  font-family: var(--display);
  font-size: clamp(3.25rem, 15vw, 13rem);
  font-weight: 900;
  line-height: 0.95;
}
.phoneband {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.phoneband .bigphone {
  color: var(--accent);
}
.phoneband .bigphone:hover {
  color: var(--white);
}

/* Home: where */
.area {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 0;
}
.area-inner {
  display: grid;
  gap: 0.75rem 3rem;
}
.area .label {
  font-weight: 700;
  line-height: 1.3;
  hyphens: none;
}
.area-towns {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
}
@media (min-width: 48rem) {
  .area-inner {
    grid-template-columns: 12rem 1fr;
  }
  .area .label {
    padding-top: 0.6rem;
  }
}

/* Sections on paper */
.sec {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 calc(var(--pitch) + clamp(3rem, 7vw, 5.5rem));
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}
.sec-head h2 {
  font-size: clamp(2.75rem, 8vw, 6rem);
}
.more {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.more:hover {
  text-decoration-color: var(--ink);
}
.empty {
  margin: 0;
  padding: 1.5rem;
  background: var(--paper);
  font-weight: 500;
  grid-column: 1 / -1;
}

/* Services: a painted price board. The ink shows through the gaps as the rules. */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  border: 3px solid var(--rule);
  background: var(--rule);
}
.service {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--paper);
}
.service:hover {
  background: var(--accent);
}
.service:focus-visible {
  outline-offset: -6px;
}
.service-no {
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.85;
  color: var(--accent);
}
.service:hover .service-no {
  color: var(--ink);
}
.service-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.service-name {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.service-text {
  flex: 1;
  color: var(--soft-on-paper);
}
.service:hover .service-text {
  color: var(--ink);
}
.service-price {
  padding-top: 0.6rem;
  border-top: 3px solid var(--ink);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.service-price small {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 48rem) {
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 72rem) {
  .board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Reasons: three numbers you can read from across the street. */
.reasons {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.reasons:last-child {
  padding-bottom: calc(var(--pitch) + 3rem);
}
.reasons-grid {
  display: grid;
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
}
.reason p {
  margin: 0;
  color: var(--soft-on-ink);
}
.reason .reason-value {
  font-family: var(--display);
  font-size: clamp(5.5rem, 13vw, 11rem);
  font-weight: 900;
  line-height: 0.85;
  color: var(--accent);
}
.reason-title {
  margin: 0.75rem 0 0.4rem;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1;
}
@media (min-width: 48rem) {
  .reasons-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Jobs: a logbook, one heavy rule per job. */
.jobs {
  border-top: 6px solid var(--rule);
}
.job {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 3px solid var(--rule);
}
.job-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.job-stamp {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}
.job-body p:last-child {
  margin: 0;
  max-width: 46rem;
  color: var(--soft-on-paper);
}
.job-title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  line-height: 1;
}
.job-title a:hover {
  background: var(--accent);
}
@media (min-width: 48rem) {
  .job {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 2rem;
  }
  .job-stamp {
    font-size: 5rem;
  }
}

/* Inner pages */
.head {
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: calc(var(--pitch) + clamp(1.5rem, 4vw, 3rem));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pitch)), 0 100%);
}
.head h1 {
  max-width: 18ch;
  font-size: clamp(3.25rem, 12vw, 9.5rem);
  line-height: 0.9;
}
.head-long h1 {
  font-size: clamp(2.6rem, 8vw, 6.5rem);
}
.head-text {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
}
.sheet {
  display: grid;
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
}
.sheet > * {
  min-width: 0;
}
@media (min-width: 60rem) {
  .sheet {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: start;
  }
}
.cover {
  width: 100%;
  margin: 0 0 1.75rem;
}
.panel {
  padding: 1.5rem;
}
.panel p {
  margin: 0 0 1.25rem;
}
.panel .label {
  margin: 0 0 0.25rem;
  color: var(--soft-on-ink);
}
.panel .btn {
  display: block;
  margin-bottom: 1.5rem;
}
.panel-title {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.panel .panel-title {
  margin-bottom: 0.75rem;
}
.panel-phone {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 12vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
}
.panel-phone:hover {
  color: var(--white);
}
.panel .panel-price {
  font-family: var(--display);
  font-size: clamp(3.5rem, 15vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.panel-link {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose {
  max-width: 44rem;
  font-size: 1.125rem;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 1.2em;
}
.prose h2 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
}
.prose h3 {
  margin: 1.5em 0 0.4em;
  font-size: 1.6rem;
  line-height: 1.05;
}
.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.25rem;
}
.prose li {
  margin-bottom: 0.35em;
}
.prose li::marker {
  color: var(--ink);
  font-weight: 700;
}
.prose a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 0.75rem 0 0.75rem 1.25rem;
  border-left: 8px solid var(--accent);
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
.prose blockquote p {
  margin: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
}
.pagination-status {
  font-variant-numeric: tabular-nums;
}
.pagination-link {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.pagination-link:hover {
  text-decoration-color: var(--ink);
}

/* Closing call to action, on every page */
.cta {
  padding-bottom: calc(var(--pitch) + clamp(3rem, 6vw, 5rem));
}
.cta-title {
  max-width: 16ch;
  font-size: clamp(3.25rem, 11vw, 9rem);
  line-height: 0.9;
  text-wrap: balance;
}
.cta-text {
  max-width: 38rem;
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
}
.cta .bigphone {
  margin-bottom: 1.5rem;
}
.cta .bigphone:hover {
  color: var(--white);
}

.footer {
  padding-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--soft-on-ink);
}
.footer-inner {
  display: grid;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
}
.footer p {
  margin: 0 0 0.3rem;
}
.footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer a:hover {
  color: var(--white);
}
.footer .footer-name {
  margin-bottom: 0.5rem;
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
@media (min-width: 48rem) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-note {
    grid-column: 1 / -1;
  }
}

/* The dock: phone and quote stay on screen, at every width. */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: var(--dock);
  font-family: var(--display);
  line-height: 1.05;
  text-transform: uppercase;
}
.dock a {
  --focus: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.35rem 1rem;
}
.dock a:focus-visible {
  outline-offset: -5px;
}
.dock-call {
  background: var(--ink);
  color: var(--white);
}
.dock-call:hover {
  color: var(--accent);
}
.dock-label {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.dock-number {
  font-size: 1.5rem;
  font-weight: 900;
}
.dock .dock-quote {
  --focus: var(--ink);
  background: var(--accent);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
}
.dock .dock-quote:hover {
  background: var(--white);
}
@media (min-width: 48rem) {
  .dock {
    grid-template-columns: minmax(0, 1fr) 24rem;
  }
  .dock a {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .dock .dock-call {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    align-content: center;
    justify-content: flex-start;
    gap: 0.75rem;
  }
  .dock-number {
    font-size: 1.9rem;
  }
  .dock .dock-quote {
    font-size: 1.6rem;
  }
}

/* The language switcher; only there on a site with several languages. */
.lang-switch {
  display: inline-flex;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-switch a {
  padding: 0.25rem 0;
  color: var(--soft-on-ink);
}
.lang-switch a:hover {
  color: var(--white);
}
.lang-switch a[aria-current] {
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--accent);
}

@media print {
  .dock {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}
