/* Shared by the Writing pages (blog.html, post.html): the home page's tokens, header and type, without the
   conversation column. The assistant is one tap away through the floating button, which opens the home page. */
:root {
  --canvas: #161718; --surface: #1F2123; --ink: #F2F3F4; --ink-soft: #B4BAC0; --accent: #00D2BE; --accent-ink: #04110F;
  --teal-bright: #00E5CC; --rule: #34383C;
  --display: "Archivo", system-ui, sans-serif; --text: "Geist", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 88px); --pad-in: 80px; --pad-out: 64px; --body: 17px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pearl: radial-gradient(circle at 38% 30%, #effffd 0%, #6fe9dc 12%, #00d2be 34%, #00857a 62%, #17191b 100%);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: var(--body)/1.6 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 26px var(--gutter);
  background: #0B0C0D; }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal-bright); }
.mark { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.mark__mono { display: grid; place-items: center; width: 38px; height: 38px; background: var(--teal-bright); color: var(--accent-ink);
  border-bottom-right-radius: 14px; font: 800 0.95rem var(--display); letter-spacing: -0.04em; }
.mark__name { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.bar nav { display: flex; gap: 30px; }
.bar nav a { color: #fff; text-decoration: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; transition: color 160ms var(--ease); }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--teal-bright); }

.label { margin: 0; font: 600 12px var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.disp { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 40px var(--gutter) 48px; border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--ink-soft); }
.foot a { color: var(--ink); }

/* The assistant on pages without the column: the same pearl and wording, opening the home page where it lives */
.ask { position: fixed; z-index: 20; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 8px;
  border-radius: 30px; background: var(--accent); color: var(--accent-ink); font: 600 1rem var(--text); text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7); transition: transform 160ms var(--ease), background-color 160ms var(--ease); }
.ask:hover { background: #2EE3D1; transform: translateY(-2px); }
.ask__orb { width: 44px; height: 44px; border-radius: 50%; background: var(--pearl); }

@media (max-width: 900px) {
  .bar { padding: 18px 20px; } .mark__name { display: none; }
  .bar nav { gap: 16px; } .bar nav a { font-size: 11px; letter-spacing: 0.12em; }
  .ask { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); justify-content: flex-start; }
}
