/* Core theme tokens: adjust these values first to quickly retheme the site. */
:root {
    --bg: #e8eceb;
    --bg-deep: #dce5e3;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #f8faf9;
    --surface-alt: #d7e8e6;
    --text: #2d3e4e;
    --muted: #556674;
    --line: rgba(45, 62, 78, 0.14);
    --primary: #e09e50;
    --primary-dark: #2d3e4e;
    --accent: #8cbdb9;
    --accent-soft: rgba(140, 189, 185, 0.24);
    --shadow-soft: 0 20px 50px rgba(45, 62, 78, 0.1);
    --shadow-lift: 0 26px 60px rgba(45, 62, 78, 0.16);
    --radius: 26px;
    --content-width: 1120px;
    --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Arial", "Helvetica Neue", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    background:
        radial-gradient(circle at top left, rgba(224, 158, 80, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(140, 189, 185, 0.24), transparent 32%),
        linear-gradient(180deg, #f7f9f8 0%, var(--bg) 45%, #edf2f1 100%);
}

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

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

.page-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(232, 236, 235, 0.8);
    border-bottom: 1px solid rgba(45, 62, 78, 0.08);
}

.nav-wrap,
.section-inner,
.site-footer-inner {
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 0 auto;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.015em;
}

.brand-mark {
    width: 2.85rem;
    height: 2.85rem;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    color: #f8faf9;
    background: linear-gradient(145deg, var(--primary), var(--accent));
    box-shadow: 0 14px 28px rgba(45, 62, 78, 0.18);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 0.72rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.56);
    transform: translateY(-1px);
}

.hero,
.content-section {
    padding: 5.75rem 0;
}

.content-section+.content-section {
    padding-top: 1rem;
}

.hero-grid,
.content-grid,
.cards-grid,
.project-grid,
.contact-grid,
.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    align-items: start;
    gap: 2rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--accent-soft);
    border: 1px solid rgba(140, 189, 185, 0.18);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0 0 1rem;
    color: var(--text);
    line-height: 1.08;
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 600;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    letter-spacing: -0.045em;
    max-width: 12ch;
}

h2 {
    font-size: clamp(2rem, 3vw, 3.1rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.lead {
    font-size: 1.14rem;
    max-width: 60ch;
    color: #4d5f6d;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.25rem;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.2rem;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

/* Primary interactive style: adjust for button emphasis and call-to-action color. */
.button-primary,
button {
    color: #f8faf9;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    box-shadow: 0 16px 30px rgba(45, 62, 78, 0.2);
}

.button-secondary {
    color: var(--primary-dark);
    background: rgba(255, 253, 249, 0.74);
    border-color: rgba(45, 62, 78, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.button:hover,
button:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 34px rgba(45, 62, 78, 0.18);
}

.panel,
.card,
.project-card,
.contact-card,
.form-card,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.panel,
.card,
.project-card,
.contact-card,
.form-card {
    position: relative;
    overflow: hidden;
}

.panel::before,
.card::before,
.project-card::before,
.contact-card::before,
.form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.86), transparent);
    pointer-events: none;
}

.panel {
    padding: 2.2rem;
}

.hero-card {
    padding: 2.1rem;
    background:
        linear-gradient(180deg, rgba(45, 62, 78, 0.95), rgba(34, 47, 60, 0.97)),
        #2d3e4e;
    color: #f3f6f5;
}

.hero-card h2 {
    color: #f8faf9;
}

.hero-card p,
.hero-card li {
    color: rgba(243, 246, 245, 0.78);
}

.stat-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(232, 236, 235, 0.12);
    box-shadow: none;
}

.stat-value {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 600;
    color: #f8faf9;
}

.section-header {
    max-width: 56rem;
    margin-bottom: 2.5rem;
}

.section-header h2,
.section-header h1 {
    max-width: 14ch;
}

.cards-grid,
.project-grid,
.skills-grid,
.contact-grid,
.content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.project-card,
.contact-card,
.form-card {
    padding: 1.85rem;
}

.card,
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(140, 189, 185, 0.28);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 22%),
        var(--surface);
}

.project-tag,
.skill-tag {
    display: inline-flex;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.44rem 0.8rem;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--primary-dark);
    font-size: 0.87rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.project-links,
.inline-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--primary-dark);
}

.two-column-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    padding: 0;
    margin: 1.25rem 0 0;
    list-style: none;
}

.two-column-list li {
    color: var(--muted);
}

.two-column-list li::before {
    content: "*";
    margin-right: 0.6rem;
    color: var(--primary);
}

.form-card form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    color: var(--text);
}

/* Form controls: update these for input density, border style, or focus treatment. */
input,
textarea {
    width: 100%;
    padding: 0.98rem 1rem;
    border: 1px solid rgba(45, 62, 78, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    font: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(140, 189, 185, 0.6);
    box-shadow: 0 0 0 4px rgba(140, 189, 185, 0.2);
    background: #f8faf9;
}

textarea {
    min-height: 170px;
    resize: vertical;
}

.site-footer {
    padding: 1.5rem 0 2.8rem;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(45, 62, 78, 0.12);
    color: var(--muted);
    font-size: 0.95rem;
}

.muted-note {
    font-size: 0.95rem;
}

@media (max-width: 900px) {

    .hero,
    .content-section {
        padding: 4.25rem 0;
    }

    .hero-grid,
    .cards-grid,
    .project-grid,
    .skills-grid,
    .contact-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .nav-wrap,
    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        width: 100%;
    }

    h1,
    .section-header h1,
    .section-header h2 {
        max-width: none;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 0.98rem;
    }

    .nav-wrap,
    .section-inner,
    .site-footer-inner {
        width: min(calc(100% - 1.25rem), var(--content-width));
    }

    .site-nav {
        gap: 0.35rem;
    }

    .site-nav a,
    .button,
    button {
        width: 100%;
    }

    .panel,
    .card,
    .project-card,
    .contact-card,
    .form-card {
        padding: 1.4rem;
        border-radius: 22px;
    }

    .two-column-list {
        grid-template-columns: 1fr;
    }
}