:root {
  color-scheme: light;
  --paper: #f3f0e9;
  --ink: #171914;
  --muted: #62655d;
  --line: #d3d0c8;
  --accent: #d34b36;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 25, 20, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

.shell {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: 44px 0 24px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
  gap: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 42px;
  font-weight: 650;
  line-height: 1.15;
}

.intro-copy {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 0;
}

.project-card {
  position: relative;
  display: block;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #252721;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.project-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.75,.25,1), filter 300ms ease;
}

.project-card.architecture img { object-position: 50% 47%; }
.project-card.architecture-mobile img { object-position: 50% 48%; }
.project-card.nature img { object-position: 50% 54%; }
.project-card.time img { object-position: 50% 52%; }

.shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 12, 9, 0.08) 24%, rgba(9, 12, 9, 0.82) 100%);
}

.card-index {
  position: absolute;
  top: 20px;
  left: 22px;
  font: 600 13px/1 ui-monospace, monospace;
  color: rgba(255,255,255,.82);
}

.card-content {
  position: absolute;
  right: 72px;
  bottom: 24px;
  left: 22px;
  display: grid;
  gap: 5px;
}

.card-meta {
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.card-content strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 27px;
  line-height: 1.2;
}

.card-detail {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.5;
}

.enter {
  position: absolute;
  right: 22px;
  bottom: 24px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  font-size: 19px;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.project-card:hover img,
.project-card:focus-visible img { transform: scale(1.035); filter: saturate(1.06); }

.project-card:hover .enter,
.project-card:focus-visible .enter {
  color: var(--ink);
  background: #fff;
  transform: translate(2px, -2px);
}

.project-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.status { display: inline-flex; align-items: center; gap: 7px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #3c8c5a; }

@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 620px); padding-top: 28px; }
  .intro { grid-template-columns: 1fr; gap: 14px; padding-bottom: 20px; }
  h1 { font-size: 34px; }
  .intro-copy { max-width: 38em; }
  .project-grid { grid-template-columns: 1fr; gap: 12px; padding-top: 16px; }
  .project-card { min-height: 252px; aspect-ratio: 4 / 3; }
}

@media (max-width: 460px) {
  .shell { width: calc(100% - 20px); padding-top: 20px; }
  h1 { font-size: 30px; }
  .project-card { min-height: 238px; }
  .card-content { right: 60px; bottom: 18px; left: 18px; }
  .card-content strong { font-size: 23px; }
  .card-detail { font-size: 13px; }
  .card-index { top: 18px; left: 18px; }
  .enter { right: 16px; bottom: 18px; width: 34px; height: 34px; }
  footer { flex-direction: column; gap: 7px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .project-card img, .enter { transition: none; }
}
