/* Pi-Desktop website — Plaid palette: navy #1b2a55, cream #F3E2B8, orange #E85020. No external resources. */
:root {
  --navy: #1b2a55;
  --cream: #F3E2B8;
  --orange: #E85020;
  --paper: #fbf5e6;
  --ink: #1b2a55;
  --muted: #4a5577;
  --rule: #dccb9f;
  --code: #efe3c4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Ubuntu Sans", Ubuntu, Cantarell, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 16px; }

/* header */
header.site { background: var(--navy); color: var(--cream); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
header.site .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 700; font-size: 1.25rem; }
header.site .brand img { width: 40px; height: 40px; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
header.site nav a { color: var(--cream); text-decoration: none; font-size: 0.95rem; opacity: .92; }
header.site nav a:hover, header.site nav a[aria-current] { text-decoration: underline; opacity: 1; }

/* hero */
.hero { background: var(--navy); color: var(--cream); padding: 28px 0 40px; border-top: 1px solid rgba(243,226,184,.15); }
.hero h1 { font-size: 2.2rem; line-height: 1.15; margin: 0 0 6px; }
.hero h1 small { display: block; font-size: 1rem; font-weight: 400; opacity: .85; margin-top: 6px; }
.hero p { max-width: 36rem; font-size: 1.1rem; margin: 14px 0 22px; }
.hero .version { color: var(--orange); font-weight: 700; }
.btn { display: inline-block; background: var(--orange); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 6px; text-decoration: none; }
.btn:hover { background: #c9431a; }
.btn.secondary { background: transparent; color: var(--cream); border: 2px solid var(--cream); margin-left: 8px; }
.btn.secondary:hover { background: rgba(243,226,184,.12); }

/* content */
main { padding: 32px 0 48px; }
main h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 8px; }
main h2 { font-size: 1.35rem; margin: 2em 0 .5em; padding-top: .4em; border-top: 2px solid var(--rule); }
main h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
main p, main li { max-width: 46rem; }
main ul, main ol { padding-left: 1.3em; }
li + li { margin-top: .35em; }
.lede { font-size: 1.1rem; color: var(--muted); margin-top: 0; }
.note { border-left: 4px solid var(--orange); background: var(--cream); padding: 10px 14px; border-radius: 0 6px 6px 0; }
.note.navy { border-left-color: var(--navy); }
code, pre, kbd { font-family: "Ubuntu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
code { background: var(--code); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--navy); color: var(--cream); padding: 12px 14px; border-radius: 6px; overflow-x: auto; line-height: 1.45; }
pre code { background: none; padding: 0; color: inherit; }
blockquote { margin: 1em 0; padding: 8px 14px; border-left: 4px solid var(--rule); color: var(--muted); font-size: .95rem; }

/* tables (scroll inside, never the page) */
.table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0; border: 1px solid var(--rule); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
th { background: var(--cream); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* figures */
figure { margin: 1.5em 0; }
figure img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--rule); }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.placeholder { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; background: var(--navy); color: var(--cream); border-radius: 6px; border: 2px dashed rgba(243,226,184,.4); }

/* feature list */
.features { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.features li { background: #fff8; border: 1px solid var(--rule); border-radius: 6px; padding: 12px 14px; max-width: none; }
.features li strong { color: var(--navy); }
@media (min-width: 680px) { .features { grid-template-columns: 1fr 1fr; } }

/* footer */
footer.site { background: var(--navy); color: var(--cream); font-size: .9rem; }
footer.site .wrap { padding-top: 20px; padding-bottom: 24px; }
footer.site p { margin: 4px 0; opacity: .9; }
footer.site a { color: var(--cream); }

img { max-width: 100%; }
