/* ShiftZero by Byte Logic: shared tokens, type and chrome */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo-wdth.woff2') format('woff2-variations'), url('/assets/fonts/archivo-wdth.woff2') format('woff2');
}

:root {
  --ink: #0d2420;          /* deep pine ink: text, dark bands */
  --ink-2: #163a34;
  --paper: #f3f6f4;        /* cool paper */
  --panel: #ffffff;
  --steel: #4f625d;        /* secondary text */
  --rule: #d3dcd8;
  --rule-dark: #2a4a44;
  --signal: #00b07a;       /* live, healthy: graphics and fills */
  --signal-ink: #00744c;   /* accessible green text on light */
  --signal-soft: #dff4ec;
  --amber: #b26b00;
  --amber-soft: #fbefd9;
  --red: #b3321f;
  --red-soft: #f8e1dc;
  --radius-s: 6px;
  --radius-m: 10px;
  --measure: 66ch;
  --wide: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(13, 36, 32, .06), 0 8px 24px rgba(13, 36, 32, .06);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }

body {
  margin: 0;
  font-family: var(--wide);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); font-stretch: 122%; font-weight: 800; line-height: 1.0; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-stretch: 114%; }
h3 { font-size: 1.25rem; font-stretch: 105%; font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--signal-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
small { font-size: .875rem; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .9em; background: rgba(13, 36, 32, .06); padding: .08em .35em; border-radius: 4px; }
pre { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .875rem; line-height: 1.5; background: var(--ink); color: #e6efec; padding: 1rem 1.25rem; border-radius: var(--radius-m); overflow-x: auto; }
pre code { background: none; padding: 0; color: inherit; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--steel); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1; padding: .95rem 1.35rem; border-radius: var(--radius-s); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: #00c487; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; }
.on-ink .btn-ghost { color: var(--paper); border-color: var(--paper); }
.on-ink .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* site header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(243, 246, 244, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-word { font-weight: 800; font-stretch: 120%; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-by { font-size: .8rem; color: var(--steel); font-stretch: 100%; font-weight: 500; margin-left: .15rem; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav a:hover { text-decoration: underline; }
.nav .btn { padding: .7rem 1rem; font-size: .95rem; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* footer */
.site-footer { background: var(--ink); color: #c9d6d2; padding: 3.5rem 0 2.5rem; font-size: .9rem; }
.site-footer a { color: #e6efec; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer .legal { border-top: 1px solid var(--rule-dark); margin-top: 2.5rem; padding-top: 1.5rem; color: #9fb3ad; font-size: .8125rem; }
.site-footer .legal p { max-width: 90ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* simple document pages (privacy, terms, managed) */
.doc { padding: 3.5rem 0 5rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .3em; }
.doc h2 { font-size: 1.5rem; font-stretch: 108%; margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc ul, .doc ol { max-width: var(--measure); padding-left: 1.25rem; }
.doc li { margin-bottom: .45em; }
.doc .effective { color: var(--steel); margin-bottom: 2rem; }
.note { border-left: 3px solid var(--signal); background: var(--panel); padding: 1rem 1.25rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; max-width: var(--measure); }
.note p:last-child { margin-bottom: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
