@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk/HankenGrotesk-Italic-VariableFont_wght.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk/HankenGrotesk-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Jura";
  src: url("../fonts/jura/Jura-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded/Unbounded-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --color-brand-primary: #3155FF;
  --color-brand-secondary: #090C16;
  --color-brand-accent: #D8FF3E;
  --color-brand-neutral: #F4F1E8;
  --background: #3155FF;
  --foreground: #F4F1E8;
  --font-title: "Unbounded", sans-serif;
  --font-highlight: "Hanken Grotesk", sans-serif;
  --font-body: "Jura", sans-serif;
}

/* ==========================================================================
   Base styles
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-synthesis: none;
  line-height: 1.6;
}

/*
 * Suppress touch-browser boundary effects such as rubber-band scrolling and
 * pull-to-refresh. This does not disable legitimate scrolling when the page is
 * taller than the available screen.
 */
@media (hover: none) and (pointer: coarse) {
  html,
  body {
    overscroll-behavior-y: none;
  }
}

a {
  color: inherit;
}

h1,
h2,
p {
  margin: 0;
}

/* ==========================================================================
   Page layout
   ========================================================================== */

.maintenance-page {
  --maintenance-logo-min-size: 96px;
  --maintenance-page-space: 1.25rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--maintenance-page-space) 2rem;
  gap: var(--maintenance-page-space);
  background: #3155FF;
  color: #F4F1E8;
}

/* The logo occupies the flexible row above the centered status content. */
.maintenance-brand {
  display: grid;
  place-items: center;
  position: relative;
  width: min(100%, 44rem);
  min-height: 0;
  margin-inline: auto;
  align-self: stretch;
}

.maintenance-shell {
  width: min(100%, 44rem);
  min-height: 0;
  margin-inline: auto;
  text-align: center;
}

/* ==========================================================================
   Brand mark
   ========================================================================== */

.maintenance-brand-link {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  height: min(
    calc(
      100% + var(--maintenance-page-space) + var(--maintenance-page-space)
    ),
    max(8.5rem, calc(50svh - 12.0625rem)),
    65vw,
    20rem
  );
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.maintenance-brand-link:focus-visible {
  outline: 2px solid var(--color-brand-accent);
  outline-offset: 0.25rem;
}

.maintenance-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ==========================================================================
   Status content
   ========================================================================== */

.maintenance-content {
  border-block: 1px solid #D8FF3E80;
  padding-block: 2rem;
}

.maintenance-eyebrow {
  margin-bottom: 1rem;
  color: #D8FF3E;
  font-family: var(--font-highlight);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.maintenance-title {
  margin-bottom: 1.25rem;
  color: #D8FF3E;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 6.4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.maintenance-message {
  max-width: 38rem;
  margin-inline: auto;
  color: #F4F1E8;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

/* ==========================================================================
   Contact and footer region
   ========================================================================== */

.maintenance-lower {
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  gap: var(--maintenance-page-space);
  width: calc(100% + 4rem);
  margin-inline: -2rem;
  align-self: stretch;
  text-align: center;
}

.maintenance-contact {
  width: min(calc(100% - 4rem), 44rem);
  margin-inline: auto;
  align-self: center;
  color: #F4F1E8;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}

.maintenance-contact-label {
  margin-bottom: 0.5rem;
  color: #D8FF3E;
  font-family: var(--font-highlight);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.maintenance-contact-message {
  margin-bottom: 0.125rem;
}

.maintenance-contact-links {
  display: grid;
  justify-items: center;
  gap: 0.125rem;
  margin-top: 0.5rem;
  font-family: var(--font-highlight);
  font-size: 0.8rem;
}

.maintenance-contact a {
  display: inline-block;
  color: #F4F1E8;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.18em;
  white-space: nowrap;
}

.maintenance-contact a.maintenance-phone-link {
  color: #F4F1E8;
}

.maintenance-contact a:hover,
.maintenance-contact a:focus-visible {
  color: #F4F1E8;
  text-decoration: underline;
}

.maintenance-contact a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.2rem;
}

.maintenance-footer {
  width: 100%;
  margin-bottom: calc(0rem - var(--maintenance-page-space));
  padding: 0.85rem 1rem;
  background: #D8FF3E;
  color: #090C16;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Preserve the footer's visual treatment until the legal-owner link is used. */
.maintenance-footer-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.maintenance-footer-link:hover,
.maintenance-footer-link:focus-visible {
  text-decoration: underline;
}

.maintenance-footer-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.2rem;
}

/* ==========================================================================
   Height-constrained layout state
   ========================================================================== */

/* JavaScript enables this state when equal vertical tracks no longer fit. */
.maintenance-page.is-compressed {
  grid-template-rows: auto auto minmax(min-content, 1fr);
}

.maintenance-page.is-compressed .maintenance-brand {
  height: var(--maintenance-logo-min-size);
}

/* Keyboard navigation and narrow-screen spacing. */
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .5rem .75rem; background: var(--color-brand-neutral); color: var(--color-brand-secondary); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 640px) {
  .maintenance-page { padding-inline: 1.25rem; }
  .maintenance-lower { width: calc(100% + 2.5rem); margin-inline: -1.25rem; }
  .maintenance-contact { width: calc(100% - 2.5rem); letter-spacing: 0; }
  .maintenance-contact-links { font-size: .8rem; }
  .maintenance-content { padding-block: 1.5rem; }
  .maintenance-eyebrow { font-size: .7rem; letter-spacing: .1em; }
  .maintenance-title { letter-spacing: -.035em; }
  .maintenance-brand-link { max-height: 14rem; }
}



/* Keep the service identity inside the flexible brand row on short screens. */
.maintenance-brand-link { text-decoration: none; color: var(--service-highlight); }
.maintenance-logo { height: calc(100% - 2rem); }
.maintenance-service { display: block; font-family: var(--font-highlight); font-size: .75rem; font-weight: 700; line-height: 1.25rem; letter-spacing: .12em; text-align: center; text-transform: uppercase; }

:root { --service-highlight: #D8FF3E; }


