:root {
  color-scheme: light dark;
  --paper: #f6f7f5;
  --ink: #0b0d10;
  --muted: #4c5560;
  --line: #d9dedb;
  --accent: #0e7a5c;
  --mint: #bff8e0;
  --panel: #ffffff;
  font-family: -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0d10;
    --ink: #f2f4f3;
    --muted: #a7b0b8;
    --line: #262b30;
    --accent: #7fe6be;
    --panel: #14181c;
  }
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, .skip:focus { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--panel); padding: 0.5rem 0.75rem; z-index: 2; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
header.site nav { display: flex; gap: 1.1rem; font-size: 0.95rem; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--ink); }

/* Landing */
.hero { display: grid; gap: 2.5rem; padding: 2.5rem 0 3.5rem; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem); font-weight: 760; letter-spacing: -0.035em;
  line-height: 1.02; margin: 0 0 1.1rem; max-width: 12ch;
}
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin: 0; }
.eyebrow { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.9rem; }

/* Signature: the viewfinder brackets from the app icon */
.viewfinder { position: relative; margin: 0; padding: 1.4rem; }
.viewfinder img { border-radius: 10px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.viewfinder::before, .viewfinder::after,
.viewfinder > span::before, .viewfinder > span::after {
  content: ""; position: absolute; width: 2.6rem; height: 2.6rem; border: 5px solid var(--ink);
}
.viewfinder::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.viewfinder::after { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.viewfinder > span::before { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.viewfinder > span::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.viewfinder figcaption { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); text-align: center; }

.highlights { display: grid; gap: 1.75rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); padding: 2.5rem 0; border-top: 1px solid var(--line); }
.highlights h2 { font-size: 1.05rem; margin: 0 0 0.35rem; letter-spacing: -0.01em; }
.highlights p { margin: 0; color: var(--muted); }

.download { padding: 2rem 0 3rem; border-top: 1px solid var(--line); }
.download p { margin: 0; font-weight: 650; font-size: 1.1rem; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 5fr 6fr; align-items: center; padding-top: 3.5rem; }
}

/* Documents */
.document { max-width: 44rem; padding-bottom: 3rem; }
.document h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.08; margin: 1rem 0 0.75rem; }
.document h2 { font-size: 1.2rem; letter-spacing: -0.01em; margin: 2.2rem 0 0.5rem; }
.document h3 { font-size: 1.02rem; margin: 1.4rem 0 0.3rem; }
.document p, .document li { max-width: 65ch; }
.document .lead { font-size: 1.1rem; color: var(--muted); }
.document .meta { color: var(--muted); font-size: 0.95rem; }
.document code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
.contact { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 1rem 1.2rem; }
.contact p { margin: 0.2rem 0; }
.sample-figure { margin: 1.5rem 0; }
.sample-figure img { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.button { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 650; padding: 0.7rem 1.1rem; border-radius: 8px; }
.button:hover { opacity: 0.9; }

footer.site { border-top: 1px solid var(--line); padding-top: 1.5rem; padding-bottom: 2.5rem; font-size: 0.92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
footer.site a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
