:root {
  color-scheme: light;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: #252b24;
  background: #f8f6ef;
  --ink: #252b24;
  --quiet: #565f52;
  --accent: #344e3c;
  --border: #d9ddd0;
}

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

body { margin: 0; }

.shell {
  width: min(100% - 3rem, 57rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 10vw, 7rem) clamp(3rem, 8vw, 6rem);
}

.skip {
  position: fixed;
  inset: 1rem auto auto 1rem;
  transform: translateY(-200%);
  padding: 0.5rem 0.8rem;
  color: white;
  background: var(--accent);
  border-radius: 0.25rem;
}

.skip:focus { transform: none; }

.hero { margin-bottom: clamp(3rem, 8vw, 5.6rem); }

.mark {
  display: grid;
  grid-template-columns: repeat(2, 0.52rem);
  gap: 0.14rem;
  width: fit-content;
  padding: 0.46rem;
  background: #e7eade;
  border-radius: 0.48rem;
}

.mark span { aspect-ratio: 1; background: #496249; }
.mark span:first-child { border-radius: 70% 0 0 0; }
.mark span:nth-child(2) { border-radius: 0 70% 0 0; opacity: 0.55; }
.mark span:nth-child(3) { border-radius: 0 0 0 70%; opacity: 0.76; }
.mark span:last-child { border-radius: 0 0 70% 0; }

h1 {
  margin: 0.9rem 0 0.55rem;
  font-family: Georgia, serif;
  font-size: clamp(3.3rem, 10vw, 7rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

h1 i { font-weight: 400; color: var(--accent); }
.hero p { margin: 1rem 0 0; color: var(--quiet); font-size: 1.025rem; line-height: 1.75; }

h2 {
  margin: 0 0 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.projects { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }

.project {
  display: grid;
  grid-template-columns: minmax(13rem, 34%) 1fr;
  min-height: 12rem;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.project:hover { border-color: #788b76; background: #fffefb; }
.project:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.project-art { position: relative; isolation: isolate; overflow: hidden; }
.moment { background: #dec99a; }
.moment .sun { position: absolute; top: 19%; right: 19%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #f6ebc5; }
.moment .hill { position: absolute; width: 130%; height: 85%; border-radius: 50% 50% 0 0; }
.moment .far { bottom: -46%; right: -45%; background: #a4aa83; transform: rotate(-18deg); }
.moment .near { bottom: -50%; left: -37%; background: #50694e; transform: rotate(11deg); }

.project-copy { align-self: center; padding: clamp(1.2rem, 4vw, 2.5rem); }
.project-copy h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 650; }
.project-copy p { max-width: 32rem; margin: 0.45rem 0 1.1rem; color: var(--quiet); line-height: 1.7; }
.visit { display: inline-flex; gap: 0.55em; align-items: center; color: var(--accent); font-size: 0.95rem; font-weight: 650; }
.project:hover .visit { text-decoration: underline; text-underline-offset: 0.25em; }

@media (max-width: 36rem) {
  .shell { width: calc(100% - 2rem); }
  .project { grid-template-columns: 1fr; }
  .project-art { min-height: 7.5rem; }
  .moment .sun { width: 3.15rem; }
}

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