:root {
    --ink: #121212;
    --paper: #f5f1e8;
    --yellow: #ffe74d;
    --pink: #ff7ad9;
    --blue: #5cd4ff;
    --orange: #ff8f3f;
    --green: #9bff4f;
    --white: #ffffff;
    --border: 4px solid var(--ink);
    --shadow: 8px 8px 0 var(--ink);
    --shadow-hover: 4px 4px 0 var(--ink);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Space Grotesk", sans-serif;
    background: radial-gradient(circle at 20% 15%, #ffffff 0, #f2ecdd 35%, #ece4d1 100%);
    color: var(--ink);
    min-height: 100vh;
    position: relative;
    line-height: 1.45;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(18, 18, 18, 0.06) 1px, transparent 0);
    background-size: 6px 6px;
    opacity: 0.5;
    z-index: 0;
}

main,
.site-header,
.site-footer {
    position: relative;
    z-index: 1;
}

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

.site-header,
main,
.site-footer {
    width: min(1100px, calc(100vw - 2.5rem));
    margin: 0 auto;
}

.site-header {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border: var(--border);
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    font-family: "Archivo Black", sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    letter-spacing: 0.03em;
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.top-nav a {
    border: 3px solid var(--ink);
    background: var(--paper);
    padding: 0.35rem 0.65rem;
    font-weight: 700;
}

.top-nav a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--ink);
}

.top-nav a.active {
    background: var(--yellow);
}

main {
    padding: 1.25rem 0 1.5rem;
    display: grid;
    gap: 1.25rem;
}

.panel {
    border: var(--border);
    box-shadow: var(--shadow);
    padding: clamp(1rem, 2vw, 1.8rem);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
    transform: translate(4px, 4px);
    box-shadow: var(--shadow-hover);
}

.panel-yellow { background: var(--yellow); }
.panel-pink { background: var(--pink); }
.panel-blue { background: var(--blue); }
.panel-white { background: var(--white); }
.panel-orange { background: var(--orange); }
.panel-green { background: var(--green); }

.kicker {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
    font-family: "Archivo Black", sans-serif;
    line-height: 1.05;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2rem, 7vw, 4.6rem);
    max-width: 16ch;
}

h2 {
    font-size: clamp(1.35rem, 3vw, 2.2rem);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 0.35rem;
}

.lead {
    margin-top: 1rem;
    max-width: 60ch;
    font-size: clamp(1rem, 2vw, 1.12rem);
    font-weight: 500;
}

.hero-actions {
    margin-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    border: 3px solid var(--ink);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.7rem 1.05rem;
    box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary {
    background: var(--white);
}

.btn-ghost {
    background: transparent;
}

.btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
}

.metrics {
    list-style: none;
    margin-top: 1.2rem;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metrics li {
    border: 3px solid var(--ink);
    background: rgba(255, 255, 255, 0.72);
    padding: 0.65rem;
}

.metrics strong {
    display: block;
    font-family: "Archivo Black", sans-serif;
    font-size: 1.2rem;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.apps-grid {
    display: grid;
    gap: 0.95rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.app-card {
    border: 3px solid var(--ink);
    background: #fff5d7;
    padding: 0.95rem;
    box-shadow: 5px 5px 0 var(--ink);
    display: grid;
    gap: 0.5rem;
}

.app-card h3 {
    margin-bottom: 0;
}

.app-meta {
    font-size: 0.95rem;
    font-weight: 700;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
}

.badges li {
    border: 2px solid var(--ink);
    background: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.22rem 0.45rem;
}

.app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.app-links a {
    border: 2px solid var(--ink);
    padding: 0.33rem 0.58rem;
    background: var(--white);
    font-size: 0.86rem;
    font-weight: 700;
}

.app-links a:hover {
    background: var(--ink);
    color: var(--white);
}

.two-col {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-links {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-links a {
    border: 2px solid var(--ink);
    padding: 0.4rem 0.68rem;
    background: var(--white);
    font-weight: 700;
}

.skill-list {
    list-style: square;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.45rem;
    font-weight: 500;
}

.timeline {
    display: grid;
    gap: 0.85rem;
}

.timeline article {
    border: 3px solid var(--ink);
    background: rgba(255, 255, 255, 0.62);
    padding: 0.7rem;
}

.meta {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.contact-row {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    border: 3px solid var(--ink);
    background: var(--white);
    font-weight: 700;
    padding: 0.55rem 0.72rem;
}

.chip:hover {
    transform: translate(2px, 2px);
}

.site-footer {
    margin-bottom: 2rem;
    border: var(--border);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.95rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.footer-links a {
    text-decoration: underline;
    font-weight: 700;
}

.legal-page {
    padding-bottom: 2rem;
}

.legal-main {
    width: min(950px, calc(100vw - 2.5rem));
    margin: 1.25rem auto 0;
    position: relative;
    z-index: 1;
}

.legal-content {
    border: var(--border);
    box-shadow: var(--shadow);
    background: var(--white);
    padding: clamp(1rem, 2.2vw, 2rem);
    display: grid;
    gap: 0.8rem;
}

.legal-content h1 {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.legal-content h2 {
    margin-top: 0.55rem;
}

.legal-content ul {
    padding-left: 1.2rem;
    display: grid;
    gap: 0.35rem;
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-nav {
        width: 100%;
    }

    .top-nav a {
        flex: 1;
        text-align: center;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
