@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; }

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

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

  /* 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. */
  .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: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow:
      inset 0 1px 0 var(--glass-highlight),
      0 2px 6px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  .btn-glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    color: #fff;
    text-decoration: none;
  }
  .btn-glass:focus { outline: none; }
  .btn-glass:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
  }
}
