*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --ink: rgba(0, 0, 0, .9);
  --muted: #666;
  --serif: Baskerville, "Baskerville Old Face", "Libre Baskerville", "Songti SC", "Times New Roman", serif;
  --sans: Futura, "Century Gothic", "Avenir Next", "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  --text: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --pad: clamp(12px, 2.2vw, 28px);
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: start;
  gap: 16px;
  padding: var(--pad);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
}
.nav-link {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: .01em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  justify-self: start;
  line-height: 1.2;
}
.nav-link:hover { opacity: .55; }
.emoji { font-size: .85em; }
.icons { display: flex; gap: 12px; }
.icons a { display: block; width: 26px; height: 26px; }
.icons svg { width: 100%; height: 100%; }
.icons a:hover { opacity: .55; }

main { padding: 0 var(--pad); }

/* ---------- homepage grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--pad);
  margin-top: 8px;
}
.card { text-decoration: none; display: block; }
.thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f2f2;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease, opacity .3s;
}
.card:hover .thumb img { transform: scale(1.03); opacity: .9; }
.card-title {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: .02em;
}

/* ---------- project pages ---------- */
.project { max-width: 1200px; margin: 0 auto; }
.intro {
  max-width: 760px;
  margin: 24px auto 32px;
  text-align: center;
}
.intro h1 {
  font-weight: 400;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
  margin: 0 0 14px;
}
.intro p { margin: 0 0 12px; overflow-wrap: anywhere; }
.intro a { text-decoration: underline; }
.images { display: flex; flex-direction: column; gap: 10px; }
.images img { width: 100%; }
.video {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 24px;
  aspect-ratio: 16 / 9;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.next {
  text-align: right;
  margin: 32px 0 8px;
  font-family: var(--serif);
  font-size: 20px;
}
.next a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- about ---------- */
.about {
  max-width: 960px;
  margin: 0 auto;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
}
.about h1 {
  font-family: var(--serif);
  text-align: center;
  font-size: clamp(28px, 4.5vw, 44px);
  margin: 24px 0 20px;
}
.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.about h2 {
  font-size: 17px;
  margin: 36px 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
}
.entry { margin-bottom: 20px; }
.entry h3 { font-size: 16px; margin: 0; }
.entry .tag { color: var(--muted); font-style: italic; margin: 0; }
.role {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}
.role .date { white-space: nowrap; color: var(--muted); }
.entry ul { margin: 6px 0 0; padding-left: 20px; }
.entry p { margin: 6px 0 0; }
.photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 40px;
}

/* ---------- footer ---------- */
.site-footer { padding: 48px var(--pad) 32px; }
.videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--pad);
}
.videos figure { margin: 0; }
.videos figcaption { margin-bottom: 8px; }
.videos .video { margin: 0; max-width: none; }
.loc { margin: 28px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { grid-template-columns: 1fr auto; gap: 10px 14px; }
  .site-header .name { grid-column: 1 / -1; }
  .icons { gap: 10px; }
  .icons a { width: 22px; height: 22px; }
  .grid, .videos { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr 1fr; }
  .role { flex-direction: column; gap: 0; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .next { text-align: center; }
}
@media (max-width: 420px) {
  .contacts { grid-template-columns: 1fr; }
}
