/* Rawform, in the Craftform family style shared with Liveform, Restform and Outform.
   Every page on rawform.app uses this one stylesheet. */
@font-face { font-family: 'Geist'; src: url('/fonts/geist-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fbfaf8; --ink: #232327; --mute: #6f7076; --rule: #e4e3df; --tile: #f0efec;
  /* One coral, as in the Rawform brand. Coral draws the marks; the deeper
     coral is for words, where the brand colour is too light to read. The wash
     sits behind anything Rawform says. */
  --coral: #f87966; --coral-text: #d84c3a; --coral-wash: #feebe7; --coral-ink: #7c2a1c;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root.rf-dark {
  color-scheme: dark;
  --bg: #121214; --ink: #eeede9; --mute: #9a9ba1; --rule: #2b2c31; --tile: #1e1f23;
  --coral: #f87966; --coral-text: #fa8a78; --coral-wash: #3b221e; --coral-ink: #ffd8cf;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.5; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--coral-text); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }
.dim { color: var(--mute); }
.sr, .honey { position: absolute; left: -999rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0;  position: sticky; top: 0; z-index: 40; }
/* The bar runs the full width of the page; its contents stay on the .wrap measure. */
.top::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
html { scroll-padding-top: 5rem; }
.brand svg { will-change: transform; }
@media print { .top { position: static; } }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.02em; }
.brand svg { width: 1.6rem; height: 1.6rem; color: var(--coral); transition: rotate 0.9s var(--ease); }
.brand:hover svg { rotate: 45deg; }
.top-links { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.top-links a { text-decoration: none; padding: 0.4rem 0.75rem; border-radius: 999px; font-weight: 500; font-size: 0.9375rem; color: var(--mute); transition: color 0.2s; }
.top-links a:hover { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 0.4rem; }
.pill { display: inline-flex; align-items: center; gap: 0.45rem; height: 2.25rem; padding: 0 0.85rem; border-radius: 999px; background: var(--tile); font-size: 0.875rem; font-weight: 500; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: scale 0.2s var(--ease); }
.pill:active { scale: 0.95; }
.pill.is-solid { background: var(--ink); color: var(--bg); }
.pill.theme { width: 2.25rem; padding: 0; display: grid; place-items: center; }
.pill.theme svg { grid-area: 1 / 1; width: 17px; height: 17px; transition: opacity 0.3s, rotate 0.5s var(--ease), scale 0.4s var(--ease); }
.to-light { opacity: 0; rotate: -90deg; scale: 0.5; }
.rf-dark .to-light { opacity: 1; rotate: 0deg; scale: 1; }
.rf-dark .to-dark { opacity: 0; rotate: 90deg; scale: 0.5; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(3.5rem, 8vw, 5rem) clamp(2rem, 4vw, 3rem); align-items: center; padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(4.5rem, 8vw, 6rem); }
.hero-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 2.6vw, 2rem); }
.hero-logo { display: inline-flex; width: 3.125rem; height: 3.125rem; justify-self: start; text-decoration: none; border-radius: 50%; }
.hero-logo-mark { display: block; width: 100%; height: 100%; background-color: var(--ink); background-image: linear-gradient(100deg, var(--ink) 0%, var(--ink) 46%, var(--coral) 62%, color-mix(in srgb, var(--coral) 68%, #fff) 100%); background-size: 250% 100%; background-position: 0% 50%; background-repeat: no-repeat; -webkit-mask: url("/mark.svg") center / contain no-repeat; mask: url("/mark.svg") center / contain no-repeat; transition: transform 0.9s var(--ease), background-position 0.9s var(--ease); }
.hero-logo:hover .hero-logo-mark, .hero-logo:focus-visible .hero-logo-mark { transform: rotate(360deg) scale(1.08); background-position: 100% 50%; }
@media (prefers-reduced-motion: reduce) { .hero-logo-mark { transition: none; } }
.hero h1 { font-size: clamp(2rem, 4.1vw, 3.25rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.03; max-width: 11em; text-wrap: balance; }
.coral { color: var(--coral-text); }
.lede { max-width: 33rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.45; color: var(--mute); text-wrap: pretty; }
.lede b { color: var(--ink); font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.button { display: inline-flex; align-items: center; height: 3rem; padding: 0 1.4rem; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: scale 0.2s var(--ease), opacity 0.2s; }
.button:active { scale: 0.96; }
.button[disabled] { opacity: 0.6; cursor: default; }
.button.is-quiet { background: var(--tile); color: var(--ink); }
.tile .button.is-quiet { background: var(--bg); }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

/* The field in the hero: one email address, as on Liveform, Restform and Outform. */
.signup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; max-width: 30rem; }
.signup[hidden], .hero-done[hidden] { display: none; }
.field { display: flex; gap: 0.4rem; padding: 0.35rem; border-radius: 999px; background: var(--tile); transition: box-shadow 0.2s; }
.field:focus-within { box-shadow: 0 0 0 2px var(--coral); }
.field input[type='email'] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 0.9rem; height: 2.75rem; outline: 0; font-size: 1rem; }
.field input::placeholder { color: var(--mute); }
.field button { border: 0; border-radius: 999px; height: 2.75rem; padding: 0 1.15rem; background: var(--ink); color: var(--bg); font-weight: 500; font-size: 0.9375rem; cursor: pointer; white-space: nowrap; transition: scale 0.2s var(--ease), opacity 0.2s; }
.field button:active { scale: 0.96; }
.field button[disabled] { opacity: 0.6; cursor: default; }
.note { font-size: 0.75rem; color: var(--mute); padding-left: 1.25rem; }
.note.is-error { color: var(--coral-text); }
.hero-done { padding: 0.9rem 1.25rem; border-radius: 18px; background: var(--coral-wash); color: var(--coral-ink); font-weight: 500; max-width: 30rem; animation: rise 0.6s var(--ease); }
@media (max-width: 44rem) { .field button { padding: 0 0.9rem; font-size: 0.875rem; } }

/* The note. It writes itself and can be steered. Its height is fixed: new
   lines push old ones up and out, so nothing around it moves. */
.session { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 0.75rem; height: clamp(27rem, 62vh, 31rem); padding: clamp(0.9rem, 1.8vw, 1.25rem); border-radius: 28px; background: var(--tile); overflow: hidden; }
.session-head { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8125rem; font-weight: 500; color: var(--mute); }
.dots { display: inline-flex; gap: 0.3rem; }
.dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--rule); }
.session-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-file { margin-left: auto; flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.3rem; height: 1.75rem; padding: 0 0.6rem; border-radius: 999px; background: var(--bg); font-size: 0.75rem; color: var(--ink); }
.session-file svg { width: 0.9rem; height: 0.9rem; color: var(--coral); }
.session-file b { font-weight: 500; }
.session-file.is-bumped { animation: bump 0.5s var(--ease); }
.session-log { display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(transparent, #000 2.5rem); mask-image: linear-gradient(transparent, #000 2.5rem); padding-top: 2.5rem; }
.session-log::-webkit-scrollbar { display: none; }
.session-log li:first-child { margin-top: auto; }
.session-log li { flex: none; display: grid; gap: 0.15rem; padding: 0.65rem 0.9rem; border-radius: 16px; max-width: 90%; animation: say 0.45s var(--ease); }
.session-log small { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 500; opacity: 0.8; }
.session-log small svg { width: 0.9rem; height: 0.9rem; color: var(--coral); }
.session-log .thinking { align-self: flex-start; display: flex; gap: 0.3rem; padding: 0.85rem 0.9rem; background: var(--coral-wash); border-bottom-left-radius: 6px; }
.session-log .thinking i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--coral); animation: think 1s ease-in-out infinite; }
.session-log .thinking i:nth-child(2) { animation-delay: 0.15s; }
.session-log .thinking i:nth-child(3) { animation-delay: 0.3s; }
.session-type { display: flex; align-items: center; gap: 0.1rem; height: 2.75rem; padding: 0 0.4rem 0 1rem; border-radius: 999px; background: var(--bg); font-size: 0.9375rem; box-shadow: inset 0 0 0 1px var(--rule); }
.session-type span { white-space: pre; }
.session-type .caret { width: 2px; height: 1.1rem; background: var(--coral); animation: blink 1s steps(2) infinite; }
.session-type svg { margin-left: auto; width: 2rem; height: 2rem; padding: 0.45rem; border-radius: 50%; background: var(--tile); color: var(--mute); transition: background-color 0.2s, color 0.2s, scale 0.3s var(--ease); }
.session-type.is-ready svg { background: var(--coral); color: #fff; }
.session-type.is-sent svg { scale: 0.8; }
.session-say { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.session-say > span { font-size: 0.8125rem; font-weight: 500; color: var(--mute); }
.session-say div { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.say { height: 2.1rem; padding: 0 0.8rem; border: 0; border-radius: 999px; background: var(--bg); font-size: 0.875rem; font-weight: 500; cursor: pointer; box-shadow: inset 0 0 0 1px var(--rule); transition: translate 0.3s var(--ease), scale 0.2s var(--ease), box-shadow 0.2s; }
.say:hover { translate: 0 -2px; box-shadow: inset 0 0 0 1px var(--coral); }
.say:active { scale: 0.95; }
/* Lines of the note. A heading, plain text, tasks that can be ticked, and the
   summary the sparkle writes, in the coral wash. */
.session-log li.h { padding-bottom: 0.1rem; font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.02em; }
.session-log li.p { color: var(--mute); }
.session-log li.h, .session-log li.p { padding-left: 0.2rem; }
.session-log li.task { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.9rem 0.55rem 0.6rem; background: var(--bg); border-radius: 14px; }
.tick { flex: none; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule); color: #fff; cursor: pointer; transition: background-color 0.25s, box-shadow 0.25s, scale 0.2s var(--ease); }
.tick svg { width: 0.8rem; height: 0.8rem; opacity: 0; scale: 0.4; transition: opacity 0.2s, scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.tick:hover { box-shadow: inset 0 0 0 1.5px var(--coral); }
.tick:active { scale: 0.88; }
.task.is-done .tick { background: var(--coral); box-shadow: none; }
.task.is-done .tick svg { opacity: 1; scale: 1; }
.task span { transition: color 0.25s; text-decoration-color: transparent; text-decoration-line: line-through; }
.task.is-done span { color: var(--mute); text-decoration-color: currentColor; }
.task.is-rolled { animation: say 0.45s var(--ease), roll 0.9s var(--ease) 0.25s; }
@keyframes roll { 40% { box-shadow: 0 0 0 2px var(--coral); } }
.session-log li.sum { align-self: stretch; max-width: none; background: var(--coral-wash); color: var(--coral-ink); border-radius: 16px; }
.session-log .thinking { align-self: flex-start; }
.say[aria-pressed='true'] { background: var(--ink); color: var(--bg); box-shadow: none; }
.say.spark { display: inline-flex; align-items: center; gap: 0.35rem; }
.say.spark svg { width: 0.95rem; height: 0.95rem; color: var(--coral); }

/* The download: there to see, not yet to press. */
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.button svg { width: 1.15rem; height: 1.15rem; margin: 0 0.5rem 0 -0.2rem; }
.button[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; }
.button[aria-disabled='true']:active { scale: 1; }
.soon { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8125rem; font-weight: 500; color: var(--mute); }
.soon::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--coral); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; scale: 0.8; } }
@keyframes say { from { opacity: 0; translate: 0 0.6rem; scale: 0.96; } }
@keyframes think { 0%, 60%, 100% { translate: 0 0; opacity: 0.5; } 30% { translate: 0 -0.25rem; opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bump { 40% { scale: 1.14; } }
@keyframes rise { from { opacity: 0; translate: 0 0.5rem; } }

/* Icons: each pops in as its card arrives and stirs when the card is hovered. */
.ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 14px; background: var(--coral-wash); color: var(--coral); margin-bottom: 0.4rem; }
.ico svg { width: 1.4rem; height: 1.4rem; }
.watch .ico { opacity: 0; scale: 0.5; rotate: -25deg; }
.watch.is-in .ico { opacity: 1; scale: 1; rotate: 0deg; transition: opacity 0.3s, scale 0.7s cubic-bezier(0.3, 1.6, 0.5, 1), rotate 0.7s cubic-bezier(0.3, 1.6, 0.5, 1); transition-delay: calc(var(--n, 0) * 90ms); }
.tile:hover .ico svg, .part:hover .ico svg { animation: stir 0.7s var(--ease); }
@keyframes stir { 25% { rotate: -14deg; scale: 1.12; } 60% { rotate: 9deg; } }

/* Sections */
main > section + section { margin-top: clamp(5.5rem, 13vw, 10.5rem); }
.lead-in { display: grid; gap: 0.6rem; margin-bottom: clamp(1.25rem, 2.6vw, 2rem); }
.lead-in h2 { font-size: clamp(1.875rem, 4.4vw, 3.25rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; max-width: 15em; text-wrap: balance; }
.lead-in p { max-width: 36rem; color: var(--mute); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.tiles { display: grid; gap: clamp(0.5rem, 1.2vw, 0.9rem); }
.tile { display: grid; align-content: start; gap: 0.5rem; padding: clamp(1.25rem, 2.4vw, 1.9rem); border-radius: 28px; background: var(--tile); }
.tile h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 400; letter-spacing: -0.028em; line-height: 1.12; text-wrap: balance; }
.tile p { color: var(--mute); max-width: 30rem; }
.tile p.big { font-size: 1.0625rem; font-weight: 500; color: var(--ink); }
.tile .actions { margin-top: 0.75rem; }
.tag { font-size: 0.8125rem; font-weight: 500; color: var(--mute); }
@media (min-width: 54rem) {
  .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* How it works: a numbered list, then the file it produces. */
.parts { border-top: 1px solid var(--rule); }
.part { display: grid; gap: 0.5rem 2rem; padding: clamp(1.25rem, 2.6vw, 2rem) 0; border-bottom: 1px solid var(--rule); }
.part h3 { font-size: clamp(1.375rem, 2.6vw, 2rem); font-weight: 400; letter-spacing: -0.028em; line-height: 1.12; }
.part p { max-width: 36rem; color: var(--mute); }
@media (min-width: 56rem) { .part { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; } }

/* Questions */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; cursor: pointer; list-style: none; font-size: clamp(1.125rem, 1.8vw, 1.375rem); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 0.7rem; height: 0.7rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -0.2rem; transition: rotate 0.3s var(--ease), translate 0.3s var(--ease); color: var(--mute); }
.faq details[open] summary::after { rotate: -135deg; translate: 0 0.15rem; }
.faq details p { max-width: 40rem; color: var(--mute); padding: 0 0 1.25rem; }

.faq details[hidden] { display: none; }
.faq-more { margin-top: 1.25rem; }
.faq-more[hidden] { display: none; }

/* Join: the one full-bleed coral surface. A slow-moving gradient with a dot
   matrix laid over it, so it reads as the place to act. */
.start { position: relative; isolation: isolate; overflow: hidden; padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: 32px; background: #d84c3a; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 2.6vw, 2rem); }
.start-glow { position: absolute; inset: -40%; z-index: -2; background: radial-gradient(34% 38% at 22% 30%, #f2664e 0%, transparent 70%), radial-gradient(40% 44% at 78% 24%, #a8261e 0%, transparent 72%), radial-gradient(46% 50% at 62% 82%, #c9412f 0%, transparent 70%), radial-gradient(40% 46% at 18% 84%, #8e1f2c 0%, transparent 72%); filter: blur(30px); animation: glow 22s linear infinite; }
.start-dots { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle at center, rgb(255 255 255 / 0.55) 1.1px, transparent 1.6px); background-size: 14px 14px; -webkit-mask-image: radial-gradient(120% 90% at 85% 10%, #000 0%, transparent 70%); mask-image: radial-gradient(120% 90% at 85% 10%, #000 0%, transparent 70%); animation: sweep 14s ease-in-out infinite alternate; }
@keyframes glow { to { rotate: 360deg; } }
@keyframes sweep { to { -webkit-mask-position: -30vw 20%; mask-position: -30vw 20%; opacity: 0.75; } }
.start h2 { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.04; max-width: 18em; text-wrap: balance; }
.start h2 .dim { display: block; color: rgb(255 255 255 / 0.72); }
.join { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; max-width: 40rem; }
.join-fields { display: grid; gap: 0.6rem; }
.join label { display: grid; gap: 0.35rem; font-size: 0.875rem; font-weight: 500; color: rgb(255 255 255 / 0.85); }
.join input[type='text'], .join input[type='email'] { height: 3rem; padding: 0 1.1rem; border: 0; border-radius: 999px; background: #fff; font-size: 1rem; color: #181818; outline: 0; transition: box-shadow 0.2s; }
.join input:focus { box-shadow: 0 0 0 3px rgb(24 24 24 / 0.55); }
.join-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.join-foot p { font-size: 0.875rem; color: rgb(255 255 255 / 0.85); }
.start .button { background: #181818; color: #fff; }
.start a { color: #fff; }
.join-error { font-size: 0.9375rem; color: #fff; background: rgb(24 24 24 / 0.5); padding: 0.6rem 0.9rem; border-radius: 14px; }
.done { padding: 0.9rem 1.25rem; border-radius: 18px; background: #fff; color: #181818; font-weight: 500; max-width: 30rem; }
@media (min-width: 40rem) { .join-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.foot { margin-top: clamp(5.5rem, 13vw, 10.5rem); padding: 1.5rem 0 2rem; border-top: 1px solid var(--rule); display: grid; gap: 0.75rem; font-size: 0.9375rem; color: var(--mute); font-weight: 500; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.foot a { color: var(--ink); }

/* The real marks for the two tools, in one colour. */
.logo { display: block; width: 2.25rem; height: 2.25rem; margin-bottom: 0.5rem; color: var(--ink); }
.logo svg { display: block; width: 100%; height: 100%; }

/* Hidden extras, shared with craftform.studio: K jumps, G shows the grid,
   D switches the lights, and the mark turns as you scroll. */
.brand svg { will-change: transform; }
kbd { font-family: var(--font); font-size: 0.75rem; font-weight: 500; padding: 0.1rem 0.4rem; border-radius: 6px; background: var(--tile); color: var(--ink); }
.foot .keys { color: var(--mute); }
.clock b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.clock i { font-style: normal; animation: blink 2s steps(2) infinite; }
.palette { border: 0; padding: 0; width: min(36rem, calc(100vw - 2rem)); margin-top: 14vh; border-radius: 18px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.5), 0 0 0 1px var(--rule); overflow: hidden; }
.palette::backdrop { background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.palette[open] { animation: zoom 0.25s var(--ease); }
.palette input { width: 100%; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: 1.125rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.palette input::placeholder { color: var(--mute); }
.palette ul { max-height: min(22rem, 50vh); overflow: auto; padding: 0.4rem; }
.palette li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.85rem; border-radius: 10px; cursor: pointer; font-weight: 500; }
.palette li small { color: var(--mute); font-size: 0.875rem; font-weight: 400; }
.palette li[aria-selected='true'] { background: var(--tile); }
.palette .empty { color: var(--mute); cursor: default; }
@keyframes zoom { from { opacity: 0; scale: 0.96; } }
.gridlines { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.gridlines.on { opacity: 1; }
.gridlines div { max-width: 76rem; height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.5rem, 1.2vw, 0.9rem); }
.gridlines i { background: color-mix(in srgb, var(--coral) 9%, transparent); border-left: 1px solid color-mix(in srgb, var(--coral) 30%, transparent); border-right: 1px solid color-mix(in srgb, var(--coral) 30%, transparent); }
@media (max-width: 40rem) { .gridlines div { grid-template-columns: repeat(4, 1fr); } .gridlines i:nth-child(n + 5) { display: none; } .foot .keys { display: none; } }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 80; translate: -50% 1rem; opacity: 0; pointer-events: none; padding: 0.55rem 0.95rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.875rem; font-weight: 500; transition: opacity 0.25s, translate 0.35s var(--ease); white-space: nowrap; }
.toast.on { opacity: 1; translate: -50% 0; }

/* Small screens: the links fold into a menu pill in the middle of the header,
   which opens a sheet in the manner of the jump menu. */
.pill.menu { display: none; }
.pill.menu svg { width: 17px; height: 17px; }
.sheet { width: min(22rem, calc(100vw - 2rem)); margin-top: 4.25rem; transform-origin: 50% 0; }
.sheet[open] { animation: sheet-in 0.38s var(--ease); }
.palette.sheet ul { max-height: none; padding: 0.5rem; }
.palette.sheet li { padding: 0; display: block; cursor: auto; opacity: 0; animation: sheet-item 0.4s var(--ease) forwards; }
.sheet li:nth-child(1) { animation-delay: 0.04s; } .sheet li:nth-child(2) { animation-delay: 0.07s; } .sheet li:nth-child(3) { animation-delay: 0.1s; }
.sheet li:nth-child(4) { animation-delay: 0.13s; } .sheet li:nth-child(5) { animation-delay: 0.16s; } .sheet li:nth-child(n + 6) { animation-delay: 0.19s; }
.sheet a { display: block; padding: 0.8rem 0.95rem; border-radius: 12px; text-decoration: none; font-size: 1.375rem; font-weight: 400; letter-spacing: -0.02em; }
.sheet a:hover, .sheet a:focus-visible { background: var(--tile); }
.palette.sheet .sheet-foot { margin-top: 0.4rem; padding-top: 0.4rem; border-top: 1px solid var(--rule); border-radius: 0; }
.sheet .sheet-foot a { font-size: 0.9375rem; letter-spacing: 0; color: var(--mute); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-0.6rem) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes sheet-item { from { opacity: 0; transform: translateY(0.4rem); } to { opacity: 1; transform: none; } }
/* The sheet leaving: it lifts and fades, and the page behind clears with it. */
.sheet:focus { outline: 0; }
.sheet.is-closing { animation: sheet-out 0.2s cubic-bezier(0.4, 0, 1, 1) forwards; }
.sheet.is-closing::backdrop { animation: sheet-clear 0.2s linear forwards; }
.palette.sheet.is-closing li { animation: none; opacity: 1; }
@keyframes sheet-out { to { opacity: 0; transform: translateY(-0.5rem) scale(0.96); } }
@keyframes sheet-clear { to { opacity: 0; } }
@media (max-width: 54rem) {
  .top-links { display: none; }
  .pill.menu { display: inline-flex; position: absolute; left: 50%; translate: -50% 0; padding: 0 0.85rem 0 0.7rem; }
  .pill.menu:active { scale: 1; }
}
@media (max-width: 40rem) { .brand span { display: none; } .top-right .pill:not(.is-solid):not(.theme) { display: none; } }
@media (max-width: 30rem) { .top-right .pill.is-solid { display: none; } }
@media (prefers-reduced-motion: reduce) { .sheet[open], .palette.sheet li { animation: none; opacity: 1; } }
@media print { .pill.menu { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Inner pages: privacy and the not-found page. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.top-links a[aria-current='page'] { color: var(--ink); background: var(--tile); }
.sheet a[aria-current='page'] { background: var(--tile); }
.page-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.1rem, 2.4vw, 1.75rem); justify-items: start; padding: clamp(2.5rem, 7vw, 5.5rem) 0 0; }
.page-top h1 { font-size: clamp(2rem, 4.1vw, 3.25rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.03; }
main > .page-top + section { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.prose { max-width: 44rem; padding-top: clamp(2.5rem, 7vw, 5.5rem); }
.prose h1 { font-size: clamp(2rem, 4.1vw, 3.25rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.03; }
.prose-meta { margin-top: 0.85rem; color: var(--mute); }
.prose h2 { margin: 2.75rem 0 0.75rem; font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.prose p, .prose ul { margin-top: 0.85rem; }
.prose h1 + .prose-meta + p { margin-top: 2rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.45; }
.prose ul { padding-left: 1.15rem; display: grid; gap: 0.45rem; }
.prose li::marker { color: var(--coral); }
.prose a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 500; }
.prose ul { list-style: disc; }
.join[hidden], .done[hidden] { display: none; }
