/*! HTML5 Boilerplate v9.0.1 | 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
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  background-color: oklch(0.759 0.053 255.686);
  height: 100%;
}

html, body {
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: stretch;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  font-style: normal;
}
body {
  background-color: white;
  /*flex: 1 0 0;*/
  /*overflow: auto;*/
}

.atkinson-hyperlegible-regular {
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.atkinson-hyperlegible-bold {
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.atkinson-hyperlegible-regular-italic {
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.atkinson-hyperlegible-bold-italic {
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.header {
  width: 100%;
  background-color: oklch(0.759 0.053 255.686);
}

.header, nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

footer {
  padding: 1rem 2rem;
  text-align: center;
  background-color: oklch(0.759 0.053 255.686);
  /*background-color: oklch(0.556 0.052 232.551 / 0.5);*/
}

.br-8 {
  border-radius: 8px;
}

.overflow-hidden {
  overflow: hidden;
}

nav > ul {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  margin-left: 0;
  /*margin-block-start: 0;*/
  /*margin-block-end: 0;*/
  padding-inline-start: 0;
}

.images > img {
  max-width: 12rem;
}
nav > ul > li {
  padding: 2rem 3rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /*background-color: oklch(0.628 0.257 29.184 / 0.8);*/
  font-weight: 600;
  color: oklch(0 0 0 / 0.8);
  position: relative;
  .header-text {
    z-index: 2;
  }
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  &:nth-child(1)::after {
    background-color: oklch(0.628 0.257 29.184 / 0.8);
  }
  &:nth-child(2)::after {
    background-color: oklch(0.697 0.203 43.7 / 0.8);
    /*background-color: oklch(0.665 0.314 322.763 / 0.8);*/
  }
  &:nth-child(3)::after {
    background-color: oklch(0.951 0.204 107.322 / 0.8);
  }
  &:nth-child(4)::after {
    background-color: oklch(0.872 0.288 141.164 / 0.8);
  }
  &:nth-child(5)::after {
    background-color: oklch(0.678 0.18 247.352 / 0.8);
  }
  &:nth-child(6)::after {
    background-color: oklch(0.598 0.301 310.743 / 0.8);
  }
  &:hover {
    /*background-color: oklch(0.951 0.204 107.322 / 0.3);*/
    /*filter: brightness(50%);*/
    color: oklch(1 0 89.876 / .8);
    filter: brightness(120%);
    &::after {
      filter: blur(2px) brightness(10%);
    }
  }
  &:not(:first-child) {
    /*border-left: 1px solid rgba(0, 0, 0, 0.15);*/
  }
}

main {
  align-self: stretch;
  flex: 1 0 auto;
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: flex-start;
  /*background-color: oklch(0.2 0.02 252.463);*/
  background-color: oklch(0.8 0.02 252.463 / 0.5);
  .content-wrapper {
    width: 100%;
    margin: 0 auto;
    flex: 1 0 auto;
    max-width: 90vw;
    @media (min-width: 1920px) {
      max-width: 1920px;
    }

    > .container {
      background-color: oklch(0.95 0 89.876);
      margin: 4rem;
      flex: 1 0 auto;
      min-height: 200px;
      display: flex;
      padding: 1rem 3rem;

      flex-flow: row wrap;
      align-items: flex-start;
      justify-content: center;

      .title {
        font-size: 2rem;
        /*font-size: 1.75rem;*/
        display: inline;
      }
      .subtitle {
        font-size: 1rem;
        font-style: italic;
        display: block;
        flex: 0 0 100%;
        text-align: center;
        vertical-align: top;
        margin-bottom: 1rem;
      }
      .description {

        font-size: 1rem;
      }
    }
  }
}

/* Taken from:
https://github.com/material-components/material-web/blob/123c1e01af1ef71dbd0597c1372af17aa0ad0c0e/elevation/lib/_elevation.scss
*/

.box-shadow-z1 {
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
}

.box-shadow-z2 {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.3);
}

.box-shadow-z3 {
  box-shadow: 0 11px 7px 0 rgba(0, 0, 0, 0.19), 0 13px 25px 0 rgba(0, 0, 0, 0.3);
}

.box-shadow-z4 {
  box-shadow: 0 14px 12px 0 rgba(0, 0, 0, 0.17), 0 20px 40px 0 rgba(0, 0, 0, 0.3);
}

.box-shadow-z5 {
  box-shadow: 0 17px 17px 0 rgba(0, 0, 0, 0.15), 0 27px 55px 0 rgba(0, 0, 0, 0.3);
}

.flex {
  display: flex;
}

* {
  box-sizing: border-box;
}

/*
 * 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;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

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

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

