:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e7;
  --card: #ffffff;
  --accent: #a8620a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161617;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2e2e30;
    --card: #1f1f21;
    --accent: #f0b54a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.site, main, footer.site { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header.site {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
  padding-top: 14px; padding-bottom: 14px;
  /* Stays at the top while scrolling: plain background to the window edges, a hairline below. */
  position: sticky; top: 0; z-index: 10;
  background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg), 0 1px 0 100vmax var(--line); clip-path: inset(0 -100vmax -1px);
}
header.site .brand { display: flex; align-items: center; gap: 12px; color: var(--fg); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.01em; }
header.site .brand img { width: 56px; height: 56px; }
header.site nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
header.site nav a { color: var(--muted); }
header.site nav a.current { color: var(--fg); }
h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; margin: 28px 0 10px; }
h2 { font-size: 24px; letter-spacing: -0.01em; margin: 44px 0 10px; }
h3 { font-size: 18px; margin: 26px 0 6px; }
p.lede { font-size: 21px; color: var(--muted); margin-top: 0; }
.hero-icon { display: block; width: 128px; height: 128px; margin: 26px 0 0; }
.cta { display: inline-block; margin: 14px 0 6px; padding: 11px 20px; border-radius: 980px;
  background: var(--fg); color: var(--bg); font-weight: 600; }
.cta:hover { text-decoration: none; opacity: .88; }
.cta.soon { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.note { color: var(--muted); font-size: 15px; margin-top: 4px; }
@media (max-width: 640px) { h1 { font-size: 32px; } p.lede { font-size: 19px; } }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 18px 0; }
kbd { font: 14px/1 ui-monospace, "SF Mono", Menlo, monospace; padding: 2px 6px; border: 1px solid var(--line);
  border-radius: 5px; background: var(--card); }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; padding: 1px 5px; border: 1px solid var(--line);
  border-radius: 5px; background: var(--card); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 52px 0; }
footer.site { color: var(--muted); font-size: 14px; padding-top: 30px; padding-bottom: 50px; }

/* Language switch */
header.site nav .lang { padding-left: 18px; border-left: 1px solid var(--line); }
header.site nav .lang a { margin-right: 10px; font-size: 14px; font-weight: 600; }
header.site nav .lang a:last-child { margin-right: 0; }
@media (max-width: 640px) { header.site nav .lang { margin-left: auto; padding-left: 0; border-left: 0; } }

/* Screenshot placeholders: to be replaced by images without personal photos */
.placeholder { display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 16 / 10; margin: 34px 0 6px; padding: 20px; border: 2px dashed var(--line); border-radius: 12px;
  color: var(--muted); font-size: 15px; background: var(--card); }
figure { margin: 30px 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.grid h3 { margin-top: 22px; }
.grid p { margin-top: 0; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

/* Release notes */
.release h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.release h2 small { color: var(--muted); font-size: 15px; font-weight: 400; }

/* Phone: a more compact sticky header */
@media (max-width: 640px) {
  header.site { padding-top: 10px; padding-bottom: 10px; }
  header.site .brand { font-size: 1.5rem; }
  header.site .brand img { width: 44px; height: 44px; }
  header.site nav { width: 100%; gap: 4px 14px; font-size: 15px; }
}
