/*
 * The Dorothy brand, recreated from dorothy.jpg so it renders at any shape:
 * soft white centre, turquoise light waves along the bottom and the top-right
 * corner, navy type, "Dorothy" in a teal gradient. Colours are sampled from
 * the image. Figtree (OFL, self-hosted) is the closest Google Font to its
 * rounded geometric sans.
 */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: block;
  src: url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: block;
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #1a2035;          /* "Ozz Health" and the tagline */
  --teal: #13806f;          /* the emphasised words */
  --white: #fefefe;         /* the centre */
  --edge: #d6f3f4;          /* pale cyan at the edges */
  /* "Dorothy": greener at the left, bluer teal at the right, deepening toward the baseline */
  --dorothy-across: linear-gradient(100deg, #0e7c69 0%, #0a7066 45%, #088a8b 100%);
  --dorothy-down: linear-gradient(180deg, rgba(10, 60, 52, 0) 35%, rgba(10, 60, 52, 0.5) 100%);
}

html,
body {
  margin: 0;
  height: 100%;
}

/* The background: white centre, cyan haze at the edges, the two wave layers on top. */
.brand {
  font-family: "Figtree", sans-serif;
  color: var(--navy);
  overflow: hidden;
  background-color: var(--white);
  background-image:
    url("wave-top.svg"),
    url("wave-bottom.svg"),
    radial-gradient(ellipse 72% 68% at 50% 42%, var(--white) 0%, var(--white) 40%, #ecf9fa 68%, var(--edge) 100%);
  background-repeat: no-repeat;
  background-position: top right, bottom center, center;
  background-size:
    min(80vw, 80vh) min(80vw, 80vh),
    100% min(32vh, 40vw),
    100% 100%;
  -webkit-font-smoothing: antialiased;
}

.ozz {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.dorothy {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background-image: var(--dorothy-down), var(--dorothy-across);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em; /* keep the "y" descender inside the clip */
}

.tagline {
  font-weight: 500;
  color: var(--navy);
}

.em {
  font-weight: 700;
  color: var(--teal);
}

/* Card entrances (timed by card.js): a soft rise into place. */
.appear {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.word.appear {
  display: inline-block;
  animation-duration: 0.6s;
}
.still .appear {
  animation-duration: 0s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.35em);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* The 9:16 cards: one centred column, sized to the width. */
.card {
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8vw 14vh;
}

/* Cards are recorded: hide the recorder's fake cursor. */
#__cur {
  display: none !important;
}
