/* The site's shared base (2026-10-23): the home page's language, made every page's. The tokens, the bar, the
   buttons, fields, the questions, the long read and the footer. A page adds its own sheet (home.css,
   blog/blog.css) or style block (pricing, feature request, the 404); the legal pages need nothing else.
   Type: Big Shoulders Display 900 for statements, Hanken Grotesk for reading and for
   what people say, JetBrains Mono for measured values (brand kit, 2026-10-23; the logo keeps Bebas Neue).
   Red means one thing: SyncSet acting (the light that comes on with the phone, the button that starts it).
   Colours, type and sizes live in the variables below; nothing hardcodes one. */
:root {
  --ground: #030304;       /* the studio room's black, so a rendered frame has no edge */
  --ink: #f2f2f0;
  --ink-dim: #8d8d93;
  --sync-red: #E11D48;
  --line: #121215;         /* the rule between sections */
  --line-2: #1c1c21;       /* the rule inside one */
  --row: #17171b;
  --field: #0b0b0d;
  --edge: #2a2a30;
  --edge-hi: #4a4a52;
  --warn: #f5a524;
  --display: 'Big Shoulders Display', 'BigShoulders-fallback', Impact, sans-serif;
  --text: 'Hanken Grotesk', 'Hanken-fallback', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(20px, calc(4.4vw / var(--z)), 72px); /* vw is divided by the root zoom (fonts.css) */
  --small: clamp(17px, calc(1.45vw / var(--z)), 25px);  /* the small text beside a statement */
  /* the blog (2026-11-06): readable on a phone in a gym, one body size, about 66 characters a line */
  --ink-read: #a6a6ac;     /* captions and small lines: 8.4:1 on the ground (ink-dim is 6.3:1) */
  --card: #0c0c0f;         /* a card on the ground */
  --measure: 34em;
  --body: clamp(18px, calc(1.25vw / var(--z)), 20px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { font-family: var(--text); background: var(--ground); }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-nav { position: absolute; left: var(--gutter); top: -60px; z-index: 30; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--ground); font-weight: 600; text-decoration: none; }
.skip-nav:focus { top: 12px; }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* the bar: clear over the page's top, and its own ground once the page has moved, so nothing scrolls through
   the words (one watched point, #top-edge, in script.js; no scroll listener) */
#top-edge { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); }
.bar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ground); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity 200ms ease; }
.bar.is-stuck::before { opacity: 1; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px/1 var(--text); letter-spacing: 0; }
.mark img { width: 30px; height: 30px; }
.bar .links { display: flex; align-items: center; gap: 28px; }
.bar .links a:not(.cta) { font-size: 15px; color: var(--ink-dim); text-decoration: none; }
.bar .links a:not(.cta):hover, .bar .links a[aria-current] { color: var(--ink); }
.cta { font: 600 15px/1 var(--text); text-decoration: none; padding: 12px 16px; border-radius: 8px; background: var(--sync-red); color: #fff; }

/* the red button: SyncSet starting */
.go { display: inline-block; font: 600 17px/1 var(--text); color: #fff; background: var(--sync-red); border-radius: 10px; padding: 17px 24px; text-decoration: none; }
/* a quiet one beside it, for anything that is not SyncSet starting */
.plain { display: inline-block; font: 600 17px/1 var(--text); color: var(--ink); border: 1px solid var(--edge); border-radius: 10px; padding: 16px 23px; text-decoration: none; background: none; cursor: pointer; }
.plain:hover, .plain:focus-visible { border-color: var(--edge-hi); outline: none; }
.plain:disabled { opacity: 0.5; cursor: default; }

/* fields: the blog's email box, the feature request form */
.fields input, .fields select, .fields textarea { font: 400 17px/1.3 var(--text); color: var(--ink); background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; padding: 15px 16px; outline: none; }
.fields input::placeholder, .fields textarea::placeholder { color: var(--ink-dim); }
.fields input:focus, .fields select:focus, .fields textarea:focus { border-color: var(--edge-hi); }
.message { display: none; margin-top: 14px; font-size: 16px; }
.message.success { display: block; color: var(--ink); }
.message.error { display: block; color: var(--warn); }

/* questions: the heading on the left, the answers on the right */
.qa { padding: calc(10vh / var(--z)) var(--gutter) calc(14vh / var(--z)); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 calc(5vw / var(--z)); border-top: 1px solid var(--line); }
.qa h2 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(48px, calc(4.8vw / var(--z)), 92px); line-height: 0.88; }
.qa details { border-top: 1px solid var(--line-2); padding: 22px 0; }
.qa summary { list-style: none; cursor: pointer; font-size: clamp(19px, calc(1.5vw / var(--z)), 26px); font-weight: 600; display: flex; justify-content: space-between; gap: 20px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--ink-dim); font-weight: 400; }
.qa details[open] summary::after { content: '\2212'; }
.qa details p { margin: 14px 0 0; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--ink-dim); }
.qa details p a { color: var(--ink); }

/* a long read (a blog post, the legal pages): the questions' layout at length. Each heading on the left beside
   the first thing it heads, everything else in the reading column; a page adds its own pieces */
.long { padding: calc(96px + 4vh / var(--z)) var(--gutter) calc(12vh / var(--z)); }
.long .back { display: inline-block; margin-bottom: calc(5vh / var(--z)); font-size: 15px; color: var(--ink-dim); text-decoration: none; }
.long .back:hover { color: var(--ink); }
.long article { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: calc(5vw / var(--z)); align-items: start; }
.long article > * { grid-column: 2; }
.long article > h1, .long article > .updated { grid-column: 1 / -1; }
.long article > h2 { grid-column: 1; }
.long h1 { max-width: 19ch; font-size: clamp(40px, calc(5vw / var(--z)), 88px); font-weight: 600; line-height: 1.0; letter-spacing: -0.035em; text-wrap: balance; }
.long h1 em { font-style: normal; } /* one tone: a headline's last part in another colour, red or grey, is a tell */
.long article .updated { margin: 24px 0 calc(7vh / var(--z)); font-size: 15px; color: var(--ink-dim); }
.long article p, .long article li, .long article blockquote { max-width: 66ch; font-size: 19px; line-height: 1.65; }
.long article p { margin-bottom: 20px; text-wrap: pretty; }
.long article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--edge-hi); text-underline-offset: 0.15em; }
.long article a:hover { text-decoration-color: var(--ink); }
.long article h2 { position: relative; margin: 44px 0 20px; padding-top: 34px; font-size: clamp(24px, calc(2vw / var(--z)), 34px); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
/* the rule above a section runs across both columns: the heading's column is 4 of 11 parts less the gap, so
   the whole row is 275% of it plus the gap */
.long article > h2::before { content: ''; position: absolute; top: 0; left: 0; width: calc(275% + 5vw / var(--z)); border-top: 1px solid var(--line-2); }
.long article h3 { margin: 30px 0 10px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.long article ul { list-style: none; margin: 0 0 20px; }
.long article li { position: relative; padding-left: 26px; margin-bottom: 14px; }
.long article li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 12px; height: 1px; background: var(--ink-dim); }
.long blockquote { margin: 0 0 20px; padding-left: 24px; border-left: 1px solid var(--edge-hi); }
.long article table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.long article th, .long article td { border-top: 1px solid var(--line-2); padding: 12px 14px 12px 0; text-align: left; vertical-align: top; }
.long article th { font-weight: 600; color: var(--ink-dim); }
/* what a heading heads starts level with it (last, so no margin rule above can undo it) */
.long article > h2 + * { margin-top: 78px; }

.foot { padding: 48px var(--gutter) 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--ink-dim); }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { color: var(--ink-dim); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 899px) {
  .bar .links a.pricing { display: none; }
  .qa { grid-template-columns: 1fr; }
  .qa h2 { margin-bottom: 20px; }
  .long article { grid-template-columns: 1fr; }
  .long article > *, .long article > h2 { grid-column: 1; }
  .long article > h2::before { width: 100%; }
  .long article > h2 + * { margin-top: 0; }
  .long article p, .long article li, .long article blockquote { font-size: 18px; }
}
