:root {
  --font: 'Space Grotesk', sans-serif; /*'Ubuntu', sans-serif;*/
  --name: 'Dokdo', cursive;
  --name-color: #102;
  --welcome-color: #fff;
  --welcome-bg: url('/public/img/darkpassage.png') center;
  --welcome-gradient: linear-gradient(45deg, rgba(137, 255, 127, 0.53) 0%, rgba(169, 203, 255, 0.26) 50%, rgba(255, 182, 159, 0.33) 75%, rgba(255, 228, 121, 0.45) 100%);
  --code-font: 'Ubuntu Mono', monospace;
  --font-size: 20px;
  --bg: #000 linear-gradient(to bottom, #000, 0%, #102 65%, #022 100%) fixed;
  --nav-base: linear-gradient(to left, var(--accent-one) 0%, var(--accent-two) 35%, var(--accent-three) 65%, var(--accent-four) 100%);
  --nav-bg: #000;
  --shadow: #000;
  --alt-section-old: rgba(226, 143, 229, 0.15);
  --alt-section: rgba(69, 55, 108, 0.15);
  --text: 225,225,225;
  --text-faded: #6acfbe;
  --link: #fd85f8;
  --link-hover: #65eec7;
  --contact-link: #fd85f8;
  --contact-link-hover: #4ad2ac;
  --contact: #000;
  --contact-hover: #fff;
  --accent-one: #cb3aff;
  --accent-two: #5cfbce;
  --accent-three: #ff3fcf;
  --accent-four: #caff5f;
  --strong: #dcbf84;
  --em: #ffb3da;
  --underline: #dcbf84;
  --strikethrough: #919191;
  --select-text: #000;
  --select-bg: #ceb683;
  --tile: rgb(12, 9, 15);
}

* {
  box-sizing: border-box;
}
html, body {
  font-family: var(--font);
  font-size: var(--font-size);
  background: var(--bg);
  color: rgb(var(--text));
  line-height: 1.8em;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}
::selection, *::selection {
    filter: none !important;
    background: var(--select-bg);
    color: var(--select-text);
}
*::-webkit-scrollbar {
  width: 11px;
}
* {
  scrollbar-width: thin;
}
h1, h2, h3, h4, h5, .subheader {
  font-family: var(--code-font);
  line-height: 1.2em;
}
header, h1 {
  font-size: 2.5em;
  font-weight: bold;
}
strong, b {
  color: var(--strong);
}
em {
  color: var(--em);
  padding-right: 0.15em;
}
u {
  text-decoration: none;
  border-bottom: 2px solid var(--underline);
}
s, strike, del {
  color: var(--strikethrough);
  text-decoration-thickness: 12%;
}
a {
  text-decoration: none;
  color: var(--link);
  transition: 0.3s color;
}
footer a, p a {
  background: linear-gradient(-45deg, var(--link) 0%, var(--link-hover) 100%) repeat-x center bottom;
  background-size: 100% 0.1em;
  padding: 0.1em 0.2em;
  transition: 0.3s color, 0.3s background;
}
footer a:hover, footer a:focus, p a:hover, p a:focus {
  background: linear-gradient(-45deg, var(--link) 0%, var(--link-hover) 100%) repeat-x center bottom;
  background-size: 100% 100%;
  color: var(--nav-bg);
}
a:hover, a:focus {
  color: var(--link-hover);
}
.btn-link {
  display: inline-block;
  color: var(--nav-bg);
  background: linear-gradient(-45deg, var(--accent-three) 0%, var(--accent-four) 100%);
  border-radius: 4px;
  padding: 0.5em 1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: 0.3s transform;
  margin: 0.5em;
}
.btn-link:hover, .btn-link:focus {
  color: var(--nav-bg);
  transform: scale(1.1);
}
#navbar {
  background: var(--nav-base);
  position: sticky;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  font-size: 1.4em;
  padding-bottom: 0.5vmax;
}
#navbar.home {
    position: fixed;
}
#navbar .navbar-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background: var(--nav-bg);
  margin: 0;
  align-items: center;
}
#navbar .paw {
    font-size: 1.5em;
    margin: 0 0.5em 0 0.5em;
}
#navbar .paw svg {
    fill: currentColor;
    width: 1.5em;
    height: auto;
}
#navbar .nav {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}
#navbar .nav a {
  display: flex;
  padding: 1.75vmax 2vmax;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s color, 0.3s transform;
}
#navbar .nav a span {
  padding-left: 0.5em;
}
#navbar .nav a .icon {
  color: var(--link-hover);
  transition: 0.3s color;
}
#navbar .nav a:hover .icon, #navbar .nav a:focus .icon {
  color: var(--link);
  transition: 0.3s color;
}
#navbar .nav a:focus, #navbar .nav a:hover {
  transform: scale(1.08);
}
#mobile-bg {
  background: var(--welcome-bg);
  background-size: cover;
  background-attachment: scroll;
  background-position: left 0px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  width: 100%;
}
#content {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}
#content section {
    padding: 0.5em 10vw;
}
#content section.alt,
.alt {
    background: var(--alt-section);
}
img {
    max-width: 100%;
}
.grow {
    flex-grow: 1;
}
.tags {
    display: inline-flex;
    flex-wrap: wrap;
    grid-gap: 0.5em;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.tags li, .label {
    display: inline-block;
    padding: 0.5em 1em;
    background: var(--tile);
    box-shadow: 5px 5px 0 var(--shadow);
}
#welcome-section {
  color: var(--welcome-color);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  text-align: center;
  height: 100vh;
  width: 100%;
}
#welcome-section::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background: var(--welcome-gradient);
}
#welcome-section .name {
  font-family: var(--name);
  color: var(--name-color);
  font-size: 15em;
  position: relative;
  z-index: 3;
  margin: 0 0 -5vmax 0;
  animation: fade-in-name 2s;
}
[data-name="home"] h2, #projects h2 {
    font-size: 3em;
}
.fancy {
  display: inline-block;
  background: linear-gradient(to right, var(--accent-one) 0%, var(--accent-two) 25%, var(--accent-three) 50%, var(--link-hover) 75%, var(--accent-four) 100%) repeat-x center bottom;
  background-size: 100% 5%;
  padding: 0.2em 0;
}
[data-name="home"] .fancy {
  text-transform: uppercase;
  margin: 1.5vmax auto 0.5em;
  padding: 0.2em 1em;
  font-size: 3em;
}
.date {
  font-style: italic;
  color: var(--text-faded);
  margin-top: 0;
}
#welcome-section .name::before {
  content: 'Briar';
  content: 'Briar' / '';
  position: absolute;
  color: var(--accent-one);
  z-index: -1;
  margin-left: -5px;
  margin-top: -5px;
  animation: 4s fade-text-right infinite;
}
#welcome-section .name::after {
  content: 'Briar';
  content: 'Briar' / '';
  position: absolute;
  color: var(--accent-two);
  top: 0;
  left: 0;
  z-index: -1;
  margin-left: 5px;
  margin-top: 5px;
  animation: 3s fade-text-left infinite;
}
#welcome-section .subtitle {
  font-family: var(--code-font);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  z-index: 4;
  font-weight: bold;
  font-size: 1.2em;
  animation: fade-in 2s;
}
.about {
  width: 100%;
  padding: 1vh 12vw 0;
}
.about .portrait {
  filter: drop-shadow(-2px -2px 0 var(--accent-one)) drop-shadow(2px 2px 0 var(--accent-two)) drop-shadow(-2px 2px 0 var(--accent-three)) drop-shadow(2px -2px 0 var(--accent-four));
  transition: filter 0.3s;
  max-width: 100%;
  width: 400px;
  border-radius: 100%;
  margin: 2vw 0 0 0;
  float: right;
}
.about .portrait:hover {
  filter: drop-shadow(-4px -4px 0 var(--accent-three)) drop-shadow(4px 4px 0 var(--accent-four)) drop-shadow(-4px 4px 0 var(--accent-one)) drop-shadow(4px -4px 0 var(--accent-two));
}
.about h2.fancy {
  display: block;
  margin-right: 400px;
}
#projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 3;
}
#projects .btn-link {
  font-size: 1.6rem;
}
[data-name="home"] #projects {
  max-width: 85%;
  margin: 3em auto;
  padding: calc(2vmax + 2vmax + 1.5em) 0;
}
.project-full {
  flex: 1 0 100%;
  margin: 1em;
  text-align: center;
}
.project-tile {
  width: 420px;
  max-width: 100%;
  margin: 2em 1em;
  text-align: center;
}
.project-tile a {
  background-color: var(--tile);
  display: flex;
  border-radius: 10px;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  position: relative;
  z-index: 4;
  height: 100%;
  margin: 0 20px;
  box-shadow: 5px 5px 0 var(--shadow);
  transition: color 0.3s;
}
.project-tile span {
  margin: 20px 0;
  align-self: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.project-tile span::before {
  content: '< ' / '';
  margin: 0 5px 0 10px;
}
.project-tile span::after {
  content: ' />' / '';
  margin: 0 10px 0 5px;
  white-space: nowrap;
}
.project-tile span::before, .project-tile span::after {
  opacity: 0;
  transition: 0.3s color, 0.3s opacity;
  color: var(--link);
  font-weight: bold;
  font-size: 1.5em;
}
.project-tile:hover span::before, .project-tile:hover span::after, .project-tile:focus-within span::before, .project-tile:focus-within span::after {
  opacity: 1;
}
.project-tile img.responsive {
  border-radius: 10px 10px;
  width: calc(100% - 10px);
  height: auto;
  margin: 0 auto;
  box-shadow: -4px -4px var(--accent-one), 4px 4px var(--accent-two), -4px 4px var(--accent-three), 4px -4px var(--accent-four);
  transition: box-shadow 0.3s;
  filter: drop-shadow(1px 1px 0 #000) drop-shadow(-1px 1px 0 #000) drop-shadow(1px -1px 0 #000) drop-shadow(-1px -1px 0 #000);
}
.project-tile a:hover img.responsive, .project-tile a:focus img.responsive {
  box-shadow: -10px -10px var(--accent-three), 10px 10px var(--accent-four), -10px 10px var(--accent-one), 10px -10px var(--accent-two);
}
#contact, #about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: calc(2vmax + 2vmax + 1.5em) 0;
  min-height: 100vh;
  position: relative;
  z-index: 3;
}
.contact-header {
  margin: 1em auto;
  text-align: center;
}
.contact-list {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 6em;
  padding: 0 0.5em;
  margin: 0 0 0.5em 0;
  width: 100%;
}
.contact-list li {
  margin: 2vmax;
}
.contact-list a {
  color: var(--contact);
  filter: drop-shadow(-2px -2px 0 var(--accent-one)) drop-shadow(2px 2px 0 var(--accent-two)) drop-shadow(-2px 2px 0 var(--accent-three)) drop-shadow(2px -2px 0 var(--accent-four));
  transition: filter 0.3s;
}
.contact-list a:hover, .contact-list a:focus {
  color: var(--contact-hover);
  filter: drop-shadow(-4px -4px 0 var(--accent-three)) drop-shadow(4px 4px 0 var(--accent-four)) drop-shadow(-4px 4px 0 var(--accent-one)) drop-shadow(4px -4px 0 var(--accent-two));
}
#footer {
  padding-top: 0.5vmax;
  background: linear-gradient(to right, var(--accent-one) 0%, var(--accent-two) 25%, var(--accent-three) 50%, var(--link-hover) 75%, var(--accent-four) 100%) repeat-x center bottom;
  background-size: cover;
}
#footer-content {
  background: var(--nav-bg);
  display: flex;
  padding: 1em;
  justify-content: space-between;
  align-items: center;
  height: 10vh;
}
.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.ko-fi, .glitch {
  position: relative;
}
.glitch {
  margin: -100% auto 0%;
  transform: scaleX(-1);
}
.fa-mug-hot.ko-fi::after {
  font-weight: 900;
  content: '\f004';
  font-family: 'Font Awesome 5 Pro';
  position: absolute;
  top: 45%;
  font-size: 50%;
  left: 12%;
  color: rgba(0,0,0,0);
  text-shadow: 0 0 var(--link);
  transition: 0.3s color, 0.3s text-shadow;
}
a:hover .fa-mug-hot.ko-fi::after, a:focus .fa-mug-hot.ko-fi::after {
  color: rgba(0,0,0,0.1);
  text-shadow: 0 0 var(--link-hover);
}
.fad::before, .fad::after, .fab::before, .fab::after, .fas::before, .fas::after,
.fa-solid::before, .fa-solid::after {
    transition: 0.3s color, 0.3s opacity;
}
#contact .fa-sharp-duotone, #contact .fad {
    --fa-secondary-opacity: 1;
}
#contact .fa-envelope-heart {
    --fa-secondary-color: #000;
    --fa-secondary-opacity: 1;
    --fa-primary-color: var(--contact-link);
}
a:hover #contact .fa-envelope-heart, a:focus #contact .fa-envelope-heart {
    --fa-secondary-color: #fff;
    --fa-primary-color: var(--contact-link-hover);
}
.fad.fa-mug-tea {
    --fa-secondary-color: #fff;
    --fa-primary-color: #000;
}
a:hover .fad.fa-mug-tea, a:focus .fad.fa-mug-tea {
    --fa-secondary-color: #000;
    --fa-primary-color: #fff;
}
.fad.fa-mug-tea .ko-fi {
    position: absolute;
    top: 35%;
    left: -23%;
}
.fad.fa-mug-tea .ko-fi::before {
    font-size: 0.2em;
    position: absolute;
    color: var(--contact-link);
}
a:hover .fad.fa-mug-tea .ko-fi::before, a:focus .fad.fa-mug-tea .ko-fi::before {
    color: var(--contact-link-hover);
}
.glitch::after {
  font-weight: 900;
  content: '\f578';
  font-family: 'Font Awesome 5 Pro';
  position: absolute;
  left: 0;
  top: 50%;
  /*color: rgba(0,0,0,0);
  text-shadow: 0 0 var(--link);*/
  color: var(--contact-link);
  transition: 0.3s color, 0.3s text-shadow;
}
a:hover .glitch::after, a:focus .glitch::after {
  /*color: rgba(0,0,0,0.1);
  text-shadow: 0 0 var(--link-hover);*/
  color: var(--contact-link-hover);
}
.glitch.btn::after {
  color: rgb(85, 40, 65);
  text-shadow: 0 0 transparent;
  z-index: 2;
}
a:hover .glitch.btn::after, a:focus .glitch.small::after {
  color: rgb(85, 40, 65);
  text-shadow: 0 0 transparent;
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-text-left {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-text-right {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-in-name {
  0% {
    opacity: 0;
    margin-top: 4vmax;
  }
  100% {
    opacity: 1;
  }
}

[data-type="project"] .links {
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: 2em;
  display: flex;
  flex-wrap: wrap;
  grid-gap: 0.5em;
}

.masonry-gallery {
  columns: 4 250px;
  column-gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  padding-bottom: 2vh;
}

.masonry-gallery li {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.masonry-gallery figure {
  margin: 0;
}

.masonry-gallery img {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

.masonry-gallery figcaption {
  padding: 0.5rem 0;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: none;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  padding: 3rem 5rem;

  background: rgba(0, 0, 0, 0.9);
}

.lightbox.is-open {
  display: flex;
}


/* The entire figure must fit inside the viewport */

.lightbox-figure {
  display: flex;
  flex-direction: column;

  width: auto;
  max-width: 90vw;
  max-height: 90vh;

  margin: 0;

  text-align: center;
}


/* Image takes whatever space remains after the caption */

.lightbox-figure img {
  display: block;

  width: auto;
  height: auto;

  max-width: 90vw;
  max-height: 80vh;

  object-fit: contain;

  margin: 0 auto;
}


/* Caption stays inside the figure */

.lightbox-figure figcaption {
  flex: 0 0 auto;

  margin-top: 0.75rem;
  max-height: 10vh;
  color: white;
  line-height: 1.4;

  max-width: 90vw;
  flex-grow: 1;
}
.lightbox-figure figcaption #title {
  margin: 0 0 0.5em 0;
}

/* Arrows */

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  z-index: 2;

  border: 0;
  padding: 1rem;

  background: none;
  color: white;

  font-size: 3rem;
  line-height: 1;

  cursor: pointer;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}


/* Close */

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;

  z-index: 2;

  border: 0;
  padding: 0;

  background: none;
  color: white;

  font-size: 3rem;
  line-height: 1;

  cursor: pointer;
}

#downloads :is(a:hover, a:focus, a:active) i {
	-webkit-transform: rotate(10deg) scale(1.1);
	transform: rotate(10deg) scale(1.1);
}

@media screen and (max-width: 1200px) {
  #navbar {
    font-size: 1.2em;
  }
  #welcome-section .name {
    font-size: 12em;
  }
  #welcome-section .name::before {
    margin-left: -4px;
    margin-top: -4px;
  }
  #welcome-section .name::after {
    margin-left: 4px;
    margin-top: 4px;
  }
  h2.fancy {
    font-size: 2.5em;
  }
  .contact-list {
    font-size: 5em;
  }
}
@media screen and (max-width: 1100px) {
  .about .portrait {
    float: none;
    display: block;
    margin: auto;
  }
  .about h2.fancy {
    text-align: center;
    margin: auto;
  }
}

@media screen and (max-width: 875px) {
  #welcome-section .name {
    font-size: 10em;
  }
  #welcome-section .name::before {
    margin-left: -3px;
    margin-top: -3px;
  }
  #welcome-section .name::after {
    margin-left: 3px;
    margin-top: 3px;
  }
  #welcome-section .subtitle,
  #navbar {
    font-size: 1em;
  }
  [data-name] #projects h2 {
    font-size: 2em;
  }
  .contact-list {
    font-size: 4em;
  }
}

@media screen and (max-width: 750px) {
  #welcome-section .name {
    font-size: 8em;
  }
  [data-name] #projects h2 {
    font-size: 1.5em;
  }
  .contact-list {
    font-size: 3em;
  }
  #navbar .nav a span {
    opacity: 0;
    max-height: 0;
    max-width: 0px;
    overflow: hidden;
  }
  /*#navbar .nav a:hover span, #navbar .nav a:focus span {
    opacity: 1;
    max-height: 999px;
    max-width: 1000px;
    overflow: hidden;
  }*/
  #navbar .nav li:first-child {
    order: 3;
  }
}
@media screen and (max-width: 500px) {
  #welcome-section .name {
    font-size: 5.5em;
  }
  #welcome-section .name::before {
    margin-left: -2px;
    margin-top: -2px;
  }
  #welcome-section .name::after {
    margin-left: 2px;
    margin-top: 2px;
  }
  .contact-list {
    font-size: 2.5em;
  }
  #welcome-section .subtitle{
    font-size: 0.8em;
  }
}