:root {
    --bg: #f5f3ee;
    --surface: #ffffff;
    --text: #17202a;
    --muted: #5f6770;
    --line: #d9d7d1;
    --accent: #163a5f;
    --accent-dark: #0e2a45;
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(245, 243, 238, 0.96);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.name-link {
    font-weight: 700;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

nav a {
    color: var(--muted);
    font-size: 0.95rem;
    text-decoration: none;
}

nav a:hover {
    color: var(--text);
}

.hero {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 70px;
    padding-bottom: 70px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 20px;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.35rem;
}

.hero-copy {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.primary {
    background: var(--accent);
    color: #ffffff;
}

.primary:hover {
    background: var(--accent-dark);
}

.secondary {
    background: transparent;
    color: var(--accent);
}

.section {
    padding-top: 90px;
    padding-bottom: 90px;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    margin-bottom: 42px;
}

.two-column {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.two-column > p {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.05rem;
}

.skill-list {
    display: flex;
    align-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.skill-list span,
.architecture code {
    padding: 7px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 0.9rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.project-card {
    min-height: 310px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.project-card p {
    color: var(--muted);
}

.project-card .project-number {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.project-card .stack {
    margin-top: 30px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
}

.aws-box,
.contact-box {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.aws-box {
    border-left: 5px solid var(--accent);
}

.aws-box > p,
.contact-box > p {
    max-width: 760px;
    color: var(--muted);
}

.architecture {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.contact-box .button {
    margin-top: 8px;
}

footer {
    padding: 28px 0;
    background: var(--text);
    color: #ffffff;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-wrap p {
    margin: 0;
}

@media (max-width: 760px) {
    .nav-wrap {
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        gap: 14px;
    }

    .hero {
        min-height: auto;
        padding-top: 90px;
    }

    .section-heading,
    .two-column,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        gap: 8px;
    }

    .two-column {
        gap: 26px;
    }

    .project-card {
        min-height: auto;
    }
}
