@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..600&family=Mulish:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* =================================================================
   Maarten Drost — portfolio
   Warm, light, editorial. Fraunces (headings) + Mulish (body).
   Restrained terracotta accent on ivory.
   ================================================================= */

:root {
    --paper:      #FAF6EF;
    --paper-2:    #F3ECE0;
    --ink:        #2A2620;
    --ink-soft:   #585047;
    --muted:      #908779;
    --line:       #E3DACB;
    --line-2:     #D4C9B5;
    --accent:     #A84E2B;
    --accent-deep:#85391D;
    --accent-tint:#F1E4D6;

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans:  "Mulish", -apple-system, sans-serif;
    --ease:  cubic-bezier(0.3, 0.1, 0.2, 1);
    --max:   980px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-tint); color: var(--accent-deep); }

h1, h2, h3 {
    font-family: var(--serif);
    color: var(--ink);
    line-height: 1.12;
    font-weight: 560;
    letter-spacing: -0.005em;
}

p { max-width: 64ch; }

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

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

/* ---------- LAYOUT ---------- */
.container {
    width: 90%;
    max-width: var(--max);
    margin: auto;
}

section { margin-top: clamp(56px, 8vw, 96px); }

/* ---------- NAV ---------- */
nav {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 30px;
    padding: 22px max(24px, calc((100% - var(--max)) / 2));
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 100;
}
/* the author's name as a quiet wordmark */
nav::before {
    content: "Maarten Drost";
    font-family: var(--serif);
    font-weight: 600;
    font-size: 19px;
    color: var(--ink);
    margin-right: auto;
    letter-spacing: -0.01em;
}
nav a {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 16px;
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
nav a:hover { color: var(--ink); }
nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- BUTTONS ---------- */
.button, .button-outline {
    display: inline-block;
    margin-top: 30px;
    padding: 13px 26px;
    border-radius: 4px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 16px;
    border: 1.5px solid var(--accent);
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.button {
    background: var(--accent);
    color: #fff;
}
.button:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.button-outline {
    background: transparent;
    color: var(--accent);
    margin-left: 14px;
}
.button-outline:hover { background: var(--accent); color: #fff; }

/* ---------- HERO ---------- */
.hero {
    padding: clamp(56px, 9vw, 100px) 0 clamp(28px, 5vw, 56px);
    max-width: 30ch;
}
.hero h1 {
    font-size: clamp(2.3rem, 5.5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 22px;
}
.hero p {
    font-size: 1.18rem;
    color: var(--ink-soft);
    max-width: 52ch;
}

/* ---------- PAGE INTROS ---------- */
.projects-header, .about-intro, .contact-header, .project-header {
    padding-top: clamp(44px, 7vw, 76px);
    max-width: 60ch;
}
.projects-header h1, .about-intro h1, .contact-header h1, .project-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}
.projects-header p, .about-intro p, .contact-header p { color: var(--ink-soft); }
.about-intro p + p, .about-focus p + p, .about-personal p + p { margin-top: 18px; }

/* ---------- SECTION HEADINGS ---------- */
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }

.skills h2, .featured-projects h2,
.about-skills h2, .about-focus h2, .about-personal h2,
.contact-form-section h2, .project-section h2 {
    padding-bottom: 12px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

/* ---------- INDEX SKILLS ---------- */
.skills ul { list-style: none; max-width: 56ch; }
.skills li {
    font-size: 1.05rem;
    color: var(--ink);
    padding: 9px 0 9px 24px;
    position: relative;
}
.skills li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ---------- PROJECTS AS AN EDITORIAL LIST ---------- */
.project-card {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}
.project-card:last-child { border-bottom: 1px solid var(--line); }

.project-card h2,
.project-card h3 {
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 560;
    margin-bottom: 12px;
    transition: color 0.2s var(--ease);
}
.project-card:hover h2,
.project-card:hover h3 { color: var(--accent); }
.project-card p { color: var(--ink-soft); max-width: 62ch; }

/* tech tags: quiet small-caps, not chips */
.tech-stack { margin-top: 16px; }
.tech-stack span {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 18px;
}
.tech-stack span:not(:last-child)::after {
    content: "·";
    margin-left: 18px;
    color: var(--line-2);
}

.project-links { margin-top: 18px; }
.project-links a {
    font-weight: 600;
    font-size: 0.98rem;
    margin-right: 22px;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.2s var(--ease);
}
.project-links a:hover { border-bottom-color: var(--accent); }

/* ---------- ABOUT: SKILLS COLUMNS ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 28px;
}
.skills-grid div { padding-top: 18px; border-top: 2px solid var(--ink); }
.skills-grid h3 { font-size: 1.15rem; margin-bottom: 12px; }
.skills-grid ul { list-style: none; }
.skills-grid li {
    color: var(--ink-soft);
    padding: 5px 0;
    font-size: 1rem;
}

/* ---------- PROJECT DETAIL ---------- */
.project-subtitle {
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 1.18rem;
    max-width: 56ch;
}
.project-buttons { margin-top: 6px; }
.project-section p { color: var(--ink-soft); }
.project-section p + p { margin-top: 16px; }

.project-image-placeholder {
    margin-top: 22px;
    max-width: 720px;
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-2);
    border: 1px solid var(--line-2);
    border-radius: 6px;
    color: var(--muted);
    font-style: italic;
    font-size: 0.95rem;
}
.project-image {
    margin-top: 22px;
    border-radius: 6px;
    max-width: 720px;
    width: 100%;
    border: 1px solid var(--line);
}
.project-back { margin-top: clamp(44px, 7vw, 72px); }
.project-back a { font-weight: 600; }

/* ---------- CTA SECTIONS ---------- */
.contact-cta, .about-cta {
    background: var(--accent-tint);
    border-radius: 8px;
    padding: clamp(40px, 6vw, 60px);
    max-width: none;
}
.contact-cta h2, .about-cta h2 {
    border: none;
    padding: 0;
    margin-bottom: 12px;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--accent-deep);
}
.contact-cta p, .about-cta p { color: var(--ink-soft); }

/* ---------- CONTACT INFO ---------- */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}
.contact-card { padding-top: 18px; border-top: 2px solid var(--ink); }
.contact-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    font-family: var(--sans);
}
.contact-card p { font-size: 1rem; word-break: break-word; }
.contact-card a { font-weight: 600; border-bottom: 1.5px solid var(--accent-tint); }
.contact-card a:hover { border-bottom-color: var(--accent); }

/* ---------- CONTACT FORM ---------- */
.contact-form { max-width: 580px; }
.contact-form label {
    display: block;
    margin-top: 22px;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    border-radius: 5px;
    border: 1.5px solid var(--line-2);
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

/* ---------- FORM STATUS ---------- */
.form-status {
    margin-top: 30px;
    padding: 14px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.97rem;
}
.form-status-success {
    background: #ecf3e9;
    color: #3f6b34;
    border: 1px solid #c5dcb9;
}
.form-status-error {
    background: var(--accent-tint);
    color: var(--accent-deep);
    border: 1px solid var(--line-2);
}

/* ---------- FOOTER ---------- */
footer {
    border-top: 1px solid var(--line);
    margin-top: clamp(80px, 12vw, 140px);
    padding: 44px 0;
}
.footer-container {
    width: 90%;
    max-width: var(--max);
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.footer-container > p { color: var(--muted); font-size: 0.9rem; max-width: none; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.footer-links a:hover { color: var(--accent); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 800px) {
    .skills-grid, .contact-info { grid-template-columns: 1fr; gap: 26px; }
    .hero { max-width: none; }
    .button-outline { margin-left: 0; margin-top: 14px; }
    .footer-container { flex-direction: column; text-align: center; }
}

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