/* ==========================================================================
   BUTTONS — single source of truth. Three types, nothing else.

     .btn.btn--primary     accent pill        "Get in touch", "Send message"
     .btn.btn--secondary   outline pill       "My Portfolio", "See All Projects"
     .btn.btn--text        inline text link   "Read the full bio…"

   Modifier: .btn--sm (compact, used by the nav CTA).
   Legacy hook classes (.cf-submit, .reset) are kept in the markup for JS only
   and carry no styling of their own.
   ========================================================================== */

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; line-height: 1;
  white-space: nowrap; cursor: pointer; text-align: center;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, translate .25s ease;
}
.btn:disabled{ opacity: .5; cursor: default; }

/* primary — accent fill */
.btn--primary{ background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover{ background: var(--ink); color: var(--bg); border-color: var(--ink); translate: 0 -2px; }

/* secondary — outline, accent label */
.btn--secondary{ color: var(--accent); border-color: var(--rule-2); }
.btn--secondary:hover{ border-color: var(--accent); color: var(--accent); translate: 0 -2px; }

/* text — inline link with a rule under it */
.btn--text{
  padding: 6px 0; border: 0; border-bottom: 1px solid var(--rule);
  border-radius: 0; color: var(--ink); gap: 8px;
}
.btn--text:hover{ color: var(--accent); border-bottom-color: var(--accent); }
.btn--text.is-accent{ color: var(--accent); font-weight: 700; }

/* compact */
.btn--sm{ padding: 10px 18px; }

@media (max-width: 760px){
  .btn{ padding: 12px 18px; gap: 8px; font-size: 12px; }
  .btn--text{ padding: 6px 0; font-size: var(--t-label); }
  .btn--sm{ padding: 9px 14px; }
  .btn--block-mobile{ align-self: stretch; width: 100%; }
}

/* light theme: accent fill keeps white text */
html[data-theme="light"] .btn--primary{ color: #fff; }
html[data-theme="light"] .btn--primary:hover{ color: var(--bg); }
