/* =========================================================
   NOTESREALM — SHARED BASE STYLES
   Created as the common foundation for all website modules.
   Branding assets and existing design tokens remain unchanged.
========================================================= */

:root {
    color-scheme: light;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--bg, #f8fafc);
    color: var(--text, #172033);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

button,
input,
select,
textarea {
    max-width: 100%;
}

button {
    cursor: pointer;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent, #22d3ee);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
    margin-top: 0;
}

ul,
ol {
    padding-inline-start: 1.35em;
}

table {
    max-width: 100%;
    border-collapse: collapse;
}

code,
pre,
kbd,
samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

[hidden] {
    display: none !important;
}

.skip-to-content {
    position: absolute;
    z-index: 2000;
    top: 8px;
    left: 8px;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--surface, #fff);
    color: var(--primary, #0f4c81);
    box-shadow: var(--shadow);
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
