:root {
  color-scheme: dark;
  color: #f3e6d0;
  background: #171519;
  font-family: Georgia, serif;
}

body { margin: 0; }

.portrait {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(15rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 6vw, 6rem);
  max-width: 92rem;
  margin-inline: auto;
}

.site-name {
  color: #d9af74;
  font: 700 .8rem system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 1rem 0;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: .95;
}

.caption {
  max-width: 26ch;
  color: #d3c1ad;
  font-size: 1.15rem;
  line-height: 1.6;
}

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: .5rem;
}

@media (max-width: 64rem) {
  .portrait { grid-template-columns: 1fr; }
}

.contact {
  align-self: start;
  padding: 1.25rem;
  border: 1px solid #685749;
  border-radius: .5rem;
}

.contact h2 { font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 400; margin-top: 0; }
.contact form, .contact label { display: grid; gap: .6rem; }
.contact form { gap: 1.25rem; }
.contact input, .contact button {
  padding: .75rem;
  border: 1px solid #a89079;
  border-radius: .3rem;
  font: inherit;
}

.contact button {
  justify-self: start;
  background: #d9af74;
  color: #171519;
  cursor: pointer;
}

.flash {
  margin: 0;
  padding: 1rem 1.5rem;
  background: #bce8c7;
  color: #173d23;
  text-align: center;
}

:root {
  color: #fff;
  background: #171519;
}

body {
  color: #fff;
  background:
    linear-gradient(135deg, rgb(229 45 39 / 17%), transparent 34%),
    linear-gradient(225deg, rgb(69 160 255 / 16%), transparent 38%),
    linear-gradient(25deg, rgb(120 55 180 / 17%), transparent 36%),
    #171519;
}

.portrait {
  position: relative;
  isolation: isolate;
}

.portrait::before {
  position: absolute;
  z-index: -1;
  inset: 1rem;
  border: .35rem solid transparent;
  border-radius: 1rem;
  background: linear-gradient(#171519, #171519) padding-box,
    linear-gradient(110deg, #ff4b45, #ff9e45, #ffe34b, #56c875, #48aaff, #a768ed) border-box;
  content: "";
  animation: pride-blink 2.4s ease-in-out infinite;
}

.intro h1, .contact h2, .caption {
  color: #fff;
}

.site-name {
  color: #ffd45a;
  text-shadow: 0 0 .8rem rgb(255 212 90 / 42%);
}

.portrait img {
  border: .3rem solid transparent;
  background: linear-gradient(#171519, #171519) padding-box,
    linear-gradient(135deg, #ed4b72, #f3b633, #42bf80, #488be6, #9a5ad6) border-box;
}

.contact {
  border: 2px solid #fd5d9d;
  background: rgb(33 25 43 / 90%);
  box-shadow: 0 0 1.4rem rgb(195 70 210 / 20%);
}

.contact input, .contact select {
  color: #fff;
  background: #211b2a;
}

.contact button {
  border: 0;
  background: linear-gradient(100deg, #ff5d72, #ffb845, #e6d94a, #52c781, #43a7ef, #ad64de);
  color: #171519;
  font-weight: 700;
}

.flash {
  color: #fff;
  background: linear-gradient(100deg, #d73265, #b55dce, #326ddb, #279874);
  animation: pride-blink 1.8s ease-in-out 4;
}

@keyframes pride-blink {
  50% { opacity: .72; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.flash-warning {
  color: #fff;
  background: #b91c1c;
  animation: warning-flash .45s steps(2, end) 8;
}

.closed-message {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: #171519;
  color: #fff;
  font: 700 clamp(2rem, 6vw, 5rem) system-ui, sans-serif;
  text-align: center;
}

@keyframes warning-flash {
  50% { opacity: .25; }
}
