@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:opsz,wght@9..144,600&display=swap');

:root {
  --paper: #f3efe6;
  --ink: #17221c;
  --muted: #667067;
  --accent: #9b3a2a;
  --line: rgba(23, 34, 28, 0.2);
  --serif: "Fraunces", Georgia, serif;
  --mono: "DM Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark { font-weight: 500; text-decoration: none; letter-spacing: -0.04em; }
nav { display: flex; gap: 32px; }
nav a, .social-links a { text-underline-offset: 5px; text-decoration-thickness: 1px; }

.intro {
  min-height: 720px;
  padding: 96px 0 112px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(460px, 1.2fr);
  align-items: center;
  gap: clamp(56px, 9vw, 132px);
}

.portrait-wrap { position: relative; }
.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--ink);
  transform: translate(10px, 10px);
  z-index: -1;
}
.portrait { width: 100%; height: auto; display: block; background: #d6dbc9; filter: saturate(.82); }
h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
h1 { max-width: 760px; font-size: clamp(48px, 6.2vw, 84px); }
h2 { font-size: clamp(38px, 4.4vw, 62px); }

.bio { max-width: 650px; margin-top: 36px; color: var(--muted); font-size: 16px; }
.bio p { margin: 0 0 12px; }
.social-links { display: flex; gap: 28px; margin-top: 34px; font-weight: 500; }

.work { padding: 108px 0 120px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: end; margin-bottom: 70px; }
.section-heading > p { margin: 0 0 5px; color: var(--muted); }
.project-list { border-top: 1px solid var(--ink); }
.project {
  display: grid;
  grid-template-columns: 48px 1fr 170px 24px;
  gap: 20px;
  align-items: center;
  padding: 30px 10px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 180ms ease, padding 180ms ease;
}
.project:hover { padding-inline: 18px; background: rgba(255, 255, 255, .33); }
.project-number, .project-meta { color: var(--muted); font-size: 12px; }
.project-main { display: grid; gap: 3px; }
.project-main strong { font-family: var(--serif); font-size: 25px; line-height: 1.2; }
.project-main > span { color: var(--muted); }
.arrow { color: var(--accent); font-size: 22px; transition: transform 180ms ease; }
.project:hover .arrow { transform: translate(3px, -3px); }

.more {
  padding: 28px 0 108px;
  border-top: 1px solid var(--line);
}
.more-copy {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
  margin: 34px 0 44px;
}
.more-copy h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.more-copy p { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; }
.other-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.photo-space {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
}
.photo-space span { opacity: .55; }
.other-photo { margin: 0; }
.other-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.88);
}
.other-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; }

footer {
  min-height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.local-time::before { content: "·"; margin: 0 7px; }

@media (max-width: 820px) {
  .site-header, main, footer { width: min(100% - 36px, 640px); }
  .site-header { min-height: 76px; }
  nav { gap: 16px; font-size: 12px; }
  nav a:first-child { display: none; }
  .intro { min-height: 0; padding: 62px 0 88px; grid-template-columns: 1fr; gap: 64px; }
  .portrait-wrap { width: min(82%, 390px); margin-inline: auto; }
  h1 { font-size: clamp(43px, 13vw, 64px); }
  .section-heading { grid-template-columns: 1fr; gap: 8px; margin-bottom: 46px; }
  .work { padding: 78px 0 90px; }
  .project { grid-template-columns: 34px 1fr 22px; gap: 12px; padding: 24px 4px; }
  .project-meta { display: none; }
  .project-main > span { font-size: 13px; line-height: 1.55; }
  .more { padding: 20px 0 80px; }
  .more-copy { grid-template-columns: 1fr; gap: 14px; margin: 30px 0 34px; }
  .other-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo-space:last-child { display: none; }
  footer { min-height: 120px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
