:root {
  --ink: #171817;
  --muted: #777975;
  --line: #e4e4e0;
  --accent: #f17fa9;
  --paper: #f5f5f3;
  --card: #fbfbf9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgb(245 245 243 / 0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 22%; }
.bar nav { display: flex; gap: 22px; font-size: 15px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }

.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { margin: 0 0 14px; font-size: clamp(34px, 6vw, 60px); line-height: 1.15; letter-spacing: -0.02em; }
.hero p.lede { margin: 0 auto 30px; max-width: 620px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.hero img.shot { width: min(300px, 72vw); border-radius: 28px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 42px; }
.cta a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 26px;
  background: #151714; color: #fff; font-size: 16px; text-decoration: none;
  transition: background .18s, transform .18s;
}
.cta a:hover { background: #30372f; transform: translateY(-1px); }

section { padding: 54px 0; border-top: 1px solid var(--line); }
section h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 32px); }
section > .wrap > p.sub { margin: 0 0 30px; color: var(--muted); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.prose { max-width: 760px; }
.prose h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 6px; }
.prose h2 { font-size: 20px; margin: 34px 0 8px; }
.prose p, .prose li { color: #3c3e3a; }
.prose ul { padding-left: 20px; }
.prose .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.prose a { color: var(--accent); }

.credit { padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.credit a { color: var(--accent); }

/* The open-source list. Same shape as the one in the app: name, licence, and
   what the project does here. No outbound links — the list is the answer. */
.licences { margin: 0; padding: 0; list-style: none; }
.licences li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.licences li:first-child { padding-top: 0; }
.licences li:last-child { border-bottom: 0; padding-bottom: 0; }
.licence-name { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.licence-name em { margin-left: 7px; font-style: normal; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.licence-id {
  padding: 1px 9px;
  border-radius: 10px;
  background: #ecece8;
  color: #6c6f69;
  font-size: 12px;
  white-space: nowrap;
}
.licence-use { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.credit-note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

footer.site { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.footer-links { display: flex; gap: 18px; margin-left: auto; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
