@layer reset, defaults, screen, view, component, overrides;


/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* Global CSS Vars */
:root {
  /* https://www.benjaminmoore.com/en-us/paint-colors/mid-century-modern */
  --alibaster: #f2efe8;
  --alibaster-01: #f2efe8b0;
  --rockport-gray: #a8a295;
  --terra-cotta-tile: #a14c3e;
  --wales-gray: #b9c5c3;
  --wales-gray-01: #a9b5b3;
  --wenge: #3c2d2b;
  --wenge-dark: #2c1d12;
  --wenge-dark-01: #2c1d12d8;
  --text-dark: #000000c0;
}


/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* Transitions for switching app views */

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* Reset Layer */
@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    min-width: 0;
    padding: 0;
  }

  html {
    color: var(--text-dark);
    font-size: calc(100% / 16 * 10);
    font-smooth: always;
    font-synthesis: none;
    height: 100%;
    line-height: 1.5;
    text-size-adjust: none;
    -moz-osx-font-smoothing: auto;
    -moz-text-size-adjust: none;
    -webkit-font-smoothing: subpixel-antialiased;
    -webkit-text-size-adjust: none;
  }

  body {
    accent-color: var(--text-dark);
    height: 100%;
    background: white;
    overscroll-behavior: none;
  }

  p {
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    text-wrap: balance;
  }

  strong {
    overflow-wrap: break-word;
  }

  img, picture, video, canvas, svg, iframe {
    display: block;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  ul, ol {
    list-style: none;
  }

  *:focus:not(:is(input, textarea)) {
    outline: none;
  }

  *:focus-visible {
    outline: 1px solid blue;
  }

}


/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* Component Layer */
@layer component {

  /* CSS for app-view.js -------------------------------------------------------------------------------------------- */
  #app-body {
    container-type: inline-size;
    flex: 1;
    overflow-y: hidden;
    view-transition-name: app-view-body;
  }

  #app-header {
    align-items: center;
    background-color: var(--wenge);
    color: var(--alibaster);
    display: flex;
    fill: var(--alibaster);
    font-size: 2rem;
    gap: 1rem;
    padding: 1rem;
    visibility: hidden;
  }

  #app-header > .svg-icon {
    width: 2.6rem;
  }
  
  #app-view {
    background-image: url("../../assets/images/background.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    container-name: app-view;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    justify-self: center;
    overflow: hidden;
    width: min(1000px, 100vw);
  }

  #app-view > nav {
    background-color: var(--wenge);
    border-top: 1px solid #ffffff60;
    color: var(--alibaster);
    display: flex;
    font-size: 1.6rem;
    justify-content: space-around;
  }

  #app-view > nav > a {
    align-items: center;
    border: 1px solid;
    border-color: #ffffff30 #000000 #000000 #ffffff30;
    display: flex;
    fill: var(--alibaster);
    flex: 1;
    flex-direction: column;
    padding: 1rem 0;
  }
  #app-view > nav > a:hover {
    background-color: var(--wenge-dark);
  }

  #app-view > nav .svg-icon {
    width: 2.2rem;
  }

  @keyframes spinner {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  /* CSS for home-view.js (initial view)----------------------------------------------------------------------------- */
  #home-view {
    align-items: center;
    container-type: inline-size;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3cqh;
    justify-content: center;    
    margin-top: 3cqh;  
  }

  #home-view > img {
    aspect-ratio: 648 / 716;
    box-shadow: 0px 0px 8px 5px #000000a0, 0px 0px 12px 12px #ffffff50;
    border-radius: 0.8rem;
    width: clamp(20rem, 26vw, 24rem);
  }

  #home-view > .hdg-1 {
    color: var(--alibaster);
    font-size: clamp(3.2rem, 6cqi, 4.8rem);
    text-shadow: 4px 4px 8px #000000;
    font-weight: 600;
  }

  #home-view > .times {
    background-color: var(--terra-cotta-tile);
    border: 1px solid var(--alibaster);
    border-radius: 0.8rem;
    box-shadow: 2px 2px 4px #000000a0;
    color: var(--alibaster-01);
    display: flex;
    font-size: 1.6rem;
    gap: clamp(4rem, 10vw, 12rem);
    justify-content: space-between;
    padding: 0.8rem 1.6rem;
  }

  #home-view p {
    font-size: 2.2rem;
  }
}


/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* Defaults Layer */
@layer defaults {
  body {
    background-color: var(--rockport-gray);
    container-name: app-body;
    container-type: size;
    overflow: hidden;
    user-select: none;
  }

  div, section {
    scrollbar-width: thin;
  }
}


/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* Overrides Layer */
@layer overrides {
  .md {
    font-size: 1.6rem;
  }

  .md a {
    color: var(--terra-cotta-tile);
  }

  .md blockquote {
    background: #f9f9f9;
    border-left: 10px solid var(--wales-gray);
    margin: 1.5em 10px;
    padding: 0.5em 10px;
  }

  .md h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 1.2rem 0 0.4rem;
  }

  .md h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 1.2rem 0 0.4rem;
  }

  .md img {
    width: 100%;
  }

  .md img[alt*="icon"] {
    width: 3rem;
  }

  .md ol {
    list-style: auto;
    margin-left: 3rem;
  }

  .md ul {
    list-style: disc;
    margin-left: 3rem;
  }

}


