/* Apex site shell
   Shared by every public page: colour, type, header, footer.
   A second business section should link this file and reuse the
   header and footer markup. Put section-specific layout in its own
   stylesheet. Do not fork this file. */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-500.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
}

:root {
  --bg: #070708;
  --bg-raise: #101013;
  --ink: #f3f3f5;
  --body: #d0d0d5;
  --muted: #a7a7ae;
  --line: rgba(255, 255, 255, 0.12);
  --red: #c8102e;
  --red-ink: #ed2142;
  --red-deep: #9e0d24;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --header: 132px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(980px 420px at 50% -160px, rgba(200, 16, 46, 0.28), transparent 62%),
    var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
.shell-header,
.shell-footer {
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 20;
  transform: translateY(-140%);
  background: #fff;
  color: #111;
  padding: 8px 12px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 7, 8, 0.94);
  border-bottom: 2px solid var(--red);
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand cta"
    "nav nav";
  align-items: center;
  gap: 8px 16px;
  min-height: 64px;
  padding-block: 12px 10px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 28px;
  width: auto;
}

.site-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--body);
  padding: 8px 0;
}

.site-nav a:hover {
  color: #fff;
}

.header-cta {
  grid-area: cta;
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}

.button:hover {
  background: var(--red-deep);
}

.button-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.button-ghost:hover {
  background: transparent;
  box-shadow: inset 0 0 0 1px #fff;
}

.button .narrow {
  display: none;
}

.shell-footer {
  border-top: 3px solid var(--red);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  gap: 22px;
}

.footer-name {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.footer-legal {
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-nav a {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--body);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-note {
  margin-top: 22px;
  max-width: 40rem;
}

.missing {
  padding: 72px 0 96px;
}

.missing h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 0.9;
}

.missing p {
  margin-top: 14px;
  max-width: 36rem;
}

.missing .button {
  margin-top: 22px;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

body {
  padding-bottom: calc(54px + env(safe-area-inset-bottom));
}

@media (max-width: 420px) {
  .button .wide {
    display: none;
  }

  .button .narrow {
    display: inline;
  }

  .header-cta .button {
    padding-inline: 12px;
  }
}

@media (min-width: 860px) {
  :root {
    --header: 88px;
  }

  .dock {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .wrap {
    width: min(var(--wrap), calc(100% - 64px));
  }

  .header-bar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav cta";
    gap: 24px;
    padding-block: 14px;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .brand img {
    height: 32px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr auto;
    align-items: end;
  }

  .footer-nav {
    justify-content: flex-end;
  }
}

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