/* ===========================================================
   Bram Gooris — personal site
   Simple, dependency-free HTML + CSS
   =========================================================== */

:root {
    --bg:           #ffffff;
    --bg-tint:      #f4f7fb;
    --ink:          #1a1d24;
    --ink-soft:     #5b6472;
    --line:         #e6eaf0;
    --accent:       #2563eb;
    --accent-dark:  #1d4ed8;
    --radius:       14px;
    --shadow:       0 1px 2px rgba(16, 24, 40, .04),
                    0 8px 24px rgba(16, 24, 40, .06);
    --container:    1080px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Hind", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.section { padding: clamp(40px, 5vw, 64px) 0; }

/* tighten the About → Projects transition (doubled padding stacks up there) */
#about { padding-bottom: clamp(20px, 3vw, 32px); }
#work  { padding-top: clamp(20px, 3vw, 32px); }

.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* ---------- Hero ---------- */
.hero {
    padding: clamp(16px, 3vw, 20px) 0 clamp(56px, 8vw, 90px);
    background:
        radial-gradient(1200px 480px at 18% -10%, #eaf1ff 0%, rgba(234, 241, 255, 0) 60%),
        linear-gradient(180deg, var(--bg-tint), var(--bg));
    border-bottom: 1px solid var(--line);
}

.hero__eyebrow {
    margin: 0 0 14px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero__title {
    margin: 0;
    font-size: clamp(2.8rem, 9vw, 5rem);
    font-weight: 700;
    letter-spacing: -.03em;
}

.hero__lead {
    margin: .35em 0 0;
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    color: var(--ink-soft);
}

/* ---------- Social ---------- */
.social {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

.social a {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: transform .15s ease, color .15s ease, border-color .15s ease;
}

.social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ---------- About ---------- */
.about {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(32px, 5vw, 60px);
    align-items: center;
}

/* circular headshot */
.about__photo {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .05);
    box-shadow: 0 16px 40px rgba(16, 24, 40, .14);
}

.about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about__text { max-width: 60ch; }
.about__text h2 { margin-bottom: .5em; }
.about__keywords { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; }

/* ---------- Projects ---------- */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #d3dcea;
    box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 16px 36px rgba(16, 24, 40, .10);
}

.card__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: .5em;
    font-size: 1.3rem;
}

.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--accent); }

.card__role {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    background: #eaf1ff;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.card p {
    color: var(--ink-soft);
    font-size: .98rem;
    margin: 0 0 18px;
}

.card__link {
    margin-top: auto;
    font-weight: 600;
    font-size: .95rem;
}

.card__link span { transition: transform .15s ease; display: inline-block; }
.card__link:hover span { transform: translateX(3px); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-tint); border-top: 1px solid var(--line); }

.contact__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.contact__item h3 {
    margin: 0 0 4px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.contact__item a {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--ink);
}

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

/* ---------- Footer ---------- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

.footer p {
    margin: 0;
    font-size: .9rem;
    color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .about { grid-template-columns: 1fr; gap: 32px; }
    .about__photo { max-width: 240px; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
