.wordmark { font-size: 1.6rem; font-weight: 800; letter-spacing: -.07em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: transparent; text-decoration: none; }
.icon-button:hover { background: var(--soft); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 650; text-decoration: none; transition: transform var(--transition), background var(--transition); }
.button:hover { transform: translateY(-2px); background: var(--soft); }
.button-primary { background: var(--primary-bg); color: var(--primary-text); border-color: transparent; }
.button-primary:hover { background: var(--primary-hover); color: var(--primary-text); border-color: transparent; }
button:disabled { opacity: .6; cursor: wait; transform: none; }
.eyebrow { font-size: .7rem; font-weight: 650; letter-spacing: .14em; color: var(--accent); }
.section-heading { margin-bottom: var(--space-5); }
.section-heading h2 { font-size: clamp(1.7rem, 3vw, 2rem); font-weight: 650; letter-spacing: -.035em; }
.section-heading > p { margin-top: 16px; color: var(--muted); font-size: .95rem; }
.section-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.text-link { font-size: .8rem; color: var(--muted); text-decoration: none; }
.text-link:hover { color: var(--accent); }
.badge { display: inline-block; padding: 4px 11px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: .75rem; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.technology-badge { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 10px; border-color: transparent; background: #fff; color: #403c43; line-height: 1.6; }
.technology-badge--compact { --technology-logo-size: 14px; gap: 5px; padding: 2px 7px; font-size: .65rem; font-weight: 400; background: color-mix(in srgb, #fff 45%, transparent); }
[data-theme="dark"] .technology-badge--compact { background: color-mix(in srgb, #fff 75%, transparent); }
.technology-logo { width: var(--technology-logo-size, 18px); height: var(--technology-logo-size, 18px); flex: 0 0 var(--technology-logo-size, 18px); object-fit: contain; }
.technology-logo--railway { background: #0b0d0e; border-radius: 50%; }
.technology-badge > span { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--text-sm); font-weight: 650; }
input, textarea, select { min-height: 48px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); width: 100%; }
textarea { resize: none; min-height: 150px; }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { min-height: 1.5em; color: var(--error); font-size: .78rem; }
.status { color: var(--muted); font-size: var(--text-sm); }
.status[data-state="error"] { color: var(--error); }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 10; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
[data-reveal] { transition: opacity 520ms cubic-bezier(.22, 1, .36, 1), transform 520ms cubic-bezier(.22, 1, .36, 1); }
.reveal-pending { opacity: 0; transform: translateY(12px); }
.skill-card:nth-child(2) { transition-delay: 70ms; }
.skill-card:nth-child(3), .contact-form[data-reveal] { transition-delay: 140ms; }
.typing::after { content: ''; display: inline-block; height: 1em; border-right: 1px solid currentColor; margin-left: 3px; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .reveal-pending, .hero-description-pending { opacity: 1; transform: none; } }
/* Keep a useful focus target after anchor navigation without a large section outline. */
section[tabindex="-1"]:focus, main[tabindex="-1"]:focus, body[tabindex="-1"]:focus { outline: none; }
@media (forced-colors: active) {
  .language-field::after { background: ButtonText; forced-color-adjust: none; }
  .button, .icon-button, .category-filters button { border: 1px solid ButtonText; }
  .category-filters button[aria-pressed="true"] { outline: 2px solid Highlight; }
}
