:root {
  --paper: #f8f1e8;
  --paper-deep: #efe1d0;
  --coffee: #5a2f1f;
  --coffee-soft: #7b4a32;
  --cocoa: #9a6848;
  --beige: #d6b894;
  --cream: #fffaf2;
  --ink: #3d2a20;
  --line: rgba(90, 47, 31, 0.34);
  --light-line: rgba(255, 250, 242, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  background: var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(90, 47, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 47, 31, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
}

@keyframes logoFloat {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes softFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(50%) translateY(0);
  }

  50% {
    transform: translateX(50%) translateY(7px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 800ms ease,
    transform 800ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 150ms;
}

.reveal-delay-2 {
  transition-delay: 300ms;
}

.site-flow {
  width: 100%;
  overflow: hidden;
}

.panel {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(54px, 8vw, 88px) clamp(22px, 7vw, 58px);
  text-align: center;
}

.panel::before,
.panel::after {
  position: absolute;
  pointer-events: none;
  content: "";
  border: 1px solid var(--line);
}

.panel::before {
  inset: clamp(10px, 2.6vw, 28px);
}

.panel::after {
  inset: clamp(20px, 4vw, 42px);
  opacity: 0.58;
}

.hero-panel {
  color: var(--coffee);
  background:
    radial-gradient(circle at 50% 42%, rgba(154, 104, 72, 0.12), transparent 21rem),
    var(--cream);
}

.order-panel {
  color: var(--coffee);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 250, 242, 0.5), transparent 22rem),
    linear-gradient(180deg, var(--paper-deep) 0%, var(--beige) 100%);
}

.memory-panel {
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 28%, rgba(214, 184, 148, 0.2), transparent 24rem),
    linear-gradient(160deg, var(--coffee) 0%, var(--coffee-soft) 100%);
}

.memory-panel::before,
.memory-panel::after {
  border-color: var(--light-line);
}

.brand-mark {
  position: relative;
  z-index: 1;
  width: min(76vw, 350px);
  aspect-ratio: 1;
  display: grid;
  margin: -18px auto -20px;
  place-items: center;
  opacity: 0;
  animation: logoFloat 1200ms ease 180ms both;
}

.brand-mark img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ornament {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(78%, 330px);
  grid-template-columns: 1fr 82px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: var(--cocoa);
  opacity: 0;
}

.hero-entrance {
  animation: softFadeUp 1000ms ease 260ms both;
}

.brand-mark.hero-entrance {
  animation: logoFloat 1200ms ease 180ms both;
}

.hero-entrance-delay {
  animation-delay: 520ms;
}

.ornament span {
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.ornament svg,
.corner svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ornament svg {
  stroke-width: 1.4;
}

.scroll-cue {
  position: absolute;
  right: 50%;
  bottom: clamp(28px, 6vw, 52px);
  z-index: 2;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coffee);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  animation: bounce 2s ease-in-out 1.4s infinite;
  transition:
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.scroll-cue:hover {
  color: var(--cream);
  background: var(--coffee);
  border-color: var(--coffee);
}

.eyebrow,
.quote-label {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(90, 47, 31, 0.74);
}

.quote-label {
  color: rgba(255, 250, 242, 0.72);
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  margin: 0;
  color: var(--coffee);
  font-family: "Great Vibes", "Brush Script MT", cursive;
  font-size: clamp(2.7rem, 10vw, 5rem);
  font-weight: 400;
  line-height: 1;
  text-wrap: balance;
}

.order-button {
  position: relative;
  z-index: 1;
  width: min(100%, 310px);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 15px 28px;
  color: #fff8ee;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--coffee) 0%, var(--coffee-soft) 54%, var(--cocoa) 100%);
  border: 1px solid rgba(90, 47, 31, 0.3);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(90, 47, 31, 0.2);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.order-button:hover {
  transform: scale(1.035);
  filter: saturate(1.05);
  box-shadow: 0 20px 42px rgba(90, 47, 31, 0.28);
}

.order-button:focus-visible,
.scroll-cue:focus-visible {
  outline: 3px solid rgba(154, 104, 72, 0.35);
  outline-offset: 4px;
}

blockquote {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin: 0;
  color: var(--cream);
  font-family: "Great Vibes", "Brush Script MT", cursive;
  font-size: clamp(3rem, 11vw, 5.8rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  text-wrap: balance;
}

.corner {
  position: absolute;
  z-index: 1;
  width: clamp(82px, 18vw, 128px);
  color: rgba(90, 47, 31, 0.42);
}

.memory-panel .corner {
  color: rgba(255, 250, 242, 0.36);
}

.corner svg {
  stroke-width: 2;
}

.corner-top-left {
  top: 24px;
  left: 24px;
}

.corner-top-right {
  top: 24px;
  right: 24px;
}

.corner-bottom-left {
  bottom: 24px;
  left: 24px;
}

.corner-bottom-right {
  right: 24px;
  bottom: 24px;
}

@media (max-width: 430px) {
  .panel {
    padding: 54px 22px;
  }

  .brand-mark {
    width: min(82vw, 310px);
    margin-bottom: -14px;
  }

  .ornament {
    width: min(82%, 300px);
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.45rem);
  }

  blockquote {
    max-width: 11ch;
    font-size: clamp(2.72rem, 12vw, 3.8rem);
  }

  .corner {
    width: 76px;
  }

  .corner-top-left,
  .corner-top-right {
    top: 18px;
  }

  .corner-bottom-left,
  .corner-bottom-right {
    bottom: 18px;
  }

  .corner-top-left,
  .corner-bottom-left {
    left: 18px;
  }

  .corner-top-right,
  .corner-bottom-right {
    right: 18px;
  }
}
