/* Sinbad by Tidal AI: the pages the server draws itself (documentation, what's new, about Tidal AI, the gallery).
   Washi and sumi, as the app: warm paper with a sharp grain, thick ink lines, near-square corners, a serif for titles and a plain
   sans for text, all served from this server (public/fonts/). Light or dark follows the device. Nothing here loads from another site. */
/* The faces of the washi and sumi look, served from this site (public/fonts, SIL Open Font License, texts beside them).
   Headings: Cormorant Garamond. Body: Inter. Both are variable files: one file covers every weight in its range. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/cormorant-garamond-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(/fonts/cormorant-garamond-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(/fonts/cormorant-garamond-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/geist-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/geist-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sinbad Ruqaa'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/aref-ruqaa-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --bg: #f1ebdd; --bg-2: #e9e1d3; --card: #f7f2e8; --glass: #f4eee2;
  --ink: #22211f; --ink-2: rgba(34, 33, 31, 0.84); --ink-3: rgba(34, 33, 31, 0.62);
  --rule: rgba(34, 33, 31, 0.16); --rule-2: rgba(34, 33, 31, 0.44);
  --sea: #5a6250; --aqua: #777e6d; --aqua-soft: rgba(119, 126, 109, 0.22); --on-ink: #f1ebdd;
  --code-bg: #22211f; --code-ink: #f1ebdd; --code-dim: #a39e92;
  --new: #4c6540; --improved: #5a6250; --fixed: #8f611b; --err: #9c3a2c;
  --shadow: 0 10px 20px -16px rgba(34, 33, 31, 0.5);
  --line: 1.5px; --rule-w: 2px; --r-1: 2px; --r-2: 3px;
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 28' preserveAspectRatio='none'%3E%3Cfilter id='r' x='-2%25' y='-40%25' width='104%25' height='180%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035 0.5' numOctaves='2' seed='3' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='7' result='d'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 1.6' numOctaves='2' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  5 0 0 0 -1.35' result='dry'/%3E%3CfeComposite in='d' in2='dry' operator='in'/%3E%3C/filter%3E%3Cpath d='M3 12 C 30 5, 80 7, 150 9 S 262 7, 316 11 L 317 15 C 270 16, 200 21, 130 19 S 40 22, 5 21 Z' fill='%2322211f' filter='url(%23r)'/%3E%3C/svg%3E");
  --washi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.13  0 0 0 0 0.13  0 0 0 0 0.13  1.02 0 0 0 -0.5525'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.32' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.13  0 0 0 0 0.13  0 0 0 0 0.13  0.1 0 0 0 -0.046'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  --display: 'Cormorant Garamond', 'Cormorant', 'EB Garamond', Garamond, 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'Palatino Linotype', Georgia, serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', system-ui, 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
  --mark: 'Sinbad Ruqaa', 'Aref Ruqaa', Georgia, serif;
  --gut: clamp(16px, 4vw, 40px);
    --print-fish: url(/brand/gyotaku-fish.svg);
  --print-whale: url(/brand/gyotaku-whale.svg);
  --seal: #b23a26; --on-seal: #f6f1e6;
  --rub: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.945  0 0 0 0 0.92  0 0 0 0 0.867  5 0 0 0 -3'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03 0.06' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.945  0 0 0 0 0.92  0 0 0 0 0.867  1.1 0 0 0 -0.52'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191816; --bg-2: #131210; --card: #22211f; --glass: #1f1e1b;
    --ink: #f1ebdd; --ink-2: rgba(241, 235, 221, 0.82); --ink-3: rgba(241, 235, 221, 0.58);
    --rule: rgba(241, 235, 221, 0.15); --rule-2: rgba(241, 235, 221, 0.4);
    --sea: #a6ae99; --aqua: #777e6d; --aqua-soft: rgba(166, 174, 153, 0.22); --on-ink: #191816;
    --code-bg: #131210; --code-ink: #f1ebdd; --code-dim: #8e8a80;
    --new: #a9b58f; --improved: #a6ae99; --fixed: #d2a65a; --err: #d9826f;
    --shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.9);
    --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 28' preserveAspectRatio='none'%3E%3Cfilter id='r' x='-2%25' y='-40%25' width='104%25' height='180%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035 0.5' numOctaves='2' seed='3' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='7' result='d'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 1.6' numOctaves='2' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  5 0 0 0 -1.35' result='dry'/%3E%3CfeComposite in='d' in2='dry' operator='in'/%3E%3C/filter%3E%3Cpath d='M3 12 C 30 5, 80 7, 150 9 S 262 7, 316 11 L 317 15 C 270 16, 200 21, 130 19 S 40 22, 5 21 Z' fill='%23f1ebdd' filter='url(%23r)'/%3E%3C/svg%3E");
    --washi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.95  0 0 0 0 0.95  0.6 0 0 0 -0.325'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.32' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.95  0 0 0 0 0.95  0.06 0 0 0 -0.0276'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
    --seal: #cf5a43; --on-seal: #191816;
    --rub: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.098  0 0 0 0 0.094  0 0 0 0 0.086  5 0 0 0 -3'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03 0.06' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.098  0 0 0 0 0.094  0 0 0 0 0.086  1.1 0 0 0 -0.52'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

.brand img, .kicker img, .portrait .whale { filter: brightness(0); }
@media (prefers-color-scheme: dark) { .brand img, .kicker img, .portrait .whale { filter: brightness(0) invert(0.93); } }
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { min-height: 100vh; font: 16px/1.65 var(--font); letter-spacing: 0; color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip; background-color: var(--bg); background-image: var(--washi); background-size: 320px 320px; }
a { color: var(--ink); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--line) solid var(--ink); outline-offset: 3px; border-radius: var(--r-1); }
::selection { background: var(--aqua-soft); }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: var(--r-1); text-decoration: none; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow { max-width: 860px; }

/* The top bar: glass over the sea, the mark, the sections, a way back into the app. */
.site-top { position: sticky; top: 0; z-index: 10; background-color: var(--bg); background-image: var(--washi); background-size: 320px 320px; border-bottom: var(--line) solid var(--ink); }
.site-top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand .mark { font: 700 28px/1 var(--mark); padding-top: 2px; }
.brand .maker { font-size: 12px; color: var(--ink-3); padding-top: 4px; }
.beta-tag { font: 600 10px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r-1); padding: 4px 6px 3px; align-self: center; }
.top-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.top-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: var(--r-1); }
.top-nav a:hover { color: var(--on-ink); background: var(--ink); }
.top-nav a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); border-radius: 0; }
.top-nav a[aria-current='page']:hover { color: var(--on-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--r-1); font: 600 14px var(--font); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; border: var(--line) solid var(--ink); transition: background 0.2s, color 0.2s; }
.btn.ink { background-color: var(--ink); background-image: var(--rub); color: var(--on-ink); }
.btn.ink:hover { background-color: color-mix(in srgb, var(--ink) 80%, var(--bg)); }
.btn.line { color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--on-ink); }

main { display: block; padding: 44px 0 72px; }
main.wide { padding-top: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; color: var(--ink); text-wrap: balance; }
.kicker { display: flex; align-items: center; gap: 12px; font: 500 11px/1.4 var(--font); letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.lede { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }

/* The documentation: pages to the left, the page, then where you are on it. */
.docs { display: grid; grid-template-columns: 232px minmax(0, 1fr) 200px; gap: 40px; align-items: start; }
.docs-nav { position: sticky; top: 88px; align-self: start; }
.docs-nav summary { font: 500 11px var(--font); letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-3); cursor: pointer; padding: 8px 0; list-style: none; }
.docs-nav summary::-webkit-details-marker { display: none; }
.docs-nav nav { display: flex; flex-direction: column; border-left: var(--line) solid var(--ink); }
.docs-nav a { color: var(--ink-2); text-decoration: none; padding: 7px 14px; font-size: 14.5px; border-left: 2px solid transparent; margin-left: -1px; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current='page'] { color: var(--ink); font-weight: 700; border-left-color: var(--ink); border-left-width: 4px; }
.toc { position: sticky; top: 88px; font-size: 13.5px; display: flex; flex-direction: column; gap: 2px; }
.toc h2 { font: 500 11px var(--font); letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.toc a { color: var(--ink-3); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--ink); }
.prose { min-width: 0; max-width: 74ch; background: transparent; border: 0; border-top: var(--rule-w) solid var(--ink); padding: clamp(18px, 3vw, 32px) 0 0; }
.prose > :first-child, .about .prose > :first-child { margin-top: 0; }
.prose h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 18px; }
.prose h2 { font-size: clamp(28px, 3vw, 34px); margin: 44px 0 12px; padding-top: 6px; }
.prose h3 { font-size: 24px; margin: 30px 0 8px; }
.prose h4 { font-size: 20px; margin: 22px 0 6px; }
.prose .anchor { margin-left: 8px; color: var(--ink-3); text-decoration: none; opacity: 0; font-weight: 400; }
.prose :is(h2, h3):hover .anchor, .prose .anchor:focus { opacity: 1; }
.prose p, .prose ul, .prose ol, .prose .table, .prose blockquote, .prose .code { margin: 14px 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; padding-left: 2px; }
.prose li::marker { color: var(--ink); }
.prose :not(pre) > code { font: 500 0.88em var(--mono); background: var(--aqua-soft); border-radius: var(--r-1); padding: 2px 6px; overflow-wrap: anywhere; }
.prose blockquote { border-left: 4px solid var(--ink); padding: 4px 0 4px 18px; color: var(--ink-2); font-size: 1.04em; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 30px 0; }
.code { position: relative; border-radius: var(--r-2); background: var(--code-bg); color: var(--code-ink); border: var(--line) solid var(--ink); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.6 var(--mono); tab-size: 2; max-width: 100%; }
.code code { font: inherit; background: none; padding: 0; white-space: pre; }
.code .copy { position: absolute; top: 8px; right: 8px; font: 500 12px var(--font); color: var(--code-ink); background: transparent; border: 1px solid var(--code-ink); border-radius: var(--r-1); padding: 5px 10px; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.code:hover .copy, .code .copy:focus-visible { opacity: 1; }
@media (hover: none) { .code .copy { opacity: 1; position: static; display: block; margin: 0 0 0 auto; border-radius: 0; width: 100%; } }
.table { overflow-x: auto; border-top: var(--rule-w) solid var(--ink); border-bottom: 1px solid var(--rule-2); background: transparent; }
.table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 10px 14px; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table th { font: 600 11px var(--font); letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink); background: transparent; white-space: nowrap; border-bottom: var(--line) solid var(--ink); }
.table tr:last-child td { border-bottom: 0; }
.table td code { white-space: nowrap; }
.doc-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-3); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: var(--line) solid var(--ink); border-radius: var(--r-1); text-decoration: none; color: var(--ink); font-weight: 600; background: transparent; }
.pager a:hover { background: var(--ink); color: var(--on-ink); }
.pager a:hover small { color: inherit; }
.pager a[rel='next'] { text-align: right; grid-column: 2; }
.pager small { font: 500 11px var(--font); letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); }

/* What's new. */
.page-head h1 { font-size: clamp(44px, 7vw, 84px); margin-bottom: 14px; }
.page-head .subs { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-1); border: var(--line) solid var(--rule-2); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14.5px; background: transparent; }
.chip small { font: 500 12px var(--font); color: var(--ink-3); }
.chip:hover { border-color: var(--ink); }
.chip[aria-current='true'] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip[aria-current='true'] small { color: inherit; opacity: 0.7; }
.entries { display: flex; flex-direction: column; gap: 14px; }
.entry { background: transparent; border: 0; border-top: var(--rule-w) solid var(--ink); border-radius: 0; padding: 22px 0 20px; }
.entry:target { background: var(--aqua-soft); }
.entry header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.entry time { font: 500 12.5px var(--font); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.entry h2 { font-size: 30px; margin-bottom: 8px; }
.entry h2 a { color: inherit; text-decoration: none; }
.entry h2 a:hover { text-decoration: underline; }
.entry p { color: var(--ink-2); margin: 8px 0; max-width: 68ch; }
.pill { font: 600 10.5px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--r-1); border: 1px solid currentColor; }
.pill.new { color: var(--new); } .pill.improved { color: var(--improved); } .pill.fixed { color: var(--fixed); }
.empty { color: var(--ink-3); padding: 24px 0; }

/* About Tidal AI: calm, wide, a few big words. */
.about-hero { padding: clamp(48px, 9vw, 112px) 0 clamp(36px, 6vw, 72px); border-bottom: var(--rule-w) solid var(--ink); }
.about-hero .kicker img { height: 21px; width: auto; }
.about-hero h1 { font-size: clamp(48px, 8.6vw, 112px); letter-spacing: -0.02em; line-height: 1; max-width: 12ch; margin-bottom: 24px; }
.about-hero .lede { font-size: clamp(19px, 2.6vw, 26px); max-width: 38ch; color: var(--ink-2); }
.about-hero .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.about-sec { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--rule-2); }
.about-sec .n { font: 500 30px/1 var(--display); font-variant-numeric: lining-nums; color: var(--ink); padding-top: 4px; }
.about-sec h2 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 16px; }
.about-sec .prose { background: none; border: 0; padding: 0; max-width: 62ch; font-size: 17.5px; }
.about-sec .prose p { color: var(--ink-2); }
.about-sec.mission .prose > p:first-child { font: 600 clamp(32px, 4.8vw, 58px)/1.05 var(--display); letter-spacing: -0.02em; color: var(--ink); max-width: 18ch; }
.about-sec .prose ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.about-sec .prose ul li { padding: 16px 0; border-top: 1px solid var(--rule-2); color: var(--ink-2); margin: 0; }
.about-sec .prose ul li strong { display: block; color: var(--ink); font: 600 24px var(--display); margin-bottom: 4px; }
.about-sec > div > p { color: var(--ink-2); max-width: 62ch; font-size: 17.5px; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); gap: 22px; margin-top: 26px; }
.person { margin: 0; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--r-2); overflow: hidden; background-color: var(--bg-2); border: var(--line) solid var(--ink); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: var(--ink-3); font: 500 11px var(--font); letter-spacing: 0.17em; text-transform: uppercase; }
.portrait img:not(.whale) { width: 100%; height: 100%; object-fit: cover; }
.portrait .whale { width: 96px; opacity: 0.8; }
.person figcaption { padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.person figcaption b { font: 600 24px var(--display); }
.person figcaption span { color: var(--ink-3); font-size: 14.5px; }
.person figcaption p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

.site-foot { border-top: var(--rule-w) solid var(--ink); background: transparent; padding: 40px 0 48px; font-size: 14.5px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.site-foot nav { display: flex; flex-direction: column; gap: 8px; }
.site-foot h2 { font: 500 11px var(--font); letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.site-foot nav a { color: var(--ink-2); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand p { color: var(--ink-3); margin-top: 12px; max-width: 38ch; font-size: 13.5px; }
.site-foot .company { grid-column: 1 / -1; color: var(--ink-3); font-size: 12.5px; padding-top: 18px; border-top: 1px solid var(--rule); }
.site-foot .company:empty { display: none; }

@media (max-width: 1080px) {
  .docs { grid-template-columns: 220px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 820px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .docs-nav { position: static; border: var(--line) solid var(--ink); border-radius: var(--r-1); background: transparent; padding: 0 14px; }
  .docs-nav:not([open]) summary::after { content: ' +'; }
  .docs-nav[open] summary::after { content: ' \2212'; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .site-top .wrap { flex-wrap: wrap; gap: 6px 12px; min-height: 0; }
  .top-nav { order: 3; width: 100%; margin-left: -10px; }
  .site-top .btn { margin-left: auto; }
  .brand .maker { display: none; }
  main { padding-top: 24px; }
  .about-sec { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .about-sec .n { padding-top: 0; }
  .pager { grid-template-columns: 1fr; }
  .pager a[rel='next'] { grid-column: 1; text-align: left; }
  .table td, .table th { padding: 9px 11px; }
  .site-foot .wrap { grid-template-columns: 1fr; }
}
@media print {
  .site-top, .site-foot, .docs-nav, .toc, .pager, .code .copy, .skip { display: none; }
  body { background: none; color: CanvasText; }
  .prose { border: 0; background: none; padding: 0; max-width: none; }
  .code { background: none; color: CanvasText; border-color: CanvasText; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.brand .mark.tidal { font: 700 26px/1 var(--display); letter-spacing: -0.01em; padding-top: 0; }

/* The gallery: cards of work made with Sinbad, and one piece running in a frame that reaches nothing of Sinbad's. */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; margin: 8px 0 30px; }
.g-card { display: flex; flex-direction: column; background: transparent; border: 0; transition: transform .2s ease; }
.g-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; text-decoration: none; background-color: var(--card); background-image: var(--washi); background-size: 320px 320px; border: var(--line) solid var(--ink); color: var(--ink); }
.g-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-glyph { position: absolute; left: 14px; bottom: 12px; font: 600 clamp(24px, 3vw, 32px)/1 var(--display); letter-spacing: -0.01em; }
.g-thumb img + .g-glyph { background: var(--ink); color: var(--on-ink); padding: 4px 10px; border-radius: 0; font: 600 11px var(--font); letter-spacing: 0.14em; text-transform: uppercase; left: 0; bottom: 0; }
.g-body { padding: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.g-body h3 { font-size: 24px; line-height: 1.15; }
.g-body h3 a { color: var(--ink); text-decoration: none; }
.g-body h3 a:hover { text-decoration: underline; }
.g-badge { align-self: flex-start; font: 500 10.5px/1.5 var(--font); letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-2); }
.g-badge.sinbad { color: var(--ink); font-weight: 600; }
.g-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); font: 500 12.5px var(--font); }
.g-likes { display: inline-flex; align-items: center; gap: 4px; }
.g-empty { display: grid; gap: 10px; justify-items: start; padding: 22px clamp(18px, 3vw, 28px); border: var(--line) solid var(--ink); border-radius: var(--r-2); background: transparent; color: var(--ink-2); max-width: 720px; }
.g-empty b { color: var(--ink); font-size: 18px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.gpiece .page-head h1 { font-size: clamp(30px, 5vw, 48px); }
.g-stage { position: relative; border: var(--line) solid var(--ink); border-radius: var(--r-2); overflow: hidden; background: var(--code-bg); margin: 6px 0 18px; }
.g-stage.app { height: clamp(420px, 72vh, 760px); }
.g-stage.tall { height: clamp(480px, 80vh, 900px); }
.g-stage.wide { aspect-ratio: 16 / 9; max-height: 80vh; }
.g-stage.media { height: clamp(360px, 62vh, 700px); }
.g-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--card); }
.g-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 18px; }
.g-like svg { color: var(--ink-3); } .g-like.on svg { color: var(--err); } .g-like.on { border-color: var(--err); }
.g-count { color: var(--ink-3); font-size: 14px; }
.btn[hidden] { display: none; }
.g-copy { align-self: flex-start; min-height: 34px; padding: 0 14px; font-size: 13px; margin-top: 6px; }
.g-demand { margin: 8px 0 18px; padding: 16px 20px; border-left: 4px solid var(--ink); background: transparent; }
.g-demand figcaption { font: 500 11px var(--font); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.g-demand blockquote { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); max-width: 72ch; }
.g-note, .g-signin { color: var(--ink-3); font-size: 14px; margin: 8px 0; }
.g-facts { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 12px 0 20px; }
.g-facts dt { font: 500 11px var(--font); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.g-facts dd { margin: 2px 0 0; font-weight: 600; }
.g-report { margin: 18px 0; border: 1px solid var(--rule-2); border-radius: var(--r-2); padding: 0 16px; background: transparent; }
.g-report summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.g-report form { display: grid; gap: 8px; padding-bottom: 10px; }
.g-report textarea { font: inherit; padding: 10px 12px; border-radius: var(--r-1); border: var(--line) solid var(--rule-2); background: transparent; color: var(--ink); resize: vertical; }
@media (max-width: 640px) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .g-body { padding: 10px 12px 12px; } .g-body h3 { font-size: 15.5px; } .g-stage.app { height: 70vh; } }
@media (max-width: 400px) { .g-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .g-card { transition: none; } .g-card:hover, .g-card:focus-within { transform: none; } }
