/* ===== Gilt and Linen ===== */
:root {
  --blush: #f7e6e2;
  --blush-deep: #e8c3bc;
  --white: #fffdfb;
  --gold: #b8975a;
  --teal: #3f7f7a;
  --ink: #3b2f2d;
  --muted: #7a6763;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--teal); }

/* Visible outline when moving through links with the keyboard */
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: "Bodoni Moda", serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .4em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--gold);
}

.brand { display: block; }

.brand img { width: 64px; height: 64px; }

.nav { display: flex; gap: 22px; }

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.nav a:hover { color: var(--teal); }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 14px 38px;
  background: var(--teal);
  color: var(--white);
  border: 1px solid var(--teal);
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}

.btn:hover { background: transparent; color: var(--teal); }

.btn-small { padding: 9px 26px; font-size: .75rem; margin-top: auto; }

/* ----- Decorative ----- */
.sprig { width: 64px; height: auto; margin: 0 auto 12px; }

.gold-rule {
  display: block;
  width: 120px;
  height: 1px;
  background: var(--gold);
  margin: 22px auto 28px;
}

.gold-rule-left { margin-left: 0; }

/* ----- Hero (title on top, photo below) ----- */
.hero {
  padding: 64px 24px 56px;
}

.hero-text {
  position: relative;
  background: rgba(255, 253, 251, .65);
  outline: 1px solid var(--gold);
  outline-offset: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 64px 40px 56px;
  border: 1px solid var(--gold);
}

.bow {
  position: absolute;
  top: -44px;
  left: 50%;
  width: 130px;
  transform: translateX(-50%);
}

.corner {
  position: absolute;
  width: 90px;
  height: 90px;
  background: url("images/corner.svg") no-repeat center / contain;
  pointer-events: none;
}

.corner.tl { top: 8px; left: 8px; }
.corner.tr { top: 8px; right: 8px; transform: scaleX(-1); }
.corner.bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.corner.br { bottom: 8px; right: 8px; transform: scale(-1, -1); }

.subtitle {
  font-family: "Bodoni Moda", serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--muted);
  margin: 0;
}

.hero-note {
  margin: 18px 0 0;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-photo {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--gold);
  padding: 10px;
  background: var(--white);
}

.hero-photo img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center 15%;
}

/* ----- Sections ----- */
.section { padding: 80px 24px; }

/* Blush sections: tiny gold dot pattern + scalloped top and bottom edges */
.hero,
.section-blush {
  position: relative;
  background-color: var(--blush);
  background-image: radial-gradient(rgba(184, 151, 90, .22) 1.2px, transparent 1.8px);
  background-size: 26px 26px;
}

.hero::after,
.section-blush::before,
.section-blush::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background-size: 24px 12px;
  background-repeat: repeat-x;
}

.section-blush::before {
  top: -12px;
  background-image: radial-gradient(circle at 12px 12px, var(--blush) 11.5px, transparent 12px);
}

.hero::after,
.section-blush::after {
  bottom: -12px;
  background-image: radial-gradient(circle at 12px 0, var(--blush) 11.5px, transparent 12px);
}

.section-head {
  position: relative;
  z-index: 0;
  text-align: center;
  margin-bottom: 48px;
}

/* Heading divider: gold line, teal sprig, gold line */
.section-head h2::after {
  content: "";
  display: block;
  width: 180px;
  height: 26px;
  margin: 14px auto 0;
  background:
    url("images/sprig.svg") center / 42px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left center / 60px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 60px 1px no-repeat;
}

/* Ribbon banner under each heading */
.section-head p {
  position: relative;
  display: inline-block;
  margin: 18px 0 0;
  padding: 8px 30px;
  background: #ecc1b9;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-head p::before,
.section-head p::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8px;
  width: 30px;
  height: 100%;
  background: #d9a39a;
}

.section-head p::before {
  left: -20px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 35% 50%);
}

.section-head p::after {
  right: -20px;
  clip-path: polygon(0 0, 100% 0, 65% 50%, 100% 100%, 0 100%);
}

.center { text-align: center; margin-top: 40px; }

/* ----- Cards ----- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; }

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px rgba(184, 151, 90, .45);
  padding: 14px 14px 26px;
  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px rgba(184, 151, 90, .45),
              0 14px 28px rgba(59, 47, 45, .12);
}

/* Diagonal "Bestseller" ribbon across the card corner */
.corner-ribbon {
  position: absolute;
  z-index: 1;
  top: 26px;
  left: -42px;
  width: 170px;
  padding: 6px 0;
  transform: rotate(-45deg);
  background: var(--teal);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  color: var(--white);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 18px;
}

.card-wide img { aspect-ratio: 4 / 3; }

/* Cut-out dessert photos (transparent PNGs): sit on a soft blush disc with a shadow */
.card img.cutout,
.feature-photo img.cutout {
  object-fit: contain;
  padding: 4%;
  background: radial-gradient(circle at 50% 55%, var(--blush) 0 58%, rgba(247, 230, 226, 0) 59%);
  filter: drop-shadow(0 10px 10px rgba(59, 47, 45, .18));
}

.feature-photo img.cutout {
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 4%;
  border: 0;
  background-color: transparent;
}

.price {
  font-family: "Bodoni Moda", serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin: 0 0 8px;
}

.desc { margin: 0 0 18px; color: var(--muted); }

/* Size choice on a menu card (no JavaScript: the checked radio shows its price) */
.size-picker {
  min-width: 0;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  text-align: center;
}

.size-picker legend {
  margin: 0 auto 8px;
  padding: 0;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.size-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-picker label {
  display: inline-block;
  margin: 0 2px 10px;
  padding: 3px 14px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  font-size: .85rem;
  cursor: pointer;
}

.size-picker input:checked + label { background: var(--teal); color: var(--white); }

.size-picker input:focus-visible + label {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.price-family { display: none; }

#bites-family:checked ~ .price-regular { display: none; }

#bites-family:checked ~ .price-family { display: block; }

/* Menu: center an unfinished last row of cards */
#menu .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#menu .card { flex: 0 1 calc((100% - 56px) / 3); }

@media (max-width: 900px) {
  #menu .card { flex-basis: calc((100% - 28px) / 2); }
}

@media (max-width: 720px) {
  #menu .card { flex-basis: calc((100% - 16px) / 2); }
}

@media (max-width: 420px) {
  #menu .card { flex-basis: 100%; }
}

/* ----- Custom cakes ----- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-photo { position: relative; }

.feature-photo img { border: 1px solid var(--gold); padding: 10px; background: var(--white); }

/* Round gold seal over the cake photo */
.seal {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 5px var(--white), 0 0 0 6px var(--gold), 0 6px 16px rgba(59, 47, 45, .15);
  font-family: "Bodoni Moda", serif;
  font-style: italic;
  font-size: .95rem;
  line-height: 1.1;
  color: var(--teal);
  transform: rotate(10deg);
}

/* Cake menu card: matches the hero card (gold double frame, corner flourishes) */
.cake-menu {
  position: relative;
  min-width: 0;
  text-align: center;
  background: rgba(255, 253, 251, .65);
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 6px;
  padding: 44px 40px 32px;
}

.cake-menu h3 {
  font-family: "Bodoni Moda", serif;
  font-weight: 400;
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.cake-menu-note {
  font-family: "Bodoni Moda", serif;
  font-style: italic;
  color: var(--muted);
  margin: 0 auto;
  max-width: 340px;
}

.cake-menu .gold-rule { margin: 18px auto 10px; }

/* Collapsible rows */
.cake-row {
  text-align: left;
  border-bottom: 1px solid var(--blush-deep);
}

.cake-row summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 4px;
}

.cake-row summary::-webkit-details-marker { display: none; }

.row-title {
  font-family: "Bodoni Moda", serif;
  font-size: 1.15rem;
  color: var(--ink);
}

.row-hint {
  margin-left: auto;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--gold);
  white-space: nowrap;
}

/* Plus sign that turns into a minus when open */
.cake-row summary::after {
  content: "+";
  flex: none;
  width: 1em;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--teal);
}

.cake-row[open] summary::after { content: "\2212"; }

.cake-row summary:hover .row-title { color: var(--teal); }

.cake-row summary:focus-visible { outline: 1px solid var(--teal); outline-offset: 2px; }

/* Printed-menu style list with dotted leaders */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0 4px 18px;
}

.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: .95rem;
}

.menu-list li span:first-child {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 8px;
}

.menu-list li span:first-child::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted var(--gold);
  opacity: .6;
}

.menu-list .amt {
  font-family: "Bodoni Moda", serif;
  color: var(--gold);
}

.menu-list-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}

.cake-menu .btn { margin-top: 28px; }

.cake-menu-lead {
  margin: 16px 0 0;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
}

.cake-menu-fine {
  margin: 10px auto 0;
  max-width: 380px;
  font-size: .78rem;
  color: var(--muted);
}

.cake-menu-fine a { color: var(--teal); }

@media (max-width: 760px) {
  .cake-menu { padding: 36px 18px 26px; }
  .cake-menu h3 { font-size: 1.45rem; }
  .row-hint { font-size: .72rem; letter-spacing: .04em; }
}

@media (max-width: 420px) {
  .menu-list-2 { grid-template-columns: 1fr; }
}

/* ----- How to order ----- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: "Bodoni Moda", serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.steps p { margin: 0; color: var(--muted); }

.steps strong { display: block; font-weight: 500; color: var(--teal); }

/* ----- Story ----- */
.story {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Story photo: slightly tilted print with a ribbon "tape" on top */
.story-photo {
  position: relative;
  transform: rotate(-2deg);
}

.story-photo img {
  border: 1px solid var(--gold);
  padding: 10px 10px 36px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(59, 47, 45, .12);
}

.story-photo::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 28px;
  transform: translateX(-50%) rotate(3deg);
  background: rgba(217, 163, 154, .85);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

/* ----- Footer ----- */
.site-footer {
  text-align: center;
  padding: 50px 24px 40px;
  border-top: 1px solid var(--gold);
  font-size: .95rem;
}

.footer-brand {
  font-family: "Bodoni Moda", serif;
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.site-footer p { margin: 0 0 8px; }

.allergens {
  max-width: 560px;
  margin: 20px auto 0 !important;
  font-size: .85rem;
  color: var(--muted);
}

.allergens strong { font-weight: 500; color: var(--ink); }

.copyright {
  margin-top: 18px !important;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.disclaimer {
  max-width: 560px;
  margin: 24px auto 0 !important;
  padding-top: 20px;
  border-top: 1px solid var(--blush-deep);
  font-size: .85rem;
  color: var(--muted);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { padding: 8px 16px; }
  .brand img { width: 52px; height: 52px; }
  .nav { gap: 14px; }
  .nav a { font-size: .7rem; letter-spacing: .1em; }

  .hero { padding: 52px 16px 40px; }
  .hero-photo img { height: 300px; }
  .hero-text { margin-bottom: 28px; padding: 52px 20px 40px; }
  .bow { width: 100px; top: -34px; }
  .corner { width: 56px; height: 56px; }
  .seal { width: 84px; height: 84px; font-size: .8rem; top: -16px; right: -6px; }
  .section-head p { font-size: .7rem; padding: 7px 18px; }

  .section { padding: 56px 16px; }
  .grid, .grid-4 { gap: 16px; }
  .grid-2, .feature, .steps, .story { grid-template-columns: 1fr; }
  .feature, .story { gap: 28px; }
}

@media (max-width: 420px) {
  .nav { gap: 10px; }
  .grid, .grid-4 { grid-template-columns: 1fr; }
}
