/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-display);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    background: linear-gradient(to bottom, var(--background-gradient-start), var(--background-gradient-end));
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary);
    color: var(--white);
}

/* Breadcrumb — Base */
.breadcrumb {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

/* Breadcrumb — Pills variant */
.breadcrumb-pills .breadcrumb-list {
    gap: 0.375rem;
}

.breadcrumb-pills .breadcrumb-item a,
.breadcrumb-pills .breadcrumb-item[aria-current="page"] {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(var(--primary-rgb), 0.08);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.breadcrumb-pills .breadcrumb-item a:hover {
    background: rgba(var(--primary-rgb), 0.15);
}

.breadcrumb-pills .breadcrumb-item[aria-current="page"] {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.breadcrumb-pills .breadcrumb-item:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: var(--slate-300);
    margin: 0 0.125rem;
    vertical-align: middle;
}


/* Accessibility: Skip Link & Focus */
.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;
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    z-index: 9999;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(var(--black-rgb), 0.1);
    transition: top 0.3s ease-out;
}

.skip-link:focus {
    top: 0;
    outline-offset: 2px;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
    border-radius: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-400);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-500);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}