/* Base Typography & Element Styles */

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--lh-relaxed);
    color: var(--text-charcoal);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: default;
}

/* 
   Set default arrow for layout elements but allow inheritance for interactive children.
*/
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
span,
div,
section,
header,
footer {
    cursor: default;
}

/* Prevent I-beam (text cursor) explicitly where we don't want it */
.logo,
.nav-link,
.btn,
.card,
.gallery-item {
    user-select: none;
}

/* Maintain text selection if desired, but without the text cursor */
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
a,
span {
    user-select: text;
}

/* Interactive elements still get the pointer hand */
a,
button,
.btn,
.gallery-nav,
.mobile-menu-toggle {
    cursor: pointer !important;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: var(--lh-tight);
    color: var(--text-charcoal);
    margin-bottom: var(--space-sm);
}

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

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

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

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

/* Paragraphs */
p {
    margin-bottom: var(--space-sm);
    max-width: 75ch;
    /* Optimal line length for readability */
}

/* Links */
a {
    color: var(--primary-ocean);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-sage);
}

a:focus-visible {
    outline: 2px solid var(--primary-ocean);
    outline-offset: 4px;
    border-radius: var(--border-radius-sm);
}

/* Lists */
ul,
ol {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
}

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

/* Strong & Emphasis */
strong {
    font-weight: 600;
    color: var(--text-charcoal);
}

em {
    font-style: italic;
}

/* Small text */
small {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Selection */
::selection {
    background-color: var(--primary-ocean);
    color: var(--white);
}

/* Focus states - Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-ocean);
    outline-offset: 2px;
}

/* Smooth scrolling for reduced motion */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}