/* Hardpath holding page - colours and type from the Hardpath brand reference. */

:root {
  --navy: rgb(25, 40, 55);
  --light-grey: rgb(210, 210, 210);
  --off-white: rgb(240, 240, 240);
  --orange: rgb(255, 130, 60);

  --font: Bahnschrift, "DIN Alternate", Barlow, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --gutter: 1.5rem;
  --measure: 40rem;
  --footer-measure: 64rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--off-white);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
}

main,
footer {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.logo {
  display: block;
  width: 6rem;
  height: auto;
  margin: 0 0 2.5rem;
}

h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.75rem, 1.1rem + 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 1.5rem;
  background: var(--orange);
}

.statement p {
  margin: 0 0 0.75rem;
}

a {
  color: var(--off-white);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--orange);
}

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

footer {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--footer-measure);
  padding-left: 0;
  padding-right: 0;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--light-grey);
  color: var(--light-grey);
  font-size: 0.875rem;
}

footer p {
  margin: 0 0 0.5rem;
}

footer p:last-child {
  margin-bottom: 0;
}

.social {
  display: inline-flex;
  align-items: center;
  color: var(--light-grey);
}

.icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 40em) {
  :root {
    --gutter: 2.5rem;
  }

  .logo {
    width: 7.5rem;
  }
}

@media (min-width: 64em) {
  footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }

  footer p {
    margin: 0;
    white-space: nowrap;
  }

}
