/* IP247 Base Styles v0.1.0 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-family);
    font-size: var(--font-base);
    line-height: var(--line-height);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 var(--space-4);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

h1 {
    font-size: var(--font-3xl);
}

h2 {
    font-size: var(--font-2xl);
}

h3 {
    font-size: var(--font-xl);
}

h4 {
    font-size: var(--font-lg);
}

p {
    margin: 0 0 var(--space-4);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

img,
svg {
    max-width: 100%;
}

code,
pre,
kbd,
samp {
    font-family: var(--font-mono);
}

pre {
    max-width: 100%;
    overflow-x: auto;
}

code {
    overflow-wrap: anywhere;
}

table {
    border-collapse: collapse;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 1000;
    padding: var(--space-3);
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
