:root {
  --paper: #f4f1eb;
  --ink: #171717;
  --muted: #6d6a64;
  --line: #d8d2c8;
  --accent: #c94b32;
  --page: min(1120px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
.page-width { width: var(--page); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; width: var(--page); margin: 0 auto; padding: 24px 0; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); }
.site-nav { display: flex; justify-content: space-between; width: 100%; font-family: "DM Mono", monospace; font-size: .7rem; letter-spacing: .02em; text-transform: uppercase; }
.site-nav a { text-decoration: none; }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; padding: 8px 12px; font: inherit; }
.intro { display: grid; grid-template-columns: 1fr 220px; gap: 8%; align-items: end; min-height: 420px; padding: 42px 0 76px; }
.eyebrow, .section-label, .pub-year, .timeline-meta { color: var(--muted); font-family: "DM Mono", monospace; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-family: "Source Serif 4", serif; font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 400; letter-spacing: -.05em; line-height: .95; }
.role { font-family: "DM Mono", monospace; font-size: .78rem; }
.role span { margin: 0 8px; color: var(--accent); }
.social-links { display: flex; gap: 24px; margin-top: 34px; font-family: "DM Mono", monospace; font-size: .75rem; text-transform: uppercase; }
.social-links a { text-decoration: none; }
.social-links span { color: var(--accent); }
.portrait { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #d2cbc0; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.content-section { display: grid; grid-template-columns: 180px 1fr; gap: 7%; border-top: 1px solid var(--line); padding: 56px 0; scroll-margin-top: 86px; }
.section-label { padding-top: 8px; }
.section-content { max-width: 790px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }
h2 { font-family: "Source Serif 4", serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.03; }
.prose { color: #44413c; }
.prose p + p { margin-top: 22px; }
.prose a, .publication a { color: var(--accent); }
.metu-link { text-decoration: none; }
.publication-list, .timeline { display: grid; }
.publication { display: grid; grid-template-columns: 80px 1fr; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 28px; }
#publications .publication { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
#publications .publication { grid-template-columns: 1fr; }
.publication h3, .timeline h3 { margin-bottom: 8px; font-family: "Source Serif 4", serif; font-size: 1.5rem; font-weight: 400; line-height: 1.15; }
.publication p, .timeline p { color: #55514b; }
.pub-meta { margin-top: 12px; font-family: "DM Mono", monospace; font-size: .72rem; }
.timeline-item { display: grid; grid-template-columns: 1fr 220px; gap: 32px; border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 26px; }
.timeline-item p { margin-bottom: 0; }
.timeline-item:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.timeline-meta { line-height: 1.5; text-align: right; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card { border: 1px solid var(--line); padding: 28px; }
.info-card h3 { margin-top: 34px; }
.publication h3 { font-size: 1.25rem; }
#projects .publication h3 { font-size: 1.5rem; }
#projects .publication { grid-template-columns: 1fr 220px; gap: 32px; align-items: start; }
#projects .pub-year { grid-column: 2; grid-row: 1; margin: 0; text-align: right; }
#projects .publication:last-child { border-bottom: 0 !important; padding-bottom: 0; margin-bottom: 0; }
.site-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 26px 0 44px; color: var(--muted); font-family: "DM Mono", monospace; font-size: .7rem; text-transform: uppercase; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
@media (max-width: 760px) {
  :root { --page: min(100% - 36px, 580px); }
  .site-header { padding: 18px 0; }
  .menu-toggle { display: none; }
  .site-nav, .site-nav.is-open { position: static; display: flex !important; flex-direction: row; justify-content: space-between; gap: 10px; width: 100%; padding: 0; border: 0; background: transparent; }
  .site-nav a { font-size: .58rem; white-space: nowrap; }
  .intro { display: flex; flex-direction: column; align-items: stretch; min-height: auto; gap: 30px; padding: 38px 0 58px; }
  .portrait { order: -1; width: min(100%, 190px); align-self: flex-start; }
  h1 { font-size: clamp(2.75rem, 13vw, 4.5rem); }
  .content-section { display: block; padding: 44px 0; }
  .section-label { margin-bottom: 34px; }
  .two-column, .card-grid { grid-template-columns: 1fr; gap: 28px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .timeline-meta { text-align: left; }
  .publication { grid-template-columns: 58px 1fr; gap: 14px; }
  #projects .publication { grid-template-columns: 1fr auto; gap: 14px; }
  .site-footer { flex-direction: column; gap: 14px; }
}
