:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --paper-raised: #fffaf2;
  --ink: #1d1c19;
  --muted: #6d685f;
  --line: #d9d1c4;
  --accent: #d64f2b;
  --accent-soft: #f2d8ce;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(214, 79, 43, 0.12), transparent 28rem),
    linear-gradient(180deg, #faf6ee 0%, var(--paper) 38%, #eee7db 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.header-note {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.hero {
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 118px);
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 650px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: clamp(72px, 9vw, 120px);
}

.project {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--paper-raised) 82%, transparent);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.project-index {
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
}

.status {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
}

.status-live {
  border-color: #bbcdb8;
  background: #e4eee1;
  color: #3f5f39;
}

.project h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.project-kind {
  margin: 6px 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.project p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.about {
  max-width: 720px;
  padding: 40px 0 90px;
  border-top: 1px solid var(--line);
}

.about h2 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.about p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .projects {
    grid-template-columns: 1fr;
  }

  .project {
    min-height: 0;
  }

  .project-top {
    margin-bottom: 36px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    padding: 22px 0;
  }

  .header-note {
    display: none;
  }

  .project {
    padding: 22px;
    border-radius: 16px;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}
