/* Luna Bakery — Church Gate, Loughborough.
   Named for the moon, so the moon does the work: phase discs mark the counter
   items and the bakery day, and the hero moon is a cruffin spiral seen from
   above. Photography can drop into the hero and counter later without the
   layout changing — the page is built to stand up before it arrives. */

:root {
  /* Sampled from the bakery's own logo file: their stone and their navy. */
  --night: #1A2737;
  --night-2: #223447;
  --night-3: #2C4257;
  --stone: #DED8CA;
  --cream: #FBF6EE;
  --cream-2: #F4ECDF;
  --ink: #22303D;
  --ink-soft: #55636F;
  --gold: #E0AC58;
  --gold-deep: #C08C36;
  --crust: #A85F33;
  --line: #E4D9C7;
  --line-dark: rgba(224, 172, 88, 0.24);

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 48px);
  --r: 18px;

  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --phase-bg: var(--cream);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.35rem); }
/* Let the browser pick the break. A hard <br> in a headline this fluid is
   right at exactly one window width and wrong either side of it. */
h1, h2 { text-wrap: balance; }
.hero h1 { max-width: 15ch; }
h2 { font-size: clamp(1.85rem, 1.35rem + 2.1vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.42rem); }
p { margin: 0 0 1.05em; }
a { color: inherit; }

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

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--night); color: var(--cream); padding: 10px 16px;
  border-radius: 0 0 10px 10px; text-decoration: none; font-weight: 600;
  transition: top .18s ease;
}
.skip:focus { top: 0; }

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- moon phases ---------- */

.phase {
  --size: 26px;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  overflow: hidden;
  display: inline-block;
  flex: none;
}
.phase::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--phase-bg);
}
.phase-full::after { display: none; }
.phase-gibbous::after { transform: translateX(-66%); }
.phase-half::after { transform: translateX(-50%); }
.phase-crescent::after { transform: translateX(-30%); }
.phase-new { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold); }
.phase-new::after { display: none; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 39, 55, 0.94);
  color: var(--cream);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.scrolled {
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .9);
}
.topbar-inner {
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
  display: flex; align-items: center; gap: 18px;
  min-height: 82px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
/* The bakery's own mark, in a circle, the way it sits on their cups and their
   profile. Big enough that BAKERY is still a legible line, not a smudge. */
.brand-mark {
  width: 60px; height: 60px; border-radius: 50%;
  display: block; flex: none;
  box-shadow: 0 0 0 1px rgba(222, 216, 202, .22);
  transition: box-shadow .2s ease;
}
.brand:hover .brand-mark { box-shadow: 0 0 0 2px rgba(222, 216, 202, .45); }
.brand-mark-sm { width: 34px; height: 34px; }

.topnav { display: flex; gap: 22px; }
.topnav a {
  text-decoration: none; font-size: .935rem; font-weight: 500;
  color: rgba(251, 246, 238, .82);
  padding: 6px 0; position: relative;
}
.topnav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--gold); transition: right .22s ease;
}
.topnav a:hover, .topnav a[aria-current="true"] { color: var(--cream); }
.topnav a:hover::after, .topnav a[aria-current="true"]::after { right: 0; }

.status {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  color: rgba(251, 246, 238, .78);
  white-space: nowrap;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6E6A85; flex: none; }
.status.is-open .status-dot { background: #63C08A; box-shadow: 0 0 0 3px rgba(99, 192, 138, .18); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: .94rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #2A1D08; }
.btn-gold:hover { background: #EDBC69; }
.btn-ink { background: var(--gold); color: #2A1D08; }
.btn-ink:hover { background: #EDBC69; }
.btn-quiet { border-color: rgba(251, 246, 238, .38); color: var(--cream); }
.btn-quiet:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { display: flex; width: 100%; margin-top: 4px; }
.top-cta { padding: 9px 18px; font-size: .9rem; }

/* ---------- hero ---------- */

.hero {
  --phase-bg: var(--night);
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(224, 172, 88, .14), transparent 62%),
    radial-gradient(700px 420px at 8% 88%, rgba(168, 95, 51, .18), transparent 60%),
    linear-gradient(168deg, var(--night) 0%, var(--night-2) 58%, var(--night-3) 100%);
  color: var(--cream);
  padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 9vw, 112px);
  overflow: hidden;
}
.hero-inner {
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero h1 { margin-bottom: .38em; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.lede { font-size: clamp(1.02rem, 0.97rem + 0.3vw, 1.18rem); color: rgba(251, 246, 238, .84); max-width: 46ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }

.hero-facts { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 46px); }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-family: var(--display); font-size: 1.3rem; font-weight: 400; color: var(--gold); }
.hero-facts span { font-size: .84rem; color: rgba(251, 246, 238, .62); }

.hero-art { justify-self: center; width: 100%; max-width: 390px; position: relative; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  width: 100%; height: auto; display: block;
  border-radius: 22px;
  border: 1px solid var(--line-dark);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .75);
}
.hero-photo figcaption {
  margin-top: 12px; font-size: .82rem; color: rgba(251, 246, 238, .6);
  text-align: center;
}
/* The cruffin moon, demoted to a stamp on the corner of their photo. */
.hero-badge {
  position: absolute; top: -34px; right: -30px;
  width: 108px; height: 108px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .5));
}

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section > .wrap > .eyebrow { color: var(--crust); }
.section-lede { color: var(--ink-soft); max-width: 58ch; font-size: 1.06rem; margin-top: 14px; }
.section h2 + .section-lede { margin-top: 16px; }

.on-dark {
  --phase-bg: var(--night-2);
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--cream);
}
.on-dark > .wrap > .eyebrow { color: var(--gold); }
.on-dark .section-lede { color: rgba(251, 246, 238, .74); }

/* ---------- the counter ---------- */

.counter { background: var(--cream); }

/* Three across, with the cruffin taking the full width above them. An earlier
   version let the feature card span two of four auto-fit columns, which left
   the fourth card stranded beside three columns of nothing. */
.cards {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px 22px;
  --phase-bg: #fff;
  box-shadow: 0 1px 0 rgba(26, 39, 55, .03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* Counter cards carry their photo full-bleed at the top, so the padding moves
   to an inner body. Their photos, from their feed. */
.counter .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo { margin: 0; }
.card-photo img { width: 100%; display: block; object-fit: cover; aspect-ratio: 5 / 4; height: auto; }
.card-body { padding: 20px 24px 22px; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(26, 39, 55, .5); border-color: #DCCDB4; }
.card .phase { margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .98rem; }
.card p + p { margin-top: 12px; }
.card-note {
  font-size: .86rem !important;
  color: var(--crust) !important;
  font-weight: 600;
}
.card-feature {
  grid-column: 1 / -1;
  background: linear-gradient(150deg, #26394D 0%, #1B2A3A 100%);
  --phase-bg: #223447;
  border-color: transparent;
  color: var(--cream);
}
.card-feature p { color: rgba(251, 246, 238, .78); }
.card-feature .card-note { color: var(--gold) !important; }
.card-feature h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
.card-feature .card-body { padding: 26px 28px 26px; }

/* Wide enough for the feature to read as a banner: their cruffin photo holds
   the left, the words sit beside it. */
@media (min-width: 860px) {
  .counter .card-feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); align-items: center; }
  .card-feature .card-photo { height: 100%; }
  .card-feature .card-photo img { height: 100%; aspect-ratio: auto; }
  .card-feature .card-body { padding: 30px 36px; }
  .card-feature .phase { --size: 30px; }
}

.also { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.also-head { font-family: var(--body); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--crust); margin-bottom: 16px; }
.chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 9px; }
.chips li {
  border: 1px solid var(--line); background: var(--cream-2);
  border-radius: 999px; padding: 7px 15px; font-size: .9rem; font-weight: 500;
}
.also-note { color: var(--ink-soft); max-width: 54ch; margin: 0; font-size: .97rem; }

/* ---------- lately at Luna ---------- */

.specials { background: #fff; }
.specials-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.drops { list-style: none; padding: 0; margin: 34px 0 0; }
.drops li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.drops li:first-child { border-top: 1px solid var(--line); }
.drop-name { font-weight: 500; }
.drops li::after { content: ""; order: 2; flex: 1; border-bottom: 1px dotted #D9CDB8; transform: translateY(-4px); }
.drop-date {
  order: 3; flex: none; font-size: .84rem; font-weight: 600;
  color: var(--crust); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.drops-note { margin: 20px 0 0; color: var(--ink-soft); font-size: .95rem; }
.drops-note a { color: var(--crust); font-weight: 600; }

.specials-photos { position: relative; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; align-items: start; }
.snap { margin: 0; }
.snap img {
  width: 100%; height: auto; display: block; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -30px rgba(26, 39, 55, .55);
}
.snap figcaption { margin-top: 10px; font-size: .8rem; color: var(--ink-soft); line-height: 1.45; }
.specials-photos .snap:nth-child(even) { transform: translateY(30px); }

.events-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 30px; max-width: 780px;
}

.about-photo { margin: 22px 0 0; }
.about-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 32%;
  display: block; border-radius: var(--r); border: 1px solid var(--line);
  box-shadow: 0 24px 50px -38px rgba(26, 39, 55, .6);
}
/* Same reason as the dough shot: a 0.56 portrait has no business spanning the
   wide column. It sits under the rating card, where the column suits it. */
@media (min-width: 900px) {
  /* The prose spans both rows so the rating card alone sets row 1's height;
     otherwise the photo waits for the text to end and a gap opens above it. */
  .about-grid > div:first-child { grid-row: 1 / span 2; }
  .about-photo { grid-column: 2; grid-row: 2; margin-top: 18px; }
  .about-photo img { aspect-ratio: 3 / 4; }
}
.about-photo figcaption, .visit-photo figcaption { margin-top: 10px; font-size: .82rem; color: var(--ink-soft); text-align: center; }

.visit-photo { margin: 0 0 16px; }
.visit-photo img {
  width: 100%; max-height: 340px; object-fit: cover; object-position: center 40%;
  display: block; border-radius: var(--r); border: 1px solid var(--line);
}

/* ---------- our morning ---------- */

.timeline {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  counter-reset: step;
}
.timeline li {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  background: rgba(251, 246, 238, .04);
}
.timeline .phase { margin-bottom: 16px; }
.timeline h3 { margin-bottom: 8px; color: var(--cream); }
.timeline p { color: rgba(251, 246, 238, .72); margin: 0; font-size: .96rem; }

/* ---------- events & orders ---------- */

.events { background: var(--cream); --phase-bg: #fff; }
.events-cards { margin-top: 36px; }
.events .card-note a { color: var(--crust); }
.events .card-feature { display: block; }

.morning-photo { margin: 30px 0 0; }
.morning-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%;
  display: block; border-radius: var(--r); border: 1px solid var(--line-dark);
}
.morning-photo figcaption { margin-top: 12px; font-size: .82rem; color: rgba(251, 246, 238, .55); text-align: center; }

/* The dough shot is a tall portrait. Left full-width on a desktop it becomes a
   letterbox strip of featureless dough, so from here up it takes a column of
   its own beside a two-by-two timeline and keeps its real shape. */
@media (min-width: 900px) {
  .morning .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    column-gap: clamp(28px, 4vw, 52px);
    align-items: start;
  }
  .morning .wrap > .eyebrow,
  .morning .wrap > h2,
  .morning .wrap > .section-lede { grid-column: 1 / -1; }
  .morning .timeline { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .morning-photo { grid-column: 2; margin-top: 44px; }
  .morning-photo img { aspect-ratio: 3 / 4; }
}

/* ---------- about ---------- */

.about { background: var(--cream-2); --phase-bg: #fff; }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px); align-items: start;
}
.about p { color: var(--ink-soft); max-width: 58ch; }
.about h2 { margin-bottom: 20px; }
.about-place { font-weight: 600; color: var(--ink) !important; }

.rating-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 28px; text-align: center;
  box-shadow: 0 24px 50px -38px rgba(26, 39, 55, .6);
}
.rating-moon { --size: 34px; margin-bottom: 14px; }
.rating-score { font-family: var(--display); font-size: 3.6rem; line-height: 1; margin: 0 0 6px; color: var(--ink); }
.rating-meta { font-size: .92rem; color: var(--ink-soft); margin-bottom: 0; }
.rating-card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.rating-note { font-size: .95rem; color: var(--ink-soft); margin-bottom: 10px; }
.rating-note strong { color: var(--crust); }
.rating-source { font-size: .78rem; color: #8B8398; margin: 0; }

/* ---------- visit ---------- */

.visit { background: var(--cream); }
.visit-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px); align-items: start;
}
.visit h2 { margin-bottom: 8px; }
.visit-post { color: var(--ink-soft); margin-bottom: 28px; }

.hours { width: 100%; border-collapse: collapse; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { color: var(--ink-soft); font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .shut { color: #9A93A6; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--crust); font-weight: 700; }
.hours-note { margin-top: 22px; color: var(--ink-soft); max-width: 46ch; font-size: .97rem; }

.contact-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 24px 22px;
}
.contact-block + .contact-block { margin-top: 16px; }
.contact-block h3 { margin-bottom: 16px; }
.contact-block p { color: var(--ink-soft); font-size: .97rem; }
.contact-row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; margin-bottom: 10px; }
.contact-row:last-of-type { margin-bottom: 0; }
.contact-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: #8B8398; font-weight: 600;
}
.contact-label .ico { width: 15px; height: 15px; color: var(--crust); opacity: .75; }
.contact-row a { color: var(--crust); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(168, 95, 51, .3); }
.contact-row a:hover { border-bottom-color: var(--crust); }

/* ---------- icons ---------- */

/* The sprite itself never renders; only its symbols are referenced. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.17em; }

/* ---------- footer ---------- */

footer { background: var(--night); color: rgba(251, 246, 238, .68); padding: 34px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer p { margin: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(251, 246, 238, .68); text-decoration: none;
  transition: color .18s ease;
}
.footer-links a:hover { color: var(--gold); }
/* On hover the marks take their own brand colour, so they read as the real
   thing rather than as generic glyphs. */
.footer-links .ig:hover .ico { color: #E4405F; }
.footer-links .fb:hover .ico { color: #1877F2; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; order: -1; }
  .hero-badge { width: 84px; height: 84px; top: -22px; right: -16px; }
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .specials-grid { grid-template-columns: 1fr; }
  .specials-photos { max-width: 520px; }
  .specials-photos .snap:nth-child(even) { transform: translateY(18px); }
  .events-photos { max-width: 520px; }
  .topnav { display: none; }
  .status { margin-left: auto; }
}
@media (max-width: 560px) {
  .status { display: none; }
  .brand-word { font-size: 1.15rem; }
  .hero-facts { gap: 18px 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
