/* Pier site — palette lifted from assets/app-icon.svg: dusk blue, sand deck,
   lamp yellow, teal waves. */
:root {
  --bg: #f7f2e7;
  --bg-2: #efe6d2;
  --surface: #fffaf0;
  --ink: #12283a;
  --muted: #55697a;
  --line: #e0d4b8;
  --accent: #0d6b78;
  --accent-ink: #ffffff;
  --lamp: #e0a21a;
  --wave: #2f9c8a;
  --code-bg: #12283a;
  --code-ink: #f6ead2;
  --hero-a: #16324a;
  --hero-b: #0d4f5c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1a26;
    --bg-2: #102334;
    --surface: #132b3e;
    --ink: #f6ead2;
    --muted: #9db3bf;
    --line: #22425a;
    --accent: #7fd4c1;
    --accent-ink: #0c1a26;
    --lamp: #ffd97a;
    --wave: #7fd4c1;
    --code-bg: #091520;
    --code-ink: #f6ead2;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1a26;
  --bg-2: #102334;
  --surface: #132b3e;
  --ink: #f6ead2;
  --muted: #9db3bf;
  --line: #22425a;
  --accent: #7fd4c1;
  --accent-ink: #0c1a26;
  --lamp: #ffd97a;
  --wave: #7fd4c1;
  --code-bg: #091520;
  --code-ink: #f6ead2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
code { font-size: .88em; background: var(--bg-2); padding: .12em .38em; border-radius: 5px; }
pre {
  background: var(--code-bg); color: var(--code-ink);
  padding: 16px 18px; border-radius: 12px; overflow-x: auto; line-height: 1.55; font-size: 13.5px;
}
pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; }
.nav .links { margin-left: auto; display: flex; gap: 20px; align-items: center; font-size: 14.5px; }
.nav .links a { color: var(--muted); text-decoration: none; }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--ink); }
#theme { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px;
  width: 32px; height: 32px; cursor: pointer; font-size: 15px; }
#theme:hover { color: var(--ink); }

/* hero */
.hero { background: radial-gradient(900px 400px at 78% 10%, rgba(255,217,122,.18), transparent 60%),
  linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: #f6ead2; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 120px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.04; margin: 0 0 18px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: #ffd97a; }
.hero p.lede { font-size: 19px; color: #cfe0e4; max-width: 34em; margin: 0 0 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; font-size: 12.5px; }
.badges span { border: 1px solid rgba(246,234,210,.28); border-radius: 99px; padding: 3px 11px; color: #cfe0e4; }
.shot { justify-self: center; position: relative; }
.shot img { width: 100%; max-width: 400px; border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(246,234,210,.12); display: block; }
.shot::before { content: ""; position: absolute; inset: -30px; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,217,122,.22), transparent); }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; width: 100%; display: block; }
.waves path { fill: var(--bg); }

/* buttons */
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; margin: 0 10px 10px 0; }
.btn.primary { background: #ffd97a; color: #12283a; }
.btn.primary:hover { background: #ffe39b; }
.btn.ghost { border-color: rgba(246,234,210,.4); color: #f6ead2; }
.btn.ghost:hover { background: rgba(246,234,210,.1); }
.btn.solid { background: var(--accent); color: var(--accent-ink); }

/* sections */
section { padding: 64px 0; }
section h2 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 8px; }
section .sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; display: flex; gap: 9px; align-items: center; }
.card h3 i { font-style: normal; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); font-size: 15px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.flow { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; }
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.principles li { padding-left: 28px; position: relative; }
.principles li::before { content: "⚓"; position: absolute; left: 0; color: var(--wave); }

/* release */
.release { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.release .card { display: flex; flex-direction: column; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--lamp); color: #12283a; border-radius: 99px; padding: 2px 10px; margin-bottom: 8px; align-self: flex-start; }
.notes { font-size: 15px; }
.notes :first-child { margin-top: 0; }
.muted { color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); }

/* docs layout */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; padding-top: 36px; padding-bottom: 80px; }
.side { position: sticky; top: 80px; align-self: start; font-size: 14.5px; }
.side h4 { margin: 18px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.side h4:first-child { margin-top: 0; }
.side a { display: block; padding: 5px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; }
.side a:hover { background: var(--bg-2); }
.side a[aria-current] { background: var(--bg-2); color: var(--accent); font-weight: 600; }
.md { min-width: 0; max-width: 780px; }
.md h1 { font-size: 36px; letter-spacing: -.02em; line-height: 1.15; margin-top: 0; }
.md h2 { font-size: 24px; margin: 2em 0 .5em; padding-top: .4em; border-top: 1px solid var(--line); letter-spacing: -.01em; }
.md h3 { font-size: 18px; margin: 1.6em 0 .4em; }
.md table { border-collapse: collapse; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 12px; text-align: left; vertical-align: top; }
.md th { background: var(--bg-2); }
.md img { max-width: 100%; }
.md blockquote { margin: 1em 0; padding: .1em 1em; border-left: 3px solid var(--wave); color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap, .release { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 44px; padding-bottom: 96px; }
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .side h4 { width: 100%; }
  .nav .links a.opt { display: none; }
}

/* grid children default to min-width:auto and blow out narrow viewports */
.hero .wrap > *, .release > *, .grid > * { min-width: 0; }
html, body { overflow-x: clip; }
