:root {
  --bg: #fafaf8;
  --fg: #1c1e21;
  --muted: #5f6672;
  --card: #ffffff;
  --line: #e4e2dc;
  --accent: #1a73e8;
  --red: #ea4335;
  --blue: #4285f4;
  --green: #34a853;
  --yellow: #fbbc05;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --fg: #e8eaed;
    --muted: #9aa0a6;
    --card: #1f2228;
    --line: #33373e;
    --accent: #8ab4f8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-size: 16px;
}
.stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0 25%, var(--blue) 25% 50%, var(--green) 50% 75%, var(--yellow) 75% 100%);
}
.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}
header.site nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
header.site nav a:hover { color: var(--accent); }
header.site nav a.lang {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.15rem 0.55rem;
  font-weight: 600;
}
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 0.35rem; }
h2 { font-size: 1.2rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.02rem; margin: 1.5rem 0 0.4rem; }
p, ul, ol { margin: 0.6rem 0; }
li { margin: 0.3rem 0; }
a { color: var(--accent); }
.updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.6rem; }
.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin: 1rem 0;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
footer.site {
  margin-top: 3.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
footer.site nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
/* landing */
.hero {
  text-align: center;
  padding: 2.5rem 0 1rem;
}
.hero img.icon {
  width: 160px;
  height: 160px;
  border-radius: 34px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.hero h1 { font-size: 2.2rem; margin-top: 1.2rem; }
.hero .tagline { color: var(--muted); font-size: 1.1rem; margin: 0.4rem 0 1.4rem; }
.badges { color: var(--muted); font-size: 0.95rem; }
/* falling blocks background */
.bg-blocks {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bgb {
  position: absolute;
  top: 0;
  border-radius: 6px;
  opacity: 0.14;
  box-shadow: inset 0 -5px rgba(0, 0, 0, 0.18);
  animation: blockFall linear infinite;
  will-change: transform;
}
.bgw {
  position: absolute;
  left: 18%;
  top: 22%;
  width: 64%;
  height: 42%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95));
  background-size: 34% 100%;
  background-position: 0 0, 100% 0;
  background-repeat: no-repeat;
}
@keyframes blockFall {
  from { transform: translate3d(0, -18vh, 0) rotate(var(--r0, 0deg)); }
  to   { transform: translate3d(var(--dx, 0px), 118vh, 0) rotate(var(--r1, 0deg)); }
}
@media (prefers-color-scheme: dark) {
  .bgb { opacity: 0.1; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-blocks { display: none; }
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--fg);
}
.card:hover { border-color: var(--accent); }
.card strong { display: block; margin-bottom: 0.25rem; }
.card span { color: var(--muted); font-size: 0.9rem; }
