:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5f5b53;
  --accent: #9a6a3c;
  --accent-ink: #ffffff;
  --border: #e6dfd2;
  --max: 1080px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141311; --surface: #1d1b18; --text: #f1ece3; --muted: #b3ab9d; --accent: #d9a46f; --accent-ink: #141311; --border: #2f2b25;
  }
}
:root[data-theme="dark"] {
  --bg: #141311; --surface: #1d1b18; --text: #f1ece3; --muted: #b3ab9d; --accent: #d9a46f; --accent-ink: #141311; --border: #2f2b25;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

.draft-note { background: #fff3bf; color: #5c4400; font-size: .85rem; text-align: center; padding: 6px 16px; }
.fill { background: #fff3bf; color: #4a3a00; border-radius: 4px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.fill-link { outline: 2px dashed #e0c25a; outline-offset: 2px; }

header.site { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; text-decoration: none; }
nav { display: flex; gap: 22px; }
nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
nav a:hover { color: var(--text); }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0 0 24px; }
h3 { font-size: 1.3rem; margin: 0 0 8px; }

.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 0 0 26px; }
.hero-photo { margin: 0; }
.hero-photo video { width: 100%; height: auto; aspect-ratio: 834 / 1112; object-fit: cover; border-radius: 18px; display: block; box-shadow: 0 20px 40px -24px rgba(60, 40, 20, .35); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: 420px; }
}

.social { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 500; font-size: .95rem; transition: border-color .15s; }
.social a:hover { border-color: var(--accent); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font: 600 1rem var(--sans); padding: 12px 22px; border-radius: 10px; border: 0; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }

.projects { padding: 72px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.card { border: 1px solid var(--border); border-radius: 14px; padding: 24px; background: var(--bg); display: flex; flex-direction: column; }
.card p { color: var(--muted); margin: 0 0 18px; }
.card .tag { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--accent); }
.card .more.muted { color: var(--muted); font-weight: 500; }

.contact { padding: 72px 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }
form { display: grid; gap: 14px; }
form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
form input, form select, form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: 400 1rem var(--sans); }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
form .btn { justify-self: start; }
.status { margin: 0; color: var(--accent); font-weight: 600; min-height: 1.2em; }

footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 72px 0; }
.thanks p { color: var(--muted); max-width: 480px; margin: 0 auto 24px; }

@media print { .draft-note { display: none; } .fill { background: none; } }

/* About + timeline */
.about { padding: 72px 0; }
.about-banner { margin: 0 0 48px; }
.about-banner video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; display: block; background: var(--border); box-shadow: 0 20px 40px -24px rgba(60, 40, 20, .35); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }
.about-grid p { margin: 0 0 16px; }
.timeline h3 { font-size: 1.05rem; margin: 0 0 12px; }
.timeline ul { list-style: none; padding: 0; margin: 0 0 28px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 18px 20px; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline .when { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--accent); text-transform: uppercase; }
.timeline strong { font-weight: 600; }
.timeline .where { color: var(--muted); font-size: .93rem; }
/* Keep section headings clear of the sticky header when jumping from the menu */
section[id] { scroll-margin-top: 72px; }

.about-sub { font-size: 1.15rem; margin: 28px 0 10px; }
