:root {
  color-scheme: light only;
  --bg: #efebe2;
  --ink: #592e21;
  --ink-soft: #a57c6c;
  --accent: #a77e6e;
  --accent-deep: #55281a;
  --muted: rgba(41, 40, 53, 0.69);
  --dot: #592e21;
  --viewport-height: 100vh;
}

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

html {
  font-size: 16pt;
}

@media (max-width: 1680px) {
  html {
    font-size: 12pt;
  }
}

@media (max-width: 980px) {
  html {
    font-size: 10pt;
  }
}

@media (max-width: 736px) {
  html {
    font-size: 12pt;
  }
}

body {
  margin: 0;
  min-height: var(--viewport-height);
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Merriweather", serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-family: sans-serif;
}

.skip-link:focus {
  top: 0;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--dot);
  opacity: 0;
  animation: drift-fade 9s linear infinite;
}

.atmosphere span:nth-child(1) {
  width: 3px;
  height: 3px;
  left: 12%;
  top: 22%;
  animation-delay: 0s;
}

.atmosphere span:nth-child(2) {
  width: 2px;
  height: 2px;
  left: 28%;
  top: 68%;
  animation-delay: 1.4s;
}

.atmosphere span:nth-child(3) {
  width: 4px;
  height: 4px;
  left: 46%;
  top: 18%;
  animation-delay: 2.8s;
}

.atmosphere span:nth-child(4) {
  width: 2px;
  height: 2px;
  left: 63%;
  top: 74%;
  animation-delay: 0.7s;
}

.atmosphere span:nth-child(5) {
  width: 3px;
  height: 3px;
  left: 78%;
  top: 34%;
  animation-delay: 3.6s;
}

.atmosphere span:nth-child(6) {
  width: 2px;
  height: 2px;
  left: 88%;
  top: 58%;
  animation-delay: 5.1s;
}

.atmosphere span:nth-child(7) {
  width: 3px;
  height: 3px;
  left: 8%;
  top: 82%;
  animation-delay: 4.2s;
}

.atmosphere span:nth-child(8) {
  width: 2px;
  height: 2px;
  left: 54%;
  top: 48%;
  animation-delay: 6.3s;
}

@keyframes drift-fade {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.7);
  }
  15% {
    opacity: 0.55;
  }
  70% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
    transform: translate3d(18px, -42px, 0) scale(1.6);
  }
}

.shell {
  position: relative;
  z-index: 1;
  min-height: var(--viewport-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
}

.hero {
  width: min(36rem, 100%);
  margin: 0 auto;
}

.brand {
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-family: "Merriweather", serif;
  font-size: clamp(2.5rem, 8vw, 4.875rem);
  font-weight: 700;
  letter-spacing: 0.075rem;
  line-height: 1.2;
  animation: rise 0.9s ease both;
}

.headline {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: "Merriweather", serif;
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 0.075rem;
  line-height: 1.25;
  animation: rise 0.9s ease 0.12s both;
}

.support {
  margin: 0 0 2rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1em;
  font-weight: 300;
  letter-spacing: 0.025rem;
  line-height: 1.875;
  text-shadow: 0 0 1rem rgba(0, 0, 0, 0.12);
  animation: rise 0.9s ease 0.24s both;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.5rem;
  border-radius: 0.35rem;
  background: var(--accent);
  color: #fff;
  font-family: "Merriweather", serif;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.025rem;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
  animation: rise 0.9s ease 0.36s both;
}

.cta:hover,
.cta:focus-visible {
  background: var(--ink);
  transform: scale(1.0425);
  outline: none;
}

.cta:focus-visible {
  box-shadow: 0 0 0 3px rgba(89, 46, 33, 0.25);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 0 1.5rem 2rem;
  text-align: center;
  animation: rise 0.9s ease 0.48s both;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85em;
  font-weight: 300;
  letter-spacing: 0.02rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
  outline: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere span,
  .brand,
  .headline,
  .support,
  .cta,
  .site-footer {
    animation: none;
  }

  .atmosphere span {
    opacity: 0.25;
  }

  .cta:hover,
  .cta:focus-visible {
    transform: none;
  }
}
