/* Peytie Pie's -- warm fall bakery theme (mirrors the fall flyer).
   All styling lives here: the CSP forbids inline styles. */

:root {
  --cream: #FBF3E4;
  --parchment: #F5E6CC;
  --parchment-deep: #EED9B5;
  --rust: #8B2E16;
  --burgundy: #6E2412;
  --pumpkin: #D9701E;
  --pumpkin-deep: #B4560F;
  --gold: #C98A2E;
  --brown: #4A2C1A;
  --brown-soft: #6B4A35;
  --white: #FFFDF8;
  --ok-bg: #EAF3E2;
  --ok-ink: #2F5320;
  --err-bg: #FBE6DF;
  --err-ink: #7A1E0C;

  --font-script: "Dancing Script", "Brush Script MT", cursive;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 4px rgba(74, 44, 26, .08), 0 8px 24px rgba(74, 44, 26, .10);
  --focus: 0 0 0 3px var(--cream), 0 0 0 6px var(--pumpkin-deep);
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--brown);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse at top left, rgba(217, 112, 30, .08), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(139, 46, 22, .07), transparent 55%);
  background-attachment: fixed;
}

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

a { color: var(--rust); text-underline-offset: .18em; }
a:hover { color: var(--burgundy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
.star:has(input:focus-visible) {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

h1, h2, h3 { font-family: var(--font-serif); color: var(--rust); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.left { text-align: left; }
.script { font-family: var(--font-script); font-weight: 700; color: var(--rust); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* honeypot: hidden from humans by class (no inline styles) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--rust); color: var(--cream); padding: .5rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; color: var(--cream); }
main:focus { outline: none; }

/* ------------------------------------------------------------------ header */
.site-header {
  background: rgba(251, 243, 228, .94);
  border-bottom: 1px solid var(--parchment-deep);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.logo {
  font-family: var(--font-script); font-weight: 700; font-size: 2.1rem; line-height: 1.1;
  color: var(--rust); text-decoration: none; padding: .1rem .25rem;
}
.logo:hover { color: var(--burgundy); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .25rem; }
.site-nav a {
  display: inline-block; padding: .45rem .7rem; border-radius: 999px;
  font-weight: 700; color: var(--brown); text-decoration: none; font-size: .98rem;
}
.site-nav a:hover { background: var(--parchment); color: var(--rust); }
.site-nav a[aria-current="page"] { background: var(--rust); color: var(--cream); }

/* ------------------------------------------------------------------ divider */
.divider { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .6rem auto 1rem; color: var(--rust); }
.divider-sprig { width: 92px; height: auto; }
.divider-sprig.flip { transform: scaleX(-1); }
.divider-sprig .stem { stroke: var(--rust); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.divider-sprig .leaf { fill: var(--pumpkin); }
.divider-sprig .leaf-gold { fill: var(--gold); }
.divider-heart { fill: var(--rust); flex: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 700; line-height: 1.2;
  padding: .75rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust); color: var(--cream); }
.btn-primary:hover { background: var(--burgundy); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--rust); border-color: var(--rust); }
.btn-ghost:hover { background: var(--rust); color: var(--cream); }
.btn-danger { background: var(--white); color: var(--err-ink); border-color: var(--err-ink); }
.btn-danger:hover { background: var(--err-ink); color: var(--white); }
.btn-small { padding: .45rem .95rem; font-size: .92rem; }

/* ------------------------------------------------------------------ hero */
.hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(ellipse at center, var(--cream) 0%, var(--parchment) 70%, var(--parchment-deep) 100%);
  border-bottom: 1px solid var(--parchment-deep);
  position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 112, 30, .22), transparent 70%);
  pointer-events: none;
}
.hero::before { left: -80px; top: -60px; }
.hero::after { right: -80px; bottom: -70px; background: radial-gradient(circle, rgba(139, 46, 22, .18), transparent 70%); }
.hero-inner { position: relative; }
.hero-kicker {
  font-family: var(--font-serif); text-transform: uppercase; letter-spacing: .14em;
  color: var(--burgundy); font-weight: 600; font-size: 1rem; margin: 0;
}
.hero-brand {
  font-family: var(--font-script); font-weight: 700; color: var(--rust);
  font-size: clamp(3.4rem, 15vw, 7rem); line-height: 1; margin: .1em 0 .2em;
  text-shadow: 0 2px 0 rgba(255, 253, 248, .7);
}
.hero-tag {
  font-family: var(--font-serif); text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; color: var(--burgundy); font-size: .95rem;
}
.hero-tag .dot { color: var(--pumpkin-deep); margin: 0 .3em; }
.hero-by { font-family: var(--font-script); font-size: 2rem; color: var(--burgundy); margin-bottom: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ------------------------------------------------------------------ sections */
.section { padding: 3rem 0; }
.section-tight { padding-top: 1rem; }
.section-alt { background: var(--parchment); border-top: 1px solid var(--parchment-deep); border-bottom: 1px solid var(--parchment-deep); }
.section-title { text-align: center; font-size: clamp(1.7rem, 4.5vw, 2.3rem); }
.section-lead { text-align: center; max-width: 44rem; margin-left: auto; margin-right: auto; color: var(--brown-soft); }
.page-head { padding-bottom: 1rem; }
.page-title { font-family: var(--font-script); font-weight: 700; font-size: clamp(2.8rem, 10vw, 4.2rem); margin: 0; }

/* offerings */
.offerings {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
.offer-card {
  background: var(--white); border: 1px solid var(--parchment-deep); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem; box-shadow: var(--shadow); position: relative;
}
.offer-card h3 { font-size: 1.3rem; margin: .4rem 0 .35rem; }
.offer-card p { margin: 0; color: var(--brown-soft); font-size: .98rem; }
.leaf-icon { fill: var(--rust); }
.offer-pumpkin .leaf-icon { fill: var(--pumpkin-deep); }
.offer-gold .leaf-icon { fill: var(--gold); }
.offer-more { background: var(--rust); border-color: var(--burgundy); text-align: center; display: flex; flex-direction: column; justify-content: center; }
.offer-more h3, .offer-more .script { color: var(--cream); font-size: 2.2rem; margin: 0; }
.offer-more p { color: var(--parchment); }

/* thumbnails */
.thumb-grid {
  list-style: none; margin: 1.25rem 0; padding: 0;
  display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.thumb {
  display: block; border-radius: var(--radius); overflow: hidden; background: var(--parchment-deep);
  box-shadow: var(--shadow); border: 3px solid var(--white);
}
.thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .3s ease; }
.thumb:hover img { transform: scale(1.04); }

/* flyer */
.menu-wrap { display: grid; gap: 2rem; align-items: center; }
.menu-copy .section-title { text-align: left; }
.flyer { margin: 0; max-width: 460px; justify-self: center; }
.flyer img { border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid var(--white); }
.flyer figcaption { text-align: center; font-size: .9rem; color: var(--brown-soft); margin-top: .5rem; }

/* CTA */
.cta { background: linear-gradient(180deg, var(--cream), var(--parchment)); }

/* ------------------------------------------------------------------ reviews */
.reviews-layout { display: grid; gap: 2rem; }
.review-list { display: grid; gap: 1rem; }
.review-list-teaser { grid-template-columns: 1fr; margin-bottom: 1.25rem; }
.review-card {
  background: var(--white); border: 1px solid var(--parchment-deep); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; box-shadow: var(--shadow);
}
.review-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.review-name { font-size: 1.15rem; margin: 0; overflow-wrap: anywhere; }
.stars { color: var(--pumpkin-deep); letter-spacing: .1em; font-size: 1.15rem; margin: 0; }
.review-text { white-space: pre-line; overflow-wrap: anywhere; margin: .5rem 0; }
.review-date { font-size: .88rem; color: var(--brown-soft); margin: 0; }
.empty { color: var(--brown-soft); font-style: italic; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.pager-status { color: var(--brown-soft); }

.notice { border-radius: var(--radius-sm); padding: .85rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; }
.notice p { margin: 0; }
.notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.notice-ok { background: var(--ok-bg); color: var(--ok-ink); border-color: #b9d3a6; }
.notice-err { background: var(--err-bg); color: var(--err-ink); border-color: #ecb7a6; }

/* form */
.review-form {
  background: var(--white); border: 1px solid var(--parchment-deep); border-radius: var(--radius);
  padding: 1.4rem 1.25rem; box-shadow: var(--shadow);
}
.form-title { font-size: 1.5rem; margin-bottom: .25rem; }
.form-help { color: var(--brown-soft); font-size: .95rem; }
.field { margin: 0 0 1rem; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--brown); padding: 0; }
.hint { font-weight: 400; color: var(--brown-soft); font-size: .9rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--brown); background: var(--cream);
  border: 2px solid var(--parchment-deep); border-radius: var(--radius-sm); padding: .65rem .75rem;
}
input[type="text"]:hover, input[type="email"]:hover, textarea:hover { border-color: var(--gold); }
textarea { resize: vertical; min-height: 8rem; }
[aria-invalid="true"] { border-color: var(--err-ink) !important; }

.rating-stars { display: flex; gap: .15rem; }
.star { position: relative; cursor: pointer; display: inline-flex; padding: .1rem .15rem; }
.star input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.star-glyph { font-size: 2.1rem; line-height: 1; color: var(--parchment-deep); transition: color .1s, transform .1s; -webkit-text-stroke: 1px var(--gold); }
.star:hover .star-glyph { transform: scale(1.1); }
/* fill every star up to and including the checked one */
.rating-stars:has(.star:nth-child(1) input:checked) .star:nth-child(-n+1) .star-glyph,
.rating-stars:has(.star:nth-child(2) input:checked) .star:nth-child(-n+2) .star-glyph,
.rating-stars:has(.star:nth-child(3) input:checked) .star:nth-child(-n+3) .star-glyph,
.rating-stars:has(.star:nth-child(4) input:checked) .star:nth-child(-n+4) .star-glyph,
.rating-stars:has(.star:nth-child(5) input:checked) .star:nth-child(-n+5) .star-glyph { color: var(--pumpkin); }

/* ------------------------------------------------------------------ contact */
.contact-wrap { display: flex; justify-content: center; }
.contact-card {
  width: 100%; max-width: 560px; text-align: center;
  background: var(--white); border: 1px solid var(--parchment-deep); border-radius: var(--radius);
  padding: 2rem 1.25rem; box-shadow: var(--shadow);
}
.contact-name { font-family: var(--font-script); font-weight: 700; font-size: 2.4rem; color: var(--rust); margin: 0; line-height: 1.1; }
.contact-sub { color: var(--brown-soft); }
.contact-list { margin: 1.25rem 0; display: grid; gap: 1rem; }
.contact-list dt { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brown-soft); font-weight: 700; }
.contact-list dd { margin: .15rem 0 0; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-note { font-family: var(--font-serif); color: var(--burgundy); margin: 0; }
.contact-note .script { font-size: 1.35rem; }

/* ------------------------------------------------------------------ lightbox (pure CSS :target) */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 50;
  align-items: center; justify-content: center; padding: 3.5rem 12px 4.5rem;
}
.lightbox:target { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(43, 24, 12, .88); }
.lightbox-figure { position: relative; margin: 0; max-width: min(960px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox-figure img {
  max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); width: auto; max-width: 100%;
  border-radius: var(--radius-sm); border: 4px solid var(--cream); box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.lightbox-figure figcaption { color: var(--cream); text-align: center; margin-top: .6rem; font-size: .98rem; max-width: 40rem; }
.lightbox-nav { position: absolute; left: 0; right: 0; bottom: 1rem; display: flex; justify-content: center; gap: .75rem; }
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem;
  border-radius: 50%; background: var(--cream); color: var(--rust); font-size: 1.5rem; font-weight: 700;
  text-decoration: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.lb-btn:hover { background: var(--pumpkin); color: var(--white); }
.lb-btn:focus-visible { box-shadow: 0 0 0 3px var(--pumpkin), 0 0 0 6px var(--cream); border-radius: 50%; }

/* ------------------------------------------------------------------ error */
.error-code { font-family: var(--font-serif); font-size: 1rem; letter-spacing: .2em; color: var(--brown-soft); margin: 0; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--burgundy); color: var(--parchment); text-align: center; padding: 2rem 0 1.5rem; margin-top: 0; }
.site-footer .divider-sprig .stem { stroke: var(--parchment); }
.site-footer .divider-heart { fill: var(--pumpkin); }
.footer-brand { font-family: var(--font-script); font-size: 2.2rem; font-weight: 700; color: var(--cream); margin: 0; line-height: 1.1; }
.footer-tag { font-family: var(--font-serif); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: .3rem 0 .8rem; }
.footer-small { font-size: .85rem; margin: 0; color: var(--parchment); }

/* ------------------------------------------------------------------ larger screens */
@media (min-width: 600px) {
  .offerings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .review-list-teaser { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .divider-sprig { width: 120px; }
}
@media (min-width: 900px) {
  .offerings { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .thumb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .thumb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu-wrap { grid-template-columns: 1.1fr 1fr; }
  .reviews-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .form-col { position: sticky; top: 5.5rem; }
  .hero { padding: 4rem 0 4.5rem; }
  .logo { font-size: 2.4rem; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .offerings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
