/* cones site: one stylesheet, light only */
:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --panel: #ffffff;
  --ink: #1f1d1a;
  --muted: #5f5a52;
  --line: #e4dfd5;
  --accent: #c2410c;      /* cone orange, darkened for text contrast */
  --accent-soft: #fff1e6;
  --code-bg: #f3f0ea;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --wide: 960px;
  --text: 680px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.5;
}
pre code { background: none; padding: 0; font-size: 1em; }
kbd {
  display: inline-block;
  font-size: 0.85em;
  padding: 0.05em 0.45em;
  border: 1px solid #cfc8bb;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--panel);
  white-space: nowrap;
}

/* layout */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--text); }
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
header.site .brand { font-family: var(--mono); font-weight: 700; color: var(--ink); text-decoration: none; }
header.site .brand span { color: var(--accent); }
header.site nav { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.92em; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--ink); }
main { padding-bottom: 48px; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9em; padding: 24px 0 40px; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 40px 0 12px; }
h2 { font-size: 1.45rem; margin: 56px 0 12px; padding-top: 8px; }
h3 { font-size: 1.1rem; margin: 28px 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 0.88em; }

/* hero */
.hero { padding: 40px 0 8px; }
.hero .art { width: 100%; max-width: 572px; }
.hero .line { font-size: 1.6rem; font-weight: 650; margin: 24px 0 8px; line-height: 1.3; }
.hero .sub { max-width: var(--text); color: var(--muted); margin: 0 0 20px; }
.install pre { margin: 0 0 8px; }
.capture { margin: 32px 0 0; }
.capture picture { display: block; }
.capture img { border-radius: 8px; border: 1px solid var(--line); width: 100%; }
.capture figcaption { color: var(--muted); font-size: 0.88em; margin-top: 8px; }

.why { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why li { border-top: 3px solid var(--accent); padding-top: 10px; font-size: 0.95em; }
.why strong { display: block; margin-bottom: 2px; }
@media (max-width: 720px) { .why { grid-template-columns: 1fr; } }

/* key-headed feature sections */
.features { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 16px; }
.feature {
  display: grid; grid-template-columns: 190px 1fr; gap: 8px 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.feature > div { min-width: 0; }
.feature .keys { padding-top: 2px; }
.feature .keys kbd { font-size: 0.95em; margin: 0 4px 6px 0; }
.feature h3 { margin: 0 0 4px; }
.feature p { margin: 0 0 8px; }
.feature p:last-child { margin-bottom: 0; }
.tag {
  font-family: var(--mono); font-size: 0.75em; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 4px; padding: 0 5px; vertical-align: 2px;
  font-weight: 400;
}

/* tables */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.93em; background: var(--panel); }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border: 1px solid var(--line); }
th { background: #f6f3ee; font-weight: 600; }
td.y { color: #166534; }
td.n { color: var(--muted); }
sup { line-height: 0; }
sup a { text-decoration: none; font-family: var(--mono); font-size: 12px; padding: 4px 2px; }
.reviewed { display: block; color: var(--muted); font-size: 0.82em; font-weight: 400; }
tr.self td, tr.self th { background: var(--accent-soft); }

/* compare: stack rows as cards on phones */
@media (max-width: 640px) {
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; overflow: hidden; }
  table.stack th, table.stack td { border: 0; border-top: 1px solid var(--line); }
  table.stack th { border-top: 0; }
  table.stack td::before {
    content: attr(data-label); display: block; font-size: 0.8em; color: var(--muted); font-weight: 600;
  }
}

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 16px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0 0 8px; font-size: 0.95em; }
.card .src { font-size: 0.82em; color: var(--muted); margin: 8px 0 0; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 12px 0; max-width: var(--text); }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; }

/* docs */
.docs-grid { display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
.docs-nav { font-family: var(--mono); font-size: 0.9em; padding-top: 44px; }
.docs-nav ul { list-style: none; padding: 0; margin: 0; position: sticky; top: 16px; }
.docs-nav li { margin: 0 0 6px; }
.docs-nav a { color: var(--muted); text-decoration: none; }
.docs-nav a[aria-current] { color: var(--ink); font-weight: 700; }
.docs-main { min-width: 0; }
.note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; margin: 16px 0; max-width: var(--text); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .hero .line { font-size: 1.3rem; }
  .feature { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; gap: 0; }
  .docs-nav { padding-top: 16px; }
  .docs-nav ul { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; }
}
