:root {
  --paper: #f7f6f2;
  --ink: #191815;
  --muted: #6b675f;
  --line: #ddd9d0;
  --accent: #1e4d3b;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 660px; margin: 0 auto; padding: 0 24px; }

/* header */
header {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.wrap > header { }
header .name { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
header .place { font-size: 13px; color: var(--muted); }

/* intro */
.intro {
  padding: 96px 0 88px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.intro .intro-text { flex: 1; min-width: 0; }
.intro img.face {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  margin-top: 12px;
}
.intro h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.intro h1 em { color: var(--accent); }
.intro p {
  margin-top: 28px;
  color: var(--muted);
  max-width: 46ch;
  font-size: 17px;
}

/* section label */
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* projects */
.projects { padding-bottom: 96px; }
.project {
  display: block;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.project:last-child { border-bottom: 1px solid var(--line); }
.project-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9e7e0;
}
.project-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .35s ease;
}
.project-favicon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 6px;
  place-items: center;
  border: 1px solid rgba(25, 24, 21, .12);
  border-radius: 10px;
  background: rgba(247, 246, 242, .94);
  box-shadow: 0 5px 18px rgba(25, 24, 21, .16);
}
.project-favicon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.project .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.project h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.project .meta {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.project p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  max-width: 52ch;
}
a.project:hover h2 { color: var(--accent); }
a.project:hover .project-shot { transform: scale(1.025); }
a.project:hover h2::after { content: " \2197"; font-family: "Inter", sans-serif; font-size: 18px; }
.project .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 10px;
  vertical-align: 4px;
}

/* contact */
.contact { padding-bottom: 96px; }
.contact h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 42px);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.contact p { color: var(--muted); max-width: 46ch; }
.contact .email {
  display: inline-block;
  margin-top: 24px;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.contact .email:hover { color: var(--accent); }

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

@media (max-width: 520px) {
  .intro { flex-direction: column; gap: 32px; }
  .intro img.face { width: 112px; height: 112px; margin-top: 0; }
  .project .row { flex-direction: column; gap: 2px; }
  .project .tag { margin-left: 0; margin-top: 8px; }
}
