@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-Italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("../fonts/SourceSerifPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("../fonts/SourceSerifPro-It.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("../fonts/SourceSerifPro-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("../fonts/SourceSerifPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f6efe4;
  --cream-soft: #fbf6ee;
  --taupe: #ead9c4;
  --ink: #3a291f;
  --brown: #6e5344;
  --muted: #7a6154;
  --border: #d4c0a8;
  --logo-brown: #6e5344;
  --gold: #c4a35a;
  --gold-bright: #e8c45c;
  --chocolate: #4a2c1c;
  --pistachio: #7f9a3c;
  --cranberry: #7c3330;
  --amber: #c4843e;
  --linen: #ead9c4;
  --max: 72rem;
  --pad: 1.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  background-image: radial-gradient(120% 80% at 50% 0%, #fbf3e4 0%, var(--cream) 55%);
  color: var(--ink);
  font-family: "Source Serif Pro", "Liberation Serif", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--brown); }

h1, h2, h3, .brand {
  font-family: "Playfair Display", "Liberation Serif", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.wrap {
  width: min(var(--max), 100% - (var(--pad) * 2));
  margin-inline: auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  width: min(var(--max), 100% - (var(--pad) * 2));
  margin: 0 auto;
  padding: 1.35rem 0 0.9rem;
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 3px 0 var(--chocolate);
  margin-bottom: 0.4rem;
}

.brand {
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.02rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

/* Hero */
.hero {
  padding: 1.5rem 0 3.5rem;
  text-align: center;
}
.hero h1 {
  color: var(--chocolate);
}
.hero-lead {
  max-width: 38rem;
}

.logo {
  width: min(22rem, 86vw);
  margin: 1.1rem auto 2.1rem;
}

.hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.15rem);
  font-weight: 650;
  margin: 0 auto 1.15rem;
  max-width: 18ch;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 auto 2.25rem;
  line-height: 1.5;
}

.hero-figure {
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
}

.hero-figure .frame {
  aspect-ratio: 16 / 9;
}

/* Figures / treats */
.frame {
  border: 1px solid var(--gold);
  box-shadow: 0 1px 0 var(--chocolate), 0 10px 24px rgba(74, 44, 28, 0.14);
  background: var(--cream-soft);
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.55rem;
  text-align: left;
}

.cap-long {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.4;
}

.cap-short {
  display: block;
  margin-top: 0.2rem;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--brown);
}

/* Treats */
.treats {
  background: var(--linen);
  background-image: linear-gradient(180deg, #f0e2ce 0%, #ead9c4 40%, #e4d0b8 100%);
  padding: 3.4rem 0 4rem;
}
.treats h2,
.about h2,
.page-hero h1,
.touch-card h2,
.events-head {
  color: var(--chocolate);
}
.treats h2::after,
.about h2::after,
.page-hero h1::after {
  content: "";
  display: block;
  width: 4.2rem;
  height: 3px;
  margin: 0.7rem 0 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--pistachio));
  border-radius: 1px;
}
.page-hero h1::after { margin-left: auto; margin-right: auto; }
.hero h1::after {
  content: "";
  display: block;
  width: 5.2rem;
  height: 3px;
  margin: 0.9rem auto 0;
  background: linear-gradient(90deg, var(--cranberry), var(--gold), var(--pistachio));
  border-radius: 1px;
}

.treats h2,
.about h2,
.page-hero h1,
.touch-card h2 {
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  font-weight: 650;
  margin: 0 0 0.5rem;
}

.section-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
}

.treats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.4rem;
}

.treats-grid .bake.wide {
  grid-column: 1 / -1;
}

.frame-standard { aspect-ratio: 4 / 3; }
.frame-wide-row { aspect-ratio: 16 / 9; }
.frame-panorama { aspect-ratio: 2.25 / 1; }
.frame-gift { aspect-ratio: 3 / 2; }

.img-top { object-position: center 20%; }
.img-center { object-position: center; }
.img-bags { object-position: center 15%; }
.img-gift { object-position: center 35%; }
.img-racks { object-position: center; }
.img-tin { object-position: center 40%; }

.events {
  background: #f3e4d0;
  background-image:
    linear-gradient(180deg, #f7ead6 0%, #f3e0cc 100%);
  padding: 3.2rem 0 3.8rem;
  border-top: 4px solid var(--cranberry);
  border-bottom: 3px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.events .wrap {
  position: relative;
}
.events-head {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--cranberry);
}
.events-head::after {
  content: "";
  display: block;
  width: 4.6rem;
  height: 3px;
  margin: 0.65rem 0 0;
  background: var(--gold);
}
.events-lead {
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.events .frame {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--cranberry), 0 14px 32px rgba(74, 44, 28, 0.18);
}
.events .cap-short { color: var(--cranberry); }

/* About */
.about {
  padding: 3.6rem 0 2rem;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(16rem, 20.5rem);
  gap: 2.5rem 3rem;
  align-items: start;
}

.about-copy p {
  margin: 0 0 1.15rem;
  max-width: 38rem;
}

.about-copy p:last-child { margin-bottom: 0; }

.about-figure .frame {
  aspect-ratio: 3 / 5;
}
.about-figure .frame img {
  object-position: 85% 16%;
}

.about-figure figcaption { text-align: left; }

/* Get in touch */
.contact {
  padding: 2.2rem 0 3.6rem;
}

.touch-card {
  width: min(42rem, 100%);
  margin: 0 auto;
  border: 1px solid var(--gold);
  background: var(--cream-soft);
  padding: 2.1rem 2.4rem 2.3rem;
  box-shadow: 0 1px 0 var(--chocolate), 0 12px 28px rgba(74, 44, 28, 0.1);
}

.touch-card .section-lead { margin-bottom: 0.4rem; }

.contact-rows {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.contact-rows li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 0.85rem 0;
  align-items: baseline;
}

.contact-rows strong {
  font-family: "Source Serif Pro", Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
}

.placeholder {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: var(--brown);
  font-weight: 400;
}

/* Footer */
.site-footer {
  border-top: 3px solid var(--gold);
  text-align: center;
  padding: 2.3rem 1.5rem 2.6rem;
  background: var(--chocolate);
  color: #f6efe4;
}

.site-footer .foot-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 650;
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
  color: #f6efe4;
}

.site-footer p {
  margin: 0.15rem 0;
  color: #e4d5c3;
  font-size: 0.98rem;
}

.site-footer .back-top {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold-bright);
}

/* Inner pages */
.page-hero {
  padding: 0.9rem 0 0.4rem;
  text-align: center;
}

.page-hero .logo-small {
  width: min(12.5rem, 58vw);
  margin: 0.15rem auto 0.7rem;
}

.page-hero p {
  max-width: 36rem;
  margin: 0.75rem auto 0;
  color: var(--muted);
}

/* Surprise wheel */
.surprise-section {
  padding: 0 0 3.2rem;
}

.wheel-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.7rem;
}

.wheel-stage {
  position: relative;
  width: min(22.5rem, 86vw);
  aspect-ratio: 1;
  filter: drop-shadow(0 18px 28px rgba(74, 44, 28, 0.22));
}
.wheel-stage::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 92, 0.28) 0%, rgba(127, 154, 60, 0.12) 42%, rgba(243, 238, 230, 0) 70%);
  z-index: 0;
  pointer-events: none;
}
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 11px #c4a35a, 0 0 0 14px var(--ink);
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: transparent;
  transition: transform 4.2s cubic-bezier(0.12, 0.7, 0.15, 1);
}
.wheel svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wheel-slice-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  transform-origin: 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  pointer-events: none;
  padding-left: 1.1rem;
}

.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  height: 18%;
  transform: translate(-50%, -50%);
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 50%;
  z-index: 2;
  box-shadow: inset 0 0 0 3px var(--border);
}

.pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #c4a35a;
  filter: drop-shadow(0 1px 0 #3a291f) drop-shadow(0 2px 0 rgba(58,41,31,0.25));
}

.spin-btn {
  appearance: none;
  border: 2px solid #c4a35a;
  background: #4a2c1c;
  color: #f6efe4;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.6rem 2.1rem;
  cursor: pointer;
  border-radius: 0;
  box-shadow: 0 3px 0 #3a291f;
}

.spin-btn:hover { background: #5c3a26; border-color: #e0c36a; }
.spin-btn:disabled { opacity: 0.6; cursor: default; }

.wheel-result {
  min-height: 1.5em;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  text-align: center;
}

.wheel-note {
  max-width: 32rem;
  margin: 0.2rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Order + label */
.order-section {
  padding: 0.2rem 0 3.4rem;
}

.order-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2.2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.order-copy .touch-card {
  width: 100%;
  margin: 0;
}

.label-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label-mock {
  width: min(22rem, 100%);
  background: #fbf6ee;
  border: 2px dashed var(--gold);
  box-shadow: 0 1px 0 var(--chocolate);
  padding: 1.5rem 1.3rem 1.3rem;
  text-align: center;
  color: var(--ink);
}

.label-mock img {
  width: 11.5rem;
  margin: 0 auto 0.7rem;
}

.label-mock h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
}

.label-mock .label-tag {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.qr-box {
  width: 6.2rem;
  height: 6.2rem;
  margin: 0 auto 0.55rem;
  border: 2px solid var(--chocolate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(58,41,31,0.06) 10px 11px),
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(58,41,31,0.06) 10px 11px),
    var(--cream);
}

.qr-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.label-note {
  margin: 0.9rem 0 0;
  max-width: 22rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Inner page wordmark spacing when logo is shown */
.page-main .site-header { margin-bottom: 0; }

@media (max-width: 800px) {
  :root { --pad: 1.15rem; }
  .treats-grid,
  .about-grid,
  .order-layout {
    grid-template-columns: 1fr;
  }
  .about-figure .frame { aspect-ratio: 2 / 3; }
  .about-figure .frame img { object-position: 85% 25%; }
  .touch-card { padding: 1.5rem 1.2rem 1.7rem; }
  .contact-rows li { grid-template-columns: 7rem 1fr; }
  .hero { padding-bottom: 2.6rem; }
  .frame-panorama { aspect-ratio: 16 / 9; }
  .hero-lead { font-size: 1.08rem; color: var(--ink); }
}

@media (max-width: 480px) {
  .site-header {
    padding-top: 1rem;
    align-items: center;
  }
  .brand { font-size: 1.28rem; }
  .site-nav { font-size: 0.98rem; gap: 0.3rem 0.9rem; }
  .hero h1 { max-width: 14ch; }
  .frame-wide-row { aspect-ratio: 4 / 3; }
  .wheel-slice-label { font-size: 0.68rem; padding-left: 0.7rem; }
}

.spin-cta{white-space:nowrap;}
