/* Modern reset (Josh Comeau style, упрощённый) */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html {
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    tab-size: 4;
}
@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;
        scroll-behavior: auto !important;
    }
}
body {
    font-family: var(--font-body);
    font-size: var(--fs-step-0);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: transparent; border: 0; padding: 0; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

a {
    color: var(--color-accent);
    text-decoration: none;
    text-decoration-color: rgba(34, 211, 238, 0.4);
    text-underline-offset: 3px;
    transition: color var(--dur-fast) var(--ease-in-out);
}
a:hover { color: var(--color-accent-3); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-step-5); }
h2 { font-size: var(--fs-step-4); }
h3 { font-size: var(--fs-step-2); }
h4 { font-size: var(--fs-step-1); }

::selection { background: rgba(168, 85, 247, 0.4); color: var(--color-text); }

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

/* Arrow icon (template-parts/icon-arrow.php) — SVG instead of a "→" glyph:
   a glyph is centred by font metrics and drifts with the system font stack.
   In flex rows (buttons) it is centred by geometry; in running text it sits
   on the x-height middle. */
.icon-arrow {
    display: inline-block;
    flex: none;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}
