/* Base styles and reset - BeFlowed Design */

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

* {
    margin: 0;
}

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-relaxed);
    color: var(--color-text);
    background: var(--gradient-bg);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-white);
}

h1 {
    font-size: var(--font-size-display);
    margin-bottom: var(--space-8);
}

h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-6);
}

h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
}

h4 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-3);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-pink);
}

ul, ol {
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
}

li {
    margin-bottom: var(--space-2);
}

li::marker {
    color: var(--color-pink);
}

strong {
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
}

em {
    font-style: italic;
    color: var(--color-white);
}

small {
    font-size: var(--font-size-sm);
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-8) 0;
}

::selection {
    background-color: var(--color-pink);
    color: var(--color-purple-dark);
}

/* Focus styles for accessibility */
:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-focus);
}

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

::-webkit-scrollbar-track {
    background: var(--color-dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-white-subtle);
}

/* Utility: Text decorations */
.text-underline {
    text-decoration: underline;
    text-decoration-color: var(--color-purple-accent);
    text-underline-offset: 0.25em;
}

.text-highlight {
    background: linear-gradient(transparent 60%, var(--color-teal) 60%);
}
