/* The home page's own styles - nothing else loads on it. Everything the
   page uses lives in this folder (homepage/), beside index.html.
   Colours are the Chorant palette's (brand/css/colour.css), copied here so
   the page doesn't load the whole palette. */

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

:root {
  --tahiti-ink: #221b20;
  --coral-sand: #f5e1d9;
  --indigo-sea: #394689;
  --sunlit-sand: #e4d04f;
  --indigo-quiet: #8d9cd6; /* the tagline and footer: 3.2:1 on indigo sea */
  --font-ui: 'Instrument Sans', arial, sans-serif;
}

html,
body {
  margin: 0;
}

body {
  font-family: var(--font-ui);
  color: var(--tahiti-ink);
  background: var(--indigo-sea);
  -webkit-font-smoothing: antialiased;
}

/* The holding screen fills the window, its content centred. */
.holding {
  position: relative;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  text-align: center;
}

.holding__marque {
  width: clamp(240px, 52vw, 720px);
  margin: 0;
  line-height: 0;
}

/* The mark (mark.svg, made by deck/chorant-brand-mark/build-icons.sh)
   above the wordmark, centred, up to 200 px wide (--mark, the visible
   mark, point to point). The file includes 1 X of clear space on every
   side, so it's 1.5 times the mark's width and the wordmark sits exactly
   X under it. It's the Medium version, for its largest size - only ever
   scaled down. */
.holding__mark {
  --mark: clamp(96px, 14vw, 200px);
  display: block;
  width: calc(var(--mark) * 1.5);
  height: auto;
  margin: 0 auto;
}

/* The wordmark is a window: a montage of people talking (faces.mp4, cut
   from the demo responses, each face zoomed so eyes and mouths land in the
   letters) plays behind it, masked by the traced wordmark
   (wordmark-mask.svg) so it scales as a vector, under a 50% white wash.
   White shows through until the video plays, or if it can't. */
.holding__window {
  position: relative;
  display: block;
  aspect-ratio: 2768 / 573;
  background: #fff;
  -webkit-mask: url('wordmark-mask.svg') center / 100% 100% no-repeat;
  mask: url('wordmark-mask.svg') center / 100% 100% no-repeat;
}

.holding__window::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 50%);
}

.holding__window video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The tagline (tagline.svg), solid quiet indigo - a step back from the
   wordmark. */
.holding__tagline {
  display: block;
  width: 100%;
  height: auto;
}

/* The email address bottom left, the sign-off bottom right. On narrow
   screens they stack, centred. */
.holding__foot {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--indigo-quiet);
}

.holding__foot p {
  margin: 0;
}

.holding__foot a {
  color: inherit;
  text-underline-offset: 3px;
}

.holding__foot a:hover {
  color: var(--coral-sand);
}

.holding__foot a:focus-visible {
  outline: 3px solid transparent;
  background: var(--sunlit-sand);
  color: var(--tahiti-ink);
  text-decoration: none;
}

@media (max-width: 599px) {
  .holding__foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
