/* zplr.us cover page — lightweight, responsive, calm */

:root {
  --bg: #f7f8fb;
  --bg-elev: #ffffff;
  --fg: #1a1d24;
  --fg-muted: #5b6474;
  --border: #e6e8ef;
  --accent: #6b7cff;
  --accent-2: #9b7cff;
  --accent-soft: #eef0ff;
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.04), 0 8px 24px rgba(20, 24, 40, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 980px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --bg-elev: #161923;
    --fg: #e8ecf4;
    --fg-muted: #9aa3b5;
    --border: #232838;
    --accent: #8b9aff;
    --accent-2: #b39bff;
    --accent-soft: #1b2036;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(107, 124, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(155, 124, 255, 0.10), transparent 60%),
    var(--bg);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 50;
}

/* Header */
.site-header {
  padding: 22px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.logo {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.brand-text { font-size: 1.05rem; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--fg-muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 36px 20px 20px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  background: linear-gradient(120deg, var(--fg) 0%, var(--fg) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 0 0 22px;
  max-width: 62ch;
  color: var(--fg-muted);
  font-size: 1.08rem;
}

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-top: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.callout strong { display: block; margin-bottom: 2px; }
.callout-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
}

/* Sections */
.section-title {
  margin: 44px 0 16px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

/* Cards */
.cards { padding-bottom: 8px; }
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.card h3 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.98rem;
}
.card-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
}

/* Visitor tips */
.visitor { padding-bottom: 40px; }
.tips {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.tips li {
  position: relative;
  padding: 12px 14px 12px 40px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
}
.tips li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Inline code */
code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 70%, var(--fg));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  white-space: nowrap;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--fg-muted);
  font-size: 0.92rem;
}
.footer-inner p { margin: 0; }
.muted { color: var(--fg-muted); }

/* Motion respect */
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* Small screens */
@media (max-width: 520px) {
  .site-header { padding: 16px 0; }
  .hero { padding-top: 20px; }
  .callout { padding: 14px; }
  .card { padding: 18px; }
  .pill { display: none; }
}
