:root {
  --bg-primary: rgb(255, 255, 255);
  --bg-secondary: rgb(246, 246, 246);
  --text-primary: rgb(34, 34, 34);
  --text-secondary: rgba(34, 34, 34, .6);
  --link-primary: rgb(34, 34, 34);
  --link-hover: rgb(33, 34, 208);
  --border: rgba(30, 30, 30, 0.1);
  --ft-size-small: .7rem;
  --ft-size-normal: 1rem;
  --ft-size-large: 1rem;
  --ft-size-xlarge: clamp(1.5rem, 1.1053rem + 1.5789vw, 3rem);
  --ft-line-height: 1.6;
  --ft-line-height-small: 1.2;
  --ft-wt-normal: 400;
  --ft-wt-bold: 500;
  --ft-wt-bolder: 700;
  --ft-letter-spacing: -.03em;
  --ct-max-width: 1000px;
  --column-gap: 16px;
  /* font-size: clamp(1.0625rem, 0.8571rem + 0.6095vw, 1.2rem); */
  --font: "Geist", system-ui, -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif;
  --monospace: "Geist Mono", ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Mono", "Source Code Pro", "Fira Mono", "Droid Sans Mono", Consolas, "Courier New", monospace;
  font-feature-settings: 'liga', 'calt', "calt", "cv01", "cv02", "cv03", "cv04", "cv09", "liga", "ss03", "ss01", "dlig";
}

@supports (font-variation-settings: normal) {
  :root { font-family: Inter, sans-serif; }
}

body.dark-mode {
  --bg-primary: rgb(30, 30, 30);
  --bg-secondary: rgb(30, 30, 30);
  --text-primary: rgb(255, 255, 255);
  --text-secondary: rgba(255, 255, 255, .4);
  --link-primary: rgb(234, 88, 12);
  --link-hover: rgba(234, 88, 12, 0.7);
  --border: rgba(255, 255, 255, 0.2);
}

/* -- Page -- */

html, body {
  padding: 0;
  margin: 0;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  font-family: var(--font);
  font-size: var(--ft-size-normal);
  font-weight: var(--ft-wt-normal);
  line-height: var(--ft-line-height);
  color: var(--text-primary);
  animation: fadeInAnimation ease 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  display: flex;
  flex-direction: column;
/*  max-width: var(--ct-w-small);*/
  margin-left: auto;
  margin-right: auto; 
}

@keyframes fadeInAnimation {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

h1, h2, h3 {
  font-family: var(--font);
  font-size: var(--ft-size-xlarge);
  font-weight: var(--ft-wt-bolder);
  color: var(--text-primary);
  padding: 0;
  margin: 0;
}

h4 {
  font-family: var(--font);
  font-size: var(--ft-size-normal);
  font-weight: var(--ft-wt-bolder);
  color: var(--text-primary);
  padding: 0;
  margin: 0;
}

h5, h6, .text-secondary {
  font-family: var(--monospace);
  font-size: var(--ft-size-small);
  font-weight: var(--ft-wt-normal);
  letter-spacing: var(--ft-letter-spacing);
  color: var(--text-primary);
  line-height: var(--ft-line-height);
  margin: 0;
  padding: 0;
}

small {
  font-size: var(--ft-size-small);
  font-weight: var(--ft-wt-normal);
  color: var(--text-secondary);
}

h1 a {
  color: var(--text-primary);
  text-decoration: none;
}

a, .small-img {
  color: var(--link-primary);
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: .3ex;
  text-decoration-color: var(--link-primary);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:hover, .small-img:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

p {
 /* color: var(--text-primary); */
}

ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inline-list {
  margin: 1rem 0;
}

.inline-list li {
  display: inline-block;
  margin: 0;
}

.inline-list li:not(:first-child):before {
    content: " / ";
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
  max-width: 2rem;
}

img {
  max-width: 100%;
  height: auto;
}

.page {
  max-width: 1000px;
}

.container {
  margin: 0;
  /* max-width: var(--ct-w-small); */
}

section {
  /* display: flex;
  flex-direction: row;
  align-items: flex-start; */
}

.main-cont .inline-list {
	font-size: var(--ft-size-normal);
  font-weight: var(--ft-wt-normal);
}

.row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.col-20 {
  width: 20%;
  max-width: 96px;
}

.col-80 {
  max-width: 512px;
}

.col-100 {
  width: 100%;
  max-width: var(--ct-max-width);
}

.w-small {
  max-width: var(--ct-max-width);
}

.pad {
  padding-bottom: 2rem;
}

.header {
  /* padding: 1rem 0;
  margin: 1rem 3rem;
  font-size: var(--ft-size-normal);
  color: var(--text-secondary);
  z-index:100;
  align-items: center;
  background: var(--bg-primary); */
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 100;
}

.header-inner {
	background: transparent;
 	backdrop-filter: blur(10px);
}

.header h1 {
  font-size: var(--ft-size-normal);
  font-weight: var(--ft-wt-bold);
  letter-spacing: var(--ft-letter-spacing);
  display: inline;
}

nav {
  display: flex;
  align-items: center;
  font-size: var(--ft-size-normal);
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: var(--bg-primary);
}

nav a {
  padding: .3rem .5rem;
  text-decoration: none;
}

nav a:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.menu-btn {
  color: var(--text-primary);
  border: none;
  border-radius: 40px;
  font-size: var(--ft-size-large);
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-primary);
  padding: 1rem;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(134, 134, 134, 0.4);
}

.menu-btn:hover {
  transform: translateY(-3px);
  scale: 1.05;
}

.menu-btn:active {

}

/* Dropdown menu */
.dropdown {
  position: absolute;
  top: 120%;
  bottom: auto;
  left: 0;
  right: auto;
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  font-size: var(--ft-size-normal);
  color: var(--text-secondary);
}

.dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: .5rem 1rem;
  border-radius: 8px;
  margin: 0.5rem;
  text-decoration: none;
}

.dropdown a:hover {
  background: var(--bg-secondary);
  
}

.dropdown a:first-child {

}

.dropdown a:last-child {

}

.footer {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  place-items: center;
}

.footer nav {
  backdrop-filter: blur(10px);
  background: hsla(0,0%,100%,.75);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.footer a {

}

.footer a:hover {

  
}

.footer nav a[aria-current="page"] {
  background-color: var(--bg-secondary);
  border-radius: 100px;

}

.page-home {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 80vh;
}

.main {
  padding: 5vh 3rem;
}

.intro h1, .intro p {
	font-size: var(--ft-size-xlarge);
  font-weight: var(--ft-wt-bolder);
  line-height: var(--ft-line-height-small);
  margin: 0;
  display: inline;
}

.links {
  margin: 2rem 0 0;
}

.photo-feed {
	display:flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.photo-feed li {
  display: inline-block;
	
}


.photo-feed .img {
  /* aspect-ratio: 1 / 1; */
  background-color: var(--bg-secondary);
  margin: 0;
  max-width: 150px;
  height: auto;
  position: relative;
  border-radius: 4px;
}

.photo-feed img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
}

.wave {
  animation-name: wave-animation;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave-animation {
    0% { transform: rotate( 0.0deg) }
   10% { transform: rotate(14.0deg) }
   20% { transform: rotate(-8.0deg) }
   30% { transform: rotate(14.0deg) }
   40% { transform: rotate(-4.0deg) }
   50% { transform: rotate(10.0deg) }
   60% { transform: rotate( 0.0deg) }
  100% { transform: rotate( 0.0deg) }
}

/* -- Music -- */

.music {

  margin: 0;
}

.music-content {
  min-height: 100%;
  display: grid;
  flex-direction: row;
  justify-content: space-between;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 3rem;
  grid-row-gap: 3rem;
}

.release {
  flex-grow: 1;
  flex-basis: 0;
  /* display: flex;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 1rem;
  grid-row-gap: 3rem; */
  margin-bottom: 3rem;
}

.release small {
  font-size: var(--ft-size-small);
}

.release h2 {
  margin: 1rem 0 0;
}

.release img {
  border-radius: 4px;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}
.img {
  border-radius: 4px;
  display: block;
} 

.release .listen {
  margin-top: .5rem;
  font-size: var(--ft-size-normal)
}

@media (max-width: 575.98px) {
  .music-content {
    grid-template-columns: repeat(1, 1fr);
   }
   .release .info {
     margin-top: 1rem;
     margin-bottom: 4rem;
   }
   .release img {
     max-width: 300px;
   }
}

@media (max-width: 768.98px) and (min-width: 576px) {
  .music-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) and (min-width: 768px) {
  .music-content {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* -- Photos -- */


.photos {
  /* margin: 0 auto; */
}

.year {
  padding: 2rem 0;
}

.grid-container {
  display: grid;
  grid-gap: 24px;
  margin: 0 0 2rem;
}

@media (max-width: 575.98px) {
  .photos, .grid-container {
    grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 768.98px) and (min-width: 576px) {
  .photos, .grid-container {
    grid-template-columns: repeat(2, 1fr);
   }

}

@media (max-width: 991.98px) and (min-width: 768px) {
  .photos, .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .photos, .grid-container {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1200px) {
  .photos, .grid-container {
    grid-template-columns: repeat(6, 1fr);
  }
}

.fig {
  aspect-ratio: 1 / 1;
  /* background-color: var(--bg-secondary); */
  margin: 0;
  height: auto;
  position: relative;
  border-radius: 8px;
}

.fig img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
  cursor: zoom-in;
  border-radius: 4px;
}
.fig img:hover {

}

.overlay {
  background: var(--bg-primary);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  display: none;
  animation: fadeInAnimation ease-in-out .3s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.lightbox-img {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  height: auto;
  width: auto;
  max-height: 70%;
  max-width: 90%;
  border-radius: 4px;
}

.caption {
  position: fixed;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 7vh;
}

.cap {
  position: fixed;
  bottom: 5vh;
  transform: translate(-50%, -50%);
  left: 50%;
  font-size: var(--ft-size-normal);
  width: 100%;
}

.prev, .next {
  cursor: pointer;
  width: 32px;
  height: 32px;
  text-align: center;
  /* border: 1px solid var(--border); */
  line-height: var(--ft-line-height-small);
  border-radius: 100px;
  top: 48%;
  z-index: 3000;
}

.prev, .next {
  /* position: fixed; */
  /* transform: translate(-50%, -50%);
  left: 50%;
  top: 5vh; */
  cursor: pointer;
  /* border: 1px solid var(--border); */
  line-height: 32px;
  border-radius: 100px;
  font-size: var(--ft-size-small);
  text-decoration: none;
  padding: 0 8px;
  display: inline-block;
}

.prev:hover, .next:hover {
  border: 1px solid var(--link-hover);
  background-color: var(--link-hover);
  color: var(--bg-primary);
}

.prev {
  margin-right: 2rem;
}
.next {
  margin-left: 2rem;
}

/* -- Log -- */

.page-log .items {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr 3fr;
  grid-auto-columns: 1fr;
  align-items: start;
  margin: 2rem 0;
}

.logdate {
	float: inline-start;
	padding: 0;
	margin: 0 .3rem 0 0;
  font-size: var(--ft-size-normal)
}

.log-feed, .photo-feed {
  margin: 1rem 0;
}

.page-log .post a {
  padding: .5rem 8px;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  gap: 16px;
}
.page-log .logtitle {
  overflow-x: hidden;
  flex: 0 0 75%;
}

.post .l-col {
  flex: 0 0 calc(12.5% - var(--column-gap));
}

.post .date {
  font-family: var(--monospace);
  font-size: var(--ft-size-small);
}

.page-log a:hover {
  background: var(--bg-secondary)
}

.page-log .post p {
	padding: 0;
	margin: 0;
  /* display: inline; */
}

.posts {
	margin: 1rem 0;
}

.small-img {
  max-width: 100px;
  height: auto;
  cursor: pointer;
}

.img-container {
  /* position: relative; */
  display: inline-block;
 
}

/* .large-img {
  position: absolute;
  display: none;
  width: 300px;
  height: auto;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

.large-img {
  display: none;
  position: absolute;
  width: 300px;
  height: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease-in-out;
  z-index: 1000;
}

.small-img:hover + .large-img {
  opacity: 1;
  z-index: 1000;
}

.page-log .tags li {
}

.page-log .tag, .log-feed .tag {
  color: var(--text-secondary);
  font-family: var(--monospace);
  font-size: var(--ft-size-small);
  /* text-transform: capitalize; */
}

.hover-content-container {
  position: relative;
}

.hover-image {
  display: none;
  position: absolute;
  width: 200px;
  height: auto;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease-in-out;
  z-index: 1000;
}

.hover-trigger:hover + .hover-image {
  display: block;
  opacity: 1;
}

.bullet {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
}

/*.dark-mode .page-log .tag {
  color: rgb(30, 30, 30);
}

*/

.reading {
  /* background-color: rgb(255, 232, 193); */
  background-color: #FF6B6B;
}

.playing {
  /* background-color: rgb(255, 196, 239); */
  background-color: #4ecd97;
}

.listening {
  /* background-color: rgb(192, 255, 207); */
  background-color: #128ca7;
}

.bookmark {
  background-color: #c95be5;
}

.watching {
  background-color: #FFEAA7;
}

.flex {
  display: flex
}

.combined-feed img {
	max-width: 100px;
	height: auto;
}

/* -- Screen sizes -- */

@media screen and (max-width: 821px) {
  small, .small {
    font-size: var(--ft-size-small);
  }
}

@media screen and (max-width: 768) {
  small, .small {
    font-size: var(--ft-size-small);
  }


}

@media screen and (max-width: 576px) {
  
  .page-home {
    align-items: flex-start
  }

  .main {
    padding: 5vh 2rem;
  }
  
  .header {
    top: auto;
    left: auto;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
  }
  
  .dropdown {
    top: auto;
    bottom: 120%;
    left: auto;
    right: 0;
    z-index: 1000;
  }
  
  .music {
    max-width: 100vw;
    flex-direction: column;
  }

  
  h5, h6 {
    margin-bottom: 1rem;
  }
  
  .row {
    display: block;
  }
  
  .col-20 {
    width: 100%;
    display: block;
    max-width: 100%;
  }
  
  .col-80 {
    width: 100%;
    max-width: 100%;
  }
  
  .col-100 {
    width: 100%;
  }
  
  .page-log .post a {
    padding: .5rem 0px;
    margin: 0;
    display: block;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    gap: 16px;
  }

  
  .page-log .logtitle {
    overflow-x: hidden;
    flex: 0 0 100%;
    display: block;
  }
  
  .post .l-col {
    flex: 0 0 calc(50% - var(--column-gap));
    display: inline-flex;
    margin-right: var(--column-gap)
  }

  .release {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 2rem; 
  }

  .lightbox-img {
    max-width: 90%;
    max-height: 60%;
  }

  small, .small {
    font-size: var(--ft-size-small);
  }

  .cap {
    width: 100%;
  }

}