/* Collabear teaser page: one screen, the koala and "Coming soon".
   The colours are the bead colours of the Collabear koala: indigo and orange. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('outfit-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;
}

:root {
  --paper: #f9fafe;
  --ink: #1b1c34;
  --muted: #57596f;
  --bead: #533afd;
  --bead-ink: #ffffff;
  --accent: #f9a870;
  --accent-ink: #1b1c34;
  --gutter: clamp(1rem, 5vw, 3rem);
  --measure: 36rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #18183a;
    --ink: #edeef7;
    --muted: #a7a9be;
    --bead: #767dff;
    --bead-ink: #0f1030;
    --accent: #f9a870;
    --accent-ink: #1b1c34;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  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-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--bead);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

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

.top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  width: 2.25rem;
  height: 2.25rem;
}

.wordmark {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wordmark .ear {
  color: var(--bead);
}

/* ---- hero ------------------------------------------------------------------------------ */

.hero {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem) var(--gutter) clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
  }
}

h1 {
  font-size: clamp(2.75rem, 6.4vw, 5.5rem);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
  hyphens: manual;
}

.lead {
  margin-top: 1.75rem;
  max-width: var(--measure);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  font-size: 1.375rem;
  font-weight: 600;
}

.bead {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent);
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: min(40rem, 62svh);
  aspect-ratio: 1;
  justify-self: center;
}

#koala {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.foot {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1rem var(--gutter) 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
