/* Shared by the landing and samples pages. One accent (deep green), one neutral family,
   one radius scale: 8px controls, 14px surfaces, pill for chips only. */
:root {
  --bg: #fafaf9; --surface: #ffffff; --ink: #1c1c1b; --muted: #66655f; --line: #e7e6e2;
  --accent: #1d5a4a; --accent-ink: #ffffff; --accent-soft: #eaf2ef;
  --r-control: 8px; --r-surface: 14px;
  --shadow: 0 1px 2px rgba(28,28,27,.04), 0 12px 32px -12px rgba(28,28,27,.14);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --logo-filter: none;
}
:root[data-theme="dark"] {
  --bg: #111110; --surface: #191918; --ink: #ecebe7; --muted: #a09f98; --line: #2b2b29;
  --accent: #6cbca4; --accent-ink: #0b1612; --accent-soft: #17231f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  --logo-filter: invert(1); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111110; --surface: #191918; --ink: #ecebe7; --muted: #a09f98; --line: #2b2b29;
    --accent: #6cbca4; --accent-ink: #0b1612; --accent-soft: #17231f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    --logo-filter: invert(1); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; line-height: 1.12; }
h3 { font-size: 16px; margin-bottom: 6px; letter-spacing: -0.005em; }
p { margin: 0 0 10px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.lede { font-size: 17px; color: var(--muted); max-width: 52ch; }
.kicker { font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; display: block; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; height: 68px; background: color-mix(in srgb, var(--bg) 88%, transparent);
             backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; display: block; filter: var(--logo-filter); }
.brand .rule { width: 1px; height: 26px; background: var(--line); }
.brand .name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.brand .name span { color: var(--muted); font-weight: 400; }
.head-right { display: flex; align-items: center; gap: 22px; }
nav.links { display: flex; gap: 22px; font-size: 14px; }
nav.links a { color: var(--muted); text-decoration: none; transition: color .2s; }
nav.links a:hover, nav.links a[aria-current] { color: var(--ink); }
#theme { font-size: 19px; line-height: 1; color: var(--ink); background: transparent; border: 1px solid var(--line);
         border-radius: var(--r-control); width: 38px; height: 38px; display: grid; place-items: center; padding: 0; cursor: pointer;
         transition: border-color .2s, background .2s; }
#theme:hover { border-color: var(--muted); background: var(--accent-soft); }
@media (max-width: 760px) { nav.links { display: none; } .brand .rule { display: none; } .head-right .btn { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
       border-radius: var(--r-control); padding: 10px 20px; border: 1px solid transparent; white-space: nowrap;
       background: var(--accent); color: var(--accent-ink); transition: transform .15s, opacity .2s, background .2s, border-color .2s; }
.btn:hover { opacity: .9; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { opacity: 1; border-color: var(--muted); background: var(--accent-soft); }
.btn.sm { padding: 8px 16px; font-size: 14px; }

.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap;
        background: var(--accent-soft); color: var(--accent); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 72px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer img { height: 56px; filter: var(--logo-filter); display: block; }
footer .who { display: flex; align-items: center; gap: 16px; }
footer .who strong { display: block; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .rise.d2 { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
