/* Landing page layout [2.3, 7.10]: hero, area heading, bands, WhatsApp panel. Tokens only. */
.landing { display: block; }
/* Fix 3.2: htmx replaces the whole calendar block; without this, Chrome's scroll anchoring picks
   a node that was swapped out and jumps the page (to the bottom after "Show more"). The page
   stays where it is while the rows change. This sheet loads on the landing page only. */
html { overflow-anchor: none; }
.landing__column { width: 100%; max-width: var(--w-public); margin-inline: auto; padding-inline: var(--gutter); }
.landing h2 { font-size: var(--text-xl); line-height: var(--leading-tight); margin: 0 0 var(--space-4); }
.landing section[id], .landing [id="calendar"] { scroll-margin-top: var(--header-h); }
/* Fix 3.3: the hero button lands on the area heading block. html already has
   scroll-padding-top: var(--header-h) (site-bar.css), which clears the pinned bar, so the
   margin only trims the block's own 24px top padding: the title sits about 12px below the bar
   (board 1, "Scrolled, sticky bar"). */
.landing #whats-on { scroll-margin-top: calc(-1 * var(--space-3)); }
/* Reflow with large text (WCAG 1.4.10, 200% text at 320px): inner paddings stop at their
   default size instead of doubling with the text, long words break rather than push the
   page wider, and buttons never grow past their box. */
.landing .btn { flex-wrap: wrap; max-width: 100%; padding-inline: min(var(--space-6), 24px); overflow-wrap: break-word; }
.landing .btn > * { flex: none; }

.band { padding-block: var(--space-8); }
.band--calendar { background: var(--band-calendar); }
.band--testimonial { background: var(--band-testimonial); }

/* Hero: photo under a dark gradient, the Butter card on top */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 28rem;
  padding: var(--space-16) var(--gutter) var(--space-6);
  background: linear-gradient(160deg, var(--plum), var(--page));
  overflow: hidden;
}
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--scrim), transparent 45%, var(--scrim));
}
.hero__card {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding: var(--space-5) min(var(--space-5), 20px);
  border-radius: var(--radius-lg);
  background: var(--butter);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
/* The hero lines, sized like the holding page's headline (owner, 2026-12-03). */
.hero__text { max-width: 100%; margin: 0; font-size: clamp(1.625rem, 6.5vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }

/* The welcome statement under the calendar. */
.landing__welcome { padding-block: var(--space-8); }
.landing__welcome-text { margin: 0; font-size: var(--text-lg); line-height: var(--leading-body); text-wrap: pretty; }
.landing__welcome-button { margin-top: var(--space-5); }

.area-heading { padding-block: var(--space-6) var(--space-4); }
.area-heading__title { margin: 0; font-size: min(var(--text-2xl), 1rem + 4vw); line-height: var(--leading-tight); overflow-wrap: break-word; }
.area-heading__name {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap; /* very large text: the arrow drops under the name before the name breaks */
  max-width: 100%;
  min-height: var(--tap-min);
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  text-align: start;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.area-heading__underline { min-width: 0; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 0.2em; }
.area-heading__arrow { flex: none; width: 1em; height: 1em; }
.area-heading__audience { margin: var(--space-2) 0 0; color: var(--muted); }

.area-sheet__title { margin: 0 0 var(--space-4); font-size: var(--text-xl); }
.area-sheet__list { margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.area-sheet__current { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); font-weight: 700; }
.area-sheet__list > li + li { border-top: 1px solid var(--chip); }
.area-sheet__link {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  padding-inline-start: calc(1.25em + var(--space-2));
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.area-heading__others { margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.area-heading__others a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--link); }
.area-sheet__more { margin: 0 0 var(--space-2); color: var(--muted); }
.area-sheet__ask { color: var(--link); }

.landing__photos { padding-block: var(--space-8); }

/* WhatsApp panel */
.landing__panel { padding: var(--space-8) var(--gutter); }
.whatsapp-panel {
  max-width: var(--w-public);
  margin-inline: auto;
  padding: var(--space-8) min(var(--space-6), 24px);
  border-radius: var(--radius-lg);
  background: var(--plum);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.landing .whatsapp-panel__headline { max-width: 100%; margin: 0; font-size: var(--text-xl); font-weight: 700; line-height: var(--leading-tight); overflow-wrap: anywhere; }

/* Wide: the calendar card and the list side by side in the column */
@media (min-width: 1024px) {
  .hero { min-height: 34rem; }
  /* Fix 4.16 (boards 1, 9, 15): the card sits at the left edge of the content column. */
  .hero { padding-inline: max(var(--gutter), calc((100% - var(--w-public)) / 2 + var(--gutter))); }
  .hero__card { margin-inline: 0; }
  .landing__panel { padding-inline: var(--gutter); }
  .whatsapp-panel { flex-direction: row; align-items: center; justify-content: space-between; }
}
.area-heading__ask { margin: var(--space-2) 0 0; }

/* L3 tap pattern (fix 4.9): the area sheet's e-mail link is 44px tall, look unchanged. */
.area-sheet__ask { display: inline-flex; align-items: center; min-height: var(--tap-min); }
