/* The coming-soon page. This is ALL the styling the page has: it loads no
   other stylesheet of the site and no Bootstrap, so the folder it sits in can
   be hosted by itself. The values are the site's own (assets/css/root.css);
   if the brand colours or fonts change there, change them here too. */

:root {
  --m3d-white: #FFFFFF;
  --m3d-navy: #172033;
  --m3d-line: #DCE0E6;
  --m3d-pin: #F5C518;
  --m3d-muted: #566074;

  --m3d-font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --m3d-font-display: 'IBM Plex Sans Condensed', 'IBM Plex Sans', system-ui, Arial, sans-serif;

  --m3d-space-2: 8px;
  --m3d-space-4: 16px;
  --m3d-space-5: 24px;
  --m3d-space-6: 32px;
  --m3d-space-7: 48px;
  --m3d-space-8: 72px;

  --m3d-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --m3d-header-height: 56px;
}

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

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

body {
  margin: 0;
  font-family: var(--m3d-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--m3d-navy);
  background: var(--m3d-white);
}

/* The page fills the screen: header on top, footer at the bottom, the
   headline in the middle of what is left. */
.m3d-soon {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

/* ---------------------------------------------------------------- header */

.m3d-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  min-height: var(--m3d-header-height);
  padding: 0 var(--m3d-space-4);
  display: flex;
  align-items: center;
}

.m3d-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--m3d-space-2);
  font-weight: 600;
  font-size: 18px;
  color: var(--m3d-navy);
}

.m3d-brand img {
  width: 28px;
  height: 28px;
}

/* ------------------------------------------------------------------ main */

.m3d-soon-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--m3d-space-8) var(--m3d-space-4) var(--m3d-space-7);
  text-align: center;
}

.m3d-soon-main h1 {
  margin: 0 0 var(--m3d-space-5);
  font: 600 clamp(40px, 7.4vw, 84px)/0.98 var(--m3d-font-display);
  letter-spacing: -0.01em;
  color: var(--m3d-navy);
  text-wrap: balance;
}

/* The old way, crossed out with a marker. The line is drawn once. */
.m3d-strike {
  position: relative;
  display: inline-block;
  color: var(--m3d-muted);
  white-space: nowrap;
}

.m3d-strike::after {
  content: "";
  position: absolute;
  left: -2%;
  top: 55%;
  width: 104%;
  height: 0.11em;
  border-radius: 0.1em;
  background: var(--m3d-pin);
  transform: rotate(-1.6deg) scaleX(0);
  transform-origin: left center;
  animation: m3d-strike 0.7s var(--m3d-ease) 0.5s forwards;
}

@keyframes m3d-strike {
  to { transform: rotate(-1.6deg) scaleX(1); }
}

.m3d-soon-lead {
  margin: 0 auto var(--m3d-space-6);
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--m3d-muted);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- footer */

.m3d-footer {
  border-top: 1px solid var(--m3d-line);
  font-size: 14px;
  color: var(--m3d-muted);
}

.m3d-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--m3d-space-5) var(--m3d-space-4);
}

.m3d-footer p {
  margin: 0;
}

/* ----------------------------------------------------------- small screens */

@media (max-width: 900px) {
  .m3d-soon-main {
    padding-top: var(--m3d-space-7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .m3d-strike::after {
    animation: none;
    transform: rotate(-1.6deg) scaleX(1);
  }
}
