/* Maple & Mint: the specimen catalogue. Every bake on its own flat colour plate, same scale, named plainly with its price;
   the plates are the menu and tapping one adds it to the order. One face (Pilcrow Rounded), putty ground, teal action. */
:root {
  --bg: #dedad3;
  --surface: #e4e3e1;
  --ink: #0a0a0a;
  --soft: #45413b;
  --accent: #1f6475;
  --accent-deep: #164c59;
  --f1: #c9b89c;
  --f2: #b8c4b0;
  --f3: #d9b9a8;
  --f4: #aebfc6;
  --m: clamp(16px, 2.2vw, 32px);
  --s-small: 15px;
  --s-body: 18px;
  --s-lead: clamp(20px, 1.1rem + .5vw, 23px);
  --s-head: clamp(2.4rem, 1.2rem + 3.6vw, 4.4rem);
  --s-hero: clamp(3rem, 1.4rem + 4.6vw, 6.4rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Pilcrow Rounded', system-ui, sans-serif; font-size: var(--s-body); line-height: 1.5; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: .96; }
h2 { font-size: var(--s-head); }

.demo { background: var(--ink); color: #eceae6; font-size: var(--s-small); text-align: center; padding: 8px var(--m); }
.demo a { font-weight: 700; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px var(--m); position: sticky; top: 0; z-index: 10; background: var(--bg); }
.mark { font-weight: 800; font-size: var(--s-lead); text-decoration: none; letter-spacing: -0.02em; }
.bar nav { display: flex; gap: 24px; align-items: center; }
.bar nav a { text-decoration: none; font-weight: 600; }
.bar nav a:hover { color: var(--accent); }
.bar-cta { background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 999px; }
.bar nav a.bar-cta:hover { background: var(--accent-deep); color: #fff; }

.btn { display: inline-block; padding: 15px 26px; border-radius: 999px; font: 700 var(--s-body) 'Pilcrow Rounded', sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform .16s var(--ease), background-color .16s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: #fff; } .btn-accent:hover { background: var(--accent-deep); }
.btn-ink { background: var(--ink); color: #f4f3f0; } .btn-ink:hover { background: #2a2826; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Hero */
.hero { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px, 3vw, 44px); padding: clamp(24px, 3vw, 48px) 0 clamp(48px, 6vw, 90px) var(--m); align-items: center; overflow: hidden; min-height: calc(100svh - 110px); }
.hero h1 { font-size: var(--s-hero); line-height: .94; letter-spacing: -0.04em; max-width: 8ch; }
.lede { font-size: var(--s-lead); max-width: 30ch; margin-top: 22px; line-height: 1.35; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(90px, 15vh, 150px); gap: 10px; margin-right: -64px; }
.tile { overflow: hidden; position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.ta { grid-column: span 2; grid-row: span 3; background: var(--f1); }
.tb { grid-row: span 2; background: var(--f2); } .tc { grid-row: span 2; background: var(--f3); }
.td { grid-column: span 2; grid-row: span 2; background: var(--f4); } .te { grid-row: span 2; background: var(--f2); } .tf { grid-row: span 2; background: var(--f3); }
.fade-stack img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.fade-stack img.on, .fade-stack img:first-child { opacity: 1; }
.fade-stack.running img:first-child:not(.on) { opacity: 0; }

/* Menu: specimen plates */
.menu { background: var(--surface); padding: clamp(90px, 11vw, 170px) var(--m); }
.menu-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 30px; }
.menu-head p { color: var(--soft); max-width: 46ch; justify-self: end; }
.group { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); margin: 64px 0 24px; }
.plates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 16px; }
.plate { display: grid; align-content: start; gap: 6px; text-align: left; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.plate.big { grid-column: span 2; }
.sq { display: grid; place-items: center; aspect-ratio: 1; padding: 13%; transition: transform .25s var(--ease); }
.plate.big .sq { aspect-ratio: 2 / 1; padding: 0; }
.sq img { width: 100%; height: auto; object-fit: cover; border-radius: 50%; aspect-ratio: 1; }
.plate.big .sq img { width: 46%; height: auto; }
.crop-top { object-position: center 30%; }
.f1 .sq, .f1.gt { background: var(--f1); } .f2 .sq, .f2.gt { background: var(--f2); } .f3 .sq, .f3.gt { background: var(--f3); } .f4 .sq, .f4.gt { background: var(--f4); }
.plate b { font-size: var(--s-lead); font-weight: 700; margin-top: 10px; letter-spacing: -0.01em; line-height: 1.2; }
.plate b em { font-style: normal; font-weight: 600; color: var(--accent); white-space: nowrap; }
.plate .fact { color: var(--soft); font-size: var(--s-small); max-width: 34ch; }
.plate .add { justify-self: start; margin-top: 8px; font-weight: 700; font-size: var(--s-small); padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #f4f3f0; transition: background-color .2s var(--ease); }
.plate:hover .sq { transform: scale(.985); }
.plate:hover .add { background: var(--accent); }
.plate.added .add { background: var(--accent); }

/* How to order: tiles that grow */
.how { padding: clamp(90px, 11vw, 170px) var(--m); }
.grow { list-style: none; padding: 0; display: grid; grid-template-columns: 2fr 3fr 3fr 4fr; gap: 12px; align-items: end; margin-top: 40px; }
.grow li { display: grid; gap: 8px; align-content: end; }
.gt { display: grid; place-items: center; padding: 12%; overflow: hidden; }
.gt img { height: 100%; width: auto; max-width: none; object-fit: cover; border-radius: 50%; aspect-ratio: 1; }
.g1 .gt { height: 26vh; } .g2 .gt { height: 34vh; } .g3 .gt { height: 44vh; } .g4 .gt { height: 56vh; }
.grow b { font-size: var(--s-lead); margin-top: 8px; line-height: 1.2; }
.grow li > span:last-child { color: var(--soft); font-size: var(--s-small); max-width: 34ch; }

/* Story */
.story { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: 0 var(--m) clamp(90px, 11vw, 170px); }
.story-photo { background: var(--f3); padding: 9%; }
.story-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.story-text p { font-size: var(--s-lead); line-height: 1.45; margin-top: 22px; max-width: 40ch; }

/* Reviews on paper slips */
.slips { background: var(--accent); color: #fff; padding: clamp(90px, 11vw, 160px) var(--m) 0; overflow: hidden; }
.slip-row { display: flex; justify-content: center; align-items: flex-start; margin-top: 46px; padding-bottom: 0; }
.slip { background: #f2f2f1; color: var(--ink); width: min(300px, 80vw); padding: 34px 26px 44px; margin: 0 -14px;
  clip-path: polygon(0 3%, 5% 0, 10% 3%, 15% 0, 20% 3%, 25% 0, 30% 3%, 35% 0, 40% 3%, 45% 0, 50% 3%, 55% 0, 60% 3%, 65% 0, 70% 3%, 75% 0, 80% 3%, 85% 0, 90% 3%, 95% 0, 100% 3%, 100% 97%, 95% 100%, 90% 97%, 85% 100%, 80% 97%, 75% 100%, 70% 97%, 65% 100%, 60% 97%, 55% 100%, 50% 97%, 45% 100%, 40% 97%, 35% 100%, 30% 97%, 25% 100%, 20% 97%, 15% 100%, 10% 97%, 5% 100%, 0 97%); }
.slip footer { text-align: center; display: grid; gap: 2px; margin-bottom: 16px; }
.slip footer b { font-size: var(--s-lead); }
.slip footer span { color: var(--soft); font-size: var(--s-small); }
.slip p { font-size: var(--s-body); }
.s1 { transform: rotate(-4deg); min-height: 330px; } .s2 { transform: rotate(2deg) translateY(30px); min-height: 380px; z-index: 1; }
.s3 { transform: rotate(-2deg) translateY(10px); min-height: 350px; } .s4 { transform: rotate(5deg) translateY(40px); min-height: 400px; }
.slips-note { padding: 70px 0 30px; font-size: var(--s-small); opacity: .85; }

/* Order: a coupon to fill in */
.order { padding: clamp(90px, 11vw, 160px) var(--m); }
.coupon { display: grid; grid-template-columns: 5fr 7fr; background: var(--f2); position: relative; max-width: 1180px; margin: 0 auto; }
.coupon::before, .coupon::after { content: ""; position: absolute; left: calc(5 / 12 * 100%); width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--bg); }
.coupon::before { top: -15px; } .coupon::after { bottom: -15px; }
.coupon-left { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.coupon-left p { font-size: var(--s-lead); line-height: 1.4; max-width: 28ch; }
.coupon-contact { margin-top: auto; font-weight: 700; font-size: var(--s-body) !important; }
.coupon-form { padding: clamp(28px, 4vw, 56px); display: grid; gap: 14px; background: #cfd8c9; }
.contact-form label { display: grid; gap: 6px; font-size: var(--s-small); font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea { font: 500 var(--s-body) 'Pilcrow Rounded', sans-serif; padding: 13px 14px; border: 0; background: #eef1eb; color: var(--ink); width: 100%; border-radius: 10px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-note { font-weight: 700; color: var(--accent-deep); }
.form-note a { font-weight: 800; }
.hp-field { position: absolute; left: -9999px; }
/* order builder (drawn by order.js) */
.order-builder, .order-photos { display: grid; gap: 10px; }
.order-builder[hidden], .order-photos[hidden], #order-basic[hidden], .ob-total[hidden] { display: none !important; }
.ob-label { font-size: var(--s-small); font-weight: 800; }
.ob-label em { font-style: normal; font-weight: 500; opacity: .75; }
.ob-help { margin: -4px 0 0; font-size: var(--s-small); color: var(--soft); }
.ob-lines { display: grid; gap: 8px; }
.ob-empty { font-size: var(--s-small); color: var(--soft); }
.ob-line { display: grid; grid-template-columns: 1fr auto 70px 34px; gap: 8px 10px; align-items: center; border-radius: 10px; padding: 10px 12px; background: #eef1eb; }
.ob-name { font-weight: 700; line-height: 1.25; }
.ob-name small { display: block; font-weight: 500; color: var(--soft); font-size: var(--s-small); }
.ob-qty { display: flex !important; align-items: center; gap: 6px; }
.ob-qty input { width: 64px; text-align: center; padding: 8px; background: #fff; }
.ob-qty em { font-style: normal; font-size: var(--s-small); color: var(--soft); }
.ob-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ob-price { text-align: right; font-weight: 700; }
.ob-x { border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--soft); }
.ob-line .ob-note { grid-column: 1 / -1; background: #fff; }
.ob-line .ob-cname { grid-column: 1 / 2; background: #fff; }
.ob-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #f4f3f0; }
.ob-total strong { font-size: var(--s-lead); }
.ob-total small { opacity: .8; font-size: var(--s-small); }
.ob-total .ob-fine { flex-basis: 100%; }
.ob-add { cursor: pointer; }
.ob-drop { display: grid !important; place-items: center; min-height: 64px; border-radius: 10px; background: #eef1eb; cursor: pointer; text-align: center; font-weight: 700; }
.ob-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ob-drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.ob-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.ob-thumb { position: relative; width: 84px; height: 84px; }
.ob-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ob-thumb button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; line-height: 1; }

/* Running order tray */
.tray { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 16px; background: var(--ink); color: #f4f3f0; padding: 10px 10px 10px 22px; border-radius: 999px; max-width: calc(100% - 24px); box-shadow: 0 10px 30px rgba(0,0,0,.25); } /* taste-skill-ignore: the tray floats over the page */
.tray[hidden] { display: none; }
.tray { transition: opacity .25s var(--ease); }
.tray.away { opacity: 0; pointer-events: none; }
.tray span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Footer */
.foot { background: var(--ink); color: #eceae6; padding: 40px var(--m) 30px; }
.foot-name { font-weight: 800; font-size: clamp(3rem, 13vw, 14rem); line-height: .85; letter-spacing: -0.05em; }
.foot-small { margin-top: 20px; font-size: var(--s-small); }

/* Motion (content shows without the script; .js adds the entrances) */
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
.js .slip.rise { transform: translateY(40px) rotate(0); }
.js .slip.rise.in.s1 { transform: rotate(-4deg); } .js .slip.rise.in.s2 { transform: rotate(2deg) translateY(30px); }
.js .slip.rise.in.s3 { transform: rotate(-2deg) translateY(10px); } .js .slip.rise.in.s4 { transform: rotate(5deg) translateY(40px); }
.mosaic .tile img { animation: breathe 18s ease-in-out infinite alternate; }
.mosaic .tile:nth-child(2n) img { animation-delay: -6s; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .js .rise, .js .slip.rise { opacity: 1; transition: none; }
  .js .rise:not(.slip) { transform: none; }
  .mosaic .tile img { animation: none; }
  .fade-stack img { transition: none; }
  html { scroll-behavior: auto; }
}

/* Tablet and phone */
@media (max-width: 960px) {
  .bar nav a:not(.bar-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-right: var(--m); min-height: 0; }
  .mosaic { margin-right: calc(-1 * var(--m)); grid-auto-rows: 80px; }
  .menu-head { grid-template-columns: 1fr; }
  .menu-head p { justify-self: start; }
  .plates { grid-template-columns: 1fr 1fr; }
  .grow { grid-template-columns: 1fr 1fr; align-items: end; }
  .story { grid-template-columns: 1fr; }
  .slip-row { flex-wrap: wrap; gap: 24px 0; }
  .coupon { grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { display: none; }
}
@media (max-width: 600px) {
  .plate.big { grid-column: span 2; }
  .plate.big .sq { aspect-ratio: 16 / 10; }
  .plate.big .sq img { width: 52%; }
  .grow { grid-template-columns: 1fr; }
  .g1 .gt { height: 34vw; } .g2 .gt { height: 46vw; } .g3 .gt { height: 58vw; } .g4 .gt { height: 70vw; }
  .slip { margin: 0; }
  .slip:nth-child(even) { margin-left: auto; }
  .field-row { grid-template-columns: 1fr; }
  .tray { left: 12px; right: 12px; transform: none; justify-content: space-between; }
}
