:root {
  --paper: #fbfaf7;
  --ink: #20201e;
  --muted: #68665f;
  --rule: #d9d5cc;
  --accent: #8e2b24;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

main {
  width: min(880px, calc(100% - 64px));
  margin: 0 auto;
  padding: 88px 0 56px;
}

.site-header { padding-bottom: 66px; }

.identity-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: stretch;
  gap: 36px;
}

.portrait-frame {
  position: relative;
  width: 250px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.portrait {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.75);
  transform-origin: 52% 66%;
}

.identity-copy { padding-top: 0; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font: 700 0.75rem/1.4 var(--font-sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 5.5vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  white-space: nowrap;
}

.intro {
  max-width: none;
  margin-bottom: 20px;
  color: #3b3a36;
  font-size: 1.2rem;
  line-height: 1.6;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font: 400 0.91rem/1.6 var(--font-sans);
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 0.18em;
}

a:hover, a:focus-visible { color: #581611; text-decoration-color: currentColor; }
a:focus-visible { border-radius: 2px; outline: 3px solid #d6a339; outline-offset: 4px; }

section {
  padding: 44px 0 48px;
  border-top: 1px solid var(--rule);
}

h2 {
  margin-bottom: 24px;
  font: 700 0.83rem/1.4 var(--font-sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-body > :last-child, .projects li:last-child p { margin-bottom: 0; }

.poster-preview {
  display: block;
  margin-top: 22px;
  line-height: 0;
}

.poster-preview img {
  display: block;
  width: 100%;
  height: auto;
}

ul { padding: 0; }
.rows, .projects, .compact-list { list-style: none; }
.rows { margin: 28px 0 0; border-top: 1px solid var(--rule); }

.rows li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.rows small {
  flex: 0 0 auto;
  color: var(--muted);
  font: 400 0.76rem/1.9 var(--font-sans);
}

.projects { margin: 0; }

.projects li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.projects li + li { margin-top: 28px; }
.projects a { font-size: 1.07rem; font-weight: 700; }

.projects .project-image {
  display: block;
  width: 112px;
  height: 88px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #fff;
  line-height: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projects p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.compact-list { margin: 0; }
.compact-list li { position: relative; padding-left: 18px; }
.compact-list li + li { margin-top: 7px; }
.compact-list li::before { position: absolute; left: 0; color: var(--accent); content: "—"; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font: 400 0.76rem/1.6 var(--font-sans);
}

footer p { margin: 0; }

@media (max-width: 760px) {
  body { font-size: 18px; }
  main { width: min(100% - 36px, 880px); padding-top: 48px; }
  .site-header { padding-bottom: 48px; }
  .identity-row {
    display: block;
  }
  .portrait-frame {
    width: clamp(150px, 48vw, 190px);
    min-height: 0;
    margin-bottom: 24px;
    aspect-ratio: 3 / 4;
  }
  .identity-copy { padding-top: 0; }
  .eyebrow { margin-bottom: 8px; font-size: 0.64rem; }
  h1 { font-size: clamp(1.8rem, 8.5vw, 2.8rem); }
  .intro { font-size: 1.09rem; }
  section { padding: 32px 0 36px; }
  h2 { margin-bottom: 22px; }
  .rows li { display: block; }
  .rows small { display: block; margin-top: 1px; }
  .projects li { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .projects .project-image { width: 88px; height: 72px; }
  footer { display: block; }
  footer a { display: inline-block; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
