:root {
  --bg: #f5f3ee;
  --text: #171717;
  --muted: #6d6962;
  --line: #d7d2c8;
  --accent: #9f3528;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .16s ease;
}

a:hover { color: var(--accent); }

.section-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 92px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 650;
}

.hero-lead {
  max-width: 760px;
  margin: 34px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
  letter-spacing: -.02em;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: #3e3a35;
  font-size: 17px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
  font-size: 14px;
  font-weight: 650;
}

.now,
.works,
.principles,
.notes,
.elsewhere {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 620;
}

.section-title > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.now-grid,
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 30px;
}

.now-grid article,
.principles-grid article {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.now-grid h3,
.principles-grid h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.35;
}

.now-grid p,
.principles-grid p {
  margin: 0;
  color: #45413b;
  font-size: 15px;
}

.project {
  padding: 52px 0 58px;
  border-top: 1px solid var(--line);
}

.project:first-of-type {
  border-top: 1px solid var(--text);
}

.project-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}

.project h3 {
  margin: 0;
  font-size: clamp(31px, 4.2vw, 50px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 620;
}

.project-subtitle {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 19px;
  font-weight: 550;
}

.project-status {
  flex: 0 0 auto;
  padding-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.project-copy {
  max-width: 790px;
  margin: 30px 0 0;
}

.project-copy p {
  margin: 0 0 18px;
  color: #35312d;
  font-size: 16px;
}

.project-copy strong {
  color: var(--text);
}

.stack {
  color: var(--muted) !important;
  font-size: 14px !important;
}

.project-foot {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(215, 210, 200, .7);
  padding-top: 18px;
}

.project-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.project-foot a {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 650;
  border-bottom: 1px solid currentColor;
}

.notes-copy {
  max-width: 760px;
}

.notes-copy p {
  margin: 0;
  color: #3e3a35;
  font-size: 17px;
}

.large-link {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -.04em;
  border-bottom: 1px solid currentColor;
}

.elsewhere-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(24px, 3.3vw, 40px);
  line-height: 1.18;
  letter-spacing: -.03em;
}

.site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

::selection {
  background: #1d1c1a;
  color: #f7f4ed;
}

@media (max-width: 780px) {
  .site-header { min-height: 64px; }
  .nav { gap: 14px; font-size: 13px; }
  .nav a:first-child { display: none; }

  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: clamp(54px, 16vw, 76px); }
  .hero-lead { font-size: 21px; }

  .now,
  .works,
  .principles,
  .notes,
  .elsewhere {
    padding: 58px 0;
  }

  .section-title {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
  }

  .now-grid,
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project {
    padding: 42px 0 48px;
  }

  .project-head {
    flex-direction: column;
    gap: 12px;
  }

  .project-status {
    padding-top: 0;
  }

  .project-copy {
    margin-top: 24px;
  }

  .project-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-footer {
    min-height: 90px;
  }
}

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