/* Volley site. Tokens mirror the app (app/ui/common.css, DESIGN.md §3.5). */

:root {
  color-scheme: light dark;
  --plum: #4a1f47;
  --plum-deep: #33142f;
  --coral: #f0564a;
  --peach: #ffb59a;
  --cream: #f6e7dd;
  --blush: #f3cdc6;

  --bg: #fbf5f0;
  --bg-alt: #f6ece4;
  --bg-elevated: #ffffff;
  --fg: #33142f;
  --fg-muted: rgba(51, 20, 47, 0.68);
  --fg-faint: rgba(51, 20, 47, 0.45);
  --border: rgba(74, 31, 71, 0.14);
  --kbd-bg: rgba(74, 31, 71, 0.07);
  --shadow: 0 24px 60px rgba(51, 20, 47, 0.16);
  --ribbon: linear-gradient(90deg, var(--coral), var(--peach), var(--coral));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d0c1a;
    --bg-alt: #241020;
    --bg-elevated: #2f1729;
    --fg: #f6e7dd;
    --fg-muted: rgba(246, 231, 221, 0.7);
    --fg-faint: rgba(246, 231, 221, 0.45);
    --border: rgba(246, 231, 221, 0.12);
    --kbd-bg: rgba(246, 231, 221, 0.08);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--coral) 35%, transparent); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

kbd {
  font-family: inherit;
  font-size: 0.82em;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--kbd-bg);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--fg-muted); }
.nav-links a:hover { color: var(--fg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 600;
  border-radius: 12px; border: 1px solid var(--border);
  padding: 13px 22px; font-size: 16px;
  background: var(--bg-elevated);
  transition: transform 120ms ease-out, filter 120ms ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.btn-primary { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 8px 22px rgba(240, 86, 74, 0.32); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-small { padding: 7px 14px; font-size: 14px; border-radius: 9px; }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; box-shadow: none; }

/* hero */
.hero { padding: 72px 0 48px; overflow: hidden; }
.hero-inner { text-align: center; }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral); }
h1 { margin: 0; font-size: clamp(40px, 7vw, 72px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 800; }
.lede { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 2.1vw, 20px); color: var(--fg-muted); }
.cta-row { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.meta { font-size: 14px; color: var(--fg-faint); }
.hero-shot { margin: 56px 0 0; position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: 10% 8% -6%; z-index: -1;
  background: var(--ribbon); filter: blur(70px); opacity: 0.35; border-radius: 50%;
}
.hero-shot img { border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--border); }

/* sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
h2 { margin: 0 0 36px; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 750; }
h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.section p { margin: 0; color: var(--fg-muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px; }
.step-n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 50%; background: var(--coral); color: #fff; font-weight: 700; font-size: 15px;
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.features article { border-top: 2px solid var(--border); padding-top: 18px; }
.gallery { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery img { border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }

.install { margin: 0; padding-left: 22px; display: grid; gap: 14px; color: var(--fg-muted); }
.install strong { color: var(--fg); }
.install a { color: var(--coral); font-weight: 600; }
.note { margin-top: 22px !important; font-size: 15px; color: var(--fg-faint) !important; }

/* changelog */
.changelog .release { padding: 22px 0; border-top: 1px solid var(--border); }
.changelog .release:first-child { border-top: 0; padding-top: 0; }
.release-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.release-head h3 { margin: 0; }
.release-head time { font-size: 14px; color: var(--fg-faint); }
.changelog h4 { margin: 14px 0 4px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); }
.changelog ul { margin: 0; padding-left: 20px; color: var(--fg-muted); font-size: 15.5px; }
.changelog li { margin: 3px 0; }
.changelog code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }

.footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--fg-faint); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .steps, .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
