/* Hallmark · shape: cardápio with a floating order · genre: editorial · theme: custom · job: buy · idea: "The catalogue is a jewellery menu: the heart picks a piece and the picks become the WhatsApp order" · vibe: "soft boutique, logo pink, slow fluid motion"
 * paper: oklch(96.8% 0.011 18) · accent: oklch(37% 0.125 14) · display: Italiana · body: Figtree · hero: vitrine, a short head beside two large pieces that can be picked there · nav: logo bar with the selection button · footer: logo mast · imagery: the owner's six photographs · signature: a picked piece flies into the selection and writes the order message
 * axes: light/high-contrast-serif/warm · posture: committed (the logo pink carries hero, nav and footer) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: E, six photos at 960px, so no frame is drawn wider than half the container */
/* Hallmark · waive 83 · the owner's six pieces are the whole catalogue · a jewellery menu is chosen by looking at each piece, large */
/* Hallmark · answered F20 · the lead piece spans both rows and the other two stack beside it, so no row is left short */
/* Hallmark · answered F7 · the pill is on the heart, the two-way switch, its labels and the selection counter, all parts of controls */
@import url("./tokens.css");
@import url("./base.css");
@import url("./comum.css");

/* nav and hero share the logo pink, so the logo file sits on it without an edge */
.nav { background: var(--color-brand); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--nav-height); }
.nav__brand { display: block; }
.nav__brand img { width: 164px; }
.hero { background: var(--color-brand); display: grid; align-items: center; min-height: min(calc(100svh - var(--nav-height)), 58rem); padding-block: var(--space-lg) var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; }
.hero__text { display: grid; justify-items: start; gap: var(--space-lg); }
.hero__text .lead { max-width: 28ch; color: var(--color-ink); }
.hero__text .btn { margin-top: var(--space-xs); }
.showcase { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: end; }
.showcase__item { margin: 0; display: grid; gap: var(--space-sm); }
.showcase__item--b { order: -1; }
.showcase__item .photo { border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.showcase__item--b figcaption { font-size: var(--text-lg); }
.showcase__item--a .photo { height: min(66svh, 38rem); }
.showcase__item--b .photo { height: min(40svh, 23rem); }
.showcase figcaption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: 56px; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.1; }
.showcase__item--a figcaption::before { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--color-accent); }
.showcase__item--a figcaption .heart { order: 2; }
/* one settle on arrival: the head, then the two pieces */
.hero__text { animation: settle var(--dur-unveil) var(--ease-out) both; }
.showcase__item--a { animation: settle var(--dur-unveil) var(--ease-out) 80ms both; }
.showcase__item--b { animation: settle var(--dur-unveil) var(--ease-out) 180ms both; }
@keyframes settle { from { opacity: 0; transform: translateY(var(--space-lg)); } }
@media (prefers-reduced-motion: reduce) {
  .hero__text, .showcase__item { animation-delay: 0s; }
  .showcase__item--a, .showcase__item--b { animation-delay: 0s; }
}
@media (max-width: 60rem) {
  .hero { min-height: 0; padding-block: var(--space-xl) var(--space-2xl); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .showcase { gap: var(--space-md); align-items: start; }
  .showcase__item--b { margin-top: var(--space-xl); }
  .showcase__item--a .photo { height: auto; aspect-ratio: 3 / 4.4; }
  .showcase__item--b .photo { height: auto; aspect-ratio: 3 / 4.4; }
  .showcase figcaption { flex-direction: column; align-items: flex-start; justify-content: flex-start; font-size: var(--text-lg); }
  .showcase__item--a figcaption::before { content: none; }
}
@media (max-width: 40rem) {
  .nav { --nav-height: 80px; }
  .nav__brand img { width: 120px; }
  .nav__bag { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
}
/* the courses */
.course { padding-block: var(--section-gap-s); scroll-margin-top: var(--space-3xs); }
.course:nth-of-type(even) { background: var(--color-paper-2); }
.course h2 { margin-bottom: var(--space-2xl); }
.course__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.dish { display: grid; gap: var(--space-lg); align-content: start; min-width: 0; }
.dish .photo { aspect-ratio: 4 / 5; border-radius: var(--radius-card); }
.dish__text { display: grid; gap: var(--space-sm); align-content: center; min-width: 0; }
.dish__line { display: grid; grid-template-columns: minmax(0, max-content) minmax(var(--space-lg), 1fr) auto; align-items: last baseline; column-gap: var(--space-sm); }
.dish__leader { border-bottom: 2px dotted var(--color-rule); }
.dish__desc { max-width: 46ch; color: var(--color-ink-2); }
.dish__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-xs); }
.dish__foot small { font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.course--lead .course__list { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-rows: auto 1fr; row-gap: var(--space-xl); }
.course--lead .dish:first-child { grid-row: span 2; }
.course--lead .dish:first-child .photo { aspect-ratio: 1 / 1.08; }
.course--lead .dish:not(:first-child) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.course--lead .dish:not(:first-child) .dish__line { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); }
.course--lead .dish:not(:first-child) .dish__leader, .course--solo .dish__leader { display: none; }
.course--lead .dish:not(:first-child) h3 { font-size: var(--text-xl); }
.course--solo .dish__line { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-sm); }
.course--pair .course__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course--pair .dish .photo { aspect-ratio: 1 / 1.1; }
.course--pair .dish:nth-child(2) { margin-top: var(--space-3xl); }
.course--solo .course__list { grid-template-columns: minmax(0, 1fr); }
.course--solo .dish { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--gap-columns); align-items: center; }
.course--solo .dish__text { padding-inline-start: var(--space-2xl); }
.course--solo .dish .photo { aspect-ratio: 1 / 1; }
.course--solo h3 { font-size: var(--text-display-s); }
/* one reveal: each photo is unveiled from its base as it arrives */
.js .dish[data-reveal] .photo { clip-path: inset(100% 0 0 0 round var(--radius-card)); transition: clip-path var(--dur-unveil) var(--ease-out); }
.js .dish[data-reveal] .dish__text { opacity: 0; transform: translateY(var(--space-lg)); transition: opacity var(--dur-unveil) var(--ease-out) 140ms, transform var(--dur-unveil) var(--ease-out) 140ms; }
.js .dish[data-reveal].is-in .photo { clip-path: inset(-12px -12px -12px -12px round var(--radius-card)); }
.js .dish[data-reveal].is-in .dish__text { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .dish[data-reveal] .photo, .js .dish[data-reveal].is-in .photo { clip-path: none; transition: none; }
  .js .dish[data-reveal] .dish__text { opacity: 1; transform: none; transition: none; }
}
/* how the order arrives */
.order { padding-block: var(--section-gap-l); background: var(--color-paper); border-top: var(--rule-hair) solid var(--color-rule); }
.order__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: center; }
.order__text { display: grid; justify-items: start; gap: var(--space-xl); padding-inline-end: var(--space-2xl); }
.steps { width: 100%; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: baseline; gap: var(--space-lg); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lead); }
.steps li::before { content: counter(step); min-width: 1.5ch; font-size: var(--text-xl); font-variant-numeric: lining-nums tabular-nums; color: var(--color-accent); }
.note { display: grid; gap: var(--space-md); align-content: start; min-height: 18rem; padding: var(--space-xl); border-radius: var(--radius-card) var(--radius-card) var(--radius-photo) var(--radius-card); background: var(--color-paper-3); }
.note__to { font-family: var(--font-display); font-size: var(--text-xl); }
.note__body { max-height: 28rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.foot { padding-block: var(--space-3xl) var(--space-4xl); background: var(--color-brand); }
.foot__mast { display: grid; justify-items: center; gap: var(--space-md); text-align: center; }
.foot__mast img { width: 205px; }
.foot__mast a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-lead); }
.foot__mast small { font-size: var(--text-sm); }
@media (max-width: 60rem) {
  .course h2 { margin-bottom: var(--space-xl); }
  .course--lead .course__list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .course--lead .dish:first-child { grid-row: auto; grid-column: 1 / -1; }
  .course--lead .dish:not(:first-child) { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .course--solo .dish { grid-template-columns: minmax(0, 1fr); }
  .course--solo .dish__text, .order__text { padding-inline: 0; }
  .order__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
}
@media (max-width: 40rem) {
  .course--lead .course__list, .course--pair .course__list { grid-template-columns: minmax(0, 1fr); }
  .course--pair .dish:nth-child(2) { margin-top: 0; }
  .note { padding: var(--space-lg); min-height: 14rem; }
  .dish .dish__line { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); }
  .dish .dish__leader { display: none; }
}
