html {
  background-color: #e6e6e6;
  color: #393936;
  font-family: "Comfortaa", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  min-height: 100%;
  scroll-behavior: smooth;
}

/* Disable smooth scrolling when users have prefers-reduced-motion enabled */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  margin: 0;
  min-width: 600px;
  overflow-x: hidden;
  padding: 0;
  position: relative;
}

header {
  backdrop-filter: blur(2px);
  background: linear-gradient(10deg, #dad9cc22, #eee2);
  box-shadow: 0 1px 4px 0 #4442, 0 3px 6px 0 #3333;
  display: flex;
  flex-flow: row nowrap;
  font-size: 18px;
  gap: 30px;
  justify-content: center;
  padding: 15px 25px;
}

a,
a:visited {
  color: #686354;
  text-decoration: none;
  transition: color 250ms;
}
a:hover,
a:focus,
a:active {
  color: #88794d;
  outline: 0;
}
a:focus {
  outline: thin dotted;
}

.dancing-script {
  font-family: "Rosarivo", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
}

blockquote {
  border-left: 3px solid #676767;
  color: #676767;
  font-family: "Rosarivo", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: italic;
  margin: 30px 40px;
  padding-left: 15px;
}

.hover-underline-animation {
  display: inline-block;
  position: relative;
}

.hover-underline-animation::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #88794d;
  transform-origin: bottom right;
  transition: transform 250ms ease-out;
}

.hover-underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

h1 {
  font-size: 60px;
  margin: 40px 0 30px;
  text-align: center;
}

h2 {
  font-size: 36px;
  margin: 40px 0 20px;
  text-align: center;
}

h3 {
  font-size: 24px;
  font-weight: 500;
  margin: 10px 0;
}

.main {
  margin: 0 auto;
  max-width: 930px;
  padding: 0 15px;
}

@property --image-gradient-1 {
  syntax: "<color>";
  initial-value: #eee2;
  inherits: false;
}

@property --image-gradient-2 {
  syntax: "<color>";
  initial-value: #fafafa22;
  inherits: false;
}

.feature-image,
.portfolio-image {
  background: linear-gradient(
    10deg,
    var(--image-gradient-1),
    var(--image-gradient-2)
  );
  backdrop-filter: blur(1px);
  border-radius: 8px;
  box-shadow: 0 1px 4px 0 #4442, 0 3px 6px 0 #3333;
  margin: 15px 0;
  max-width: 900px;
  padding: 15px;
  text-align: center;
  transition: box-shadow 250ms, --image-gradient-1 250ms,
    --image-gradient-2 250ms;
}

.feature-image img {
  display: block;
  width: 900px;
  max-width: 100%;
}

.portfolio-images {
  display: flex;
  flex-flow: row wrap;
  gap: 20px;
  justify-content: center;
}

.portfolio-image {
  cursor: pointer;
  max-width: 210px;
}

.portfolio-image:hover {
  --image-gradient-1: #ddd4;
  --image-gradient-2: #eee4;
  box-shadow: 0 1px 5px 0 #4443, 0 3px 8px 0 #3335;
}

.portfolio-image:active {
  --image-gradient-1: #ccc4;
  --image-gradient-2: #ddd4;
}

.portfolio-image img {
  display: block;
  max-width: 180px;
}

dialog {
  background-color: transparent;
  border: 0 none;
  max-height: 90%;
  max-width: 90%;
  opacity: 0;
  padding: 0;
  transition: display 250ms ease-out allow-discrete, opacity 250ms,
    overlay 250ms ease-out allow-discrete;
}

dialog[open] {
  opacity: 1;
}

@starting-style {
  dialog[open] {
    opacity: 0;
  }
}

dialog:focus {
  outline: none;
}

dialog::backdrop {
  background-color: rgb(0 0 0 / 0%);
  transition: background-color 250ms, display 250ms ease-out allow-discrete,
    overlay 250ms ease-out allow-discrete;
}

dialog[open]::backdrop {
  background-color: rgb(0 0 0 / 40%);
  cursor: pointer;
}

@starting-style {
  dialog[open]::backdrop {
    background-color: rgb(0 0 0 / 0%);
  }
}

dialog .feature-image {
  margin: 0;
  max-width: 930px;
}

dialog .feature-image img {
  width: 900px;
}

.modal-open,
.modal-open body {
  overflow: hidden;
}

footer {
  color: #676767;
  font-size: 14px;
  margin: 50px;
  text-align: center;
}

footer a {
  padding-bottom: 5px;
}
