@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/libre-franklin-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/libre-franklin-latin-wght-normal.woff2") format("woff2");
}

:root {
  --board: #d8d7d0;
  --board-line: #cbcac2;
  --galvanised: #ecebe6;
  --stain: #2e1e16;
  --night: #1c2731;
  --night-face: #233140;
  --night-line: #7d8c96;
  --iron: #8f3a1f;
  --iron-dark: #6f2c16;
  --iron-light: #e58a5c;
  --sawdust: #e8d6ae;
  --steel: #5e6a70;
  --placeholder: #ffe14d;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Libre Franklin", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --post: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--board);
  color: var(--stain);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--iron);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--iron);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}

h3 {
  font-size: 2rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--galvanised);
  color: var(--stain);
  padding: 0.6rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.preview-bar {
  background: var(--placeholder);
  color: var(--stain);
  padding: 0.45rem 1rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
}

.preview-bar p {
  margin: 0;
}

.ph {
  background: var(--placeholder);
  color: var(--stain);
  padding: 0 0.25em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-weight: 500;
}

.button {
  display: inline-block;
  background: var(--iron);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.7rem 1.4rem 0.75rem;
  border: 0;
  border-bottom: 4px solid var(--iron-dark);
  cursor: pointer;
}

.button:hover {
  background: var(--iron-dark);
}

.button:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.button-small {
  font-size: 1.2rem;
  padding: 0.5rem 1rem 0.55rem;
}

.button-quiet {
  background: transparent;
  color: var(--iron);
  border: 2px solid var(--iron);
}

.button-quiet:hover {
  background: var(--galvanised);
}

.actions {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.capping {
  background: var(--stain);
  color: var(--board);
  border-bottom: 6px solid var(--night);
  position: relative;
}

.capping::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: var(--stain);
  opacity: 0.35;
}

.capping-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.85rem;
  color: var(--sawdust);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-right: auto;
}

.capping-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.capping-nav a {
  color: var(--board);
  text-decoration: none;
  font-size: 0.9375rem;
}

.capping-nav a:hover {
  color: var(--sawdust);
  text-decoration: underline;
}

.capping :focus-visible,
.hero :focus-visible,
.gravel :focus-visible {
  outline-color: var(--sawdust);
}

.hero {
  background: var(--night);
  color: var(--galvanised);
  overflow: hidden;
  padding-top: clamp(2.5rem, 7vw, 5rem);
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-trade {
  color: var(--sawdust);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: clamp(5rem, 19vw, 11rem);
  font-weight: 900;
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--sawdust);
  margin: 0 0 1.5rem;
}

.hero-lead {
  max-width: 36rem;
  font-size: clamp(1.15rem, 2.2vw, 1.375rem);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.hero-lead-quiet {
  color: var(--board);
  font-size: 1.0625rem;
  margin-bottom: 1.75rem;
}

.hero-phone {
  color: var(--board);
}

.hero-phone a {
  color: var(--sawdust);
}

.hero-scene {
  margin-top: 1rem;
}

.hero-drawing {
  width: 100%;
  height: auto;
  min-height: 11rem;
}

.sky-line {
  fill: none;
  stroke: var(--night-line);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sky-faint {
  opacity: 0.6;
}

.f-face {
  fill: var(--night-face);
}

.f-board {
  fill: none;
  stroke: var(--sawdust);
  stroke-width: 1;
  opacity: 0.55;
}

.f-rail {
  fill: var(--night-face);
  stroke: var(--sawdust);
  stroke-width: 1.4;
}

.f-post {
  fill: var(--stain);
  stroke: var(--sawdust);
  stroke-width: 1.4;
}

.f-cap {
  fill: var(--iron);
  stroke: var(--sawdust);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.nails circle {
  fill: var(--iron-light);
}

.ground {
  stroke: var(--sawdust);
  stroke-width: 2;
}

.storm-panel {
  transform-box: fill-box;
  transform-origin: 0% 100%;
}

@keyframes panel-righted {
  0% {
    transform: rotate(-11deg) translateY(-4px);
  }
  62% {
    transform: rotate(1.2deg);
  }
  78% {
    transform: rotate(-0.5deg);
  }
  100% {
    transform: none;
  }
}

@keyframes nails-home {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .storm-panel {
    animation: panel-righted 1.1s cubic-bezier(0.3, 0.6, 0.3, 1) 0.5s both;
  }

  .nails circle {
    animation: nails-home 0.2s steps(1, end) both;
  }

  .nails circle:nth-child(1) {
    animation-delay: 1.65s;
  }

  .nails circle:nth-child(2) {
    animation-delay: 1.8s;
  }

  .nails circle:nth-child(3) {
    animation-delay: 1.95s;
  }

  .nails circle:nth-child(4) {
    animation-delay: 2.1s;
  }
}

.bay {
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-top: 10px solid var(--stain);
  position: relative;
}

.bay::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 3px;
  background: var(--stain);
  opacity: 0.25;
}

.bay-heading {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  max-width: 18ch;
}

.bay-work {
  background-color: var(--board);
  background-image: repeating-linear-gradient(90deg, transparent 0 46px, var(--board-line) 46px 47px);
}

.run {
  display: grid;
  gap: 2rem;
}

.run-bay {
  background: var(--galvanised);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 6px solid var(--stain);
  border-bottom: 14px solid var(--stain);
}

.run-bay h3 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--iron);
}

.run-opener {
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 600;
  max-width: 34ch;
}

.post {
  height: var(--post);
  background: var(--stain);
  position: relative;
}

.to-confirm {
  list-style: none;
  padding: 1rem 0 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--steel);
  display: grid;
  gap: 0.6rem;
  font-size: 0.9375rem;
}

.bay-parts {
  background: var(--galvanised);
}

.parts {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.parts-text > p {
  max-width: 34rem;
}

.parts-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.parts-list div {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 0.75rem;
}

.parts-list dt {
  font-weight: 700;
  display: contents;
}

.parts-list dd {
  grid-column: 2;
  margin: 0;
}

.key {
  grid-row: span 2;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--iron);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  line-height: 1;
}

.parts-drawing {
  width: 100%;
  height: auto;
}

.p-post {
  fill: #b9a98a;
  stroke: var(--stain);
  stroke-width: 2;
}

.p-cap {
  fill: var(--stain);
}

.p-board {
  fill: #d9c9a6;
  stroke: var(--stain);
  stroke-width: 2;
}

.p-board-line {
  fill: none;
  stroke: var(--stain);
  stroke-width: 1;
  opacity: 0.45;
}

.p-capping,
.p-rail,
.p-gravel {
  fill: #c6b48f;
  stroke: var(--stain);
  stroke-width: 2;
}

.p-gravel {
  fill: #a7a59c;
}

.p-ground {
  stroke: var(--stain);
  stroke-width: 3;
}

.p-soil {
  stroke: var(--steel);
  stroke-width: 2;
  stroke-linecap: round;
}

.p-leader {
  stroke: var(--iron);
  stroke-width: 2;
}

.p-marker {
  fill: var(--iron);
  stroke: var(--galvanised);
  stroke-width: 3;
}

.p-letter {
  fill: #ffffff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
}

.bay-area {
  background: var(--night);
  color: var(--galvanised);
  border-top-color: var(--iron);
}

.bay-area::before {
  background: var(--iron);
  opacity: 0.5;
}

.area {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.area-name {
  font-size: clamp(4.5rem, 17vw, 12rem);
  font-weight: 900;
  line-height: 0.8;
  text-transform: uppercase;
  color: var(--sawdust);
  margin: 0;
}

.area-small {
  display: block;
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  color: var(--board);
  margin-bottom: 0.75rem;
}

.area-text {
  max-width: 30rem;
  font-size: 1.125rem;
}

.area-text p:last-child {
  margin-bottom: 0;
}

.bay-proof {
  background: var(--board);
}

.proof {
  display: grid;
  gap: 1.75rem;
}

.proof .bay-heading {
  margin-bottom: 0;
}

.image-area {
  aspect-ratio: 3 / 2;
  border: 3px dashed var(--steel);
  background-color: var(--galvanised);
  background-image: repeating-linear-gradient(90deg, transparent 0 30px, var(--board-line) 30px 31px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 1.5rem;
}

.image-area p {
  max-width: 26rem;
  margin: 0;
}

.image-area-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--steel);
}

.proof-notes p {
  max-width: 34rem;
}

.bay-gate {
  background: var(--galvanised);
}

.gate {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--iron);
}

.gate-steps h3 {
  font-size: 1.85rem;
}

.helps {
  padding-left: 1.2rem;
  margin-bottom: 1.75rem;
}

.helps li {
  margin-bottom: 0.3rem;
}

.gate-panel {
  background: var(--board);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-top: 14px solid var(--stain);
  border-bottom: 14px solid var(--stain);
  border-left: 6px solid var(--stain);
  border-right: 6px solid var(--stain);
  position: relative;
}

.enquiry {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.field-group legend {
  font-weight: 700;
  padding: 0;
  margin-bottom: 0.3rem;
}

label {
  font-weight: 700;
}

.hint {
  font-size: 0.9375rem;
  margin: 0;
}

input,
textarea {
  font: inherit;
  color: var(--stain);
  background: #ffffff;
  border: 2px solid var(--stain);
  border-radius: 0;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

textarea {
  resize: vertical;
}

.input-short {
  max-width: 10rem;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--iron);
  border-width: 3px;
}

.field-error {
  color: var(--iron);
  font-weight: 700;
  margin: 0;
  font-size: 0.9375rem;
}

.field-error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry .button {
  justify-self: start;
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 0.75rem 1rem;
  border-left: 6px solid var(--steel);
  background: var(--galvanised);
}

.form-status-error {
  border-left-color: var(--iron);
}

.form-status-success {
  border-left-color: var(--stain);
}

.note {
  background: var(--galvanised);
  border-left: 6px solid var(--steel);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

.notice {
  display: none;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: var(--galvanised);
  border-left: 6px solid var(--stain);
}

.notice:target {
  display: block;
}

.notice-error {
  border-left-color: var(--iron);
}

.notice p {
  margin: 0;
}

.bay-legal {
  background: var(--galvanised);
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: 2.1rem;
  margin-top: 2rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.gravel {
  background: var(--night);
  color: var(--board);
  border-top: 22px solid var(--stain);
  padding: 3rem 0 1.5rem;
  font-size: 0.9375rem;
}

.gravel a {
  color: var(--sawdust);
}

.gravel-grid {
  display: grid;
  gap: 1.5rem;
}

.gravel-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--sawdust);
  margin-bottom: 0.5rem;
}

.gravel-line {
  margin-bottom: 0.4rem;
}

.gravel-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.gravel-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--steel);
}

.gravel-base p {
  margin: 0;
}

@media (max-width: 47.99em) {
  .capping-nav {
    display: none;
  }

  .brand {
    font-size: 1.5rem;
  }

  .hero-scene {
    margin-top: 0.5rem;
  }

  .hero-drawing {
    width: 190%;
    max-width: none;
    margin-left: -78%;
  }
}

@media (min-width: 48em) {
  .run {
    grid-template-columns: 1fr var(--post) 1fr;
    gap: 0;
    align-items: stretch;
  }

  .run-bay {
    border-bottom-width: 6px;
  }

  .post {
    height: auto;
    width: var(--post);
  }

  .post::before {
    content: "";
    position: absolute;
    top: -16px;
    left: -6px;
    right: -6px;
    height: 16px;
    background: var(--iron);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
  }

  .parts {
    grid-template-columns: 1fr 1fr;
  }

  .area {
    grid-template-columns: auto 1fr;
    gap: 3rem;
  }

  .proof {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
  }

  .proof .bay-heading {
    grid-column: 1 / -1;
  }

  .gate {
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
  }

  .gravel-grid {
    grid-template-columns: 1.2fr 1.4fr 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-scene {
    margin-top: -5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
