/* =========================================================================
   Portfolio — Vincenzo van Wijk
   Warm & persoonlijk. Bewust niet generiek: serif-koppen, warme tinten,
   wat asymmetrie en rustige details.
   ========================================================================= */

:root {
    --cream:      #f7f1e8;
    --cream-deep: #efe6d6;
    --ink:        #2a2520;
    --ink-soft:   #5c5247;
    --terracotta: #c75f3c;
    --terracotta-deep: #a94a2c;
    --olive:      #6b6a4b;
    --line:       #e0d4c0;
    --white:      #fffdf9;

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans:  "Inter", system-ui, -apple-system, sans-serif;

    --maxw: 1080px;
    --radius: 14px;
    --shadow: 0 18px 40px -24px rgba(60, 44, 28, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    /* subtiele papier-achtige textuur via zachte gradients */
    background-image:
        radial-gradient(circle at 12% 18%, rgba(199, 95, 60, 0.05), transparent 38%),
        radial-gradient(circle at 88% 8%, rgba(107, 106, 75, 0.05), transparent 34%);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--ink); }

a { color: var(--terracotta-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream);
    padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 241, 232, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--terracotta-deep); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
    background: var(--ink); color: var(--cream) !important;
    padding: 8px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--terracotta-deep); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.97rem;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
.status {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 0.88rem; font-weight: 500; color: var(--olive);
    background: rgba(107, 106, 75, 0.1); padding: 6px 14px; border-radius: 999px;
    margin: 0 0 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5fa052; box-shadow: 0 0 0 0 rgba(95,160,82,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,160,82,.5);} 70% { box-shadow: 0 0 0 10px rgba(95,160,82,0);} 100% { box-shadow: 0 0 0 0 rgba(95,160,82,0);} }

.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 18px; }
.hero-hi { display: block; font-size: 0.42em; font-weight: 400; color: var(--ink-soft); font-style: italic; margin-bottom: 6px; }
.hero-name { display: block; }
.hero-name::after { content: ""; display: block; width: 78px; height: 4px; background: var(--terracotta); border-radius: 2px; margin-top: 18px; }
.hero-tagline { font-size: 1.22rem; color: var(--ink-soft); max-width: 30ch; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
    position: relative; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
    transform: rotate(1.4deg);
}
.card-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.card-row:last-of-type { border-bottom: none; }
.card-row span { color: var(--ink-soft); font-size: 0.9rem; }
.card-row strong { font-weight: 600; }
.card-glyph {
    position: absolute; bottom: -18px; right: -14px;
    font-family: var(--serif); font-size: 2rem; color: var(--white);
    background: var(--terracotta); width: 58px; height: 58px;
    display: grid; place-items: center; border-radius: 14px; transform: rotate(-6deg);
    box-shadow: var(--shadow);
}

/* ---------- Secties ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--cream-deep); }
.section-head { margin-bottom: 44px; max-width: 60ch; }
.section-index { font-family: var(--serif); font-style: italic; color: var(--terracotta); font-size: 1.1rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 6px 0 10px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.08rem; }

/* ---------- Projecten ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 26px; display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--terracotta); }
.project-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.project-top h3 { font-size: 1.4rem; margin: 0; }
.project-year { font-size: 0.85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.project-blurb { color: var(--ink-soft); margin: 12px 0 18px; flex-grow: 1; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tags li { font-size: 0.78rem; font-weight: 500; color: var(--olive); background: rgba(107,106,75,.1); padding: 4px 11px; border-radius: 999px; }
.project-link { margin-top: 18px; font-weight: 600; font-size: 0.95rem; align-self: flex-start; }
.project-link span { transition: margin .2s ease; }
.project-link:hover span { margin-left: 4px; }

/* ---------- Over + skills ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--ink-soft); font-size: 1.08rem; margin: 0 0 18px; }
.about-text p:first-of-type { font-size: 1.18rem; color: var(--ink); }
.skills { display: grid; gap: 22px; }
.skill-group h4 { font-size: 1.05rem; margin: 0 0 12px; color: var(--ink); }
.skill-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.skill-group li { background: var(--white); border: 1px solid var(--line); padding: 7px 14px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; }

/* ---------- Tijdlijn ---------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline-item:first-child { border-top: none; }
.timeline-period { font-size: 0.9rem; color: var(--terracotta); font-weight: 600; padding-top: 4px; }
.timeline-body h3 { font-size: 1.3rem; margin: 0 0 6px; }
.timeline-body .at { color: var(--line); }
.timeline-body em { font-style: normal; color: var(--ink-soft); font-family: var(--sans); font-size: 0.95rem; font-weight: 500; }
.timeline-body p { color: var(--ink-soft); margin: 0; }

/* ---------- Contact ---------- */
.section-contact { background: var(--ink); color: var(--cream); text-align: center; }
.section-contact .section-index { color: var(--terracotta); }
.section-contact h2 { color: var(--cream); font-size: clamp(2rem, 5vw, 3.2rem); margin: 8px 0 16px; }
.contact-lead { color: rgba(247,241,232,.75); font-size: 1.15rem; max-width: 44ch; margin: 0 auto 30px; }
.contact-socials { display: flex; gap: 22px; justify-content: center; margin-top: 28px; }
.contact-socials a { color: rgba(247,241,232,.8); font-weight: 500; }
.contact-socials a:hover { color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247,241,232,.6); padding: 30px 0; border-top: 1px solid rgba(247,241,232,.12); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer-name { font-family: var(--serif); color: var(--cream); margin: 0; }
.footer-socials { display: flex; gap: 18px; }
.footer-socials a { color: rgba(247,241,232,.6); font-size: 0.9rem; }
.footer-socials a:hover { color: var(--cream); }
.footer-meta { margin: 0; font-size: 0.85rem; }

/* ---------- Reveal-animatie ---------- */
.section, .hero-text > *, .hero-card { opacity: 1; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-card { transform: none; max-width: 380px; }
    .projects { grid-template-columns: 1fr; }
    .nav { display: none; }
    .nav.open {
        display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
        background: var(--cream); border-bottom: 1px solid var(--line); padding: 18px 28px; gap: 18px;
    }
    .nav-toggle {
        display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
    }
    .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .2s ease; }
    .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}
