/* Hallmark · club: the customer club in one quiet column on white; her card and the worked example sit on the warm paper, the history in hairline rows, one small ink star */

/* ---------- the column ---------- */

.club { padding-block: var(--space-2xl) var(--section-gap-s); }
.club__in { display: grid; gap: var(--space-2xl); max-width: calc(40rem + 2 * var(--gutter)); }
.club__head { display: grid; gap: var(--space-md); }
.club__head h1 { font-size: var(--text-display-s); line-height: 1.15; text-wrap: balance; }
.club__head h1[tabindex="-1"]:focus { outline: none; }
.club__part { display: grid; gap: var(--space-md); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.club__h2 { font-size: var(--text-xl); line-height: 1.3; text-wrap: balance; }
.club__note { font-size: var(--text-sm); color: var(--color-muted); }
.club__actions { display: grid; gap: var(--space-md); justify-items: start; }

/* the one star: a small outline in the ink, beside a number or a heading, never on its own */
.club-star { width: 1em; height: 1em; color: var(--color-ink); }

/* ---------- how it works ---------- */

.club-how { display: grid; }
.club-how li { display: grid; gap: var(--space-2xs); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.club-how li:first-child { padding-top: 0; }
.club-how li:last-child { border-bottom: 0; padding-bottom: 0; }
.club-how__h { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-lg); line-height: 1.35; }

/* ---------- the worked example: three figures on the warm paper ---------- */

.club-example__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: var(--color-paper-2); }
.club-example__row > div { display: grid; gap: var(--space-2xs); align-content: start; padding: var(--space-lg) var(--space-md); }
.club-example__row > div + div { border-inline-start: var(--rule-hair) solid var(--color-rule); }
.club-example__row dt { font-size: var(--text-sm); color: var(--color-ink-2); }
.club-example__row dd { margin: 0; font-size: var(--text-xl); line-height: 1.25; }

@media (max-width: 30rem) {
  .club-example__row { grid-template-columns: minmax(0, 1fr); }
  .club-example__row > div { padding-block: var(--space-md); }
  .club-example__row > div + div { border-inline-start: 0; border-top: var(--rule-hair) solid var(--color-rule); }
}

/* ---------- joining ---------- */

.club-join { gap: var(--space-lg); }
.club-join__consent label { padding-block: var(--space-sm); cursor: pointer; }
.club-join__consent input { cursor: pointer; }
.club-join .btn { width: 100%; }
.club-join .btn:disabled { cursor: not-allowed; }

/* ---------- her card ---------- */

.club-card { display: grid; gap: var(--space-xs); padding: var(--space-xl) var(--space-lg); background: var(--color-paper-2); }
.club-card__name { font-size: var(--text-lg); color: var(--color-ink-2); }
.club-balance { display: flex; align-items: baseline; gap: var(--space-xs); margin-top: var(--space-xs); }
.club-balance .club-star { align-self: center; width: var(--space-lg); height: var(--space-lg); }
.club-balance__n { font-size: var(--text-display); line-height: 1; }
.club-balance__word { font-size: var(--text-xl); }
.club-card__worth { font-size: var(--text-lg); }
.club-card__rule { margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }

/* ---------- the history: hairline rows, the stars at the end of each ---------- */

.club-ledger { border-top: var(--rule-ink) solid var(--color-rule-ink); }
.club-ledger__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.club-ledger__what { display: grid; gap: var(--space-3xs); min-width: 0; }
.club-ledger__date { font-size: var(--text-sm); color: var(--color-muted); }
.club-ledger__stars { font-size: var(--text-lg); white-space: nowrap; }

/* ---------- keeping the link ---------- */

.club-save { display: grid; gap: var(--space-xs); padding-inline-start: var(--space-lg); list-style: disc; }
.club-share { width: 100%; }
.club-share:active { background: var(--color-paper-3); }

/* ---------- every control: a 48px target and an instant ring ---------- */

.club .link { min-height: 48px; }
.club a:focus-visible, .club button:focus-visible, .club input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.club .field input:focus-visible, .club .check input:focus-visible { outline-offset: 2px; }
.club .form__summary a:focus-visible { outline-offset: 2px; }

@media (min-width: 40rem) {
  .club-share, .club-join .btn { width: auto; min-width: min(20rem, 100%); }
}
