* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-primary);
    background-color: var(--bg-canvas);
    font-family: "Manrope", "Segoe UI", sans-serif;
    line-height: 1.65;
    min-height: 100vh;
    background-image: radial-gradient(circle at 14% 18%, var(--bg-image-top-left) 0, transparent 42%),
        radial-gradient(circle at 85% 10%, var(--bg-image-top-right) 0, transparent 36%),
        radial-gradient(circle at 82% 72%, var(--bg-image-bottom-right) 0, transparent 32%),
        var(--bg-image-wash);
}

.skip-link {
    position: absolute;
    left: 0.8rem;
    top: -3rem;
    z-index: 40;
    background: var(--deep-green-800);
    color: var(--warm-ivory);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    transition: top 180ms var(--ease-artful);
}

.skip-link:focus-visible {
    top: 0.75rem;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    font-family: "Fraunces", "Georgia", serif;
    line-height: 1.12;
    margin: 0 0 var(--space-3);
}

h1 {
    font-size: clamp(2.3rem, 6vw, 4rem);
    letter-spacing: 0.015em;
}

h2 {
    font-size: clamp(1.85rem, 4.8vw, 2.65rem);
}

p {
    margin: 0 0 var(--space-3);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.section-shell {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

.section-title {
    display: inline-block;
    padding-bottom: 0.3rem;
    border-bottom: 3px solid var(--sky-blue);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--terracotta-500);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.project-card:focus-within,
.skill-card:focus-within,
.contact-card:focus-within {
    box-shadow: 0 0 0 4px rgba(255, 122, 51, 0.25);
}