/*
 * 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; }

/* 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); }

/* 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); }

/* 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 with its price row at the bottom, so the price rows of a
   grid row line up even when the titles above take different numbers of lines.
   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;
  margin-top: auto;
  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; }

.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); }
}
