:root {
  --bg: #f4f1ea;
  --surface: #ebe5da;
  --text: #1f1d1a;
  --muted: #6f685c;
  --accent: #b67a3b;
  --accent-strong: #8a5a2e;
  --card-border: rgba(31, 29, 26, 0.1);
  --card-shadow: 0 24px 60px rgba(50, 38, 22, 0.15);
  --mx: 0px;
  --my: 0px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.25rem 1rem 1rem;
  isolation: isolate;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  inset: -20% -15%;
  z-index: -2;
  pointer-events: none;
}

.site-shell::before {
  background:
    radial-gradient(44rem 27rem at 18% 18%, rgba(182, 122, 59, 0.17), transparent 65%),
    radial-gradient(48rem 32rem at 82% 82%, rgba(138, 90, 46, 0.15), transparent 65%),
    linear-gradient(140deg, #f8f4ec 0%, #efe8dc 42%, #e7ddcf 100%);
  background-size: 130% 130%;
  animation: driftBackground 24s ease-in-out infinite alternate;
}

.site-shell::after {
  z-index: -1;
  background: radial-gradient(24rem 15rem at 50% 26%, rgba(255, 245, 224, 0.7), transparent 72%);
  filter: blur(4px);
}

.site-header {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.site-domain {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

.hero-card {
  width: min(100%, 45rem);
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.2rem, 2.8vw, 2rem);
  background: rgba(235, 229, 218, 0.92);
  border: 1px solid var(--card-border);
  border-radius: 1.4rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(3px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0.35rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.3rem, 8vw, 4.35rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  max-width: 11ch;
}

.hero-status {
  margin: 0.65rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 5.7vw, 2.3rem);
  line-height: 1;
  color: var(--accent-strong);
}

.hero-support {
  margin: 0.75rem 0 0;
  font-size: clamp(0.95rem, 2.6vw, 1.02rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 36ch;
}

.hero-visual {
  width: min(100%, 23rem);
  justify-self: end;
  transform: translate3d(calc(var(--mx) * 0.2), calc(var(--my) * 0.2), 0);
  transition: transform 280ms ease;
}

.hedgehog {
  width: 100%;
  height: auto;
  display: block;
}

.quill {
  fill: url(#quillGradient);
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: quillPulse 5.2s ease-in-out infinite;
}

.q2 {
  animation-delay: 0.3s;
}

.q3 {
  animation-delay: 0.55s;
}

.q4 {
  animation-delay: 0.9s;
}

.q5 {
  animation-delay: 1.15s;
}

.q6 {
  animation-delay: 1.5s;
}

.q7 {
  animation-delay: 1.85s;
}

.body {
  fill: url(#bodyGradient);
}

.belly {
  fill: #f2debf;
  opacity: 0.95;
}

.eye,
.nose {
  fill: #1f1d1a;
}

.snout {
  fill: none;
  stroke: #1f1d1a;
  stroke-width: 2;
  stroke-linecap: round;
}

.ground {
  fill: rgba(111, 104, 92, 0.25);
}

.site-footer {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding-top: 0.4rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

@keyframes driftBackground {
  0% {
    transform: translate(-2%, -2%) scale(1);
  }
  100% {
    transform: translate(2%, 2%) scale(1.05);
  }
}

@keyframes quillPulse {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.06);
  }
}

@keyframes revealIn {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .site-shell {
    padding: 1.8rem 2rem 1.2rem;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.9fr);
    align-items: end;
    gap: 1rem;
    border-radius: 1.8rem;
  }
}

@media (min-width: 1200px) {
  .site-shell {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .hero-card {
    width: min(100%, 46rem);
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .hero-card {
    transform: translate3d(calc(var(--mx) * -0.08), calc(var(--my) * -0.08), 0);
    transition: transform 320ms ease;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-card[data-reveal] {
    opacity: 0;
  }

  .js .hero-card[data-reveal].is-visible {
    animation: revealIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  }
}

@media (max-width: 767px) {
  .hero-visual {
    justify-self: center;
    width: min(100%, 18.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell::before,
  .quill {
    animation: none;
  }

  .hero-card,
  .hero-visual {
    transition: none;
    transform: none;
  }
}
