:root {
  --bg: #FBF5EE;
  --surface: #F3E8DE;
  --ink: #2A1A14;
  --muted: #574238;
  --line: #E4D3C6;
  --line-strong: #C9B2A3;
  --accent: #A12E4B;
  --on-accent: #FFFFFF;
  --action: var(--accent);        /* motion.css reads the action colour by this name */
  --action-ink: var(--on-accent);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --gut: 16px;                    /* the page margin: 16 on a phone, 48 on a tablet, 64 from 1024 (120 at 1440) */
  --gutter: 24px;                 /* the 12-column gap */
  --nav: 73px;                    /* the fixed header, its hairline included */
  --padt: 120px;                  /* every section's top and bottom padding (layout-v4.md, the section box) */
  --padb: 72px;
  --bar: 0px;                     /* the phone action bar's height, under 640 */
  --font-display: "Frank Ruhl Libre", Georgia, serif;
  --font-body: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 641px) { :root { --gut: 48px; } }
@media (min-width: 1024px) { :root { --gut: 64px; } }
@media (max-width: 1023px) { :root { --nav: 61px; } }
@media (max-width: 640px) { :root { --padt: 96px; --padb: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
/* an anchor lands on the section's top; the fixed header covers the top of its padding */
html { scroll-padding-top: 0; scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); }
@media (max-width: 860px) { h2 { font-size: clamp(1.5rem, 4.4vw, 2.2rem); } h3 { font-size: 1.25rem; } }
p { margin: 0 0 1em; }
.lead, .section__head p, .about__text p, .more__lead { text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the skip link: the header bar's first child, hidden until focused, then shown over the logo */
.skip {
  position: absolute; inset-inline-start: 0; top: 50%; z-index: 2;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  width: auto; height: 44px; padding: 0 16px; clip-path: none; transform: translateY(-50%);
  display: inline-flex; align-items: center; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none;
}

/* Buttons (their hover and press: motion.css) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 54px; padding: 12px 26px; border-radius: 999px;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px -8px rgb(161 46 75 / .6); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--lg { padding: 14px 30px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* Frames (a linked photograph grows 3% inside its .m-zoom mask: motion.css) */
.frame { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* Links in running text and in the footer: motion.css draws their underline left to right; on this
   right-to-left page it draws from the right and leaves to the left */
html[dir="rtl"]:not([data-motion="off"]) :is(.m-link, p a:not([class]), .footer ul a) {
  background-position: left 0 bottom 0, 100% 100%;
  transition: background-size var(--m-out) var(--m-ease);   /* the line draws; the colour never fades */
}
html[dir="rtl"]:not([data-motion="off"]) :is(.m-link, p a:not([class]), .footer ul a):is(:hover, :focus-visible) { background-position: right 0 bottom 0, 100% 100%; }

/* ---------------------------------------------------------------- the header */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav__row { position: relative; display: flex; align-items: center; gap: 24px; min-height: calc(var(--nav) - 1px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { border-radius: 50%; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; white-space: nowrap; }
.brand__name em {
  font-style: normal; font-family: var(--font-body); font-weight: 600; font-size: .8rem; color: var(--muted);
  letter-spacing: .04em; margin-inline-start: .3em;
}
.nav__links { display: flex; align-items: center; gap: 28px; margin-inline-start: auto; }
.nav__links a { text-decoration: none; font-weight: 600; position: relative; padding-block: 6px; white-space: nowrap; }
.nav__links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { min-height: 44px; padding: 10px 20px; flex: none; }
.nav__toggle { display: none; }

@media (max-width: 1279px) { .nav__links { gap: 20px; } }

/* 1023 and under: the logo, the main button and the menu button; the words open in a sheet */
@media (max-width: 1023px) {
  .brand { margin-inline-end: auto; }
  .nav__toggle {
    display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px;
    background: transparent; cursor: pointer; color: var(--ink); flex: none;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease), opacity .2s;
  }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; inset-inline: 0; }
  .nav__bars::before { top: -7px; }
  .nav__bars::after { top: 7px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: var(--nav) 0 0 0; margin: 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--gut);
    transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
  }
  .nav__links.is-open { transform: none; visibility: visible; }
  .nav__links a { font-size: 1.4rem; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
}
/* a phone: the main button moves to the action bar at the foot */
@media (max-width: 640px) { .nav__cta { display: none; } }

/* ---------------------------------------------------------------- the section box
   Every section after the hero is exactly one or two screens (--h), padded --padt above and --padb (plus
   the phone bar) below; from 640 to 1279 it keeps at least its screens and grows rather than overlap */
main > .section, footer.closing {
  position: relative;
  height: calc(var(--h, 1) * 100vh); height: calc(var(--h, 1) * 100svh);
  padding: var(--padt) 0 calc(var(--padb) + var(--bar));
}
main > .section > .wrap, footer.closing > .wrap { height: 100%; }
.section--surface, footer.closing { background: var(--surface); }

/* two screens as two groups: row 1 the h2 and the cards, row 2 the rest, --padt under the second screen's top */
.section.g2 { --h: 2; }
.section.g2 > .wrap { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: calc(var(--padt) + var(--padb) + var(--bar)); }
.section.g2 > .wrap > * { min-height: 0; align-self: start; }

@media (max-width: 1279px), (max-height: 859px) {
  main > .section, footer.closing {
    height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
    display: flex; flex-direction: column;
  }
  main > .section > .wrap, footer.closing > .wrap { flex: 1 0 auto; height: auto; }
  .section.g2 > .wrap { display: block; }
  .more { margin-top: 64px; }
}
@media (max-width: 860px) { .section.g2 { --h: 1; } }
@media (max-width: 640px) {
  main > .section, footer.closing { min-height: calc(var(--hm, var(--h, 1)) * 100vh); min-height: calc(var(--hm, var(--h, 1)) * 100lvh); }
  #menu-items { --hm: 2; }
}

/* ---------------------------------------------------------------- the hero: exactly the first screen */
.hero {
  height: 100vh; height: 100svh;
  padding: calc(var(--nav) + 40px) 0 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
/* in RTL grid line 1 is the right edge: the words on columns 1-6 (the right half, from the split line at
   x 732 to the right line), the photograph on 8-12 (from the left line) */
.hero__copy { grid-column: 1 / span 6; grid-row: 1; }
.hero__photo { grid-column: 8 / -1; grid-row: 1; aspect-ratio: 1; box-shadow: 0 30px 60px -30px rgb(42 26 20 / .35); }
.eyebrow { font-weight: 700; color: var(--accent); letter-spacing: .04em; margin-bottom: 16px; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 32px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff8;
  font-weight: 600; font-size: .95rem;
}

/* ---------------------------------------------------------------- section heads */
.section__head { margin-bottom: 40px; }
.section__head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
@media (min-width: 861px) {
  /* a head spans six columns from the right line, so it starts on the split line */
  .section__head:not(.section__head--row) { max-width: calc((100% + var(--gutter)) * 6 / 12 - var(--gutter)); }
  .section__head--row > .section__head-text { flex: 0 1 calc((100% + var(--gutter)) * 6 / 12 - var(--gutter)); }
}
/* 641 to 860: the head's words on eight columns from the right line, the button beside them */
@media (min-width: 641px) and (max-width: 860px) {
  .section__head--row > .section__head-text { flex: 0 1 calc((100% + var(--gutter)) * 8 / 12 - var(--gutter)); }
}
@media (max-width: 640px) { .section__head--row > .section__head-text { flex: 1 1 100%; } }

/* ---------------------------------------------------------------- the offer */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.card__photo { aspect-ratio: 1; margin-bottom: 16px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; }

/* the other sweets and the workshops as ruled rows: two groups of six columns */
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; align-items: stretch; }
.more h3 { margin-bottom: 12px; }
.more__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding-block: 16px; border-bottom: 1px solid var(--line); }
.rows__name { display: block; font-weight: 700; font-size: 1.1rem; }
.rows__desc { display: block; color: var(--muted); }
.more__link { display: inline-flex; align-items: center; gap: .4em; margin-top: 16px; font-weight: 700; color: var(--accent); position: relative; }
.more__link::before { content: ""; position: absolute; inset: -12px -4px; }
#workshops { scroll-margin-top: var(--padt); }
/* the desktop's second screen of the offer: the lists set a size up, so they hold the screen */
@media (min-width: 861px) {
  .rows li { padding-block: 20px; }
  .rows__name { font-size: 1.15rem; }
  .rows__desc { font-size: 1.05rem; }
}

/* ---------------------------------------------------------------- the gallery: four pictures on the column lines */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; border-radius: var(--radius); overflow: hidden; }
.wall > a { display: block; aspect-ratio: 4 / 5; overflow: clip; }
.wall img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- about */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; align-content: start; }
.about__text { grid-column: 1 / span 6; grid-row: 1; }
.about__photo { grid-column: 8 / -1; grid-row: 1; aspect-ratio: 4 / 5; }
.about__text p { color: var(--muted); font-size: 1.12rem; }
.about__text .sign { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); font-weight: 700; margin: 0; }

/* ---------------------------------------------------------------- the closing: how to order, then the footer */
footer.closing > .wrap { display: grid; grid-template-rows: minmax(0, 1fr) auto; row-gap: 48px; }
.order { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; min-height: 0; }
.order__intro { grid-column: 1 / span 6; grid-row: 1; }
.order > .form { grid-column: 7 / -1; grid-row: 1; }
.steps { padding: 0; margin: 0 0 24px; list-style: none; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 56px; color: var(--muted); }
.steps li strong { color: var(--ink); display: block; font-size: 1.12rem; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-weight: 700; font-family: var(--font-display);
}
.note { font-weight: 600; margin-bottom: 12px; }
.contact-line { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-weight: 700; margin: 0; }
.contact-line a, .footer__links a { display: inline-block; position: relative; }
/* the 44px tap area, the underline staying under the words */
.contact-line a::before, .footer__links a::before { content: ""; position: absolute; inset: -12px -4px; }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.field label { font-weight: 700; font-size: .98rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none; padding-inline-end: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1A14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 16px center / 16px;
}
.field [aria-invalid="true"] { border-color: #B3261E; }
.field__error { color: #B3261E; font-size: .9rem; font-weight: 600; margin: 0; }
.form__status { margin: 12px 0 0; font-weight: 600; text-align: center; }
.form__status:empty { margin: 0; }
.form__status a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.form__hint { font-size: .9rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

.closing__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 20px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { border-radius: 50%; }
.footer__brand p { margin: 0; color: var(--muted); }
.footer__brand .footer__name { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.footer__links { list-style: none; display: flex; justify-content: flex-end; gap: 28px; margin: 0; padding: 0; flex-wrap: wrap; font-weight: 700; }
.footer__links a { text-decoration: none; }
/* the one rule, over the legal line */
.footer__copy { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------------------------------------------------------------- the phone action bar */
.actionbar { display: none; }

/* ---------------------------------------------------------------- 861 to 1279: the grids as above, sections grow */
@media (min-width: 861px) and (max-width: 1279px) {
  .section.g2 { --h: 2; }
}

/* ---------------------------------------------------------------- 860 and under: one column */
@media (max-width: 860px) {
  .hero { height: auto; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav) + 16px) 0 24px; }
  .hero__grid, .about, .order { row-gap: 24px; }
  .hero__copy, .hero__photo, .about__text, .order__intro, .order > .form { grid-column: 1 / -1; grid-row: auto; }
  .hero__photo { order: -1; aspect-ratio: 16 / 10; }
  .hero h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
  .lead { font-size: 1.05rem; }
  .eyebrow { margin-bottom: 8px; }
  .hero__actions { margin-block: 20px 18px; gap: 10px; }
  .hero__actions .btn--ghost { display: none; }
  .facts li { padding: 6px 12px; font-size: .88rem; }

  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall > a { aspect-ratio: 1; }

  /* the portrait spans eight columns from the right line, so its left edge is on a column start */
  .about__photo { grid-column: 1 / span 8; grid-row: 2; }
}

/* a short landscape screen: the hero drops its fact tags so it ends above the fold */
@media (max-width: 860px) and (max-height: 700px) {
  .hero .facts { display: none; }
  .hero__photo { aspect-ratio: 2 / 1; }
}

/* ---------------------------------------------------------------- 640 and under: a phone */
@media (max-width: 640px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .facts li { flex: 1 1 auto; text-align: center; }

  .section__head { margin-bottom: 28px; }
  .section__head--row .btn { width: 100%; }

  /* each offer card a row: the photograph on six columns, its words on the other six */
  .cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
  .card__photo { margin: 0; }
  .card p { font-size: .95rem; line-height: 1.5; }
  .more { grid-template-columns: minmax(0, 1fr); row-gap: 40px; margin-top: 48px; }

  .about__photo { grid-column: 1 / -1; aspect-ratio: 1; }
  .about__photo img { object-position: 50% 0; }

  .closing__links { grid-template-columns: minmax(0, 1fr); }
  .footer__links { justify-content: flex-start; }
  .form { padding: 24px; }

  :root:has(> body > nav.actionbar) { --bar: calc(64px + env(safe-area-inset-bottom)); }
  main > .hero { --bar: 0px; }
  .actionbar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); align-items: center;
    height: calc(64px + env(safe-area-inset-bottom)); padding: 0 var(--gut) env(safe-area-inset-bottom);
    background: var(--bg); border-top: 1px solid var(--line);
    transition: transform 240ms var(--ease), visibility 0s;
  }
  .actionbar .btn { width: 100%; min-height: 48px; height: 48px; padding: 8px 12px; }
  /* main.js shows the bar once the hero's button has scrolled away, and hides it while the same action is on screen */
  .actionbar[data-bar="hidden"] { transform: translateY(100%); visibility: hidden; transition: transform 240ms var(--ease), visibility 0s 240ms; }
}
@media (max-width: 640px) and (scripting: enabled) {
  .actionbar:not([data-bar="shown"], [data-bar="always"]) { transform: translateY(100%); visibility: hidden; }
}

@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* short laptop screens (under 860px tall): the hero grows with its content instead of overflowing */
@media (min-width: 861px) and (max-height: 859px) {
  .hero { height: auto; min-height: 100vh; min-height: 100svh; }
}
/* the offer's second screen on wide screens: the lists a size up, so the screen reads full */
@media (min-width: 1280px) {
  .more h3 { margin-bottom: 16px; }
  .more__lead { font-size: 1.15rem; }
  .rows li { padding-block: 26px; }
  .rows__name { font-size: 1.18rem; }
  .rows__desc { font-size: 1.08rem; }
}
/* 641-860: card titles above their text size */

