/* La Gourmandise: the site's own composition, on the kit's tokens (tokens.css). */

body { line-height: 1.65; }
h1, h2, h3 { color: var(--ink); }
.link-strong { font-weight: 600; }

/* ---------- Header: the shop sign and its awning ---------- */
.shopfront { background: var(--surface); border-bottom: 0; }
.shopfront .site-header__inner { min-height: 76px; }
.sign { flex-direction: row; align-items: center; gap: var(--space-4); line-height: 1; padding-block: var(--space-2); }
.sign__logo { display: block; height: 76px; width: auto; }
.sign__trade { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--muted); letter-spacing: 0; line-height: 1.35; max-width: 9em; padding-left: var(--space-4); border-left: 1px solid var(--line); }
@media (max-width: 1100px) { .sign__trade { display: none; } }
@media (max-width: 520px) { .sign__logo { height: 56px; } }
.sign[aria-current="page"] { box-shadow: none; }
.nav a { font-weight: 600; font-size: 0.98rem; }
.nav a[aria-current="page"]:not(.btn) { color: var(--accent-strong); }

/* The awning: stripes, then a scalloped edge, across every page. */
.awning {
  height: 22px;
  background:
    radial-gradient(circle at 12px 0, var(--accent) 11.5px, transparent 12px) 0 10px / 48px 12px repeat-x,
    radial-gradient(circle at 12px 0, var(--stripe) 11.5px, transparent 12px) 24px 10px / 48px 12px repeat-x,
    repeating-linear-gradient(90deg, var(--accent) 0 24px, var(--stripe) 24px 48px) 0 0 / 100% 10px no-repeat;
  margin-bottom: -22px;
  position: relative;
  z-index: 1;
}

/* Phone menu: a "Menu" button that opens a full-width panel under the awning. */
.burger { display: inline-block; width: 18px; height: 12px; margin-right: 10px; border-block: 2px solid currentColor; position: relative; }
.burger::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
@media (max-width: 860px) {
  .site-header .nav--wide { display: none; }
  .nav-menu { display: block; position: static; }
  .nav-menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; background: var(--bg); }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu[open] summary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .nav-menu .nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: calc(22px + var(--space-3)) var(--gutter) var(--space-5); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgb(43 29 18 / 12%); }
  .nav-menu .nav a { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--font-heading); font-size: var(--text-xl); }
  .nav-menu .nav a[aria-current="page"] { box-shadow: none; }
  .nav-menu .nav a.btn { margin: var(--space-4) 0 0; border-radius: var(--radius); font-family: var(--font-body); font-size: var(--text-lg); min-height: 52px; }
  .shopfront { position: sticky; }
}
@media (min-width: 861px) { .nav-menu { display: none; } }

/* ---------- Home: the shop window ---------- */
.window { padding-block: calc(var(--space-8) + 22px) var(--space-8); background: var(--bg); }
.window__inner { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .window__inner { grid-template-columns: 1.35fr 0.65fr; gap: var(--space-8); } }
.window__since { margin: 0 0 var(--space-2); color: var(--accent-strong); font-weight: 600; }
.window__title { font-size: clamp(3rem, 1.4rem + 7vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; margin-bottom: var(--space-5); }
.window .lead { color: var(--ink); font-size: var(--text-lg); margin-bottom: var(--space-6); }
.window .open-now { margin-top: var(--space-5); }

/* The shop's own counter behind the glass, the tag hanging in front of it. */
.display { position: relative; display: grid; justify-items: center; }
.display__photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius-lg); box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line); }
.display .tag { margin-top: -90px; }
@media (min-width: 900px) {
  .window__inner { grid-template-columns: 1.15fr 0.85fr; }
  .display { justify-items: start; padding-bottom: var(--space-6); }
  .display__photo { aspect-ratio: 696 / 900; object-position: 50% 40%; }
  .display .tag { position: absolute; left: -22%; bottom: 0; margin: 0; width: min(72%, 300px); }
}

/* The pain du mois: a paper price tag hanging in the window. */
.tag { position: relative; justify-self: center; width: min(100%, 340px); padding-top: 46px; }
.tag__string { position: absolute; top: 0; left: 50%; width: 2px; height: 58px; background: var(--muted); transform: translateX(-1px); }
.tag__card { position: relative; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: var(--space-7) var(--space-5) var(--space-5); text-align: center; transform: rotate(-3deg); transform-origin: 50% -46px; box-shadow: 0 14px 30px -12px rgb(94 54 18 / 35%); }
.tag__card::before { content: ""; position: absolute; inset: 6px; border: 1px dashed color-mix(in oklab, var(--accent) 55%, transparent); border-radius: calc(var(--radius-lg) - 4px); pointer-events: none; }
.tag__hole { position: absolute; top: 14px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tag__label { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0; }
.tag__month { margin: 0 0 var(--space-3); font-family: var(--font-heading); font-size: var(--text-lg); color: var(--accent-strong); }
.tag__name { margin: 0 auto var(--space-2); font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); line-height: 1.05; letter-spacing: -0.02em; }
.tag__extra { margin: 0 auto var(--space-4); font-size: var(--text-lg); }
.tag__note { margin: 0 auto; padding-top: var(--space-3); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-sm); }
@keyframes tag-swing { 0% { transform: rotate(4deg); } 45% { transform: rotate(-5deg); } 75% { transform: rotate(-2deg); } 100% { transform: rotate(-3deg); } }
@keyframes tag-nudge { 0%, 100% { transform: rotate(-3deg); } 40% { transform: rotate(1.5deg); } 70% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: no-preference) {
  .tag__card { animation: tag-swing 1.6s var(--ease-out) .3s both; }
  .tag:hover .tag__card { animation: tag-nudge .9s var(--ease-out); }
}

/* The week, every day at a glance. */
.week { background: var(--crust); color: #fbf1e4; padding-block: var(--space-6); }
.week__title { color: #fff; font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.week__days { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2) var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.week__days li { display: flex; flex-direction: column; padding-top: var(--space-2); border-top: 2px solid rgb(255 255 255 / 22%); }
.week__day { font-weight: 600; color: #fff; }
.week__time { font-size: var(--text-sm); color: #f1dcc3; }

/* Orders: two wide panels that lead to their page. */
.orders__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-6); margin-bottom: var(--space-6); }
.orders__head h2 { margin: 0; }
.orders__head p { margin: 0; color: var(--muted); }
.orders__grid { display: grid; gap: var(--space-5); }
@media (min-width: 760px) { .orders__grid { grid-template-columns: 1fr 1fr; } }
.order-panel { position: relative; display: flex; flex-direction: column; padding: var(--space-6); min-height: 260px; background: var(--accent-soft); border-radius: var(--radius-lg); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.order-panel h3 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
.order-panel h3 a { color: inherit; text-decoration: none; }
.order-panel h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.order-panel p { max-width: 44ch; }
.order-panel__more { margin-top: auto; font-weight: 600; color: var(--accent-strong); text-decoration: underline; text-underline-offset: .2em; }
.order-panel--dark { background: var(--accent); color: #fff; }
.order-panel--dark h3, .order-panel--dark .order-panel__more { color: #fff; }
.order-panel:hover { box-shadow: 0 16px 32px -16px rgb(94 54 18 / 45%); }
.order-panel:focus-within { outline: 3px solid var(--accent-strong); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .order-panel:hover { transform: translateY(-3px); } }

/* Flour from the Val-de-Ruz */
.flour__inner { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 860px) { .flour__inner { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); } }
.flour__photo { margin: 0; }
.flour__photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius-lg); }
@media (min-width: 860px) { .flour__photo img { aspect-ratio: 1 / 1; } }
.flour__photo .flour__mark { margin-top: var(--space-3); font-size: clamp(2.25rem, 1rem + 4vw, 4rem); }
.flour__mark { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.5rem, 1rem + 6vw, 5.5rem); line-height: 1; letter-spacing: -0.04em; color: color-mix(in oklab, var(--accent) 82%, var(--surface-2)); }

/* ---------- Inner pages ---------- */
.page-top { padding-block: calc(var(--space-7) + 22px) var(--space-6); background: var(--bg); border-bottom: 1px solid var(--line); }
.page-top h1 { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
.page-top .lead { margin: 0; color: var(--ink); }
.page-body { display: grid; gap: var(--space-7); padding-block: var(--space-7) var(--space-8); }
@media (min-width: 900px) { .page-body { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-8); align-items: start; } }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-6); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--space-2); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: var(--space-5); }
.side-card h2 { font-size: var(--text-xl); }
.side-card > :last-child { margin-bottom: 0; }
@media (min-width: 900px) { .side-card { position: sticky; top: 110px; } }
.notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5); background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); font-weight: 600; max-width: var(--measure); }
.notice .icon { color: var(--accent-strong); margin-top: 3px; }
.kinds { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.kinds li { padding: var(--space-4) 0 0; border-top: 2px solid var(--accent); }
.kinds h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.kinds p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: var(--space-7); padding-block: var(--space-7) var(--space-8); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.contact-big { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 700; line-height: 1.2; }
.contact-big a { text-decoration: none; }
.hours th, .hours td { font-size: var(--text-base); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent-strong); font-weight: 600; }

/* Order form */
.order-form { max-width: 640px; }
.order-form fieldset { border: 0; padding: 0; margin: 0 0 var(--space-6); }
.order-form legend { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-xl); margin-bottom: var(--space-4); }
.field-row { display: grid; gap: 0 var(--space-5); }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.choices { display: grid; gap: var(--space-3); }
@media (min-width: 620px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.choice strong { display: block; }
.choice span { color: var(--muted); font-size: var(--text-sm); }
.form-summary { margin-bottom: var(--space-6); }
.form-summary ul { margin: var(--space-2) 0 0; padding-left: 1.2em; }
.form-summary a { color: var(--danger); }
.sent { max-width: 640px; }
.sent h2 { font-size: var(--text-2xl); }

/* ---------- Footer: deep crust ---------- */
.site-footer { background: var(--crust); color: #f1dcc3; }
.site-footer p { color: #f1dcc3; }
.footer-name { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 700; color: #fff !important; margin-bottom: var(--space-2); }
.footer-hours { list-style: none; padding: 0; margin: 0; }
.footer-hours li { display: flex; gap: var(--space-2); }
.footer-hours__day { flex: none; width: 3.2em; color: #fff; }
.site-footer__bottom p { margin: 0; }
.week__days li.is-today { border-top-color: #f1c58f; }
.week__days li.is-today .week__day::after { content: "aujourd'hui"; display: block; width: max-content; margin: var(--space-1) 0 var(--space-1); padding: 1px 8px; border-radius: 999px; background: #f1c58f; color: var(--crust); font-size: var(--text-sm); font-weight: 600; }
.type-error { color: var(--danger); font-weight: 600; font-size: var(--text-sm); }
.slot-time { white-space: nowrap; }
.prose .kinds { padding-left: 0; }
.prose .notice { margin-bottom: var(--space-6); }
.contact-big { font-size: var(--text-xl); }
.contact-where h2 + .contact-big { margin-top: 0; }
.contact-where .contact-big + p + h2, .contact-where h2:not(:first-child) { margin-top: var(--space-7); }
.hours td .slot-time { display: inline-block; }
.prose .notice { max-width: none; }
.btn { line-height: 1.25; padding-block: 10px; text-align: center; }

/* The bakery's own photos, in pairs inside a page. */
.photos { display: grid; gap: var(--space-4); margin: 0 0 var(--space-6); }
@media (min-width: 620px) { .photos { grid-template-columns: 1fr 1fr; } }
.photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.photos--tall img { aspect-ratio: 4 / 5; }
@media (max-width: 619px) { .photos--tall img { aspect-ratio: 4 / 3; } }
@media (min-width: 620px) { .photos--three { grid-template-columns: repeat(3, 1fr); } }
.photos--three img { aspect-ratio: 3 / 4; object-position: 50% 70%; }
@media (max-width: 619px) { .photos--three img { aspect-ratio: 4 / 3; object-position: 50% 62%; } }
.photos + section h2 { margin-top: 0; }
