/* ============================================================
   nibango Base Styles
   ============================================================ */

@font-face {
    font-family: 'ClashGrotesk';
    src: url("/static/fonts/ClashGrotesk-Light.e8c718ad3f6c.woff2") format('woff2'),
         url("/static/fonts/ClashGrotesk-Light.e54e5066020e.otf") format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ClashGrotesk';
    src: url("/static/fonts/ClashGrotesk-Regular.b4fa350eaa6c.woff2") format('woff2'),
         url("/static/fonts/ClashGrotesk-Regular.3eddd09d790a.otf") format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ClashGrotesk';
    src: url("/static/fonts/ClashGrotesk-Semibold.b43d3c38d626.woff2") format('woff2'),
         url("/static/fonts/ClashGrotesk-Semibold.f2c02f6efac9.otf") format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.hidden {
    display: none !important;
}

html {
    background-color: var(--bg-secondary);
}

body {
    font-family: var(--font-system);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--b-primary-text-aa);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--b-primary-hover);
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: 100%;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

p {
    margin-bottom: var(--sp-md);
}

/* Base Form Resets */
input,
textarea {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--separator);
    border-radius: var(--r-sm);
    padding: var(--sp-sm) var(--sp-md);
    transition: border-color var(--t-fast);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--b-primary);
}

::placeholder {
    color: var(--text-secondary-aa);
    opacity: 1;
}
/* Skip-to-main-content link.
   Visually hidden until focused (Tab from address bar reveals it). Required
   for keyboard users to bypass the header and jump straight to <main>. */
.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    z-index: 10000;
    padding: 8px 16px;
    background: var(--b-primary-fill-aa);
    color: #fff;
    border-radius: var(--r-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; outline: 2px solid var(--text-primary); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--b-primary); outline-offset: 2px; }

/* Keep typing/loading status visible without repeated movement when the
   visitor has requested less motion. Numeric progress still updates. */
@media (prefers-reduced-motion: reduce) {
    html .typing-dots span {
        animation: none;
        transform: none;
        opacity: 1;
    }
    html .chat-item--removing,
    html .notif-item--removing,
    html .badge-progress__fill,
    html .completion-fill,
    html .profile-completion__fill {
        transition: none;
    }
}
.main-content:focus { outline: none; }
