/* The Bread and the Blessing: colors and look taken from Jessica's logo */
:root {
  --parchment: #f3e8d3;
  --parchment-2: #eadbbf;
  --paper: #fbf6ec;
  --ink: #3b2416;
  --ink-soft: #6b4a33;
  --crust: #8a4b22;
  --wheat: #c8963e;
  --wheat-light: #e2bf7a;
  --sage: #7d8c63;
  --shadow: 0 18px 40px -18px rgba(59, 36, 22, .45);
  --script: "Great Vibes", cursive;
  --hand: "Caveat", cursive;
  --serif: "EB Garamond", Georgia, serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--noise), radial-gradient(ellipse at top, var(--paper), var(--parchment) 60%) fixed;
  background-color: var(--parchment);
  color: var(--ink);
  font: 400 1.18rem/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(2.6rem, 6vw, 4rem)/1.1 var(--script); color: var(--ink); }
h3 { font: 600 1.25rem/1.3 var(--serif); letter-spacing: .01em; }
.kicker { font: 700 1.35rem/1 var(--hand); color: var(--crust); margin: 0 0 .5rem; }
.handwritten { font: 500 1.6rem/1.3 var(--hand); color: var(--crust); }
.small { font-size: .9rem; color: var(--ink-soft); }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem clamp(16px, 4vw, 40px);
  background: rgba(251, 246, 236, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 75, 34, .15);
  transform: translateY(-100%); transition: transform .5s ease;
}
.topbar.show { transform: none; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 400 1.7rem/1 var(--script); white-space: nowrap; }
.brand em { font-style: normal; color: var(--wheat); }
.topbar nav { display: flex; gap: clamp(.6rem, 2vw, 1.6rem); align-items: center; }
.topbar nav a { text-decoration: none; font-size: 1.02rem; color: var(--ink-soft); transition: color .2s; }
.topbar nav a:hover { color: var(--crust); }
.pill { border: 1px solid var(--crust); padding: .2rem .9rem; border-radius: 99px; color: var(--crust) !important; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 5rem 16px 4rem; overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(circle at 50% 42%, rgba(255, 250, 240, .95), rgba(243, 232, 211, 0) 58%);
}
.flour { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { text-align: center; max-width: 640px; }
.soon {
  display: inline-block; margin: 0 0 1rem; padding: .15rem 1rem; border-radius: 99px;
  font: 700 1.25rem/1.4 var(--hand); color: var(--paper); background: var(--crust);
  box-shadow: 0 6px 18px -8px rgba(138, 75, 34, .8); transform: rotate(-2deg);
}
.hero-logo {
  width: min(78vw, 430px); margin: 0 auto; border-radius: 50%;
  filter: drop-shadow(0 22px 30px rgba(59, 36, 22, .32));
  animation: float 7s ease-in-out infinite;
}
.hero-line { font-size: clamp(1.2rem, 2.6vw, 1.45rem); color: var(--ink-soft); margin: 1.4rem 0 1.6rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .7rem 1.6rem; border-radius: 99px; text-decoration: none;
  background: var(--ink); color: var(--paper); font-weight: 500; letter-spacing: .02em;
  box-shadow: var(--shadow); transition: transform .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--crust); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

.wheat { position: absolute; bottom: -10px; width: clamp(90px, 13vw, 170px); height: auto; z-index: -1; opacity: .9; }
.wheat-left { left: clamp(-20px, 2vw, 40px); }
.wheat-right { right: clamp(-20px, 2vw, 40px); transform: scaleX(-1); }
.wheat .stem, .sprig .stem { fill: none; stroke: #b07f37; stroke-width: 3; stroke-linecap: round; }
.wheat .awn { fill: none; stroke: #c9a159; stroke-width: 1.4; stroke-linecap: round; }
.wheat .grains use { fill: var(--wheat); stroke: #a8762e; stroke-width: 1; }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; }
.sway.s2 { animation-duration: 7.4s; animation-delay: -2s; }
.sway.s3 { animation-duration: 5.6s; animation-delay: -4s; }

.scroll-cue { position: absolute; bottom: 1.4rem; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--ink-soft); border-radius: 14px; opacity: .6; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink-soft); animation: cue 1.8s ease-in-out infinite; }

/* Sections */
section { padding: clamp(4rem, 9vw, 7rem) clamp(16px, 5vw, 48px); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head p:last-child { color: var(--ink-soft); }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 560px); justify-content: center; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.story-text p { margin: 0 0 1rem; }
.story-text h2 { margin-bottom: 1.2rem; }
.signature { font: 400 2.4rem/1 var(--script); color: var(--crust); margin-top: 1.4rem !important; }
.polaroid { margin: 0; background: #fffdf8; padding: 14px 14px 10px; box-shadow: var(--shadow); position: relative; }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; translate: -50% 0; rotate: 3deg; background: rgba(226, 191, 122, .55); }
.polaroid figcaption { font: 500 1.5rem/1.2 var(--hand); text-align: center; color: var(--ink-soft); padding-top: .5rem; }
.tilt-left { rotate: -2.5deg; }

/* Cards */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: -1rem auto 2.4rem; }
.tabs button {
  font: 500 1rem/1 var(--serif); color: var(--ink-soft); background: transparent; cursor: pointer;
  border: 1px solid rgba(107, 74, 51, .35); border-radius: 99px; padding: .55rem 1.1rem; transition: all .2s;
}
.tabs button[aria-selected="true"], .tabs button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); max-width: 1180px; margin: 0 auto; }
.card {
  background: #fffdf8; padding: 12px 12px 18px; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, opacity .35s;
}
.card:nth-child(odd) { rotate: -1deg; }
.card:nth-child(even) { rotate: 1.2deg; }
.card:hover { transform: translateY(-6px) rotate(0deg); box-shadow: 0 26px 50px -20px rgba(59, 36, 22, .55); }
.card img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.card div { padding: .9rem .3rem 0; }
.card p { margin: .35rem 0 0; font-size: 1.02rem; color: var(--ink-soft); line-height: 1.5; }
.card.hide { display: none; }

/* Verse */
.verse {
  background: var(--noise), linear-gradient(180deg, #4a2d1b, var(--ink));
  color: var(--parchment); text-align: center; padding-block: clamp(4rem, 9vw, 6.5rem);
}
.verse blockquote { margin: 1rem auto; max-width: 900px; }
.verse p { margin: 0; font: 400 clamp(2.4rem, 6.5vw, 4.6rem)/1.15 var(--script); }
.verse cite { display: block; margin-top: 1rem; font: 500 .95rem/1 var(--serif); letter-spacing: .3em; text-transform: uppercase; font-style: normal; color: var(--wheat-light); }
.sprig { width: min(240px, 60vw); height: auto; }
.sprig.flip { transform: scaleX(-1); }
.sprig .stem { stroke: var(--wheat-light); stroke-width: 1.5; }
.sprig .leaf { fill: var(--sage); }
.sprig .heart { fill: var(--wheat-light); }

/* Offer */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; max-width: 1100px; margin: 0 auto; }
.offer-item { text-align: center; padding: 2rem 1.4rem; border: 1px dashed rgba(138, 75, 34, .4); border-radius: 18px; background: rgba(255, 253, 248, .55); }
.offer-item svg { width: 54px; height: 54px; fill: none; stroke: var(--crust); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .8rem; }
.offer-item p { margin: .5rem 0 0; color: var(--ink-soft); font-size: 1.05rem; }

/* Gallery */
.masonry { columns: 4 240px; column-gap: 14px; max-width: 1240px; margin: 0 auto; }
.masonry a { display: block; margin-bottom: 14px; break-inside: avoid; overflow: hidden; border-radius: 10px; box-shadow: 0 12px 26px -16px rgba(59, 36, 22, .55); }
.masonry img { width: 100%; transition: transform .6s ease, filter .6s; }
.masonry a:hover img { transform: scale(1.05); filter: saturate(1.1); }

/* Orders */
.orders { display: grid; place-items: center; }
.order-card {
  text-align: center; max-width: 560px; padding: 3rem clamp(1.4rem, 5vw, 3rem); border-radius: 26px;
  background: #fffdf8; box-shadow: var(--shadow); border: 1px solid rgba(138, 75, 34, .15);
}
.order-card img { margin: 0 auto 1rem; width: 110px; border-radius: 50%; }
.order-card p { color: var(--ink-soft); }
.order-card .handwritten { color: var(--crust); margin: 1.2rem 0 0; }

/* Footer */
.footer { text-align: center; padding: 3rem 16px 3.5rem; border-top: 1px solid rgba(138, 75, 34, .18); }
.footer img { margin: 0 auto .6rem; border-radius: 50%; }
.footer p { margin: .2rem 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(30, 18, 10, .92); display: grid; place-items: center; padding: 2rem 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; max-width: min(1100px, 100%); width: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--parchment); font-size: 3rem; line-height: 1; cursor: pointer; padding: .5rem 1rem; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .25rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .25rem; top: 50%; translate: 0 -50%; }
.lb-caption { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: var(--parchment-2); font-size: 1rem; padding: 0 3rem; margin: 0; }

/* Scroll-in */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in:hover { transform: translateY(-6px); }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-12px) rotate(.6deg); } }
@keyframes sway { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Phones */
@media (max-width: 760px) {
  .topbar nav a:not(.pill) { display: none; }
  .brand span { font-size: 1.45rem; }
  .story { grid-template-columns: 1fr; }
  .polaroid { max-width: 360px; margin: 0 auto; }
  .wheat { opacity: .55; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .masonry a { margin-bottom: 10px; }
  .card:nth-child(n) { rotate: 0deg; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Small logo sizes (the file itself is larger, for sharp screens) */
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer img { width: 64px; height: 64px; }
