:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #6b675f;
  --line: #e8e5de;
  --accent: #c9a96e;
  --work: #e9eef5;
  --work-ink: #3d5875;
  --play: #f6ece4;
  --play-ink: #8a5233;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}
h1 { font-size: clamp(48px, 8vw, 96px); }
h1 em, h2 em { color: var(--muted); }
.lede {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 18px;
  color: var(--muted);
}
.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); background: #000; }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }

/* Apps */
.apps { padding: 40px 0 100px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
h2 { font-size: clamp(34px, 4.5vw, 52px); }

.filters { display: flex; gap: 8px; }
.chip {
  font: inherit;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.card:hover {
  transform: translateY(-3px);
  border-color: #d9d4c9;
  box-shadow: 0 18px 40px -24px rgba(28, 27, 25, .25);
}
.card.is-soon { opacity: .78; }
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 22px;
  margin-bottom: 22px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.tag-work { background: var(--work); color: var(--work-ink); }
.tag-play { background: var(--play); color: var(--play-ink); }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.principle .num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
}
.principle h3 { margin: 10px 0 8px; font-size: 18px; font-weight: 600; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

/* Share */
.share { padding: 40px 0 120px; }
.share-card {
  text-align: center;
  padding: 80px 32px;
  border-radius: 28px;
  background: var(--ink);
  color: var(--bg);
}
.share-card h2 em { color: var(--accent); }
.share-card p {
  max-width: 500px;
  margin: 20px auto 36px;
  color: #bdb8ae;
  font-size: 17px;
}
.share-card .btn-primary { background: var(--bg); color: var(--ink); }
.share-card .btn-primary:hover { background: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}
.footer a:hover { color: var(--ink); }

.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 720px) {
  .hero { padding: 80px 0 64px; }
  .principles { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .share-card { padding: 56px 24px; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .nav-links { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
