/* Skillaware farewell page. Colours and type taken from the Webflow site (see the project README, section "Farewell page"). */

@font-face { font-family: Barlow; src: url(Barlow-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url(Barlow-Medium.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: Barlow; src: url(Barlow-ExtraBold.woff) format("woff"); font-weight: 800; font-display: swap; }

:root {
  --deep-aqua: #007298;
  --deep-aqua-dark: #00587a;
  --jellyfish: #28bfed;
  --cadmium: #fa8a1a;
  --cadmium-glow: #f5aa60;
  --mango-orange: #d97614;
  --white: #fff;
  --edge: 20px;
}

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

html { min-height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  background: linear-gradient(180deg, var(--deep-aqua) 0%, var(--deep-aqua-dark) 100%);
  color: var(--white);
  font-family: Barlow, sans-serif;
  font-size: 1.25rem;
  line-height: 1.4;
}

.page {
  width: 100%;
  max-width: 44rem;
  margin: auto;
  padding: clamp(2rem, 5vh, 4rem) 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lang {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  gap: .25rem;
}

.lang[hidden] { display: none; }

.lang button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 .5rem;
  border: 1px solid transparent;
  border-radius: var(--edge);
  background: none;
  color: var(--white);
  font: 500 1rem Barlow, sans-serif;
  cursor: pointer;
  transition: background-color .2s ease;
}

.lang button:hover { background: rgb(255 255 255 / .14); }
.lang button:focus-visible { outline: 3px solid var(--white); outline-offset: 1px; }
.lang button[aria-pressed="true"] { border-color: var(--white); }

.logo {
  width: clamp(9rem, 26vw, 12rem);
  height: auto;
  margin-bottom: clamp(2rem, 6vh, 3.5rem);
}

.eyebrow {
  margin: 0 0 .5rem;
  color: var(--cadmium-glow);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.25px;
  text-wrap: balance;
}

/* Skilly: transparent loop built by scripts/build-skilly-loop.py from a generated clip.
   The light disc behind it separates the blue ring from the blue page.
   Stacking inside .skilly: disc (-1) < image. */
.skilly {
  position: relative;
  isolation: isolate;
  display: block;
  width: clamp(15rem, 52vw, 21rem);
  aspect-ratio: 1;
  margin: clamp(1.5rem, 4vh, 2.5rem) 0 clamp(1.25rem, 3vh, 2rem);
}

.skilly::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 48.7%;
  top: 51.7%;
  width: 91%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / .16);
  transform: translate(-50%, -50%);
}

.skilly img {
  display: block;
  width: 100%;
  height: auto;
}

.next {
  margin: 0;
  max-width: 34rem;
  text-wrap: balance;
}

.next--strong {
  margin-top: 1.25rem;
  font-weight: 500;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding: .75rem 2rem;
  border-radius: var(--edge);
  background: linear-gradient(90deg, var(--cadmium), var(--cadmium-glow));
  box-shadow: 0 8px 24px rgb(0 0 0 / .18);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgb(0 0 0 / .24); }
.button:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.button-arrow {
  width: 1.5rem;
  height: .75rem;
  transition: transform .2s ease;
}

.button:hover .button-arrow { transform: translateX(4px); }

/* Without motion the <picture> shows a still frame; only the small transitions are left to calm down. */
@media (prefers-reduced-motion: reduce) {
  .button, .button-arrow, .lang button { transition: none; }
}
