/* pyNavis homepage. Follows the v2.2 design system: neutral grays, hairlines and
   whitespace carry the structure, the accent appears only on the primary action
   and the focus ring, solid surfaces, sentence case, no gradients or motion. */

:root {
  --paper:       #ffffff;
  --surface:     #f7f7f7;
  --line:        #e0e0e0;
  --line-strong: #c9c9c9;
  --frame:       #a6a6a6;
  --ink:         #1a1a1a;
  --muted:       #6b6b6b;
  --accent:      #005fb8;
  --accent-ink:  #ffffff;
  --mono: Consolas, 'Cascadia Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --measure: 62ch;
  --radius: 4px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #1b1b1b;
    --surface:     #232323;
    --line:        #333333;
    --line-strong: #414141;
    --frame:       #6e6e6e;
    --ink:         #e8e8e8;
    --muted:       #9a9a9a;
    --accent:      #4cc2ff;
    --accent-ink:  #0b1a24;
  }
}
:root[data-theme="dark"] {
  --paper:       #1b1b1b;
  --surface:     #232323;
  --line:        #333333;
  --line-strong: #414141;
  --frame:       #6e6e6e;
  --ink:         #e8e8e8;
  --muted:       #9a9a9a;
  --accent:      #4cc2ff;
  --accent-ink:  #0b1a24;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

code {
  font-family: var(--mono);
  font-size: .92em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 4px;
}
pre { margin: 0; }
pre code {
  display: block;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: pre;
}

/* Shell */
.top, main, footer {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.brand:hover { text-decoration: none; }
.mark { display: block; border-radius: 6px; }
.top nav { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: block;
  width: min(360px, 70vw);
  height: auto;
  margin-bottom: 32px;
}
.hero h1 {
  margin: 0 0 14px;
  max-width: 30ch;
  font-size: clamp(26px, 4.2vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.lead {
  margin: 0 0 28px;
  max-width: var(--measure);
  font-size: 17px;
  color: var(--muted);
}
.lead code { font-size: .88em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.btn:hover { text-decoration: none; background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(.94); }
.caption { margin: 0; font-size: 13px; color: var(--muted); }

/* Three-item strip */
.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.strip h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.strip p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Example pair */
.example {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 16px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

/* Project links */
.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin: 40px 0 0;
}
.links a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.links a:hover { background: var(--surface); text-decoration: none; }
.links .k { font-size: 12px; font-weight: 500; color: var(--muted); }
.links .v { font-size: 15px; }
.links a:hover .v { text-decoration: underline; text-underline-offset: 3px; }

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 8px;
}
.badges img { display: block; }

/* Footer */
footer {
  padding: 40px var(--gutter) 48px;
  font-size: 13px;
  color: var(--muted);
}
footer p { margin: 0 0 6px; max-width: var(--measure); }
footer a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .strip { grid-template-columns: 1fr; gap: 24px; }
  .example { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
  .top nav { gap: 14px; }
}
