/* The bakery's own sections and its signature (the baker's scores, "grignes"), on the kit's tokens. */

body { font-size: 1.0625rem; }

/* ---------- Header ---------- */
.site-header { background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(6px); }
.brand { gap: var(--space-2); font-size: var(--text-xl); letter-spacing: -0.02em; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__mark ellipse { fill: var(--accent); }
.brand__mark path { fill: none; stroke: var(--wheat); stroke-width: 3; stroke-linecap: round; }
@media (max-width: 420px) { .brand span { font-size: var(--text-base); } }

/* ---------- Signature: the scores of the crust ---------- */
.score-band {
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M10 18 C15 14 20 9 24 4' fill='none' stroke='%23d9a441' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-color: var(--accent);
}
.score-band--footer { margin-top: calc(var(--space-7) * -1); margin-bottom: var(--space-7); }

.loaf { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; }
.loaf::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: var(--surface-2); transform: translate(5%, 6%); }
.loaf svg { position: relative; width: 100%; height: 100%; }
.loaf .crust { fill: var(--accent); }
.loaf .crust-edge { fill: none; stroke: var(--accent-strong); stroke-width: 5; }
.loaf .bloom { fill: none; stroke: var(--wheat); stroke-width: 11; stroke-linecap: round; }
.loaf .bloom-light { fill: none; stroke: #f1d08a; stroke-width: 3; stroke-linecap: round; }
.loaf .flour circle { fill: var(--surface); opacity: .55; }
@media (prefers-reduced-motion: no-preference) { .loaf.motif-turn svg { animation-duration: 120s; } }

/* ---------- Home hero ---------- */
.hero--bakery { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 104px); }
.hero--bakery .split { gap: clamp(32px, 5vw, 72px); }
@media (min-width: 860px) { .hero--bakery .split { grid-template-columns: 1.2fr 0.8fr; } }
.hero__name { display: block; }
.hero__kind { display: block; margin-top: var(--space-3); font-family: var(--font-body); font-weight: 600; font-size: var(--text-xl); letter-spacing: 0; color: var(--accent-strong); }
.hero--bakery .lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); color: var(--ink); max-width: 34ch; }
@media (max-width: 859px) { .loaf { width: min(72vw, 320px); order: -1; } }

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: var(--text-3xl); max-width: 18ch; }
.page-head .lead { color: var(--ink); }
.jump { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-5) 0 0; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.jump a:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- The counter: three families on a shelf ---------- */
.shelf { display: grid; grid-template-columns: 1fr; border-top: 3px solid var(--ink); }
.shelf__family { padding: var(--space-5) 0 var(--space-6); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.shelf__family h3 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.shelf__family > p { color: var(--muted); }
.shelf__family ul { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.shelf__family li { padding: var(--space-2) 0; border-bottom: 1px dotted var(--line); font-weight: 600; }
.shelf__family .more { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.shelf__family .more .icon { transition: transform .25s var(--ease-out); }
.shelf__family .more:hover .icon { transform: translateX(3px); }
@media (min-width: 820px) {
  .shelf { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .shelf__family { padding: var(--space-6) var(--space-6) var(--space-6) 0; border-bottom: 0; }
  .shelf__family + .shelf__family { padding-left: var(--space-6); border-left: 1px solid var(--line); }
}

/* ---------- Practical block: hours beside the address ---------- */
.practical { display: grid; gap: var(--space-7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .practical { grid-template-columns: 1.1fr 0.9fr; } }
.hours caption { text-align: left; font: var(--heading-weight) var(--text-2xl)/1.1 var(--font-heading); letter-spacing: var(--heading-tracking); margin-bottom: var(--space-3); }
.hours th, .hours td { font-size: var(--text-lg); }
.facts { display: grid; gap: var(--space-5); }
.fact h2, .fact h3 { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xl); margin-bottom: var(--space-2); }
.fact h2 .icon, .fact h3 .icon { color: var(--accent); }
.fact p { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.fact .muted { font-size: var(--text-base); }

/* ---------- Call to write ---------- */
.cta-band h2 { max-width: 24ch; }
.cta-band p { margin: var(--space-2) 0 0; color: color-mix(in oklab, var(--accent-ink) 88%, var(--accent)); }

/* ---------- Products page ---------- */
.family { scroll-margin-top: 80px; }
.family__grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .family__grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-8); }
  .family__head { position: sticky; top: 100px; align-self: start; }
}
.family__head h2 { font-size: var(--text-3xl); }
.family__head p { color: var(--muted); font-size: var(--text-lg); }
.family__count { font-weight: 600; color: var(--accent-strong); }
.loaves { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--ink); }
.loaves li { display: grid; gap: var(--space-1); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .loaves li { grid-template-columns: minmax(180px, 0.9fr) 1.1fr; gap: var(--space-5); align-items: baseline; } }
.loaves h3 { font-size: var(--text-xl); margin: 0; }
.loaves p { margin: 0; color: var(--muted); }
.note { margin-top: var(--space-6); color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.form-panel { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }
.form-panel h2 { font-size: var(--text-2xl); }
.form-panel .btn { margin-top: var(--space-2); }
.field .error { display: flex; gap: var(--space-2); }
.alert { margin-bottom: var(--space-5); font-weight: 600; }
.alert--success { color: var(--success); }
.alert--danger { color: var(--danger); }

/* ---------- Legal pages ---------- */
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-7); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--space-2); }
.prose address { font-style: normal; margin-bottom: var(--space-4); }

/* ---------- Footer ---------- */
.site-footer { padding-top: var(--space-7); font-size: var(--text-base); }
.site-footer h2 { font-family: var(--font-heading); font-size: var(--text-xl); letter-spacing: -0.01em; }

.skip-link:not(:focus) { top: -120px; }
@media (max-width: 899px) { .contact-grid .form-panel { order: -1; } }
.prose > h2:first-child { margin-top: 0; }

/* ---------- Polish: pointer feedback ---------- */
.shelf__family { position: relative; transition: background-color .25s var(--ease-out); }
.shelf__family .more::after { content: ""; position: absolute; inset: 0; }
.shelf__family h3 { transition: color .25s var(--ease-out); }
.shelf__family:hover h3, .shelf__family:focus-within h3 { color: var(--accent-strong); }
.shelf__family:hover .more .icon, .shelf__family:focus-within .more .icon { transform: translateX(3px); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease-out); }
  .btn:active { transform: translateY(1px) scale(.98); }
  .jump a { transition: border-color .2s, color .2s, transform .2s var(--ease-out); }
  .jump a:hover { transform: translateY(-2px); }
}
.form-note { margin: 0 0 var(--space-4); }
