/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

/**
 * @license
 * MyFonts Webfont Build ID 3867246, 2020-12-16T11:57:38-0500
 *
 * The fonts listed in this notice are subject to the End User License
 * Agreement(s) entered into by the website owner. All other parties are
 * explicitly restricted from using the Licensed Webfonts(s).
 *
 * You may obtain a valid license at the URLs below.
 *
 * Webfont: Neue Helvetica Pro 45 Light by Linotype
 * URL: https://www.myfonts.com/collections/linotype-foundry

 * © 2025 MyFonts Inc. */



 @font-face {
  font-family: "NeueHelveticaPro45Light";
  src: url('../fonts/NeueHelveticaPro45Light/font.woff2') format('woff2'),
  url('../fonts/NeueHelveticaPro45Light/font.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

:root {
  --color-primary: rgba(118, 62, 220, 1);
  --color-secondary: rgba(150, 108, 226, 1);

  --font-family: "NeueHelveticaPro45Light", Arial, Helvetica, sans-serif;
  --font-size-1: 1rem;
  @media (min-width: 800px) {
  --font-size-1: 1.75rem;
  }
}

body {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: var(--font-size-1);
  margin: 0;
  padding: 0;
  background-color: var(--color-primary);
  color: white;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  hyphens: auto;
  &:last-child {
    margin-bottom: 0;
  }
}

.highlight {
  color: var(--color-primary);
}

.lead {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead__inner {
  max-width: 100%;
  padding: 6rem 2rem;
  @media (min-width: 800px) {
    max-width: 65%;
    padding: 0;
  }
  @media (min-width: 1800px) {
    max-width: 40%;
    padding: 0;
  }
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem;
  z-index: 500;
}

.header.cloak {
  .header__logo {
    opacity: 0;
  }
}

.header__logo {
  display: grid;
  grid-template-rows: 1fr auto;
}

.logo__elements {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.logo__element {
  height: 41px;
  width: auto;
}

.logo__subtitle {
  display: none;
  width: 100%;
  padding: 1rem 0 0 0;
  margin: 0 auto;
  height: auto;
}

.header.transition.transition--in {
  background-color: var(--color-primary);
  height: 100%;

  .header__logo {
    height: 100%;
  }

  .logo__element {
    height: 100%;
  }

  .logo__subtitle {
    opacity: 1;
    display: block;
  }
}

.header.transition.transition--out {
  transition: background-color 1s ease-in-out;
  background-color: transparent;
  height: 100%;

  .header__logo {
    height: 100%;
  }

  .logo__element {
    transition: height 1s ease-in-out;
    height: 41px;
  }

  .logo__subtitle {
    transition: opacity 1s ease-in-out;
    opacity: 0;
    display: block;
  }
}

@media (max-aspect-ratio: 1.54) {

  .header.transition.transition--in {
    padding-top: var(--logo-offset-top,0);

    .header__logo {
      height: auto;
    }

    .logo__element {
      height: auto;
      transition: width 1s ease-in-out;
    }

    .logo__element--plus {
      width: 53.61%;
    }

    .logo__element--h {
      width: 41.84%;
    }
  }


  .header.transition.transition--out {

    transition: padding-top 1s ease-in-out, background-color 1s ease-in-out;
    padding-top: 1rem;

    .header__logo {
      height: auto;
    }

    .logo__element {
      height: auto;
      transition: width 1s ease-in-out;
    }

    .logo__element--plus {
      width: 41px;
    }

    .logo__element--h {
      width: 32px;
    }

    .logo__subtitle {
      position: absolute;
      top: calc(var(--logo-subtitle-top, 0)); /* 1rem is the padding of the header, top relative to the viewport */
      width: calc(100% - 2rem);
      left: 0;
      right: 0;
      opacity: 0;
    }
  }
}

.main {
  display: grid;
  min-height: 100vh;
  grid-template-rows: 60% 20% 20%;
  @media (min-width: 800px) {
    grid-template-rows: 60% 40%;
    grid-template-columns: 1fr 1fr;
  }
}

.lead {
  padding: 3rem 0;
  @media (min-width: 800px) {
    grid-column: 1 / 3;
  }
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  @media (min-width: 800px) {
    padding: 3rem;
  }

  &:hover {
    background-color: var(--color-secondary);
  }

  svg {
    display: block;
    max-width: 70%;
    height: auto;
    @media (min-width: 800px) {
      width: auto;
      height: auto;
    }
  }
}
