/*
 * The public site. Every page is built from the pieces of the Instagram posts:
 * brown background, cream bold title, polaroid photo with lime washi tape, paper
 * date card, rotated price tag, lime diamond bullets, the paper "como funciona"
 * card and the lime "inscreva-se!" marker. Mobile-first; two columns from 720px.
 */

/* Tape, tilted paper and the home logo's sliding strips hang off the edges on
   purpose; clip them here (not on <body>, which iOS Safari doesn't honor for
   horizontal scroll). */
.site-frame { position: relative; overflow-x: hidden; overflow-x: clip; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header / footer ----------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
/* The club's logo (docs/design.md → Logo), a paper strip folded in three: small
   in the header of every page, lifting a little under the finger. */
.brand-logo {
  display: block;
  flex: none;
  width: 118px;
  transition: transform 160ms ease;
}
.brand-logo svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 5px 5px rgba(18, 9, 3, 0.35));
}
.brand-logo:hover { transform: rotate(-2deg) scale(1.04); }

/* On the home it opens the page, centered: bigger, a bit crooked, held by a strip
   of lime tape, and laid down strip by strip the way the paper folds — left,
   right, left. The Instagram link keeps the top-right corner (on a phone, just
   its icon), and the logo leaves room for it on both sides. */
.page-home .site-header { position: relative; justify-content: center; }
.page-home .brand-logo {
  position: relative;
  flex: 0 1 236px;
  width: auto;
  max-width: calc(100% - 104px);
  margin: 6px 0 4px;
  transform: rotate(-2.5deg);
}
.page-home .header-link { position: absolute; top: 18px; right: var(--gutter); }
.page-home .brand-logo:hover { transform: rotate(-3.5deg) scale(1.02); }
.page-home .brand-logo svg { filter: drop-shadow(0 10px 9px rgba(18, 9, 3, 0.45)); }
.page-home .brand-logo::after {
  content: "";
  position: absolute;
  top: -9px;
  left: -16px;
  width: 62px;
  height: 22px;
  background: rgba(198, 246, 53, 0.88);
  transform: rotate(-34deg);
  clip-path: polygon(2% 8%, 9% 0%, 18% 6%, 30% 1%, 44% 5%, 58% 0%, 71% 6%, 86% 2%, 100% 7%, 97% 50%, 100% 93%, 88% 100%, 74% 94%, 60% 100%, 45% 95%, 31% 100%, 17% 94%, 6% 100%, 0% 92%, 3% 50%);
  animation: logo-tape 260ms ease-out 760ms backwards;
}
.page-home .logo-row { animation: logo-strip-left 620ms cubic-bezier(0.2, 0.75, 0.25, 1) backwards; }
.page-home .logo-row--2 { animation-name: logo-strip-right; animation-delay: 160ms; }
.page-home .logo-row--3 { animation-delay: 320ms; }
@keyframes logo-strip-left { from { opacity: 0; transform: translateX(-110px); } }
@keyframes logo-strip-right { from { opacity: 0; transform: translateX(110px); } }
@keyframes logo-tape { from { opacity: 0; transform: rotate(-34deg) scale(1.3); } }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--cream-muted);
}
.header-link svg { flex: none; width: 20px; height: 20px; }
.header-link:hover { color: var(--cream); }

.site-main { padding-bottom: 56px; }

.site-footer {
  padding: 36px 0 44px;
  text-align: center;
  color: var(--cream-muted);
}
.site-footer__line {
  margin: 0 0 14px;
  /* Letter-spacing also trails the last letter: pad the left to stay centered. */
  padding-left: 0.32em;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  font-size: 0.9rem;
  font-weight: 700;
}
.site-footer__links a { display: inline-block; padding: 10px 0; text-decoration: none; }
.site-footer__links a:hover { color: var(--cream); text-decoration: underline; }

/* Post anatomy -------------------------------------------------------------- */

.post { padding-top: 8px; }

.post > .eyebrow { text-align: center; }
.post-title {
  max-width: 18ch;
  margin: 0 auto 26px;
  text-align: center;
  font-size: clamp(2.15rem, 9vw, 3.6rem);
  color: var(--cream);
}

/* The photo: a polaroid with a strip of lime washi tape. */
.polaroid {
  position: relative;
  margin: 12px 4px 0;
  padding: 10px 10px 12px;
  background-color: var(--polaroid);
  background-image: var(--paper-texture);
  box-shadow: var(--shadow-paper);
  transform: rotate(-1.4deg);
}
.polaroid img, .polaroid .photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #d9cfc2;
}
/* "foto em breve", handwritten on the empty polaroid. */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--cafe-muted);
}
.photo-placeholder span { transform: rotate(-4deg); }
.tape {
  position: absolute;
  top: -15px;
  left: 50%;
  z-index: 2;
  width: 46%;
  max-width: 170px;
  height: 30px;
  background: rgba(198, 246, 53, 0.88);
  transform: translateX(-62%) rotate(-2.5deg);
  clip-path: polygon(2% 8%, 9% 0%, 18% 6%, 30% 1%, 44% 5%, 58% 0%, 71% 6%, 86% 2%, 100% 7%, 97% 50%, 100% 93%, 88% 100%, 74% 94%, 60% 100%, 45% 95%, 31% 100%, 17% 94%, 6% 100%, 0% 92%, 3% 50%);
}

.post-grid { display: grid; gap: 30px; }
/* Phones: the date card and the price tag share a line when both fit; otherwise
   (a narrow phone, a long weekday like "sábado 10h30") the tag wraps under the
   card, which never shrinks below its content. The sign-up block and the facts
   take full lines below. */
.post-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 16px;
}
.post-side > .date-card { flex: 1 0 auto; }
.post-side > .signup, .post-side > .facts, .post-side > .next-oficinas { flex: 1 0 100%; }
/* Long price options (helper `wide_price_tag?`): the tag goes under the date card,
   as on larger screens. */
.post-side--stacked > .date-card { flex-basis: 100%; }

/* Date card: OUT / 15 | QUINTA / 19h, on paper. */
.date-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 16px 16px;
  transform: rotate(0.6deg);
}
.date-card__day, .date-card__time { display: flex; flex-direction: column; }
.date-card__day { align-items: center; }
.date-card__month, .date-card__weekday {
  /* Cancels the letter-spacing after the last letter, so centered labels center. */
  margin-right: -0.24em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.date-card__weekday { color: var(--cafe-muted); }
.date-card__num {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.date-card__hour {
  margin-top: 4px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}
.date-card__rule { align-self: stretch; width: 3px; background: var(--pink); }
.accent-pink .date-card__rule { background: var(--mint); }

/* "Turma 2", handwritten on a strip of lime tape across the card's corner. Hung
   from the top, so a long label ("Turma especial de fim de ano") that wraps grows
   down into the room the tagged card keeps below it, never up over the date. */
.date-card--tagged { margin-bottom: 14px; }
.edition-tag {
  position: absolute;
  top: calc(100% - 12px);
  right: -12px;
  max-width: calc(100% + 4px);
  padding: 2px 12px 3px;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  color: var(--cafe);
  background: var(--lime);
  transform: rotate(-4deg);
}

/* Price tag: a rotated slip of mint or pink paper. */
.price-tag {
  align-self: center;
  justify-self: start;
  margin: 0;
  padding: 12px 16px 13px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cafe);
  background: var(--mint);
  box-shadow: 0 10px 18px -12px rgba(18, 9, 3, 0.8);
  transform: rotate(-1.6deg);
}
.accent-pink .price-tag, .price-tag--pink { background: var(--pink); }
.price-tag__line { display: block; }
.price-tag__amount { white-space: nowrap; }
.price-tag__label { font-weight: 500; }
/* Options ("R$ 75 1 taça"): a long label wraps inside the tag, under its own
   line's start, instead of pushing the tag out of its column. */
.price-tag--options { max-width: 100%; font-size: 1.12rem; }
.price-tag--options .price-tag__line { padding-left: 0.8em; text-indent: -0.8em; }
.price-tag--options .price-tag__line + .price-tag__line { margin-top: 4px; }

/* The promoção da dupla, under the price while it can be used: a sticker in the
   oficina's other accent color, tilted the other way from the price tag, with a
   dashed coupon edge inside and a handwritten "promo!" on lime tape at its corner. */
.post-side > .group-promo { flex: 1 0 100%; }
.group-promo {
  position: relative;
  padding: 16px 20px 18px;
  color: var(--cafe);
  background: var(--pink);
  box-shadow: 0 10px 18px -12px rgba(18, 9, 3, 0.8);
  outline: 2px dashed rgba(46, 28, 19, 0.4);
  outline-offset: -8px;
  transform: rotate(1.2deg);
}
.accent-pink .group-promo { background: var(--mint); }
.group-promo__tag {
  position: absolute;
  top: -15px;
  right: 16px;
  padding: 1px 12px 2px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--cafe);
  background: var(--lime);
  transform: rotate(4deg);
}
.group-promo__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.group-promo__offer {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.group-promo__text { margin: 4px 0 0; font-size: 1rem; line-height: 1.35; }
.group-promo__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 16px;
  border: 2px solid var(--cafe);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  color: var(--cafe);
  background: rgba(255, 253, 248, 0.45);
}
.group-promo__link:hover { background: rgba(255, 253, 248, 0.8); }

/* Facts list with lime diamond bullets and hairline dividers. */
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.12rem;
}
.facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(245, 241, 231, 0.24);
}
.facts li:last-child { border-bottom: 0; }
/* Centered on the first line, also when a long neighborhood wraps to a second. */
.facts li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: calc((1.5em - 8px) / 2);
  background: var(--lime);
  transform: rotate(45deg);
}

/* "Como funciona / Você traz / Você sai com" paper card. */
.how-card {
  margin-top: 34px;
  padding: 22px 20px 26px;
  transform: rotate(-0.3deg);
}
.how-card p { font-size: 1.04rem; line-height: 1.55; }
/* Side by side even on a phone: what you bring (left), what you leave with (right). */
.how-card__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dashed rgba(46, 28, 19, 0.22);
}
.how-card__cols p { font-weight: 700; line-height: 1.35; }

/* The sign-up block, right under the date and the price: the spots left, big
   ("restam 7 vagas"), and the "inscreva-se!" marker on the right. On a phone too
   narrow for both, the marker wraps under the count, still on the right. */
.signup__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 16px;
}
.signup__row .highlight-button { margin-left: auto; }
.spots-left {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}
.spots-left strong {
  display: block;
  margin-top: 4px;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--cream);
}
.signup__note { margin: 16px 0 0; font-size: 0.95rem; text-align: right; color: var(--cream-muted); }
/* A past or cancelled oficina: the way to the next ones, where "inscreva-se!" was. */
.next-oficinas { text-align: right; }
.signup__note a { color: var(--cream); font-weight: 700; }

/* The cancellation policy: a dashed note as wide as the card above it (the "como
   funciona" card, the sign-up sheet), its text inset by the same padding. */
.policy {
  margin: 40px 0 0;
  padding: 18px 20px 20px;
  border: 2px dashed rgba(245, 241, 231, 0.3);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--cream-muted);
}
.policy__label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}
.policy p { margin-bottom: 0.6em; }
.policy p:last-child { margin-bottom: 0; }

/* Extra photos ("como fica"). */
.gallery { margin-top: 48px; }
.gallery h2 { margin-bottom: 18px; font-size: 1.5rem; text-align: center; }
/* Two photos per line on a phone, three on larger screens; a last line with fewer
   is centered. Gutters as padding: older iPhones lack the flex gap. */
.gallery__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -7px;
  padding: 0;
  list-style: none;
}
.gallery__grid li { flex: 0 0 50%; padding: 0 7px 18px; }
.gallery__grid .polaroid { margin: 0; padding: 7px 7px 9px; }
.gallery__grid li:nth-child(even) .polaroid { transform: rotate(1.6deg); }
/* Each photo is a link that opens it big (the lightbox, below); with a mouse, the
   polaroid lifts a little under it. */
.gallery__photo { display: block; cursor: zoom-in; transition: transform 160ms ease; }
@media (hover: hover) {
  .gallery__photo:hover { transform: rotate(-1.4deg) scale(1.03); }
  .gallery__grid li:nth-child(even) .gallery__photo:hover { transform: rotate(1.6deg) scale(1.03); }
}

/* A "como fica" photo, big (lightbox_controller.js): the whole photo (the grid
   crops it square) in its polaroid frame on café, over the page, the × in the
   corner, and under it the arrows around "2 de 5", in reach of the thumb; on a
   wide screen or a phone on its side, the arrows go to the photo's sides. The
   notch and the home bar (viewport-fit=cover) keep their room. */
.lightbox:not([open]) { display: none; } /* also where <dialog> is unknown */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: calc(66px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px))
    calc(14px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
  border: 0;
  overflow: hidden;
  color: var(--cream);
  background: var(--cafe);
  /* A sideways swipe turns the photo (the controller), never the browser's page. */
  touch-action: pan-y pinch-zoom;
  animation: lightbox-in 180ms ease-out;
}
.lightbox[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "photo photo photo photo photo" ". previous count next .";
  gap: 16px 4px;
}
/* The page behind stays put while it's open: no scrolling, and no swipe going
   back a page or pulling it to reload (Chrome on Android). */
html:has(.lightbox[open]) { overflow: hidden; overscroll-behavior: none; }
@keyframes lightbox-in { from { opacity: 0; } }
@keyframes lightbox-photo-in { from { transform: translateY(10px) scale(0.96); } }

.lightbox__image {
  grid-area: photo;
  align-self: center;
  justify-self: center;
  width: auto;
  min-width: 0;
  max-height: 100%;
  padding: 8px 8px 10px;
  object-fit: contain;
  background-color: var(--polaroid);
  background-image: var(--paper-texture);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.85);
  transition: opacity 150ms ease;
  animation: lightbox-photo-in 220ms cubic-bezier(0.2, 0.8, 0.3, 1);
}
/* While a photo loads (the controller), hidden — only once it takes a moment. */
.lightbox__image.is-loading { opacity: 0; transition-delay: 150ms; }

.lightbox__close, .lightbox__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}
.lightbox__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  color: var(--cream);
  background: rgba(245, 241, 231, 0.14);
}
.lightbox__close:hover { background: rgba(245, 241, 231, 0.26); }
.lightbox__close svg { width: 22px; height: 22px; }
/* The arrows in the marker's lime. */
.lightbox__arrow {
  align-self: center;
  width: 54px;
  height: 54px;
  color: var(--cafe);
  background: var(--lime);
}
.lightbox__arrow svg { width: 28px; height: 28px; }
.lightbox__arrow--previous { grid-area: previous; }
.lightbox__arrow--next { grid-area: next; }
.lightbox__arrow:hover { transform: scale(1.06); }
.lightbox__arrow:active { transform: scale(0.95); }
.lightbox__count {
  grid-area: count;
  align-self: center;
  min-width: 6.5em;
  margin: 0;
  /* The letter-spacing also trails the last letter: pad the left to stay centered. */
  padding-left: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  color: var(--cream-muted);
}
@media (min-width: 720px), (orientation: landscape) {
  .lightbox {
    padding: calc(22px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px))
      calc(16px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px));
  }
  .lightbox[open] {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "previous photo next" ". count .";
    gap: 12px 24px;
  }
}

/* Status chip ("últimas vagas", "esgotada"). */
.status-chip {
  display: inline-block;
  padding: 4px 10px 5px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cafe);
  background: var(--lime);
}
.status-chip--muted { color: var(--cream); background: rgba(245, 241, 231, 0.16); }
/* "Dupla: R$ 55 cada" on a home card, beside the price: the promotion's sticker
   color (the card's other accent), tilted like a sticker. */
.promo-chip {
  display: inline-block;
  padding: 4px 10px 5px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cafe);
  background: var(--pink);
  transform: rotate(-2deg);
}
.accent-pink .promo-chip { background: var(--mint); }

/* Home -------------------------------------------------------------------- */

.home-hero { padding: 10px 0 34px; text-align: center; }
.home-hero h1 {
  max-width: 15ch;
  margin: 0 auto 18px;
  font-size: clamp(2.4rem, 10.5vw, 4.2rem);
  color: var(--cream);
}
/* "com as mãos", written by hand under the title. */
.home-hero h1 .hand {
  display: inline-block;
  margin-top: 0.12em;
  font-size: 0.78em;
  line-height: 1.3;
  color: var(--pink);
  transform: rotate(-3deg);
}
.home-hero__intro { max-width: 46ch; margin-right: auto; margin-left: auto; font-size: 1.1rem; color: var(--cream-muted); }

.section-title { margin: 6px 0 22px; font-size: 1.6rem; text-align: center; color: var(--cream); }

/* Phones: one card per line (grid: its gap works on older iPhones too). Larger
   screens: two or three per line, and a last line with fewer cards is centered
   under the others instead of stuck to the left (flex, below). */
.workshop-list {
  display: grid;
  gap: 46px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each card is a column: photo, title, meta line, and the price row right under
   it (side by side, a one-line title leaves its price higher than the two-line
   ones next to it, never far from its own text). The title's link stretches over
   the whole card (a tap anywhere opens the oficina); the "inscreva-se!" stuck on
   the photo sits above it. */
.workshop-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-areas: "photo" "body";
}
.workshop-card .polaroid { grid-area: photo; margin: 14px 6px 0; }
.workshop-card:nth-child(even) .polaroid { transform: rotate(1.3deg); }
/* The tape moves left, clear of the date stamp on the right corner. */
.workshop-card .tape { left: 9%; width: 40%; transform: rotate(-2.5deg); }
.workshop-card__stamp {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px 9px;
  line-height: 1;
  transform: rotate(3deg);
}
.workshop-card__stamp .date-card__num { font-size: 2.1rem; }
.workshop-card__stamp .date-card__month { margin-bottom: 3px; }
/* "QUINTA · 19h": the weekday in caps, the hour as written ("19h", never "19H"). */
.date-card__hour-small { text-transform: none; }
.workshop-card__body { grid-area: body; display: flex; flex-direction: column; margin-top: 18px; }
.workshop-card__title { font-size: 1.6rem; color: var(--cream); }
.workshop-card__link { color: inherit; text-decoration: none; }
.workshop-card__link::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.workshop-card__link:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--lime); }
.workshop-card__link:focus-visible { outline: none; }
.workshop-card__link:focus-visible::after { outline: 3px solid var(--lime); outline-offset: 6px; }
/* "inscreva-se!" straight to the sign-up, stuck on the photo's lower corner like
   the post's marker. The shadow sits on this wrapper: the marker's torn edge
   (clip-path) would cut its own. */
.workshop-card__cta {
  grid-area: photo;
  align-self: end;
  justify-self: end;
  position: relative;
  z-index: 5;
  margin: 0 18px -8px 0;
  filter: drop-shadow(0 8px 9px rgba(18, 9, 3, 0.5));
}
.workshop-card__meta { margin: 8px 0 0; color: var(--cream-muted); }
.workshop-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
}
.workshop-card__footer .price-tag { font-size: 1.15rem; padding: 7px 12px 8px; }

.empty-state {
  max-width: 620px;
  margin: 0 auto;
  padding: 26px 22px;
  text-align: center;
  transform: rotate(-0.4deg);
}
.empty-state h2 { margin-bottom: 8px; font-size: 1.35rem; }

/* Sign-up and registration pages -------------------------------------------- */

.narrow { max-width: 620px; margin: 0 auto; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 44px;
  margin-bottom: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--cream-muted);
}
.back-link:hover { color: var(--cream); }
/* One line, however long the title (the sheet below repeats it in full). */
.back-link__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sheet {
  position: relative;
  padding: 24px 20px 28px;
  transform: rotate(-0.25deg);
}
.sheet + .sheet { margin-top: 26px; transform: rotate(0.3deg); }
.sheet h1, .sheet h2 { color: var(--cafe); }
.sheet h1 { margin-bottom: 14px; font-size: clamp(1.7rem, 7vw, 2.3rem); }
.sheet h2 { margin-bottom: 10px; font-size: 1.3rem; }
.sheet p { line-height: 1.55; }
.sheet .muted { color: var(--cafe-muted); }
.sheet > :last-child { margin-bottom: 0; }

.summary-list { margin: 0 0 22px; padding: 0; list-style: none; }
.summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(46, 28, 19, 0.25);
}
.summary-list li:last-child { border-bottom: 0; }
.summary-list span:first-child { flex: none; color: var(--cafe-muted); }
/* A long e-mail or name wraps inside the sheet instead of pushing out of it. */
.summary-list span:last-child { min-width: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

/* "Quantas pessoas?": the count opens a block per person under it. */
.people-count { margin-bottom: 24px; }
.people-count__promo { display: block; margin-top: 4px; color: var(--rose-ink); }

/* More than one person: each one's details under their own title ("Você",
   "Pessoa 2"…), each after a dashed rule. The legend floats so its margin works.
   Signing up alone, the form has no titles. */
.person { min-width: 0; margin: 0; padding: 0; border: 0; }
.person + .person { margin-top: 26px; padding-top: 22px; border-top: 2px dashed rgba(46, 28, 19, 0.22); }
.person[hidden] { display: none; }
.person__title { float: left; width: 100%; margin: 0 0 14px; padding: 0; font-size: 1.2rem; font-weight: 800; color: var(--cafe); }
.person__title + * { clear: both; }
/* An option's full price, struck, before the one each person of a group pays. */
.old-price { margin-right: 2px; font-weight: 500; color: var(--cafe-muted); }
/* Alone or together (data-group, from signup_people_controller.js): the prices and
   the titles that fit. */
.signup-people:not([data-group]) .group-only,
.signup-people:not([data-group]) .person__title--you,
.signup-people[data-group] .solo-only { display: none; }
.signup-total { margin: 0 0 14px; font-size: 1.1rem; text-align: center; color: var(--cafe); }
.signup-total[hidden] { display: none; }

.form-actions { margin-top: 26px; }
.form-actions + * { margin-top: 22px; }
.form-actions .highlight-button { width: 100%; text-align: center; }
.form-actions__note { margin: 14px 0 0; font-size: 0.9rem; text-align: center; color: var(--cafe-muted); }

.status-badge {
  display: inline-block;
  margin-bottom: 14px;
  /* Less on the right: the letter-spacing already trails the last letter. */
  padding: 5px calc(12px - 0.14em) 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cafe);
  background: var(--lime);
  transform: rotate(-2deg);
}
.status-badge--waiting { background: var(--mint); }
.status-badge--warning { background: var(--pink); }
.status-badge--muted { color: var(--cream); background: var(--cafe-muted); }

.address-block {
  margin: 18px 0 0;
  padding: 16px;
  border: 2px solid rgba(46, 28, 19, 0.18);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.6);
}
.address-block p { margin-bottom: 8px; }
.address-block .address { font-size: 1.1rem; font-weight: 800; line-height: 1.35; }

.action-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* Phones: buttons that don't share a line stretch to it, instead of a ragged stack. */
.action-list .button { flex: 1 1 auto; color: var(--cafe); }

.section-gap { margin-top: 24px; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Phones narrower than the logo + Instagram handle (iPhone mini/SE, small
   Androids): the handle gets smaller, then only the icon stays (the footer still
   shows the handle). */
@media (max-width: 419px) {
  .site-header { gap: 12px; }
  .header-link { font-size: 0.82rem; }
}
@media (max-width: 379px) {
  .header-link { justify-content: center; min-width: 44px; }
  .header-link span {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}
/* The home's centered logo leaves the corner room for the icon only. */
@media (max-width: 719px) {
  .page-home .header-link { justify-content: center; min-width: 44px; }
  .page-home .header-link span {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* Larger screens ------------------------------------------------------------ */

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .site-header { padding-top: 26px; padding-bottom: 26px; }
  .brand-logo { width: 140px; }
  .page-home .brand-logo { flex-basis: 300px; }
  .page-home .header-link { top: 26px; }
  .post-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .post-side { gap: 28px; padding-top: 12px; }
  .post-side > .date-card { flex-basis: 100%; }
  .date-card { padding: 18px 22px 20px; }
  .date-card__num { font-size: 4rem; }
  .date-card__hour { font-size: 1.9rem; }
  .price-tag { font-size: 2rem; padding: 12px 26px 14px; }
  .price-tag--options { font-size: 1.5rem; }
  .how-card { padding: 28px 30px 32px; }
  .policy { padding: 22px 30px 24px; }
  .narrow .policy { padding-right: 34px; padding-left: 34px; }
  .how-card__cols { gap: 28px; }
  .signup .highlight-button { font-size: 1.6rem; }
  .spots-left strong { font-size: 2.6rem; }
  .gallery__grid li { flex-basis: 33.333%; }
  .workshop-list { display: flex; flex-wrap: wrap; justify-content: center; }
  .workshop-card { flex: 0 1 calc((100% - 30px) / 2); }
  .sheet { padding: 32px 34px 36px; }
  .action-list .button { flex: 0 1 auto; }
}

@media (min-width: 1060px) {
  .workshop-card { flex-basis: calc((100% - 60px) / 3); }
}
