/* Inter (SIL Open Font License, fonts/OFL.txt), served from here so a visit asks no one else */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/inter-italic.woff2) format("woff2"); }

:root {
  --bg: #ffffff;
  --soft: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #3b44d6;
  --accent-fg: #ffffff;
  --bar: rgba(255, 255, 255, 0.72);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b10;
    --soft: #16161d;
    --fg: #f5f5f7;
    --muted: #a1a1aa;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #7c83ff;
    --accent-fg: #0b0b10;
    --bar: rgba(11, 11, 16, 0.72);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* no word left alone on a last line */
p, li, figcaption { text-wrap: pretty; }
h1, h2, h3, .tagline, .lede, .section-lede, .note { text-wrap: balance; }

/* the bar at the top: the site, its two sections, and the code */
.top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(16px, calc((100% - 1040px) / 2));
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.top nav { display: flex; gap: 2px; }
.top nav a { display: flex; align-items: center; gap: 6px; color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.top nav a:hover { color: var(--fg); text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--fg); background: var(--soft); }
.top nav svg { fill: currentColor; }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section { margin: 104px 0; }
h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(28px, 5vw, 40px); text-align: center; margin: 0 0 16px; }
.section-lede { color: var(--muted); text-align: center; max-width: 680px; margin: 0 auto 44px; }
.fine { color: var(--muted); font-size: 13px; }

.hero { text-align: center; margin-top: 72px; }
.hero .mark { display: block; margin: 0 auto 12px; }
.hero h1 { font-size: clamp(44px, 9vw, 72px); letter-spacing: -0.035em; margin: 0; }
.tagline { font-size: clamp(20px, 4vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 12px; }
.lede { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.btn:hover { text-decoration: none; background: var(--soft); }
.btn.primary { background: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.hero .fine { margin-top: 20px; }
.hero .fine span { white-space: nowrap; }

.demo { text-align: center; }
.demo img { border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sides figure { margin: 0; text-align: center; }
.sides img { border-radius: 14px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2); }
figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
.steps { max-width: 720px; margin: 44px auto 20px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 44px; margin: 0 0 18px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}
.note { max-width: 720px; margin: 0 auto 6px; color: var(--muted); font-size: 14px; }
.note b { color: var(--fg); font-weight: 600; }

/* why Darpan: three groups of three; in each, one card stands forward (the script moves it on) */
.group { margin-top: 56px; }
.group h3 { font-size: 22px; margin: 0 0 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { margin: 0; padding: 10px 10px 22px; background: var(--soft); border-radius: 22px;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s; }
.live .card { transform: scale(.96); }
.live .card.on { transform: scale(1.04); box-shadow: 0 20px 44px rgba(0, 0, 0, .16); }
.live .card img { opacity: .55; transition: opacity .6s; }   /* only the picture dims: the words stay readable */
.live .card.on img { opacity: 1; }
.card img { display: block; width: 100%; border-radius: 14px; }
.card figcaption { margin: 0; padding: 16px 10px 0; font-size: 14px; line-height: 1.45; }
.card figcaption b { display: block; margin-bottom: 4px; color: var(--fg); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

.perf table { width: 100%; max-width: 720px; margin: 0 auto; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.perf th, .perf td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.perf thead th { color: var(--muted); font-weight: 600; font-size: 13px; }
.perf tbody th { font-weight: 600; }
.perf sup { margin-left: 1px; color: var(--muted); font-size: .75em; line-height: 0; }
.table-note { max-width: 720px; margin: 14px auto 0; padding: 0 10px; color: var(--muted); font-size: 13px; font-style: italic; }

/* the changelog: one column; each release is a title, a line of version and date, then what changed */
main.changelog { max-width: 752px; }
.page-head { margin: 72px 0 8px; }
.page-head h1 { font-size: clamp(36px, 7vw, 52px); letter-spacing: -0.03em; margin: 0 0 12px; }
.page-head .lede { margin: 0; }
.release { padding-top: 56px; }
.release + .release { margin-top: 56px; border-top: 1px solid var(--line); }
.release h2 { text-align: left; font-size: clamp(24px, 4vw, 30px); margin: 0 0 12px; }
.release .meta { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.release .meta b { color: var(--fg); font-weight: 600; }
.release .intro { margin: 0 0 8px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.release h3 { font-size: 16px; letter-spacing: -0.01em; margin: 32px 0 8px; }
.release p { margin: 0 0 12px; }
.release ul { margin: 0; padding-left: 1.2em; }
.release li { margin: 0 0 10px; padding-left: 4px; }
.release li::marker { color: var(--muted); }
.release li b { font-weight: 600; }
.older { margin: 96px 0 0; color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); margin-top: 104px; padding: 28px 16px 40px; text-align: center; }
footer p { color: var(--muted); font-size: 13px; margin: 0; }

@media (max-width: 760px) {
  section { margin: 72px 0; }
  .cards { grid-template-columns: 1fr; }
  .live .card, .live .card.on { transform: none; box-shadow: none; }
  .live .card img { opacity: 1; }
  .release { padding-top: 48px; }
  .release + .release { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .live .card img { transition: none; }
}
@media (max-width: 720px) {
  .sides { grid-template-columns: 1fr; }
  .lede { font-size: 16px; }
  .perf th, .perf td { padding: 10px 6px; font-size: 14px; }
}
@media (max-width: 440px) {
  .top nav a { padding: 6px 10px; }
  .top nav .gh span { display: none; }   /* the mark alone; the link keeps its name */
}
