:root {
  color-scheme: light;
  --bg: #fbf3dc;
  --text: #211f1a;
  --muted: rgba(64, 57, 44, 0.66);
  --subtle: rgba(64, 57, 44, 0.58);
  --edge: rgba(48, 42, 30, 0.13);
  --cream: rgba(255, 248, 226, 0.72);
  --yellow: rgba(239, 207, 118, 0.28);
  --lilac: rgba(215, 200, 234, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 360px;
  min-height: 100%;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 18%, var(--lilac), transparent 28rem),
    radial-gradient(circle at 18% 82%, var(--yellow), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", sans-serif;
  line-height: 1.45;
}

#background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.42;
}

main {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(
    to bottom,
    rgba(251, 243, 220, 0.96),
    rgba(251, 243, 220, 0.72) 72%,
    rgba(251, 243, 220, 0)
  );
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(48, 42, 30, 0),
    rgba(48, 42, 30, 0.13) 15%,
    rgba(48, 42, 30, 0.13) 85%,
    rgba(48, 42, 30, 0)
  );
}

.brand,
.nav-list a,
.contact-menu summary,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.brand {
  font-weight: 600;
  line-height: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.5vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  display: flex;
  align-items: center;
}

.nav-list li + li::before {
  content: "\00b7";
  margin-right: clamp(0.8rem, 2.5vw, 1.6rem);
  color: rgba(64, 57, 44, 0.34);
}

.nav-list a {
  color: var(--subtle);
  font-size: 0.95rem;
}

.contact-menu {
  position: relative;
}

.contact-menu summary {
  display: block;
  color: var(--subtle);
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
}

.contact-menu summary::-webkit-details-marker {
  display: none;
}

.contact-panel {
  position: absolute;
  top: calc(100% + 2rem);
  right: 0;
  min-width: 10rem;
  border: 1px solid rgba(48, 42, 30, 0.13);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  background: rgba(251, 243, 220, 0.94);
  box-shadow: 0 18px 48px rgba(74, 57, 21, 0.09);
  text-align: right;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.contact-panel a {
  color: rgba(64, 57, 44, 0.78);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.brand:hover,
.brand:focus-visible,
.nav-list a:hover,
.nav-list a:focus-visible,
.contact-menu summary:hover,
.contact-menu summary:focus-visible,
.contact-menu[open] summary,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

.hero {
  --title-size: clamp(2.5rem, 12vw, 3.75rem);
  --block-width: min(calc(var(--title-size) * 5.5), calc(100vw - 48px), 980px);
  display: grid;
  min-height: 100svh;
  align-content: center;
  justify-items: center;
  gap: clamp(1.2rem, 2.5vh, 1.8rem);
  padding: clamp(5.2rem, 9vh, 6.8rem) 1.25rem clamp(5rem, 9vh, 6.4rem);
}

.hero-image-wrap {
  position: relative;
  display: grid;
  width: var(--block-width);
  margin: 0;
  place-items: center;
}

.hero-image {
  display: block;
  width: min(100%, clamp(240px, 43vh, 430px));
  max-width: 100%;
  height: auto;
  animation: character-float 8s ease-in-out infinite;
}

.hero-content {
  display: grid;
  width: var(--block-width);
  justify-items: center;
  gap: 0.2rem;
  text-align: center;
}

h1,
p,
figure {
  margin: 0;
}

.title {
  width: 100%;
  font-size: var(--title-size);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.lead {
  font-size: calc(var(--title-size) * 0.52);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}

.meta {
  color: var(--muted);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 300;
  line-height: 1.45;
}

.lead + .meta {
  margin-top: clamp(1.6rem, 5vh, 2.6rem);
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem;
  background: linear-gradient(
    to top,
    rgba(251, 243, 220, 0.98) 0%,
    rgba(251, 243, 220, 0.84) 56%,
    rgba(251, 243, 220, 0.22) 86%,
    rgba(251, 243, 220, 0) 100%
  );
  color: rgba(75, 68, 55, 0.68);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(92vw, 980px);
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(48, 42, 30, 0),
    rgba(48, 42, 30, 0.14),
    rgba(48, 42, 30, 0)
  );
  transform: translateX(-50%);
}

.site-footer a {
  color: rgba(75, 68, 55, 0.8);
}

.footer-sep {
  color: rgba(75, 68, 55, 0.4);
}

@keyframes character-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.4deg);
  }

  50% {
    transform: translateY(-8px) rotate(0.35deg);
  }
}

@media (max-width: 820px) {
  .site-header {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }

  .site-footer {
    gap: 0.35rem;
    padding-inline: 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero {
    --title-size: clamp(64px, 22vw, 96px);
    --block-width: calc(100vw - 32px);
    gap: 1rem;
    padding-top: 5rem;
    padding-bottom: 5.25rem;
  }

  .hero-image {
    width: min(100%, 310px);
  }

  .lead {
    font-size: 24px;
  }

  .meta {
    font-size: 1rem;
  }
}

@media (max-height: 620px) and (min-width: 821px) {
  .hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hero-image {
    width: min(100%, 300px);
  }
}

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