/* Use a conventional rounded capital B beside the Fredoka lettering. */
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-bold-b.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  unicode-range: U+0042;
}

@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-600.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --red: #8b201f;
  --ink: #222020;
  --line: #e6dfdf;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }

.wrap {
  width: min(68rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.page-header { border-bottom: 1px solid var(--line); }
.navigation, .nav-links {
  display: flex;
  gap: .85rem clamp(.75rem, 4vw, 2rem);
  flex-wrap: wrap;
  align-items: center;
}
.navigation {
  min-height: 4.5rem;
  justify-content: space-between;
  padding-block: .75rem;
}
.navigation a {
  font-weight: 700;
  text-decoration: none;
}
.navigation a:hover { text-decoration: underline; }
.brand, .quote-link { color: var(--red); }

.hero {
  padding-block: clamp(2.75rem, 8vw, 6rem);
  text-align: center;
}
.sign-lettering {
  display: grid;
  gap: clamp(.65rem, 2vw, 1.5rem);
  width: min(100%, 58rem);
  margin-inline: auto;
}

.sign-services, .sign-quote, .sign-phone, .sign-email {
  font-family: "Nunito", "Fredoka", "Arial Rounded MT Bold", sans-serif;
  font-weight: 600;
  line-height: 1.12;
}

.sign-lettering { container-type: inline-size; }

.sign-services {
  display: grid;
  grid-template-rows: minmax(16.73cqw, auto) minmax(10.06cqw, auto)
    minmax(8.18cqw, auto) minmax(6.79cqw, auto) minmax(5.53cqw, auto);
  align-items: center;
  text-wrap: balance;
}

.sign-services h1 {
  color: var(--red);
  font-size: 17.4cqw;
  font-weight: 600;
  line-height: 1;
}

.brand-j { margin-inline-start: -.065em; }

.sign-painting { font-size: max(1rem, 7.8cqw); }
.sign-beach-huts { font-size: max(.875rem, 6.1cqw); }
.sign-planning { font-size: max(.75rem, 3.36cqw); }
.sign-fixings { font-size: max(.75rem, 3.3cqw); }

.sign-quote, .sign-phone {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}

.sign-quote {
  min-height: 5.53cqw;
  gap: .15em 5cqw;
  font-size: max(.75rem, 3.3cqw);
}

.sign-quote strong {
  color: var(--red);
  font-size: 1.4em;
  font-weight: inherit;
}

.sign-phone {
  min-height: 6.92cqw;
  font-size: max(.875rem, 5.45cqw);
}

.sign-email {
  color: var(--red);
  font-size: max(.875rem, 4.8cqw);
  overflow-wrap: anywhere;
}

.sign-email a { text-decoration: none; }
.sign-email a:hover { text-decoration: underline; }

/* Fallback for browsers that do not support container sizing units. */
@supports not (width: 1cqw) {
  .sign-services h1 { font-size: 17.4vw; }
  .sign-painting { font-size: max(1rem, 7.8vw); }
  .sign-beach-huts { font-size: max(.875rem, 6.1vw); }
  .sign-planning { font-size: max(.75rem, 3.36vw); }
  .sign-fixings { font-size: max(.75rem, 3.3vw); }
  .sign-quote { min-height: 5.53vw; gap: .15em 5vw; font-size: max(.75rem, 3.3vw); }
  .sign-phone { min-height: 6.92vw; font-size: max(.875rem, 5.45vw); }
  .sign-email { font-size: max(.875rem, 4.8vw); }
}

.sign-locations {
  font-family: "Nunito", "Fredoka", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(.875rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}

.location-initial { -webkit-text-stroke: .025em currentColor; }

.contact h2, .numbers {
  font-family: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  font-weight: 600;
}

.contact {
  text-align: center;
  padding-block: clamp(2rem, 6vw, 4rem);
}
.contact h2 {
  color: var(--red);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: .35rem;
}
.contact h2 span {
  color: var(--ink);
  font-size: .55em;
  white-space: nowrap;
}

address {
  margin-top: 1rem;
  font-style: normal;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 700;
}
.numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem clamp(.5rem, 2vw, 1rem);
  margin-bottom: .65rem;
}
.numbers a { white-space: nowrap; }
.email { color: var(--red); overflow-wrap: anywhere; }
