:root {
  --flour: #fff8ea;
  --butter: #f6dda9;
  --starter: #f2c66f;
  --toast: #b8682d;
  --crust: #5b2f1c;
  --char: #221612;
  --sage: #879267;
  --cream-glass: rgba(255, 249, 237, 0.78);
  --paper: rgba(255, 255, 255, 0.72);
  --shadow: 0 28px 80px rgba(80, 44, 23, 0.2);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--char);
  font-family: "DM Sans", "Avenir Next", sans-serif;
  background:
    radial-gradient(circle at 9% 10%, rgba(242, 198, 111, 0.58), transparent 32rem),
    radial-gradient(circle at 94% 8%, rgba(135, 146, 103, 0.25), transparent 26rem),
    linear-gradient(135deg, #fffaf0 0%, #f4d9a4 47%, #e4ad62 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: auto -12vw -30vh auto;
  width: 56vw;
  height: 56vw;
  min-width: 420px;
  min-height: 420px;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91, 47, 28, 0.18), transparent 68%);
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 47, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 47, 28, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  border: 1px solid rgba(91, 47, 28, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 18px 60px rgba(80, 44, 23, 0.12);
  backdrop-filter: blur(24px);
}

.brand,
.nav-links,
.nav-cta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px 999px 999px 18px;
  background:
    radial-gradient(circle at 58% 38%, #fff4cf 0 12%, transparent 13%),
    linear-gradient(135deg, var(--starter), var(--toast));
  box-shadow: inset 0 -5px 12px rgba(91, 47, 28, 0.2);
  transform: rotate(-18deg);
}

.nav-links {
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.nav-links a,
.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(34, 22, 18, 0.75);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.74);
  color: var(--char);
}

.nav-cta {
  color: #fff;
  background: var(--char);
  box-shadow: 0 10px 24px rgba(91, 47, 28, 0.28);
}

.section-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 72px 0 48px;
}

.hero-copy {
  animation: rise-in 720ms ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--toast);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.06em;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.88;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.94;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.hero-lede {
  max-width: 660px;
  color: rgba(34, 22, 18, 0.74);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.price-card {
  width: fit-content;
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid rgba(91, 47, 28, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 50px rgba(80, 44, 23, 0.12);
  transform: rotate(-1deg);
}

.price-card div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.price {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 0.86;
}

.old-price {
  position: relative;
  color: rgba(34, 22, 18, 0.45);
  font-size: 1.5rem;
  font-weight: 800;
}

.old-price::after {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 52%;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: #d84e2f;
  transform: rotate(-8deg);
}

.price-card p {
  margin: 8px 0 0;
  color: rgba(34, 22, 18, 0.62);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--char), #744021);
  box-shadow: 0 18px 44px rgba(91, 47, 28, 0.28);
}

.button.secondary {
  color: var(--char);
  border: 1px solid rgba(91, 47, 28, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

.button.wide {
  width: 100%;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 34px 0 0;
}

.quick-facts div {
  padding: 16px;
  border: 1px solid rgba(91, 47, 28, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
}

.quick-facts dt {
  margin-bottom: 6px;
  color: rgba(34, 22, 18, 0.5);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(430px, 100%);
  animation: float-in 820ms 120ms cubic-bezier(0.18, 0.9, 0.22, 1) both;
}

.hero-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 0.66;
  margin: 0 auto;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.hero-stack:active {
  cursor: grabbing;
}

.hero-stack:focus-visible {
  outline: 3px solid rgba(184, 104, 45, 0.42);
  outline-offset: 14px;
  border-radius: 46px;
}

.hero-card {
  position: absolute;
  inset: 0;
  padding: 14px;
  border-radius: 46px;
  border: 1px solid rgba(91, 47, 28, 0.1);
  background: rgba(255, 255, 255, 0.54);
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.2, 0.82, 0.2, 1),
    filter 260ms ease;
  will-change: transform, opacity;
}

.hero-card::before {
  position: absolute;
  inset: 8px;
  z-index: -1;
  content: "";
  border-radius: 44px;
  background: rgba(255, 248, 234, 0.72);
}

.hero-card img {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  object-fit: cover;
  object-position: 50% 38%;
  pointer-events: none;
}

.hero-card.is-front {
  z-index: 3;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(2deg) scale(1);
  filter: none;
}

.hero-card.is-middle {
  z-index: 2;
  opacity: 0.82;
  transform: translate3d(26px, 20px, 0) rotate(-3deg) scale(0.965);
  filter: saturate(0.92) brightness(0.97);
}

.hero-card.is-back {
  z-index: 1;
  opacity: 0.58;
  transform: translate3d(48px, 40px, 0) rotate(4deg) scale(0.93);
  filter: saturate(0.86) brightness(0.95);
}

.hero-card.is-exiting {
  opacity: 0;
  transform: translate3d(-92px, 10px, 0) rotate(-8deg) scale(0.96);
}

.hero-card.is-middle img,
.hero-card.is-back img {
  object-position: 50% 50%;
}

.scoring-caption {
  position: absolute;
  z-index: 4;
  right: -24px;
  bottom: 36px;
  width: min(230px, calc(100% - 42px));
  padding: 16px;
  border: 1px solid rgba(91, 47, 28, 0.14);
  border-radius: 24px;
  background: rgba(255, 249, 237, 0.84);
  box-shadow: 0 14px 30px rgba(80, 44, 23, 0.12);
  backdrop-filter: blur(18px);
  pointer-events: none;
}

.scoring-caption span {
  display: block;
  margin-bottom: 5px;
  color: var(--toast);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scoring-caption strong {
  display: block;
  line-height: 1.25;
}

.marquee-strip {
  display: flex;
  gap: 12px;
  width: max-content;
  min-width: 100%;
  padding: 14px 0 54px;
  animation: drift 24s linear infinite;
}

.marquee-strip span {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px solid rgba(91, 47, 28, 0.12);
  border-radius: 999px;
  color: rgba(34, 22, 18, 0.72);
  background: rgba(255, 255, 255, 0.46);
  font-weight: 800;
}

.details,
.gallery,
.order-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr 1fr;
  grid-auto-rows: minmax(230px, auto);
  gap: 16px;
}

.detail-card {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(91, 47, 28, 0.11);
  border-radius: var(--radius-lg);
  background: var(--cream-glass);
  box-shadow: 0 18px 52px rgba(80, 44, 23, 0.1);
  overflow: hidden;
}

.detail-card::after {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  content: "";
  border-radius: 999px;
  background: rgba(242, 198, 111, 0.26);
}

.detail-card.tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  background:
    linear-gradient(to bottom, rgba(255, 248, 234, 0.62), rgba(91, 47, 28, 0.12)),
    var(--cream-glass);
}

.detail-card.photo-card {
  grid-row: span 2;
  padding: 0;
  min-height: 480px;
}

.detail-card.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--toast);
  font-weight: 900;
}

.detail-card p,
.gallery-copy p,
.maker-card p,
.order-subcopy {
  color: rgba(34, 22, 18, 0.68);
  font-size: 1.02rem;
  line-height: 1.6;
}

.gallery {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 34px;
  align-items: center;
}

.gallery-copy {
  position: sticky;
  top: 112px;
}

.gallery-layout {
  display: grid;
  gap: 14px;
}

.gallery-main {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.thumb {
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.thumb:hover,
.thumb:focus-visible {
  transform: translateY(-2px);
}

.thumb.active {
  border-color: var(--toast);
  background: rgba(255, 248, 234, 0.88);
}

.thumb img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
}

.order-section {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 18px;
  align-items: stretch;
}

.maker-card,
.order-card {
  border: 1px solid rgba(91, 47, 28, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 249, 237, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.maker-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.maker-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 32px;
  object-fit: cover;
}

.order-card {
  padding: 30px;
}

.order-card h2 {
  margin-bottom: 8px;
}

.order-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.order-list span {
  padding: 14px 16px;
  border-radius: 18px;
  color: rgba(34, 22, 18, 0.72);
  background: rgba(255, 255, 255, 0.52);
  font-weight: 800;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 10px;
  color: rgba(34, 22, 18, 0.62);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--crust);
  font-weight: 900;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(22px) rotate(-4deg);
  }

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

@keyframes drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-32%);
  }
}

@media (max-width: 900px) {
  .site-header {
    top: 10px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .gallery,
  .order-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-visual {
    justify-self: center;
    width: min(520px, 100%);
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-card.tall,
  .detail-card.photo-card {
    grid-row: span 1;
  }

  .gallery-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 20px);
  }

  .brand span:last-child {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-cta {
    padding-inline: 14px;
  }

  .section-shell,
  .site-footer {
    width: calc(100% - 22px);
  }

  h1 {
    font-size: clamp(3.15rem, 18vw, 4.8rem);
  }

  .quick-facts,
  .detail-grid,
  .maker-card {
    grid-template-columns: 1fr;
  }

  .detail-card.photo-card {
    min-height: 360px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-card {
    border-radius: 38px;
  }

  .hero-card img {
    border-radius: 28px;
  }

  .hero-card.is-middle {
    transform: translate3d(18px, 16px, 0) rotate(-3deg) scale(0.965);
  }

  .hero-card.is-back {
    transform: translate3d(34px, 32px, 0) rotate(4deg) scale(0.93);
  }

  .scoring-caption {
    right: 8px;
    bottom: 20px;
    width: 188px;
    border-radius: 22px;
  }

  .gallery-thumbs {
    gap: 8px;
  }

  .thumb {
    padding: 4px;
    border-radius: 16px;
  }

  .thumb img {
    border-radius: 12px;
  }

  .maker-card,
  .order-card {
    border-radius: 30px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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