Textley / website / assets / site.css
| 1 | /* Textley site. The page reads like a document open in the editor: |
| 2 | Markdown marks on headings, a real working window up top, a status bar at the foot. |
| 3 | Built on the app icon's ink indigo and lilac. */ |
| 4 | |
| 5 | @font-face { |
| 6 | font-family: "Bricolage Grotesque"; |
| 7 | src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); |
| 8 | font-weight: 200 800; |
| 9 | font-display: swap; |
| 10 | } |
| 11 | @font-face { |
| 12 | font-family: "Geist"; |
| 13 | src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2"); |
| 14 | font-weight: 100 900; |
| 15 | font-display: swap; |
| 16 | } |
| 17 | @font-face { |
| 18 | font-family: "Geist Mono"; |
| 19 | src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); |
| 20 | font-weight: 100 900; |
| 21 | font-display: swap; |
| 22 | } |
| 23 | |
| 24 | :root { |
| 25 | color-scheme: dark; |
| 26 | --bg: #100e1f; |
| 27 | --bg-2: #161429; |
| 28 | --surface: #1c1934; |
| 29 | --surface-2: #252142; |
| 30 | --line: #2e2950; |
| 31 | --line-2: #433c6b; |
| 32 | --ink: #f4f1ff; |
| 33 | --ink-2: #c7c0e0; |
| 34 | --muted: #9189b3; |
| 35 | --accent: #c6b2fa; |
| 36 | --accent-strong: #a78bfa; |
| 37 | --accent-ink: #1b1534; |
| 38 | --ok: #7fe0b5; |
| 39 | --warn: #ffb98a; |
| 40 | --display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif; |
| 41 | --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif; |
| 42 | --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; |
| 43 | /* Aliases the shared apps block and older pages expect. */ |
| 44 | --background: var(--bg); |
| 45 | --system: var(--sans); |
| 46 | } |
| 47 | |
| 48 | * { box-sizing: border-box; } |
| 49 | html { scroll-behavior: smooth; scroll-padding-top: 88px; } |
| 50 | body { |
| 51 | margin: 0; |
| 52 | min-width: 320px; |
| 53 | background: var(--bg); |
| 54 | color: var(--ink); |
| 55 | font: 16px/1.65 var(--sans); |
| 56 | -webkit-font-smoothing: antialiased; |
| 57 | overflow-x: clip; |
| 58 | } |
| 59 | h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; } |
| 60 | img, svg { max-width: 100%; } |
| 61 | a { color: var(--accent); text-underline-offset: .22em; } |
| 62 | a:hover { color: var(--ink); } |
| 63 | button { font: inherit; color: inherit; } |
| 64 | :where(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; } |
| 65 | code, kbd { font-family: var(--mono); font-size: .88em; } |
| 66 | code { padding: .12em .38em; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; } |
| 67 | kbd { padding: .1em .45em; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface); color: var(--ink); white-space: nowrap; } |
| 68 | |
| 69 | .shell { width: min(1160px, 100% - 48px); margin-inline: auto; } |
| 70 | .skip { position: fixed; z-index: 100; inset: 8px auto auto 8px; padding: 8px 16px; background: var(--surface-2); color: var(--ink); border-radius: 8px; transform: translateY(-200%); } |
| 71 | .skip:focus { transform: none; } |
| 72 | |
| 73 | /* Header */ |
| 74 | .site-header { |
| 75 | position: sticky; top: 0; z-index: 50; |
| 76 | background: color-mix(in srgb, var(--bg) 82%, transparent); |
| 77 | -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); |
| 78 | border-bottom: 1px solid var(--line); |
| 79 | } |
| 80 | .nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; } |
| 81 | .wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.3rem/1 var(--display); letter-spacing: -.035em; } |
| 82 | .wordmark img { width: 30px; height: 30px; border-radius: 8px; display: block; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 28%, transparent); } |
| 83 | .nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); } |
| 84 | .nav nav a { color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; transition: color .15s; } |
| 85 | .nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--accent); } |
| 86 | .nav nav a.nav-cta { padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); color: var(--ink); } |
| 87 | .nav nav a.nav-cta:hover { border-color: var(--accent); color: var(--ink); } |
| 88 | |
| 89 | /* Buttons */ |
| 90 | .button { |
| 91 | display: inline-flex; align-items: center; justify-content: center; gap: 9px; |
| 92 | min-height: 46px; padding: 10px 20px; |
| 93 | border: 1px solid transparent; border-radius: 999px; |
| 94 | background: var(--accent); color: var(--accent-ink); |
| 95 | font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer; |
| 96 | transition: background .15s, border-color .15s, transform .15s; |
| 97 | } |
| 98 | .button:hover { background: #ddd0ff; color: var(--accent-ink); } |
| 99 | .button.secondary { background: transparent; color: var(--ink); border-color: var(--line-2); } |
| 100 | .button.secondary:hover { background: var(--surface); border-color: var(--accent); color: var(--ink); } |
| 101 | .button svg { flex-shrink: 0; } |
| 102 | |
| 103 | /* Markdown-mark eyebrows and headings */ |
| 104 | .mark { display: block; margin-bottom: 18px; font: 500 .8rem/1.4 var(--mono); letter-spacing: .02em; color: var(--accent); } |
| 105 | .mark::before { content: "## "; color: var(--muted); } |
| 106 | h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; } |
| 107 | h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); } |
| 108 | h2 em, h1 em { font-style: normal; color: var(--accent); } |
| 109 | .lead { margin-top: 20px; max-width: 58ch; font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; } |
| 110 | .section { padding-block: clamp(72px, 10vw, 128px); } |
| 111 | .section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); } |
| 112 | .band { background: var(--bg-2); border-block: 1px solid var(--line); } |
| 113 | |
| 114 | /* Hero */ |
| 115 | .hero { position: relative; padding-block: clamp(56px, 8vw, 96px) 0; text-align: center; } |
| 116 | .hero::before { |
| 117 | content: ""; position: absolute; inset: 0 0 auto; height: 760px; z-index: -1; pointer-events: none; |
| 118 | background: |
| 119 | radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--accent-strong) 26%, transparent), transparent 70%), |
| 120 | repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in srgb, var(--accent) 5%, transparent) 31px 32px); |
| 121 | -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); |
| 122 | mask-image: linear-gradient(to bottom, #000 40%, transparent); |
| 123 | } |
| 124 | .pill { |
| 125 | display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; padding: 6px 14px; |
| 126 | border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); |
| 127 | font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); |
| 128 | } |
| 129 | .pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); } |
| 130 | .hero h1 { font-size: clamp(2.9rem, 8.4vw, 6.4rem); max-width: 12ch; margin-inline: auto; } |
| 131 | .caret { display: inline-block; width: .09em; height: .82em; margin-left: .06em; vertical-align: -.06em; background: var(--accent); animation: blink 1.1s steps(1) infinite; } |
| 132 | @keyframes blink { 50% { opacity: 0; } } |
| 133 | .hero .lead { margin-inline: auto; max-width: 56ch; font-size: clamp(1.05rem, 1.7vw, 1.25rem); } |
| 134 | .hero .lead strong { color: var(--ink); font-weight: 600; } |
| 135 | .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; } |
| 136 | .fineprint { margin-top: 18px; font: .78rem/1.5 var(--mono); color: var(--muted); } |
| 137 | |
| 138 | /* The working window */ |
| 139 | .stage { position: relative; margin-top: clamp(40px, 6vw, 68px); } |
| 140 | .stage::before { |
| 141 | content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 40px; |
| 142 | background: color-mix(in srgb, var(--accent-strong) 30%, transparent); filter: blur(80px); |
| 143 | } |
| 144 | .win { |
| 145 | --w-bg: #1e1e1e; --w-side: #282828; --w-bar: #2a2a2a; --w-line: #3b3b3b; --w-text: #ececec; --w-dim: #9a9a9a; |
| 146 | --w-sel: #2f3d5e; --w-seg: #3a3a3a; --w-seg-on: #5c5c5c; --w-hover: #343434; |
| 147 | --k: #bf5af2; --s: #ff6961; --n: #4aa3ff; --p: #5fd2e6; |
| 148 | text-align: left; color: var(--w-text); background: var(--w-bg); |
| 149 | border: 1px solid var(--w-line); border-radius: 12px; overflow: hidden; |
| 150 | box-shadow: 0 0 0 1px #0006, 0 40px 90px -20px #05030fcc; |
| 151 | font: 13px/1.5 -apple-system, BlinkMacSystemFont, var(--sans); |
| 152 | } |
| 153 | .win[data-appearance="light"] { |
| 154 | --w-bg: #ffffff; --w-side: #ececec; --w-bar: #f4f4f4; --w-line: #d6d6d6; --w-text: #1d1d1f; --w-dim: #77777c; |
| 155 | --w-sel: #cfdcf7; --w-seg: #e2e2e2; --w-seg-on: #ffffff; --w-hover: #e0e0e0; |
| 156 | --k: #a033d3; --s: #d6362b; --n: #0a6fe0; --p: #1f8fa6; |
| 157 | } |
| 158 | .win button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; } |
| 159 | .win-title { display: flex; align-items: center; gap: 8px; height: 34px; padding-inline: 12px; background: var(--w-bar); color: var(--w-dim); font-weight: 600; } |
| 160 | .lights { display: flex; gap: 7px; margin-right: 6px; } |
| 161 | .lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } |
| 162 | .lights i:nth-child(2) { background: #febc2e; } |
| 163 | .lights i:nth-child(3) { background: #28c840; } |
| 164 | .win-tools { display: flex; align-items: center; gap: 14px; height: 40px; padding-inline: 12px; background: var(--w-bar); border-block: 1px solid var(--w-line); color: var(--w-dim); } |
| 165 | .win-tools .grow { flex: 1; } |
| 166 | .seg { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--w-seg); } |
| 167 | .win .seg button { padding: 3px 14px; border-radius: 999px; color: var(--w-text); text-align: center; } |
| 168 | .win .seg button[aria-pressed="true"] { background: var(--w-seg-on); box-shadow: 0 1px 2px #0003; } |
| 169 | .win-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 430px; } |
| 170 | .win-side { background: var(--w-side); border-right: 1px solid var(--w-line); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; } |
| 171 | .side-label { padding: 6px 6px 4px; font-size: 11px; font-weight: 600; color: var(--w-dim); } |
| 172 | .side-label + .side-label, .win-side .side-label:not(:first-child) { margin-top: 10px; } |
| 173 | .win .row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; border-radius: 6px; color: var(--w-text); } |
| 174 | .win button.row { border-radius: 999px; } |
| 175 | .win button.row:hover { background: var(--w-hover); } |
| 176 | .row svg { flex-shrink: 0; color: var(--w-dim); } |
| 177 | .row .x { margin-left: auto; color: var(--w-dim); font-size: 12px; } |
| 178 | .row.folder { color: var(--w-text); } |
| 179 | .row.nested { padding-left: 30px; } |
| 180 | .win[data-file="log"] .row.tab[data-open="log"], |
| 181 | .win[data-file="swift"] .row.tab[data-open="swift"], |
| 182 | .win[data-file="map"] .row.tab[data-open="map"] { background: var(--w-sel); } |
| 183 | .win-main { display: flex; flex-direction: column; min-width: 0; } |
| 184 | .pane { flex: 1; min-width: 0; display: none; } |
| 185 | .win[data-file="log"][data-view="source"] .pane-log-source, |
| 186 | .win[data-file="log"][data-view="preview"] .pane-log-preview, |
| 187 | .win[data-file="swift"] .pane-swift, |
| 188 | .win[data-file="map"] .pane-map { display: block; } |
| 189 | .win:not([data-file="log"]) .only-log, |
| 190 | .win:not([data-file="swift"]) .only-swift, |
| 191 | .win:not([data-file="map"]) .only-map, |
| 192 | .win[data-file="map"] .not-map, |
| 193 | .win:not([data-view="source"]) .only-source, |
| 194 | .win:not([data-view="preview"]) .only-preview { display: none; } |
| 195 | .code { list-style: none; padding: 14px 0; counter-reset: ln; font: 13px/1.75 var(--mono); } |
| 196 | .code li { counter-increment: ln; display: grid; grid-template-columns: 52px minmax(0, 1fr); white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.75em; } |
| 197 | .code li::before { content: counter(ln); padding-right: 16px; text-align: right; color: var(--w-dim); opacity: .7; -webkit-user-select: none; user-select: none; } |
| 198 | .code li.current { background: color-mix(in srgb, var(--w-text) 5%, transparent); } |
| 199 | .k { color: var(--k); } .s { color: var(--s); } .n { color: var(--n); } .p { color: var(--p); } .c { color: var(--w-dim); } |
| 200 | .rendered { padding: 26px 30px; font: 15px/1.6 -apple-system, BlinkMacSystemFont, var(--sans); } |
| 201 | .rendered .h1 { font: 700 30px/1.2 -apple-system, BlinkMacSystemFont, var(--sans); letter-spacing: -.01em; margin-bottom: 16px; } |
| 202 | .rendered .h2 { font: 700 22px/1.3 -apple-system, BlinkMacSystemFont, var(--sans); margin-bottom: 14px; } |
| 203 | .rendered p { margin-bottom: 12px; } |
| 204 | .rendered ul { margin: 0 0 12px; padding-left: 40px; display: grid; gap: 10px; } |
| 205 | .pane-map { background-image: linear-gradient(45deg, color-mix(in srgb, var(--w-text) 4%, transparent) 25%, transparent 25% 75%, color-mix(in srgb, var(--w-text) 4%, transparent) 75%), linear-gradient(45deg, color-mix(in srgb, var(--w-text) 4%, transparent) 25%, transparent 25% 75%, color-mix(in srgb, var(--w-text) 4%, transparent) 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; } |
| 206 | .pane-map img { display: block; width: min(560px, 100% - 48px); height: auto; margin: 28px auto; border-radius: 4px; box-shadow: 0 8px 30px #0005; } |
| 207 | .win-status { display: flex; align-items: center; gap: 18px; height: 28px; padding-inline: 12px; border-top: 1px solid var(--w-line); font-size: 11.5px; color: var(--w-text); } |
| 208 | .win-status .grow { flex: 1; } |
| 209 | .win-status .dd::after { content: "⌄"; margin-left: 4px; position: relative; top: -2px; font-size: 10px; } |
| 210 | .stage-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; margin-top: 20px; font-size: .88rem; color: var(--muted); } |
| 211 | .chooser { display: inline-flex; align-items: center; gap: 8px; } |
| 212 | .chooser .opts { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); } |
| 213 | .chooser button { padding: 4px 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: .82rem; font-weight: 500; cursor: pointer; } |
| 214 | .chooser button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); } |
| 215 | |
| 216 | /* Facts */ |
| 217 | .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 88px); border-block: 1px solid var(--line); } |
| 218 | .facts div { padding: 28px 24px 28px 0; } |
| 219 | .facts div + div { padding-left: 24px; border-left: 1px solid var(--line); } |
| 220 | .facts dt { font: 700 clamp(2.2rem, 4vw, 3rem)/1 var(--display); letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; } |
| 221 | .facts dd { margin-top: 10px; font-size: .92rem; line-height: 1.45; color: var(--ink-2); } |
| 222 | |
| 223 | /* Editor features */ |
| 224 | .bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } |
| 225 | .card { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); min-width: 0; } |
| 226 | .card.wide { grid-column: span 3; } |
| 227 | .card h3 { font: 650 1.18rem/1.25 var(--sans); letter-spacing: -.015em; } |
| 228 | .card p { color: var(--ink-2); font-size: .96rem; line-height: 1.55; } |
| 229 | .card .visual { margin-top: auto; padding-top: 16px; } |
| 230 | .mini { border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); font: 12.5px/1.5 var(--mono); overflow: hidden; } |
| 231 | .mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-width: 0; } |
| 232 | .mini-row + .mini-row { border-top: 1px solid var(--line); } |
| 233 | .mini-row .lbl { width: 62px; flex-shrink: 0; color: var(--muted); } |
| 234 | .mini-row .val { min-width: 0; overflow-wrap: anywhere; color: var(--ink); } |
| 235 | .mini-row .val b { font-weight: 500; color: var(--accent); } |
| 236 | .mini-row .end { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; color: var(--muted); } |
| 237 | .tog { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; } |
| 238 | .tog.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } |
| 239 | .mini-row mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); border-radius: 3px; padding: 0 2px; } |
| 240 | .chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; } |
| 241 | .chips li { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font: 12.5px/1.5 var(--mono); color: var(--ink-2); } |
| 242 | .tabs-demo { display: grid; gap: 4px; padding: 8px; } |
| 243 | .tabs-demo span { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; color: var(--ink-2); } |
| 244 | .tabs-demo span.on { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); } |
| 245 | .tabs-demo .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); } |
| 246 | .tabs-demo small { margin-left: auto; font-size: 11px; color: var(--muted); } |
| 247 | |
| 248 | /* Markdown */ |
| 249 | .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; } |
| 250 | .ticks { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; } |
| 251 | .ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--ink-2); } |
| 252 | .ticks li::before { content: "-"; font-family: var(--mono); color: var(--accent); text-align: center; } |
| 253 | .ticks strong { color: var(--ink); font-weight: 600; } |
| 254 | .shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 30px 70px -20px #05030fcc; } |
| 255 | .shot figcaption { margin-top: 14px; font: .78rem/1.5 var(--mono); color: var(--muted); text-align: center; } |
| 256 | |
| 257 | /* Agents */ |
| 258 | .agent { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; } |
| 259 | .clients { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; } |
| 260 | .clients a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 550; transition: border-color .15s; } |
| 261 | .clients a:hover { border-color: var(--accent); } |
| 262 | .clients a span { color: var(--accent); } |
| 263 | .agent .actions { justify-content: flex-start; } |
| 264 | .session { border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg); overflow: hidden; } |
| 265 | .session-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: .85rem; color: var(--ink-2); } |
| 266 | .session-body { display: grid; gap: 14px; padding: 20px; } |
| 267 | .say { max-width: 46ch; padding: 12px 16px; border-radius: 14px; font-size: .95rem; line-height: 1.5; } |
| 268 | .say.you { justify-self: end; background: var(--surface-2); border-bottom-right-radius: 4px; } |
| 269 | .say.agent-says { background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-bottom-left-radius: 4px; } |
| 270 | .calls { list-style: none; padding: 0; display: grid; gap: 8px; font: 12.5px/1.5 var(--mono); } |
| 271 | .calls li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); } |
| 272 | .calls li::before { content: "✓"; color: var(--ok); } |
| 273 | .calls li.blocked { border-color: color-mix(in srgb, var(--warn) 45%, transparent); } |
| 274 | .calls li.blocked::before { content: "×"; color: var(--warn); } |
| 275 | .calls b { font-weight: 600; color: var(--ink); } |
| 276 | .calls span { display: block; color: var(--muted); overflow-wrap: anywhere; } |
| 277 | .calls li.blocked span { color: var(--warn); } |
| 278 | .session:not([data-mode="write"]) .only-write, |
| 279 | .session:not([data-mode="read"]) .only-read { display: none; } |
| 280 | |
| 281 | /* Privacy trio */ |
| 282 | .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); } |
| 283 | .trio h3 { font: 650 1.1rem/1.3 var(--sans); margin-bottom: 8px; } |
| 284 | .trio h3::before { content: "- [x] "; font: 500 .85rem var(--mono); color: var(--accent); } |
| 285 | .trio p { color: var(--ink-2); font-size: .96rem; } |
| 286 | |
| 287 | /* Closing */ |
| 288 | .closing { text-align: center; } |
| 289 | .closing h2 { max-width: 16ch; margin-inline: auto; } |
| 290 | .closing .lead { margin-inline: auto; } |
| 291 | |
| 292 | /* Footer, with the app's status bar underneath */ |
| 293 | .footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; } |
| 294 | .footer-credit { padding-block: 0 24px; font: .75rem/1.4 var(--mono, ui-monospace, monospace); color: var(--muted); } |
| 295 | .footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; } |
| 296 | .footer a { color: var(--ink-2); text-decoration: none; } |
| 297 | .footer a:hover { color: var(--accent); } |
| 298 | .footer a.product-credit { |
| 299 | display: inline-flex; |
| 300 | align-items: center; |
| 301 | flex-shrink: 0; |
| 302 | gap: 9px; |
| 303 | padding: 6px 16px 6px 6px; |
| 304 | border: 1px solid rgba(245, 128, 37, .3); |
| 305 | border-radius: 999px; |
| 306 | background: #000; |
| 307 | color: #fff; |
| 308 | font: 600 13.5px/1.4 var(--sans); |
| 309 | white-space: nowrap; |
| 310 | box-shadow: 0 4px 14px rgba(0, 0, 0, .28); |
| 311 | transition: transform .15s, border-color .15s, box-shadow .15s; |
| 312 | } |
| 313 | .footer a.product-credit:hover { color: #fff; transform: translateY(-1px); border-color: rgba(245, 128, 37, .65); box-shadow: 0 0 18px rgba(245, 128, 37, .22); } |
| 314 | .product-credit img { display: block; flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; object-fit: contain; } |
| 315 | .statusbar { border-top: 1px solid var(--line); background: var(--bg-2); font: .72rem/1 var(--mono); color: var(--muted); } |
| 316 | .statusbar .shell { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block: 10px; } |
| 317 | .statusbar .grow { flex: 1; } |
| 318 | |
| 319 | /* Inner pages */ |
| 320 | .page-head { position: relative; padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px); } |
| 321 | .page-head::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; pointer-events: none; background: radial-gradient(50% 90% at 20% 0%, color-mix(in srgb, var(--accent-strong) 18%, transparent), transparent 70%); } |
| 322 | .page-head h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); max-width: 16ch; } |
| 323 | .page-head .lead { max-width: 62ch; } |
| 324 | .doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-bottom: clamp(64px, 9vw, 112px); align-items: start; } |
| 325 | .doc.single { grid-template-columns: minmax(0, 760px); } |
| 326 | .toc { position: sticky; top: 96px; display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); } |
| 327 | .toc strong { padding: 4px 10px 8px; font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } |
| 328 | .toc a { padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .92rem; } |
| 329 | .toc a:hover { background: var(--surface-2); color: var(--ink); } |
| 330 | .prose { display: grid; gap: 20px; min-width: 0; } |
| 331 | .prose > section { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); min-width: 0; } |
| 332 | .prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; } |
| 333 | .prose h2::before { content: "## "; font: 500 .6em var(--mono); letter-spacing: 0; color: var(--muted); vertical-align: .12em; } |
| 334 | .prose p, .prose li { color: var(--ink-2); max-width: 70ch; } |
| 335 | .prose strong { color: var(--ink); font-weight: 600; } |
| 336 | .prose ol { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: step; } |
| 337 | .prose ol li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; } |
| 338 | .prose ol li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); font: 500 .8rem var(--mono); color: var(--accent); } |
| 339 | .prose ol li > span { padding-top: 2px; min-width: 0; } |
| 340 | .prose .links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; } |
| 341 | .prose .button { justify-self: start; } |
| 342 | .note { padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--ink-2); } |
| 343 | .prompt { padding: 14px 18px; border-left: 2px solid var(--accent); background: var(--bg); border-radius: 0 10px 10px 0; font: .9rem/1.6 var(--mono); color: var(--ink); } |
| 344 | |
| 345 | @media (max-width: 960px) { |
| 346 | .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| 347 | .card, .card.wide { grid-column: span 1; } |
| 348 | .split, .agent { grid-template-columns: minmax(0, 1fr); } |
| 349 | .doc { grid-template-columns: minmax(0, 1fr); } |
| 350 | .toc { position: static; display: flex; flex-wrap: wrap; align-items: center; } |
| 351 | .toc strong { padding: 4px 10px; } |
| 352 | } |
| 353 | @media (max-width: 720px) { |
| 354 | .shell { width: calc(100% - 32px); } |
| 355 | .nav nav a.nav-hide { display: none; } |
| 356 | .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| 357 | .facts div { padding: 22px 16px 22px 0; } |
| 358 | .facts div + div { padding-left: 16px; } |
| 359 | .facts div:nth-child(3) { padding-left: 0; border-left: 0; } |
| 360 | .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); } |
| 361 | .bento { grid-template-columns: minmax(0, 1fr); } |
| 362 | .trio { grid-template-columns: minmax(0, 1fr); } |
| 363 | .win-body { grid-template-columns: minmax(0, 1fr); min-height: 0; } |
| 364 | .win-side { flex-direction: row; gap: 6px; padding: 8px; border-right: 0; border-bottom: 1px solid var(--w-line); overflow-x: auto; } |
| 365 | .win-side .side-label, .win-side .row.folder, .win-side .row.nested { display: none; } |
| 366 | .win .row.tab { width: auto; white-space: nowrap; } |
| 367 | .pane { min-height: 320px; } |
| 368 | .code li { grid-template-columns: 40px minmax(0, 1fr); } |
| 369 | .rendered { padding: 20px; } |
| 370 | .win-tools .tool-icons { display: none; } |
| 371 | .win-status { gap: 12px; } |
| 372 | } |
| 373 | @media (max-width: 420px) { |
| 374 | .nav nav a.nav-hide-sm { display: none; } |
| 375 | .win-status .only-wide { display: none; } |
| 376 | } |
| 377 | @media (prefers-reduced-motion: reduce) { |
| 378 | html { scroll-behavior: auto; } |
| 379 | .caret { animation: none; } |
| 380 | * { transition: none !important; } |
| 381 | } |
| 382 | |
| 383 | /* Studio credit and sibling apps. Shared across our sites; this site supplies type and palette. */ |
| 384 | .atom-family-block { |
| 385 | --family-text: var(--ink); |
| 386 | --family-muted: var(--muted); |
| 387 | --family-link: var(--accent); |
| 388 | --family-rule: var(--line); |
| 389 | --family-heading: var(--display); |
| 390 | color: var(--family-text); |
| 391 | text-align: left; |
| 392 | padding-block: clamp(28px, 4vw, 54px); |
| 393 | } |
| 394 | .atom-family-block .family-inner { |
| 395 | display: grid; |
| 396 | grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); |
| 397 | gap: clamp(22px, 4vw, 56px); |
| 398 | padding-block-start: clamp(22px, 3vw, 34px); |
| 399 | border-block-start: 1px solid var(--family-rule); |
| 400 | } |
| 401 | .atom-family-block .family-title { |
| 402 | margin: 0 0 10px; |
| 403 | font-family: var(--family-heading, inherit); |
| 404 | font-size: clamp(21px, 2.1vw, 29px); |
| 405 | font-weight: 650; |
| 406 | line-height: 1.16; |
| 407 | letter-spacing: -.025em; |
| 408 | } |
| 409 | .atom-family-block .family-about p { |
| 410 | max-width: 32ch; |
| 411 | margin: 0 0 12px; |
| 412 | color: var(--family-muted); |
| 413 | font-size: .875rem; |
| 414 | line-height: 1.5; |
| 415 | } |
| 416 | .atom-family-block .family-hub { |
| 417 | display: inline-flex; |
| 418 | align-items: center; |
| 419 | gap: 6px; |
| 420 | color: var(--family-link); |
| 421 | padding-block: 5px; |
| 422 | text-decoration: underline; |
| 423 | text-underline-offset: 3px; |
| 424 | font-size: .875rem; |
| 425 | font-weight: 650; |
| 426 | } |
| 427 | .atom-family-block .family-apps { |
| 428 | display: grid; |
| 429 | grid-template-columns: repeat(2, minmax(0, 1fr)); |
| 430 | align-content: start; |
| 431 | gap: 4px 18px; |
| 432 | margin: 0; |
| 433 | padding: 0; |
| 434 | list-style: none; |
| 435 | } |
| 436 | .atom-family-block .family-entry { |
| 437 | display: grid; |
| 438 | grid-template-columns: 34px minmax(0, 1fr) auto; |
| 439 | align-items: center; |
| 440 | gap: 9px; |
| 441 | height: 100%; |
| 442 | min-height: 60px; |
| 443 | padding: 7px 5px; |
| 444 | color: inherit; |
| 445 | text-decoration: none; |
| 446 | } |
| 447 | .atom-family-block .family-entry img { |
| 448 | display: block; |
| 449 | width: 34px; |
| 450 | height: 34px; |
| 451 | object-fit: contain; |
| 452 | border-radius: 8px; |
| 453 | } |
| 454 | .atom-family-block .family-entry strong, |
| 455 | .atom-family-block .family-detail { display: block; } |
| 456 | .atom-family-block .family-entry strong { font-size: .875rem; line-height: 1.25; } |
| 457 | .atom-family-block .family-detail { |
| 458 | margin-block-start: 3px; |
| 459 | color: var(--family-muted); |
| 460 | font-size: .8125rem; |
| 461 | line-height: 1.35; |
| 462 | } |
| 463 | .atom-family-block .family-arrow { color: var(--family-link); font-size: .875rem; } |
| 464 | .atom-family-block a.family-entry:is(:hover, :focus-visible) { |
| 465 | background: color-mix(in srgb, currentColor 5%, transparent); |
| 466 | border-radius: 8px; |
| 467 | } |
| 468 | .atom-family-block a.family-entry:is(:hover, :focus-visible) strong { |
| 469 | text-decoration: underline; |
| 470 | text-underline-offset: 3px; |
| 471 | } |
| 472 | .atom-family-block a:focus-visible { |
| 473 | outline: 2px solid var(--family-link); |
| 474 | outline-offset: 3px; |
| 475 | } |
| 476 | @media (max-width: 760px) { |
| 477 | .atom-family-block .family-inner { grid-template-columns: 1fr; } |
| 478 | } |
| 479 | @media (max-width: 450px) { |
| 480 | .atom-family-block .family-apps { grid-template-columns: 1fr; } |
| 481 | } |
| 482 | |
| 483 | /* App status under each entry (2026-11-12): App Store link or Coming soon. */ |
| 484 | .atom-family-block .family-apps > li { display: flex; flex-direction: column; } |
| 485 | .atom-family-block .family-entry { min-height: 52px; padding-block-end: 2px; } |
| 486 | .atom-family-block .family-store, |
| 487 | .atom-family-block .family-soon { |
| 488 | align-self: flex-start; |
| 489 | margin: 0 0 6px 48px; |
| 490 | font-size: .75rem; |
| 491 | font-weight: 650; |
| 492 | line-height: 1.3; |
| 493 | letter-spacing: .01em; |
| 494 | } |
| 495 | .atom-family-block .family-store { color: var(--family-link); text-decoration: none; } |
| 496 | .atom-family-block .family-store:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; } |
| 497 | .atom-family-block .family-soon { color: var(--family-muted); } |
| 498 | |
| 499 | /* Download and install guide */ |
| 500 | .download-head .actions { justify-content: flex-start; } |
| 501 | .download-head .fineprint + .fineprint { margin-top: 4px; } |
| 502 | .install-preview { margin: 18px 0 0; } |
| 503 | .install-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; } |
| 504 | .install-preview figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); } |
| 505 | .download-verification { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; } |
| 506 | .download-verification summary { cursor: pointer; color: var(--ink); font-weight: 600; } |
| 507 | .download-verification code { justify-self: start; overflow-wrap: anywhere; } |
| 508 | |
| 509 | |
| 510 | .mac-download::before { |
| 511 | content: ""; |
| 512 | display: block; |
| 513 | width: 1em; |
| 514 | height: 1em; |
| 515 | flex: none; |
| 516 | background: currentColor; |
| 517 | mask: url("/assets/apple-logo.svg") center / contain no-repeat; |
| 518 | } |
| 519 | .nav nav a.nav-cta.mac-download { display: inline-flex; align-items: center; gap: 6px; padding-inline: 16px; } |
| 520 | @media (max-width: 420px) { |
| 521 | .nav nav { gap: 10px; } |
| 522 | .nav { gap: 10px; } |
| 523 | .nav nav a.nav-cta.mac-download { padding-inline: 11px; } |
| 524 | } |
| 525 | |
| 526 | /* Help and missing pages */ |
| 527 | .help-section { scroll-margin-top: 90px; } |
| 528 | .prose > .support-discord { border-color: var(--line-2); background: var(--surface-2); } |
| 529 | .help-answer { border-top: 1px solid var(--line); padding-top: 14px; } |
| 530 | .help-answer summary { color: var(--ink); cursor: pointer; font-weight: 650; } |
| 531 | .help-answer p { margin-top: 10px; } |
| 532 | .missing-page { min-height: calc(100svh - 185px); display: grid; align-items: center; } |
| 533 | .missing-editor { max-width: 760px; padding: clamp(26px, 6vw, 64px); border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); } |
| 534 | .missing-editor .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; } |
| 535 | |
| 536 | /* Discord + newsletter callouts at the end of the homepage */ |
| 537 | .community-callouts { display: grid; gap: 16px; padding-bottom: clamp(48px, 7vw, 88px); } |
| 538 | .community-callout { display: flex; align-items: center; gap: 24px 32px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); scroll-margin-top: 90px; } |
| 539 | .community-copy { flex: 1; min-width: 0; } |
| 540 | .community-callout h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.03em; } |
| 541 | .community-callout p { margin: 0; max-width: 560px; color: var(--ink-2); } |
| 542 | .community-callout .button { flex-shrink: 0; } |
| 543 | .discord-avatar { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgb(245 128 37 / .6), 0 0 22px rgb(245 128 37 / .38); } |
| 544 | @media (max-width: 720px) { .community-callout { flex-direction: column; align-items: flex-start; padding: 28px 24px; } .community-callout .button { white-space: normal; } } |
| 545 | |
| 546 | /* Compare page */ |
| 547 | .compare-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 20ch; line-height: 1.06; } |
| 548 | .doc.compare-doc { grid-template-columns: minmax(0, 1fr); } |
| 549 | .compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); } |
| 550 | .compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .92rem; line-height: 1.55; } |
| 551 | .compare th, .compare td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); } |
| 552 | .compare thead th { font: 700 1.02rem/1.3 var(--display); letter-spacing: -.02em; color: var(--ink); } |
| 553 | .compare thead th:first-of-type { color: var(--accent); } |
| 554 | .compare tbody th { width: 9.5em; font: 500 .8rem/1.6 var(--mono); color: var(--muted); } |
| 555 | .compare td { color: var(--ink-2); } |
| 556 | .compare tbody td:first-of-type { color: var(--ink); } |
| 557 | .compare tbody tr:last-child > * { border-bottom: 0; } |
| 558 | |
| 559 | /* Share pill (2026-11-21), behavior in assets/share.js */ |
| 560 | /* Styles come from assets/share.css (linked, since the CSP blocks injected styles). Matches .button.secondary. */ |
| 561 | .pm-share-btn.tx-share { |
| 562 | --pm-share-accent: var(--accent); |
| 563 | gap: 9px; height: auto; min-height: 46px; padding: 10px 20px; |
| 564 | border: 1px solid var(--line-2); background: transparent; color: var(--ink); |
| 565 | font-weight: 650; font-size: .95rem; box-shadow: none; |
| 566 | transition: background .15s, border-color .15s, transform .15s; |
| 567 | } |
| 568 | .pm-share-btn.tx-share:hover { background: var(--surface); border-color: var(--accent); box-shadow: none; } |
| 569 | .pm-share-btn.tx-share svg { width: 15px; height: 15px; color: currentColor; } |
| 570 | |
| 571 | .nowrap { white-space: nowrap; } |
| 572 | |
| 573 | /* Official Substack / Discord marks on the newsletter and Discord buttons: glyph only, in the button's text color (CSP blocks inline styles here). */ |
| 574 | .brand-ico { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none; color: currentColor; line-height: 0; } |
| 575 | .brand-ico svg, .brand-ico svg path { display: block; fill: currentColor; stroke: none; } |
| 576 | .brand-ico svg[width="15"] { width: 15px; height: 15px; } |
| 577 | .brand-ico svg[width="18"] { width: 18px; height: 18px; } |
| 578 | |
| 579 | /* 2026-11-24: icon, title and arrow share the title line; icons load eagerly. */ |
| 580 | .atom-family-block .family-entry { align-items: start; } |
| 581 | .atom-family-block .family-entry > span:not(.family-arrow), |
| 582 | .atom-family-block .family-arrow { align-self: baseline; } |
| 583 | .atom-family-block .family-arrow { line-height: 1.25; } |
| 584 | |
| 585 | /* 2026-11-25: the status link sits right under the description, even when a neighbour in the row wraps to two lines. */ |
| 586 | .atom-family-block .family-apps > li > .family-entry { height: auto; } |
| 587 | /* One arrow per entry, on the status link. */ |
| 588 | .atom-family-block .family-entry { grid-template-columns: 34px minmax(0, 1fr); } |
| 589 | |
| 590 | /* App icons (2026-11-25): every app icon always shows a visible edge plus a soft |
| 591 | shadow on light backgrounds or a soft glow on dark ones. Opaque rounded-square icons use |
| 592 | box-shadow (it follows border-radius); transparent icons use drop-shadow. */ |
| 593 | :root { |
| 594 | --app-icon-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 4px 14px rgba(0, 0, 0, .55), 0 0 18px rgba(255, 255, 255, .08); |
| 595 | --app-icon-drop: drop-shadow(0 0 .5px rgba(255, 255, 255, .50)) drop-shadow(0 4px 10px rgba(0, 0, 0, .55)) drop-shadow(0 0 9px rgba(255, 255, 255, .12)); |
| 596 | } |
| 597 | .atom-family-block .family-entry img, |
| 598 | .product-credit img { |
| 599 | box-shadow: var(--app-icon-shadow); |
| 600 | filter: none; |
| 601 | } |
| 602 | img[src^="/assets/icon.png"]:not(.wordmark img) { |
| 603 | filter: var(--app-icon-drop); |
| 604 | } |
| 605 | |
| 606 | /* Leave inline reading links alone; give standalone touch controls room. */ |
| 607 | @media (max-width: 760px), (pointer: coarse) { |
| 608 | .nav .wordmark, .nav nav > a, .footer nav a, .footer .product-credit { |
| 609 | display: inline-flex; align-items: center; min-height: 44px; |
| 610 | } |
| 611 | .footer nav { gap: 0 16px; } |
| 612 | } |
| 613 | |
| 614 | @media (max-width: 760px), (pointer: coarse) { |
| 615 | .win .seg button, .win button.row, .chooser button { |
| 616 | min-width: 44px; min-height: 44px; |
| 617 | } |
| 618 | } |