html {
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

article, aside, footer, header, nav, section {
  display: block;
}

h1 {
  margin: 0.67em 0;
  font-size: 1.75rem;
  padding: 0 calc(100vw - 1275px);
}

@media only screen and (max-width: 1200px) {
  h1 {
    padding: 0 5vw;
  }
}

@media only screen and (max-width: 900px) {
  h1 {
    padding: 0;
  }
}

.title {
  text-decoration: none;
  color: inherit;
}

.title:hover {
  color: inherit;
  font-style: normal;
}

figcaption, figure, main {
  display: block;
}

figure {
  margin: 1em 40px;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

b, strong {
  font-weight: inherit;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

dfn {
  font-style: italic;
}

mark {
  background-color: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

audio, video {
  display: inline-block;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

img {
  border-style: none;
}

svg:not(:root) {
  overflow: hidden;
}

button, input, optgroup, select, textarea {
  font-family: sans-serif;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, input {
  overflow: visible;
}

button, select {
  text-transform: none;
}

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

button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  display: inline-block;
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type=checkbox], [type=radio] {
  box-sizing: border-box;
  padding: 0;
}

[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button {
  height: auto;
}

[type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details, menu {
  display: block;
}

summary {
  display: list-item;
}

canvas {
  display: inline-block;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@font-face {
  font-family: "Source Code Pro";
  src: url(/fonts/source_code_pro/SourceCodePro-VariableFont_wght.ttf) format("truetype");
  font-display: swap;
}

body {
  background-color: #252133;
  background-image: url("../assets/dark-stripes.png") !important;
  color: #f3e8e9;
  animation: fade-in 1.5s;
  font-family: "Source Code Pro";
  font-weight: 500;
  font-size: 15px;
  text-transform: lowercase;
  line-height: 1.5;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
}

@media only screen and (max-width: 900px) {
  h1, h2, h3, p, blockquote, cite {
    text-align: left;
  }
}

h2 {
  font-size: 1.25rem;
  margin-top: -20px;
  padding-top: 20px;
  scroll-margin-top: 121px;
}

#testimonial {
  scroll-margin-top: 151px;
}

#about,
#gallery,
#services,
#projects {
  scroll-margin-top: 151px;
}

cite {
  display: block;
  margin-bottom: 30px;
  color: #e2a6c6;
}

blockquote {
  margin-left: 20px;
}

#testimonials {
  margin-top: 10px;
}

.mini-testimonials-carousel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.5rem;
}

.mini-testimonial-arrows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-testimonial-arrow {
  border: solid #99b1d3 2px;
  background: transparent;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-testimonial-arrow:hover,
.mini-testimonial-arrow:focus-visible {
  border-color: #f3e8e9;
}

.mini-testimonial-arrow img {
  width: 18px;
  height: 18px;
  filter: invert(74%) sepia(8%) saturate(606%) hue-rotate(176deg) brightness(88%) contrast(90%);
}

.mini-testimonial-arrow:hover img,
.mini-testimonial-arrow:focus-visible img {
  filter: invert(94%) sepia(14%) saturate(138%) hue-rotate(290deg) brightness(107%) contrast(92%);
}

.mini-testimonial-next img {
  transform: rotate(180deg);
}

.mini-testimonial-slide blockquote {
  margin: 0 0 12px;
}

.mini-testimonial-slide cite {
  margin-bottom: 0;
}

.mini-testimonial-dots {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.mini-testimonial-counter {
  display: none;
  color: #99b1d3;
  font-size: 0.95rem;
  min-width: 2.5ch;
  text-align: center;
}

.mini-testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: solid #99b1d3 1px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.mini-testimonial-dot.is-active {
  background: #99b1d3;
}

.mini-testimonial-dot:hover,
.mini-testimonial-dot:focus-visible {
  border-color: #f3e8e9;
}

a {
  color: #f3e8e9;
}

cite a {
  color: #e2a6c6;
}

a:hover {
  color: #99b1d3;
  font-style: italic;
}

header nav a.is-active {
  color: #99b1d3;
  font-style: italic;
  text-decoration: none;
}

header, main, footer {
  overflow: hidden;
  width: 85vw;
  min-width: 350px;
  max-width: 900px;
  margin: 0 auto;
}

header {
  width: 100vw;
  max-width: 100vw;
  position: sticky;
  z-index: 5;
  top: 0;
  background-color: #252133;
  background-image: url("../assets/dark-stripes.png") !important;
  padding-top: 10px;
}

nav {
  padding: 0 calc(100vw - 1275px);
}

.alt-socials {
  padding: 10px calc(100vw - 1275px) 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alt-social {
  width: 28px;
  height: 28px;
  border: solid #99b1d3 1px;
  background: rgba(37, 33, 51, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}

.alt-social:hover,
.alt-social:focus-visible {
  border-color: #B57E9B;
}

.alt-social img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: invert(1);
}

@media only screen and (max-width: 1200px) {
  nav {
    padding: 0 5vw;
  }

  .alt-socials {
    padding: 10px 5vw 0;
  }
}

@media only screen and (max-width: 900px) {
  header {
    width: 85vw;
    max-width: 85vw;
  }

  nav {
    padding: 0;
  }

  .alt-socials {
    padding: 10px 0 0;
  }
}

footer {
  margin-bottom: 30px;
}

hr {
  border: solid #84A59D 2px;
  margin: 30px 0;
}

hr.accent {
  border-color: #B57E9B;
}

hr.blue {
  border-color: #99b1d3;
}

hr.blue-dash {
  border: dashed #99b1d3 2px;
}

header hr {
  margin-bottom: 0;
}

main {
  margin-top: 30px;
}

hr.highlight {
  border: solid #B57E9B 3px;
  margin-top: -28px;
  margin-bottom: 30px;
}

.basic-info {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  align-items: center;
}

.basic-info p {
  text-align: left;
}

.basic-info .item {
  color: #99b1d3;
}

body:has(header .title:hover) .basic-info .name,
body:has(header .title:focus-visible) .basic-info .name {
  background: linear-gradient(120deg, #B57E9B 0%, #B57E9B 100%);
  background-repeat: no-repeat;
  background-size: 110% 18%;
  background-position: 0 95%;
}

.basic-info .headshot-link {
  display: inline-block;
  border: solid rgba(153, 177, 211, 0.4) 4px;
  max-width: 100%;
}

.basic-info .headshot {
  display: block;
  width: auto;
  max-height: 80px;
}

@media only screen and (max-width: 900px) {
  .basic-info .headshot, .basic-info .headshot-link {
    display: none;
  }
}

.basic-info .headshot-pixel-wrapper {
  z-index: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.basic-info .headshot-pixel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.mini-gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 4px 16px;
}

.mini-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.5rem;
}

.mini-gallery-dots {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.mini-gallery-counter {
  display: none;
  color: #99b1d3;
  font-size: 0.95rem;
  min-width: 2.5ch;
  text-align: center;
}

.mini-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: solid #99b1d3 1px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.mini-gallery-dot.is-active {
  background: #99b1d3;
}

.mini-gallery-dot:hover,
.mini-gallery-dot:focus-visible {
  border-color: #f3e8e9;
}

.mini-gallery-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-gallery-card {
  border: solid rgba(153, 177, 211, 0.45) 2px;
  background: rgba(25, 27, 28, 0.4);
  padding: 10px 14px;
}

.mini-gallery-preview-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(60vh, 560px);
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top left;
  image-rendering: pixelated;
  border: solid rgba(153, 177, 211, 0.35) 1px;
  background: rgba(0, 0, 0, 0.2);
}

.mini-gallery-preview-images {
  display: flex;
  align-items: stretch;
  gap: 6px;
  aspect-ratio: 16/9;
}

.mini-gallery-preview-images.multiple .mini-gallery-preview-image {
  aspect-ratio: auto;
  object-fit: contain;
}

.mini-gallery-preview-images.multiple {
  align-items: center;
}

.mini-gallery-image-link {
  display: block;
  flex: 1 1 0;
  min-width: 0;
}

.mini-gallery-preview-caption {
  margin-top: 8px;
  margin-bottom: 0;
  line-height: 1.4;
}

.mini-gallery-preview-title {
  display: block;
  margin-bottom: 8px;
}

.mini-gallery-preview-meta {
  display: block;
}

.mini-gallery-preview-meta:empty {
  display: none;
}

.mini-gallery-link {
  display: inline-block;
  color: #99b1d3;
}

.mini-gallery-site-link {
  display: block;
}

.mini-gallery-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.mini-gallery-project-link {
  position: relative;
  padding-right: 18px;
}

.mini-gallery-project-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background-image: url("/assets/icons/arrow-down.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.mini-gallery-next img {
  transform: rotate(180deg);
}

.mini-gallery-hover-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 750px;
  max-width: 40vw;
  padding: 8px;
  border: solid rgba(153, 177, 211, 0.55) 2px;
  background: rgba(25, 27, 28, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 25;
  transition: opacity 0.18s ease;
  image-rendering: pixelated;
}

.mini-gallery-hover-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.mini-gallery-hover-popup-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 620px);
  object-fit: contain;
  image-rendering: pixelated;
  border: solid rgba(153, 177, 211, 0.35) 1px;
  background: rgba(0, 0, 0, 0.2);
}

.mini-gallery-hover-popup-images {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.mini-projects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-project-item {
  border: solid rgba(153, 177, 211, 0.45) 2px;
  background: rgba(25, 27, 28, 0.4);
  padding: 10px 14px;
  scroll-margin-top: 141px;
}

.mini-project-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  position: relative;
  padding-left: 28px;
  list-style: none;
}

.mini-project-item summary::-webkit-details-marker {
  display: none;
}

.mini-project-item summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("/assets/icons/arrow-down.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: none;
}

.mini-project-item[open] summary::before {
  background-image: url("/assets/icons/arrow-up.svg");
  filter: invert(74%) sepia(8%) saturate(606%) hue-rotate(176deg) brightness(88%) contrast(90%);
}

.mini-project-title {
  font-weight: 600;
}

.mini-project-link {
  color: #99b1d3;
  white-space: nowrap;
}

.mini-project-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 10px;
}

.mini-project-description {
  flex: 1;
  min-width: 0;
}

.mini-project-content p {
  margin: 0 0 10px;
}

.mini-project-image-link {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0.25rem 0 0.5rem 0;
}

.mini-project-content img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  border: solid rgba(153, 177, 211, 0.45) 2px;
  image-rendering: pixelated;
}

.mini-scroll-top {
  display: none;
}

@media only screen and (min-width: 901px) {
  .mini-scroll-top {
    position: fixed;
    right: calc((100vw - min(85vw, 900px)) / 2 - 84px);
    bottom: 24px;
    z-index: 20;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid #99b1d3 2px;
    background: #282b2c;
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mini-scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mini-scroll-top img {
    width: 18px;
    height: 18px;
    filter: invert(74%) sepia(8%) saturate(606%) hue-rotate(176deg) brightness(88%) contrast(90%);
  }
}

@media only screen and (min-width: 901px) and (max-width: 1200px) {
  .mini-gallery-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 900px) {
  header nav {
    font-size: 14px;
  }

  .mini-project-item summary {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding-left: 0;
    padding-right: 24px;
  }

  .mini-project-item summary::before {
    left: auto;
    right: 0;
  }

  .mini-project-title,
  .mini-project-link {
    display: block;
    text-align: left;
  }

  .mini-project-content {
    flex-direction: column;
    gap: 10px;
  }

  .mini-project-image-link {
    margin: 0.25rem 0 0;
  }

  .mini-project-content img {
    max-width: 100%;
  }

  .mini-testimonials-carousel {
    gap: 8px;
  }

  .mini-testimonial-dots,
  .mini-gallery-dots {
    display: none;
  }

  .mini-testimonial-counter,
  .mini-gallery-counter {
    display: block;
  }

  .mini-testimonial-controls,
  .mini-gallery-controls {
    gap: 1rem;
    justify-content: space-between;
    width: 100%;
  }

  .mini-testimonial-arrows {
    min-width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .mini-testimonial-arrow {
    width: 28px;
    height: 28px;
  }

  .mini-testimonial-arrow img {
    width: 16px;
    height: 16px;
  }

  .mini-gallery-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-gallery-hover-popup {
    display: none;
  }

  .nav-about,
  .nav-sep-about {
    display: none;
  }
}

.theme-toggle {
  width: 26px;
  height: 26px;
  border: solid #99b1d3 1px;
  background: rgba(37, 33, 51, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  vertical-align: middle;
  padding: 0;
  margin-bottom: 3px;
}

.alt-social.theme-toggle {
  width: 28px;
  height: 28px;
  margin-bottom: 0;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: #B57E9B;
}

.theme-toggle img {
  width: 15px;
  height: 15px;
}

body.light-mode {
  background-color: #f8f3ef;
  background-image: none !important;
  color: #2d2234;
}

body.light-mode header {
  background-color: #f8f3ef;
  background-image: none !important;
}

body.light-mode a {
  color: #2d2234;
}

body.light-mode a:hover,
body.light-mode header nav a.is-active {
  color: #456a93;
}

body.light-mode cite,
body.light-mode cite a {
  color: #B57E9B;
}

body.light-mode hr {
  border-color: #5e877e;
}

body.light-mode hr.accent,
body.light-mode hr.highlight {
  border-color: #B57E9B;
}

body.light-mode hr.blue,
body.light-mode hr.blue-dash {
  border-color: #456a93;
}

body.light-mode .basic-info .item,
body.light-mode .mini-gallery-link,
body.light-mode .mini-project-link,
body.light-mode .mini-testimonial-counter,
body.light-mode .mini-gallery-counter,
body.light-mode cite,
body.light-mode cite a {
  color: #2d2234;
}

body.light-mode .basic-info .headshot-link {
  border-color: rgba(69, 106, 147, 0.35);
}

body.light-mode .mini-gallery-dot,
body.light-mode .mini-testimonial-dot {
  border-color: #456a93;
}

body.light-mode .mini-gallery-dot.is-active,
body.light-mode .mini-testimonial-dot.is-active {
  background: #456a93;
}

body.light-mode .mini-gallery-card,
body.light-mode .mini-project-item {
  border-color: rgba(69, 106, 147, 0.35);
  background: rgba(255, 255, 255, 0.74);
}

body.light-mode .mini-gallery-preview-image,
body.light-mode .mini-gallery-hover-popup-image,
body.light-mode .mini-project-content img {
  border-color: rgba(69, 106, 147, 0.35);
  background: rgba(255, 255, 255, 0.9);
}

body.light-mode .mini-gallery-hover-popup {
  border-color: rgba(69, 106, 147, 0.45);
  background: rgba(255, 255, 255, 0.96);
}

body.light-mode .mini-testimonial-arrow {
  border-color: #456a93;
}

body.light-mode .mini-testimonial-arrow:hover,
body.light-mode .mini-testimonial-arrow:focus-visible {
  border-color: #8f4f71;
}

body.light-mode .mini-testimonial-arrow img,
body.light-mode .mini-scroll-top img,
body.light-mode .mini-project-item[open] summary::before {
  filter: invert(39%) sepia(14%) saturate(1211%) hue-rotate(172deg) brightness(89%) contrast(90%);
}

body.light-mode .theme-toggle {
  border-color: #8f4f71;
  background: rgba(255, 255, 255, 0.85);
}

body.light-mode .alt-social {
  border-color: #8f4f71;
  background: rgba(255, 255, 255, 0.85);
}

body.light-mode .alt-social:hover,
body.light-mode .alt-social:focus-visible {
  border-color: #456a93;
}

body.light-mode .alt-social img {
  filter: none;
}

body.light-mode .theme-toggle:hover,
body.light-mode .theme-toggle:focus-visible {
  border-color: #456a93;
}

body.light-mode .theme-toggle img {
  filter: none;
}

@media only screen and (min-width: 901px) {
  body.light-mode .mini-scroll-top {
    border-color: #456a93;
    background: rgba(255, 255, 255, 0.9);
  }
}