/*=====HERE BE DRAGONS.....=====*/
/*===NORMALIZE BROWSER-STYLED ELEMENTS===*/
body {
    height:100vh;
    width: 100%;
    overflow: hidden;
    margin:0;
    padding:0;
    border:0px;
    box-sizing: border-box;
}
div{
    box-sizing: border-box;
    scrollbar-color: rgb(from var(--color-blue) r g b / 0.5) rgb(from var(--color-blue-dark) r g b / 0.5);
    scrollbar-width: thin;
}

::selection {
	  background-color: transparent;
    color: inherit;
}
code::selection {
	  background-color: rgb(from var(--color-blue) r g b / 0.8);
    color: inherit;
}
input[type="file"] {
    opacity:0;
    position:absolute;
    width: 100%;
    height: 100%;
    cursor:pointer;
}
button {
    color:inherit;
    border: none;
    box-sizing: content-box;
    padding: 0;
    background:none;
}

a {
  text-decoration: none;
  color: rgb(from var(--color-blue) r g b / 1);
  background-color: rgb(from var(--color-blue-dark) r g b / 0.5);
}
a:hover {
  color: rgb(from var(--color-orange) r g b / 1)
}


/* button styling from https://github.com/necolas/normalize.css*/
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
h3 {
  margin:0px;
  text-align: left;
  font-family: 'librefranklin';
  transform: scaleX(140%);
  transform-origin: left;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: -0.1ch;
  font-size: 1.5em;
}
h4 {
  margin:0px;
  text-align: left;
  font-family: 'librefranklin';
  transform: scaleX(130%);
  transform-origin: left;
  font-weight: 500;
  font-size: 1.3em;
}
h5 {
  margin:0px;
  font-family: 'librefranklin';
  transform: scaleX(130%);
  transform-origin: left;
  font-size: 1.2em;
  margin-bottom: 0.4ch;
  opacity: 1;
  color: rgb(from var(--color-orange) r g b / 1)
}
h6 {
  font-family: 'librefranklin';
  font-size: 1.1em;
  font-style: italic;
  font-weight: 600;
  margin:0px;
  padding:0px;
}



/*====OK NOW GO====*/
div {
  box-sizing: border-box;
}
:root {
  --color-red: rgb(255, 0, 0);
  --color-red-dark: rgb(18, 0, 0);
  --color-blue: rgb(69, 111, 186);
  --color-blue-light: rgb(111, 149, 214);
  --color-blue-dark: rgb(8, 12, 19);
  --color-cream: rgb(240, 220, 209); 
  --color-orange: rgb(242, 173, 125); 
  --color-amber: rgb(243, 172, 72);
  --color-green: rgb(59, 133, 80);

  --text-light: var(--color-cream);
  --text-accent: var(--color-amber);

  --main-content-padding: 3vh;

  /* it's not fun to get lost */
  --z-low: 10;
  --z-mid: 20;
  --z-front: 30;
  --z-top: 999;

  /*parallax*/
  --p-0: 0.08;
  --p-1: 0.05;
  --p-2: 0.005;
}
html {
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
}
body {
    margin:0px;
    image-rendering: pixelated;
    font-family: 'martianmono';
    display:flex;
    background-color: var(--color-blue-dark);
    color: var(--text-light);
    align-content: center;
    text-align: left;
    justify-content: center;
    height:100%;
    margin:0px;
}

#background-sky {
    --multX: var(--p-0);
    --multY: var(--p-0);
    --scale: 1.1;
    background: url(/_assets/image/home/citysky.png);
    background-repeat: repeat;
    background-size: cover;
    z-index: -1;
}
#background-city {
    --multX: var(--p-1);
    --multY: var(--p-1);
    --scale: 1.1;
    background: url(/_assets/image/home/citysmoothc.png);
    background-repeat: repeat;
    background-size: cover;
    z-index: -1;
}
#background-tree {
    --multX: var(--p-2);
    --multY: var(--p-2);
    --scale: 2;
    background: url(/_assets/image/home/citytree.png);
    background-repeat: repeat;
    background-size: cover;
    z-index: -1;
}

#site {
  display: flex;
  flex-direction: row;
  width:100%;
  max-width: 100%;
  justify-content: center;
}

#main-content {
  position:relative;
  width:50%;
  max-width: 50%;
  overflow: hidden;
}
#main-content-inner {
  height:100%;
  width:100%;
  overflow: auto;
  padding:var(--main-content-padding);
  margin-top: 1ch;
  overflow-x: hidden;
  font-size: 0.9em;
}

.sidebar {
  padding:1.4em;
  text-align: left;
  overflow:visible;
  display: block;
  background-color: rgb(from var(--color-blue-dark) r g b / 0.4);
  position:relative;
  max-width:15%;
  pointer-events: auto;
  container-type: normal;
}
.sidebar .header {
  padding-bottom: 0.5ch;
}

.nav-link {
  padding-top: 1ch;
  color: var(--color-orange);
  transition: transform 0.05s ease-out;
  transform-origin: left;
}
.nav-link a {
  color:inherit;
  background: none;
}
.nav-link:hover {
  cursor: pointer;
  color: var(--color-blue);
  transform: scaleX(1.5);
}

#socials {
  margin-bottom: var(--main-content-padding);
  bottom:0px;
  padding-top: 1.5ch;
  width:100%;
  max-width: 100%;
  display: flex; 
  align-content: left;
  text-align: left;
  gap: 1em;
  flex-wrap: wrap;
  image-rendering: optimizeQuality;
}
.socials-link {
  aspect-ratio: 1 / 1;
  width: 3em;
  transform-origin: center;
  opacity: 0.5;
  filter: sepia(1) brightness(0.9) saturate(2) hue-rotate(-8deg);
  mix-blend-mode: vivid-light;
  transition: 0.1s all ease-out
}
.socials-link .thumbnail{
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.socials-link:hover{
  opacity: 1;
  scale:1.1;
  filter: sepia(1) brightness(0.9) saturate(2) hue-rotate(-190deg);
}

.blurb {
  font-family: 'librefranklin';
  font-size: 1.1em;
  max-height: 50vh;
  white-space: pre-wrap;
  overflow: auto;
  position:relative;
}

atrium-epoch {
  position:absolute;
  text-align: right;
  padding-top: var(--main-content-padding);
  padding-right:var(--main-content-padding);
  right:0px;
  color:var(--text-accent);
  font-family: 'adder';
  z-index: var(--z-top);
}
.gallery-controls{
  padding-top: var(--main-content-padding);
  padding-left:var(--main-content-padding);
  text-transform: uppercase;
  color:var(--text-accent);
  font-size: 2rem;
}
.gallery-controls a {
  display: inline-block;
  color: inherit;
  background: none;
}
.gallery-controls a.inactive {
  pointer-events: none;
  opacity: 0.4;
}
.gallery-controls a, .gallery-controls div {
  transition: transform 0.05s ease-out;
}
.gallery-controls a:hover, .gallery-controls div:hover {
  cursor: pointer;
  color: var(--color-blue);
  transform: scaleX(1.5);
}
#main-content-inner > .gallery-controls {
  position:absolute;
  text-align: left;
  left:0px;
  top: -0.5ch;
  z-index: var(--z-front); 
}
.back-button::before{
  content:'↩' /*⮌←*/
}
.prev-button::before{
  content:'⇐'
}
.next-button::before{
  content:'⇒'
}
.prev-project-button::before{
  content:'←'
}
.next-project-button::before{
  content:'→'
}



/*====UTILITY====*/
.content{
    height:100%;
    width: 80dvw;
    margin:auto;
    margin:0px;
}

.background {
  position:fixed;
  height: 100%;
  width: 100%;
  top:0px;
  opacity: 1;
  background-size: cover;
  background-position: center;
  image-rendering:pixelated;
}

.thumbnail {
  aspect-ratio: 1/1;
  background-size: cover;
  image-rendering: auto;
}

.minor {
  opacity: 0.95;
  font-size: 1em;
}

.tiny {
  font-size: 0.8em;
  opacity: 0.8;
}

.glass {
  border-right: 1px rgba(255, 255, 255, 0.113) solid;
  border-left: 1px rgba(71, 71, 71, 0.113) solid;
  box-shadow: inset -10px 0px 20px -10px #8484c337, inset 10px 0px 20px -10px #53537c37;
}
.glass::before{
  grid-column: 2;
  content:'';
  left:0px;
  top:0px;
  width:100%;
  height:100%;
  position:absolute;
  mask-mode: luminance;
  mask-image: url(/_assets/image/home/glassmask3.png);
  mask-size: cover;
  background-size: cover;
  backdrop-filter: blur(0.8vw);
  background-color: rgba(0, 0, 0, 0.13);
  z-index: -1;
}
.dark.glass {
  border-right: 1px rgba(71, 71, 71, 0.113) solid;
  border-left: 1px rgba(71, 71, 71, 0.113) solid;
  box-shadow: inset -10px 0px 20px -10px #53537c37, inset 10px 0px 20px -10px #53537c37;
}
body.low-performance .glass::before{
  backdrop-filter: none !important;
  background-color: rgb(from var(--color-blue-dark) r g b / 0.4)
}
.glass::after {
    content:'';
  left:0px;
  top:0px;
  width:100%;
  height:100%;
    position:absolute;
  background-color: rgb(from var(--color-blue-dark) r g b / 0.1);
  z-index: -1;
}
.glass-inset {
  background-color: rgb(from var(--color-blue-dark) r g b / 0.2);
  border-radius: 0.5ch;
  padding: 2%;
  box-shadow: inset -1px 1px 3px 3px rgb(from var(--color-blue-dark) r g b / var(--shadow-opacity));
}



/*====PAGES====*/
/*===GALLERY/INDEX PAGE===*/
.project-type {
  --thumb-width: 22%;
  max-width: 100%;
  width: 100%;
  overflow: visible;
  margin-top: 1ch;
}
.project-type ul {
  --shadow-opacity: 0.3;
  background-color: rgb(from var(--color-blue-dark) r g b / 0.3);
  margin-top: -1ch;
  overflow: visible;
  height:100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.project-link {
  overflow: visible;
  height:100%;
  width: var(--thumb-width);
  margin: 1%;
  position:relative
}
/* weird but it's ok */
.project-link.wide {
  width: 100%;
  display: flex;
  flex-direction: row;
  opacity: 1;
}
.project-link.wide:hover{
  opacity: 1;
}
.project-link.wide::after{
  display: none;
}
.project-link.wide a {
  min-width: 22%;
}
.project-link a {
  background: none;
}

.project-preview-description {
  padding:1ch;
  color: rgb(from var(--text-light) r g b / 0.9);
  background-color: rgb(from var(--color-blue-dark) r g b / 0.3);
  border-radius: 2% 2%;
}
.project-preview-description h5{
  cursor: pointer;
}
.project-preview-description h5:hover{
  color: var(--color-blue)
}
.project-preview-description .minor{
  text-shadow: 1px 1px 0px black;
}

.constructed {
  margin:auto;
  width: 100%;
  opacity: 0.05;
  position: absolute;
  bottom: var(--main-content-padding);
  transition: opacity 5s ease;
}
.constructed img {
  margin: auto;
  height: 8ch;
  image-rendering: auto;
}
.constructed:hover{
  opacity: 1;
}

.sel.thumbnail {
  color: rgb(from var(--color-blue) r g b / 0.3);
  --shadow-color: #07070fab;
  cursor: pointer;
  opacity: 0.8;
  box-shadow: -10px 0px 20px 2px var(--shadow-color);
  border-radius: 2%;
  transition: all 0.1s ease-out;
}
.sel.thumbnail:hover {
  opacity: 1;
  scale: 1.03;
}
.sel.thumbnail.active {
  --shadow-color: rgb(from var(--color-blue) r g b / 0.2);
  scale: 1.04;
  opacity: 1;
  z-index: var(--z-front);
  border: currentColor 2px solid;
}


/*===PROJECT PAGES===*/
.project-gallery {
  display: flex;
  --shadow-opacity: 0.3;
  flex-direction: column-reverse;
  height:80%;
  width: 100%;
}
.gallery-thumbnails {
  margin-top: 1%;
  padding: 1%;
  width:100%;
  height: 15%;
  display:flex;
  gap: 1%;
}
.gallery-thumbnails .thumbnail{
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-sizing: border-box;
  image-rendering: auto;
}
.gallery-image {
  cursor: pointer;
  image-rendering: auto;
  height: 80%;
  width: 100%;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.project-title {
    margin-top: 1ch;
}
.project-title .year{
  opacity: 0.5;
  font-weight: 500;
  font-size: 0.8em;
}

.project-content {
    --shadow-opacity: 0.3;
  background: rgb(from var(--color-blue-dark) r g b / 0.3);;
}

.big-image-container {
  background-color: rgb(from var(--color-blue-dark) r g b / 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-top);
  left:0px;
  right:0px;
  top:0px;
  bottom:0px;
  position:fixed;
}
.big-image-container .gallery-controls{
  display: flex;
  justify-content: center;
  position: absolute;
  top: 1ch;
  width: 100%;
  text-align: center;
}
.gallery-controls .back-button{
  position:relative;
  padding-left: 0;
  width: fit-content;
}


/*===BUTTONS PAGE===*/
.button-box{
  display: flex;
  flex-direction:row;
  width: 100%;
  align-items: center;
  padding: 1ch;
  gap: 5px;
  --shadow-opacity: 0.2;
  margin-bottom: 1ch;
  flex-wrap: wrap;
}
.button-box a{
  opacity: 0.8;
  transition: 0.1s all ease-out
}
.button-box a:hover {
  opacity: 1;
  scale: 1.03
}
.button-embed{
  display: block;
}
.button-box.rainy{
  gap: 5%;
  margin-top: -1ch;
}
.button-box.rainy a {
  opacity: 1;
}


/* CUSTOM ELEMENTS ETC */
tool-tip {
    position:fixed;
    z-index: var(--z-top);
    pointer-events: none;
    transition: all 250ms;
}
tool-tip[text=''] {
  opacity: 0;
}

atrium-weather{
    opacity:0.5;
    --multX: 0.2;
    --multY: 0.2;
    --scale: 1.1;
    pointer-events: none;
}

/* investigate: corru rain texture is placeholder, replace it*/
.rain{
    animation: rainpacity 20s linear infinite alternate;
    z-index: -1;
}
.rain::after {
    content: "";
    width: calc(100% + 800px);
    height: calc(100% + 800px);
    position: absolute;
    background: url('/_assets/image/texture/rain.gif');
    bottom: 0;
    left: 0;
    animation: rain 400ms steps(20) infinite;
}

atrium-hover-text{
  display:grid;
  justify-content: space-between;
  cursor:default;
}
atrium-hover-text span{
    font-size: 100%;
}
atrium-hover-text.rainyatrium{
    transform: scaleY(70%);
    color:var(--text-accent);
    font-family: 'adder';
    font-size: 2.5cqw;
    text-align: left;
    cursor:pointer;
    font-weight: 1000;
}
.rainyatrium .hover-text-letter{
  transition: all 0.1s;
}
.rainyatrium .hover-text-letter:hover{
      font-stretch: ultra-expanded;
      color: var(--color-blue);
}

/* AMIMATIONS */
@keyframes rain {
    0% {
        transform: translate(0, 0)
    }

    100% {
        transform: translate(-800px, 800px)
    }
}
@keyframes rainpacity {
    0% { 
        opacity: 0.2;
    }

    50% {
        opacity: 0.75;
    }

    100% { 
        opacity: 0.35;
    }
}    


/* SWUP TRANSITIONS */
html.is-changing .transition-fade {
  transition: opacity 0.25s;
  opacity: 1;
}       
html.is-animating .transition-fade {
  opacity: 0;       
}

.hamburga{
  display: none;
}

/* tall */
@media (max-aspect-ratio: 16/12){
  #site {
    width:100%;
    max-width: 100%;
  }
  #main-content {
    width:100%;
    max-width: 100%;
  }
  .sidebar {
    max-width: 25%;
  }
}

/* mobile */
@media (max-aspect-ratio: 16/20){
  #site {
    width:100%;
    max-width: 100%;
  }
  #main-content {
    width:100%;
    max-width: 100%;
  }
  #main-content-inner {
    margin-top: 2ch;
  }
  .sidebar{
    position: fixed;
    top:0px;
    bottom:0px;
    left:0px;
    right:0px;
    max-width: 100%;
    padding: 5%;
    z-index: var(--z-top);
    background-color: rgb(from var(--color-blue-dark) r g b / 0.9);
  }
  .back-button {
    font-size: 3rem;
    padding-left: 1%;
  }
  .gallery-controls > a , .gallery-controls > div {
    font-size: 3rem 
  }
  .big-image-container .gallery-controls {
    justify-content: left;
    text-align: left;
      top: 0ch;
  }
  atrium-hover-text {
    margin-top: 4ch;
  }
  .hover-text-letter{
    font-size: 15vw !important;
  }

  .prev-project-button {
    display: none;
  }
  .next-project-button {
    display: none;
  }
  /* standardize floaty elements (epoch, back, hamburga, etc) investigate 11/5/2026 */
  .hamburga {
    display: block;
    position:absolute;
    text-align: right;
    padding-top: 0;
    padding-right: 1%;
    right:0px;
    color:var(--text-accent);
    font-family: 'adder';
    z-index: var(--z-top);
    font-size: 3rem;
    cursor: pointer;
  }
  .hamburga::before{
    content:'☰'
  }
  atrium-epoch {
    padding-right: calc(var(--main-content-padding) * 2.5)
  }

  .project-type {
    --thumb-width: 48%   
  }


}
