/* Little Flour Baking Co. — hand-written styles, mobile first. */
:root {
  --cream: #faf7f2;
  --cream-2: #f3ede4;
  --ink: #3d3832;
  --ink-soft: #6b635a;
  --line: #e2dbd0;
  --espresso: #2f2a25;
  --espresso-2: #3e3933;
  --badge-black: #030303; /* matches the "Built by AlphaGate" badge background */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --script: "Pinyon Script", "Brush Script MT", cursive;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4rem; }
html, body { overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 44rem; }
.center { text-align: center; }
.section { padding: clamp(3.5rem, 10vw, 6.5rem) 0; }

.eyebrow {
  font: 500 .72rem/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.display {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
}
.lead { font-size: 1.05rem; color: var(--ink-soft); }

.btn {
  display: inline-block;
  font: 500 .75rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border: 1px solid currentColor;
  transition: background-color .2s, color .2s;
}
.btn--light { color: var(--cream); background: rgba(47, 42, 37, .25); backdrop-filter: blur(2px); }
.btn--light:hover, .btn--light:focus-visible { background: var(--cream); color: var(--ink); }
.btn--dark { color: var(--ink); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--ink); color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--max); margin: 0 auto;
  padding: .55rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wordmark { font: 400 1.9rem/1.1 var(--script); text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); min-width: 0; }
.site-nav a {
  font: 500 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; padding: .6rem 0; white-space: nowrap;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }


/* ---------- Hero ---------- */
.hero { position: relative; background: #e9dfd2; }
.hero__img { width: 100%; aspect-ratio: 1000 / 941; object-fit: cover; }
.hero__cta { position: absolute; left: var(--pad); bottom: clamp(1rem, 5vw, 3rem); }
@media (min-width: 768px) {
  .hero__img { aspect-ratio: 1672 / 941; max-height: calc(100svh - 3.5rem); }
}

/* ---------- Marquee band ---------- */
.band { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--cream); }
.band__track {
  display: flex; width: max-content;
  animation: band 38s linear infinite;
}
.band span {
  font: 500 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-soft); padding: 1.15rem 2rem; white-space: nowrap;
}
@keyframes band { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band__track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Story ---------- */
.story { padding-top: 0; }
.story__grid { display: grid; gap: 2.5rem; align-items: center; }
.story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story__text p:not(.eyebrow) { color: var(--ink-soft); }
@media (min-width: 900px) {
  .story__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---------- Section label (thin rule) ---------- */
.section__head { border-bottom: 1px solid var(--line); margin-bottom: 2rem; text-align: center; }
.section__label {
  font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  padding-bottom: 1.1rem;
}

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); padding-top: 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tile { overflow: hidden; background: var(--cream-2); }
.tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.03); }
@media (min-width: 900px) { .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }

/* ---------- Video (when enabled) ---------- */
.video__frame { margin-top: 2rem; background: var(--espresso); }
.video__frame video { width: 100%; }

/* ---------- Bakes / coming soon ---------- */
.bakes { padding-top: 0; }
.soon {
  text-align: center; background: var(--cream-2);
  padding: clamp(2.5rem, 8vw, 4.5rem) var(--pad);
  border: 1px solid var(--line);
}
.soon p:last-child { color: var(--ink-soft); max-width: 32rem; margin: 0 auto; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }
.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--cream-2); }
.product h3 { font: 500 1.1rem/1.3 var(--serif); letter-spacing: .06em; text-transform: uppercase; margin: .9rem 0 .25rem; }
.product p { font-size: .9rem; color: var(--ink-soft); margin-bottom: .75rem; }
.product .btn { padding: .8rem 1rem; }

/* ---------- Contact ---------- */
.contact { background: var(--espresso); color: var(--cream); }
.contact .display { font-size: clamp(2rem, 7vw, 3rem); }
.contact .lead { color: #c9bfb2; margin-bottom: 0; }
.contact__links { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.contact__links .btn { color: var(--cream); }
.contact__links .btn:hover { background: var(--cream); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso-2); color: #d8cfc3; font-size: .9rem; }
.site-footer__grid { display: grid; gap: 1.5rem; padding-top: 2.75rem; padding-bottom: 2rem; }
.site-footer__name { font: italic 500 1rem/1.3 var(--serif); letter-spacing: .08em; text-transform: uppercase; color: var(--cream); margin-bottom: .35rem; }
.site-footer__tag { font: italic 400 .95rem/1.3 var(--serif); margin: 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer__nav a { text-decoration: none; padding: .35rem 0; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__legal { border-top: 1px solid rgba(250, 247, 242, .12); padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: .8rem; color: #a99f92; }
.site-footer__legal p { margin: 0; }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1fr auto; align-items: start; }
}

/* "Built by AlphaGate" credit: dark strip matches the badge's own background. */
.built-by {
  background: var(--badge-black);
  display: flex; justify-content: center;
  padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom));
}
.built-by img { width: 191px; height: auto; opacity: .82; } /* 382px source shown at 2x density */

[hidden] { display: none !important; }

/* =====================================================================
   Additions (live streams, journal, collection, signup) in the v1 look
   ===================================================================== */

/* ---------- Header nav: one tidy line on phones ---------- */
.site-nav { align-items: center; }
.site-nav a { display: inline-flex; align-items: center; gap: .4em; }
.live-dot { width: .45rem; height: .45rem; border-radius: 50%; background: transparent; flex: none; } /* space reserved: no layout shift */
.is-live .live-dot { background: #b5534a; animation: pulse 1.6s ease-in-out infinite; }
.is-live[data-live-link] { color: #b5534a; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 519px) {
  .site-header__inner { padding-top: .5rem; padding-bottom: .5rem; }
  .wordmark { font-size: 1.6rem; }
  .site-nav { gap: .85rem; }
  .site-nav a { font-size: .64rem; letter-spacing: .12em; }
  .nav-wide { display: none !important; }   /* Bakes + Contact live in the page and footer */
}
@media (max-width: 379px) {
  .wordmark { font-size: 1.45rem; }
  .site-nav { gap: .7rem; }
  .site-nav a { letter-spacing: .08em; }
  .nav-long { display: none; }              /* "Our Story" -> "Story" */
}
/* Slim "live now" strip under the header row (only when she's live) */
.live-strip {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  background: #b5534a; color: #fff; text-decoration: none;
  font: 500 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: .6rem 1rem;
}
.live-strip .live-dot { background: #fff; animation: pulse 1.6s ease-in-out infinite; }

/* ---------- Story accent ---------- */
.story__accent { font: 400 clamp(1.7rem, 7vw, 2.2rem)/1.15 var(--script); color: var(--ink) !important; margin-top: 1.25rem; }

/* ---------- Streams ---------- */
.streams { padding-top: 0; }
.streams__list { display: grid; gap: 1.25rem; }
.stream { display: grid; gap: 1.25rem; align-items: start; background: var(--cream-2); border: 1px solid var(--line); padding: 1rem; }
.stream__media { justify-self: center; width: min(100%, 17rem); }
.stream__media img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.stream__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.stream__when { font: 500 .76rem/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .35rem; }
.stream h3 { font: 400 clamp(1.9rem, 7vw, 2.5rem)/1.1 var(--serif); margin-bottom: .75rem; }
.stream p { color: var(--ink-soft); }
.stream__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.stream--live { border-color: #b5534a; box-shadow: 0 0 0 1px #b5534a inset; }
.pill { display: inline-block; font: 500 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: .45rem .7rem; border: 1px solid #b9ad9e; color: var(--ink-soft); border-radius: 99px; }
.badge-live { display: inline-flex; align-items: center; gap: .45rem; background: #b5534a; color: #fff; font: 500 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 99px; }
.badge-live .dot { width: .45rem; height: .45rem; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.btn--live { background: #b5534a; border-color: #b5534a; color: #fff; }
.btn--live:hover, .btn--live:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.streams__empty { text-align: center; padding: 2.5rem var(--pad); border: 1px solid var(--line); background: var(--cream-2); }
.streams__empty p { margin: 0; color: var(--ink-soft); }
.streams__more { margin-top: 1.5rem; text-align: center; }
@media (min-width: 760px) { .stream { grid-template-columns: 15rem 1fr; padding: 1.25rem; gap: 2rem; } .stream__media { width: 100%; } }

/* ---------- Sourdough Collection (coming soon, no prices) ---------- */
.collection { display: grid; gap: .75rem; margin-top: 1.25rem; }
.collection__item { background: var(--cream); border: 1px solid var(--line); padding: 1.1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; }
.collection__item h4 { margin: 0; font: 500 1.05rem/1.3 var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.collection__item p { margin: .2rem 0 0; font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 760px) { .collection { grid-template-columns: repeat(3, minmax(0, 1fr)); } .collection__item { flex-direction: column; align-items: flex-start; } }

/* ---------- Join Our Table: honest signup ---------- */
.join__form { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.75rem; }
.join__form input { flex: 1 1 13rem; max-width: 20rem; min-width: 0; font: 400 .95rem/1 var(--sans); color: var(--cream); background: transparent; border: 1px solid rgba(250, 247, 242, .45); padding: .95rem 1rem; }
.join__form input::placeholder { color: #b8ad9f; }
.join__form input:focus { outline: 2px solid #c9bfb2; outline-offset: 1px; }
.join__form .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.join__form .btn:hover { background: transparent; color: var(--cream); }
.join__note { font-size: .92rem; margin: .9rem 0 0; color: #d8cfc3; min-height: 1.5em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Journal ---------- */
.page-head { text-align: center; margin: 0 auto 2.5rem; }
.empty-state { text-align: center; padding: clamp(2.5rem, 8vw, 4.5rem) var(--pad); border: 1px solid var(--line); background: var(--cream-2); }
.empty-state p { color: var(--ink-soft); max-width: 30rem; margin: 0 auto; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }
@media (min-width: 900px) { .post-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 22rem)); justify-content: center; } }
.post-card { text-decoration: none; display: block; background: var(--cream-2); border: 1px solid var(--line); }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card__body { padding: 1.1rem 1.2rem 1.4rem; }
.post-card time, .post time { font: 500 .66rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.post-card h2 { font: 400 1.7rem/1.15 var(--serif); margin: .4rem 0 .6rem; }
.post-card p { color: var(--ink-soft); margin: 0; }
.post-card:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post__intro { font: 400 clamp(1.9rem, 8vw, 2.6rem)/1.2 var(--script); text-align: center; margin: 1.75rem 0 0; padding: 1.4rem 1.25rem; background: var(--cream-2); border: 1px solid var(--line); }
.post__cover { margin: 2rem 0; }
.post__cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post__cover--portrait img { aspect-ratio: auto; width: min(100%, 24rem); margin: 0 auto; box-shadow: 0 10px 30px rgba(61, 56, 50, .12); }
.prose { font-size: 1.05rem; overflow-wrap: anywhere; }
.prose h2 { font: 400 2rem/1.15 var(--serif); margin: 2rem 0 .75rem; }
.prose h3 { font: 400 1.5rem/1.2 var(--serif); margin: 1.5rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid var(--line); font: italic 1.3rem/1.5 var(--serif); }
.back-link { display: inline-block; margin-top: 2.5rem; font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .is-live .live-dot, .live-strip .live-dot, .badge-live .dot { animation: none; } }
/* Live dot sits in the gap before "Live" so nav spacing stays even and nothing shifts */
.site-nav a[data-live-link] { position: relative; }
.site-nav a[data-live-link] .live-dot { position: absolute; left: -.8em; top: 50%; margin-top: -.225rem; }
/* TikTok icon in front of "Live from the Kitchen" (inherits nav color) */
.site-nav .nav-icon { width: 1.15em; height: 1.15em; flex: none; margin: -.1em -.05em -.1em 0; } /* negative block margin: header height unchanged */
/* Longer "Live from the Kitchen" label: keep Bakes/Contact for wider screens, tighten on the smallest phones */
@media (max-width: 679px) { .nav-wide { display: none !important; } }
@media (max-width: 349px) {
  .wordmark { font-size: 1.3rem; }
  .site-nav { gap: .6rem; }
  .site-nav a { font-size: .6rem; letter-spacing: .05em; }
}
.site-nav a[data-live-link] .live-dot { left: -1em; } /* clear of the TikTok icon */
/* "Follow on TikTok" button between stream cards (/live) and posts (/journal) */
.follow-between { margin: 0; text-align: center; grid-column: 1 / -1; }
.btn--follow { display: inline-flex; align-items: center; gap: .6em; }
.btn--follow .btn-icon { width: 1.25em; height: 1.25em; flex: none; margin: -.2em 0; }
