@layer components {
  /* Ink-stamped button — square corners, ink fill, paper text. */
  .btn {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.02em;
    background: var(--ink);
    color: var(--paper);
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .btn:hover { background: #000; text-decoration: none; }
  /* Disabled (e.g. "Nudged today") — greyed and inert. */
  .btn:disabled,
  .btn:disabled:hover {
    background: var(--paper-warm-2);
    color: var(--ink-faint);
    cursor: default;
  }

  /* Tonal stamps — temporarily collapsed into the base ink stamp so
     every CTA across the app reads in one language. Accent variants
     return when the per-gathering palette work lands. */
  .btn-arrive,
  .btn-depart,
  .btn-slate {
    background: var(--ink);
    color: var(--paper);
    border: none;
  }
  .btn-arrive:hover,
  .btn-depart:hover,
  .btn-slate:hover {
    background: #000;
    color: var(--paper);
  }

  /* Pink — the one CTA per flow that gets the brand accent. Used
     sparingly; everything else is the black ink-stamp .btn. */
  .btn-pink { background: var(--pink); color: #fff; }
  .btn-pink:hover { background: var(--pink); color: #fff; filter: brightness(0.88); }

  /* Ghost stamp — paper inset, ink text. Same shape as .btn so the two
     read as a paired filled/outline set. */
  .btn-paper,
  .btn-slate-paper {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.02em;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 13px 27px; /* matches .btn's 14/28 minus the 1px border */
    border-radius: var(--radius-xs);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }
  .btn-paper:hover,
  .btn-slate-paper:hover {
    background: var(--ink);
    color: var(--paper);
  }

  /* Outlined danger — same shape as .btn-paper, ink swapped for required red. */
  .btn-paper--danger {
    color: var(--required);
    border-color: var(--required);
  }
  .btn-paper--danger:hover {
    background: var(--required);
    color: var(--paper);
    border-color: var(--required);
  }

  /* Quiet — text with single ink underline. Works on <a> and <button>;
     for buttons we need to reset UA chrome (top/left/right borders,
     background, font, appearance). */
  .btn-quiet {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: var(--ink-soft);
    text-decoration: none;
    font-family: var(--sans);
    padding: 8px 0;
    font-size: 13px;
    border: none;
    border-bottom: 1px solid var(--ink-faint);
    border-radius: 0;
    display: inline-block;
    cursor: pointer;
    line-height: 1.4;
  }
  .btn-quiet:hover { color: var(--ink); border-bottom-color: var(--ink); text-decoration: none; }
  .btn-quiet:focus { outline: none; }
  .btn-quiet:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

  /* Text — plain inline text link button. No underline, no border, no
     padding chrome. For inline row actions like "Copy link". */
  .btn-text {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--slate);
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.12s ease;
  }
  .btn-text:hover { color: var(--ink); text-decoration: none; }
  .btn-text:focus { outline: none; }
  .btn-text:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
  .btn-text svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  /* Danger variant — red text link (e.g. "Uninvite"). */
  .btn-text--danger { color: var(--required); }
  .btn-text--danger:hover { color: var(--required); filter: brightness(0.88); }

  /* Sizing variants */
  .btn-lg { font-size: 15px; padding: 16px 32px; }
  .btn-block { display: flex; width: 100%; }

  /* Glass pill — reusable token-driven variant for buttons that float
     over the landscape backdrop (e.g. nav CTAs). Self-contained: pill
     shape, dark translucent fill, hairline white border, white text.
     Distinct from .btn — don't combine. */
  /* Brand pass: was a frosted-glass pill over the photo landscape;
     now a plain black-outline pill over white, filling black on hover.
     One change covers every nav CTA, the avatar/create menus echo it. */
  /* Subtle frosted pill — for low-emphasis disclosures sitting over the
     portal photo or a dark band. No outline; the blur does the work.
     (Nav CTAs that need to stand on white use .lodge-nav-cta instead.) */
  .btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: var(--weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px) saturate(1.4) brightness(0.85);
    -webkit-backdrop-filter: blur(10px) saturate(1.4) brightness(0.85);
    border: none;
    border-radius: 999px;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: background 0.15s ease;
  }
  .btn-glass:hover {
    background: rgba(255, 255, 255, 0.30);
    color: #fff;
    text-decoration: none;
  }
  .btn-glass:focus { outline: none; }
  .btn-glass:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }
}
