/* Volo coming-soon page. Colours, type and the sky are the v3 site's own tokens
   (volo-marketing-site-design, src/styles/tokens.css); fonts are its self-hosted files. */

@font-face {
  font-family: 'Gabarito';
  src: url('/fonts/gabarito-wght.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-wght.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FFFAF1;
  --ink: #111111;
  --signal: #FF4F3D;
  --air: #7ED6FF;
  --sky-zenith: color-mix(in srgb, var(--air) 44%, var(--paper));
  --sky-high: color-mix(in srgb, var(--air) 32%, var(--paper));
  --sky-mid: color-mix(in srgb, var(--air) 14%, var(--paper));
  --font-display: 'Gabarito', Arial, sans-serif;
  --font-body: 'Instrument Sans', Arial, sans-serif;
  --type-display: clamp(3rem, 2.333rem + 3.333vw, 5rem);
  --type-lead: clamp(1.125rem, 1.042rem + 0.417vw, 1.375rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --tilt-mark: -.75deg;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem / 1.5 var(--font-body);
}

/* The sky opens from the top of the page and settles into Paper, as on the v3 homepage. */
.sky {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 100%;
  background:
    linear-gradient(90deg, rgb(255 250 241 / 0.6), rgb(255 250 241 / 0) 60%),
    linear-gradient(180deg, var(--sky-zenith) 0%, var(--sky-high) 30%, var(--sky-mid) 62%, var(--paper) 100%);
}

.masthead {
  padding: clamp(1.25rem, 1rem + 1.25vw, 2rem) var(--gutter) 0;
}

.home {
  display: inline-block;
  color: inherit;
  border-radius: 8px;
}

.wordmark {
  display: block;
  width: clamp(6rem, 5.146rem + 4.271vw, 8.5625rem);
  height: auto;
}

.intro {
  align-self: center;
  width: 100%;
  max-width: 46rem;
  padding: clamp(3rem, 2rem + 5vw, 6rem) var(--gutter);
}

.eyebrow {
  margin: 0 0 1.25rem;
  font: 700 0.75rem / 1.4 var(--font-body);
  letter-spacing: .075em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font: 600 var(--type-display) / 1.04 var(--font-display);
  letter-spacing: -.04em;
}

.line {
  display: block;
}

.ribbon {
  position: relative;
  display: inline-block;
  isolation: isolate;
  margin-inline-start: 0.035em;
  font-style: normal;
  color: var(--paper);
}

.ribbon::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0.16em -0.1em 0.015em;
  background: var(--signal);
  transform: rotate(var(--tilt-mark));
}

.lead {
  max-width: 30rem;
  margin: 1.5rem 0 0;
  font-size: var(--type-lead);
  line-height: 1.45;
}

.follow {
  margin-top: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
}

.follow h2 {
  margin: 0 0 0.75rem;
  font: 700 0.875rem / 1.4 var(--font-body);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 0 -0.625rem;
  padding: 0;
  list-style: none;
}

.socials a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: var(--ink);
  transition: background-color 150ms ease;
}

.socials a:hover {
  background: rgb(17 17 17 / 0.07);
}

/* Platform marks are Simple Icons files drawn as masks, so they take the text colour. */
.mark {
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.back {
  color: inherit;
  font-weight: 600;
  text-decoration: underline 0.08em;
  text-underline-offset: 0.2em;
}

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

.legal {
  padding: 1.5rem var(--gutter) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.legal p {
  max-width: 46rem;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .socials a {
    transition: none;
  }
}

@media (forced-colors: active) {
  .ribbon {
    color: CanvasText;
    text-decoration: underline 0.045em;
    text-underline-offset: 0.1em;
  }

  .ribbon::before {
    background: Canvas;
  }

  .mark {
    background: CanvasText;
  }
}
