* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; color: #203038; background: #fbfcfc; font: 16px/1.7 system-ui, sans-serif; }
a { color: var(--accent, #245c63); text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 5%; background: white; border-bottom: 1px solid #e1e7e7; }
.profile { display: flex; align-items: center; gap: 16px; }
.profile img { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.site-name { font-weight: 700; color: inherit; text-decoration: none; }
nav ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; }
nav ul a { text-decoration: none; }
.page-content { max-width: 1200px; margin: 0 auto; padding: 60px 5%; min-height: 60vh; }
header { max-width: 850px; margin: 15px 0 40px; }
h1 { font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.15; letter-spacing: -.04em; margin: 0 0 24px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; }
h3 { line-height: 1.4; margin-top: 0; }
p { overflow-wrap: anywhere; }
.button, button, input[type=submit] { display: inline-block; background: var(--accent); color: white; border: 0; padding: 12px 22px; border-radius: 7px; cursor: pointer; text-decoration: none; font: inherit; }
.presentation-image img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 16px; }
.projects-section, .resume-section { margin-top: 64px; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.project { border: 1px solid #dce4e4; border-radius: 12px; overflow: hidden; background: white; }
.project img { width: 100%; height: 210px; object-fit: cover; display: block; }
.project-content { padding: 24px; }
.muted, .eyebrow { color: #52656d; font-size: .9rem; }
.resume-entry { border-left: 3px solid var(--accent); padding: 8px 24px; margin: 24px 0; }
.resume-entry p { margin: 8px 0; }
footer { background: #17282d; color: white; padding: 40px 5%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
footer h2 { font-size: 1.15rem; }
footer a { color: #fff; }
footer p { margin: 8px 0; }
form { max-width: 700px; margin: 24px 0; }
label { display: block; font-weight: 600; }
input:not([type=checkbox]):not([type=submit]), textarea, select { display: block; max-width: 100%; width: 100%; padding: 10px; border: 1px solid #a5b4b8; border-radius: 5px; font: inherit; background: white; }
input[type=file] { font-size: .9rem; }
.helptext { color: #52656d; font-size: .85rem; }
.errorlist { color: #a11e28; }
.skip-link { position: absolute; top: -100px; left: 15px; background: white; padding: 10px; }
.skip-link:focus { top: 10px; }
@media (max-width: 600px) { nav { align-items: flex-start; } nav ul { gap: 12px; font-size: .9rem; } .page-content { padding-top: 36px; } .profile img { width: 56px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Public pages remain usable with long text and touch navigation. */
.profile { min-width: 0; max-width: 100%; }
.profile > a:first-child { flex: none; }
.site-name { min-width: 0; overflow-wrap: anywhere; }
nav ul a { display: inline-flex; align-items: center; min-height: 44px; }
.page-content, footer > div { min-width: 0; }
.project, .resume-entry { min-width: 0; overflow-wrap: anywhere; }
footer > div { flex: 1 1 240px; }
@media (max-width: 400px) { nav { padding: 14px 5%; } nav ul { gap: 8px 16px; } .page-content header h1 { font-size: 2rem; } }
.contact-form { max-width: 760px; }
.contact-field { margin: 0 0 22px; }
.contact-note { color: #52656d; font-size: .9rem; }
.contact-errors { padding: 18px; background: #fff0ed; color: #a11e28; border-radius: 8px; margin-bottom: 24px; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
