/* Wander Way Tours & Travels LLP - styles
   Fonts live in /fonts. Brand colours: --bg (blue), --pink, --white. */

@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/josefin-sans-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/josefin-sans-600.woff2') format('woff2');
}

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

@font-face {
  font-family: 'Kaushan Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/kaushan-script-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-500-italic.woff2') format('woff2');
}


/* ================================
   Root Variables
   ================================ */

:root {
  --ink: #2B1B7A;
  --bg: #3D2B9B;
  --pink: #E0098A;
  --white: #fff;
}


/* ================================
   Base Styles
   ================================ */

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

body {
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
  font-family: 'Josefin Sans',
    'Trebuchet MS',
    'Segoe UI',
    sans-serif;
}


/* ================================
   Main Stage
   ================================ */

#stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh; /* iPhone: ignores the browser toolbars so the logo is truly centred */
  box-sizing: border-box;
  padding: 56px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/* ================================
   Loader
   ================================ */

#loader {
  position: relative;
  width: min(88vw, 780px);
  transition: width 1.1s cubic-bezier(.7, 0, .2, 1);
}

.ready #loader {
  width: min(64vw, 300px);
}

/* canvas that draws the pink W behind the plane (works on iPhone too) */
#ink {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#loader svg {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}


/* ================================
   Logo Colours
   ================================ */

.pink {
  fill: var(--pink);
}

.l {
  fill: var(--white);
}


/* ================================
   Plane Animation
   ================================ */

#plane {
  opacity: 0;
  transition: opacity .35s;
}

#plane.flying path {
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3;
  stroke-linejoin: round;
}


/* ================================
   Coming Soon Page
   ================================ */

#content {
  width: min(94vw, 1080px);
  box-sizing: border-box;
  text-align: center;

  max-height: 0;
  opacity: 0;
  overflow: hidden;

  transform: translateY(16px);

  transition:
    max-height 1.1s ease .3s,
    opacity .9s ease .6s,
    transform .9s ease .6s;
}

.ready #content {
  max-height: 1200px;
  opacity: 1;
  transform: none;
}


/* ================================
   Heading
   ================================ */

h1 {
  margin: 52px 0 22px;
  font-weight: 700;
  font-size: clamp(46px, 9vw, 88px);
  line-height: 1.1;
}

h1 span {
  display: inline-block;
  margin-left: .1em;

  font-family: 'Kaushan Script', cursive;
  font-weight: 400;
  font-size: 1.18em;

  color: var(--pink);
}


/* ================================
   Lead Text
   ================================ */

.lead {
  margin: 0 auto 52px;
  max-width: 700px;
  margin-top: 4rem;
  font-size: clamp(18px, 2.5vw, 21px);
  line-height: 1.8;

  color: rgba(255, 255, 255, .86);
}


/* ================================
   Action Buttons
   ================================ */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 24px;
  padding: 6px 10px 30px;

  filter: drop-shadow(
    0 12px 20px rgba(16, 8, 72, .4)
  );
}


/* ================================
   Boarding Pass Style Tickets
   ================================ */

.btn {
  --n: 10px;
  --x: 83px;

  display: flex;
  align-items: stretch;

  min-height: 86px;

  border-radius: 18px;

  background: #fff;
  color: var(--ink);

  text-decoration: none;
  text-align: left;

  -webkit-mask:
    radial-gradient(
      circle var(--n) at var(--x) 0,
      #0000 calc(var(--n) - .5px),
      #000 var(--n)
    )
    top / 100% 51% no-repeat,

    radial-gradient(
      circle var(--n) at var(--x) 100%,
      #0000 calc(var(--n) - .5px),
      #000 var(--n)
    )
    bottom / 100% 51% no-repeat;

  mask:
    radial-gradient(
      circle var(--n) at var(--x) 0,
      #0000 calc(var(--n) - .5px),
      #000 var(--n)
    )
    top / 100% 51% no-repeat,

    radial-gradient(
      circle var(--n) at var(--x) 100%,
      #0000 calc(var(--n) - .5px),
      #000 var(--n)
    )
    bottom / 100% 51% no-repeat;

  transition: transform .25s ease;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn:focus-visible {
  outline: none;

  box-shadow:
    inset 0 0 0 3px var(--pink);
}


/* ================================
   Ticket Stub
   ================================ */

.stub {
  flex: none;
  width: 84px;
  box-sizing: border-box;

  display: grid;
  place-items: center;

  border-right: 2px dashed rgba(61, 43, 155, .3);
}


/* ================================
   Icon
   ================================ */

.ic {
  width: 46px;
  height: 46px;

  border-radius: 50%;

  background: var(--pink);

  display: grid;
  place-items: center;

  transition: transform .25s ease;
}

.btn:hover .ic {
  transform: rotate(-10deg) scale(1.06);
}

.ic svg {
  width: 22px;
  height: 22px;

  fill: #fff;
}


/* ================================
   Ticket Text
   ================================ */

.tx {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 16px 28px 16px 22px;
}

.tx small {
  margin-bottom: 5px;

  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;

  color: var(--pink);
}

.tx b {
  font-size: clamp(19px, 4.2vw, 22px);
  font-weight: 700;
  white-space: nowrap;
}


/* ================================
   Footer
   ================================ */

.foot {
  margin: 30px 0 0;
  padding-bottom: 10px;

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  font-size: clamp(12px, 2.4vw, 15px);

  color: rgba(255, 255, 255, .72);
}

.foot::before {
  content: "";

  display: block;

  width: 56px;
  height: 2px;

  margin: 0 auto 20px;

  border-radius: 2px;

  background: var(--pink);
}


/* ================================
   Background Artwork
   ================================ */

svg.bgart {
  position: fixed;
  top: 0;
  left: 0;
  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 0;

  opacity: 0;
  pointer-events: none;

  transition: opacity 1.6s ease .6s;
}

.ready svg.bgart {
  opacity: 1;
}


/* ================================
   Mobile Responsive
   ================================ */

@media (max-width: 600px) {

  #stage {
    padding: 40px 20px;
  }

  .actions {
    gap: 18px;
  }

  .btn {
    flex: 1 1 100%;

    --x: 71px;

    min-height: 80px;
  }

  .stub {
    width: 72px;
  }

  .ic {
    width: 42px;
    height: 42px;
  }

  .tx {
    padding: 14px 14px 14px 18px;
  }

  .tx b {
    font-size: clamp(15px, 4.4vw, 19px);
    overflow-wrap: anywhere;
  }

  h1 {
    margin-top: 44px;
  }

  .lead {
    margin-bottom: 44px;
  }

  .ready #loader {
    width: 60vw;
  }
}