:root {
  --bg: #f3f0e8;
  --text: #191a1e;
  --muted: #6a6b67;
  --line: #c9c6bc;
  --accent: #604cff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
header, main > section, footer { width: min(1120px, calc(100% - 48px)); margin: auto; }

header { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.logo { font-size: 20px; font-weight: 800; letter-spacing: -2px; }
.logo span, h1 em { color: var(--accent); }
nav { display: flex; gap: 28px; font-size: 14px; }
nav a:hover { color: var(--accent); }

.hero { min-height: calc(100svh - 84px); padding: clamp(70px, 11vw, 130px) 0 70px; display: flex; flex-direction: column; align-items: flex-start; }
.overline, .section-label { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.overline i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #53a475; margin-right: 8px; }
h1, h2 { font-weight: 500; letter-spacing: -.06em; line-height: 1.02; }
h1 { margin: 30px 0; font-size: clamp(56px, 10vw, 116px); }
h1 em { font-style: normal; }
.intro { max-width: 560px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.button { margin-top: auto; padding: 13px 20px; border: 1px solid var(--text); border-radius: 999px; font-size: 14px; }
.button span { margin-left: 10px; }
.button:hover { background: var(--text); color: var(--bg); }

main > section:not(.hero) { padding: 120px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; }
.section-label { margin: 8px 0 0; }
.section-content h2 { margin: 0 0 45px; font-size: clamp(46px, 7vw, 78px); }
.section-content > p { max-width: 610px; color: var(--muted); font-size: 18px; }
.project-list { border-top: 1px solid var(--line); }
article { padding: 30px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 70px 1fr; }
article > span { color: var(--accent); font: 12px ui-monospace, monospace; }
article h3 { margin: 0; font-size: 26px; font-weight: 500; }
article p { margin: 4px 0 0; color: var(--muted); }
.email { display: block; max-width: 700px; padding: 20px 0; border-top: 1px solid; border-bottom: 1px solid; font-size: clamp(20px, 3vw, 32px); }
.email:hover { color: var(--accent); }
small { display: block; margin-top: 12px; color: var(--muted); }
footer { min-height: 110px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .1em; }

@media (max-width: 650px) {
  header, main > section, footer { width: calc(100% - 36px); }
  header { height: 72px; }
  nav { gap: 16px; }
  .hero { min-height: calc(100svh - 72px); padding-top: 74px; }
  main > section:not(.hero) { padding: 84px 0; display: block; }
  .section-label { margin-bottom: 42px; }
  .section-content h2 { margin-bottom: 32px; }
}

@media (prefers-color-scheme: dark) {
  :root { --bg: #151619; --text: #efede7; --muted: #aaa9a4; --line: #393a3e; --accent: #8e80ff; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
