/* breakaway's site: the landing page and the docs, on the tokens in tokens.css (copied from brand/tokens.css).
   Flat color, hard edges, one red thing per view. Rules: brand/README.md. */
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Archivo Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-wdth-italic.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Chivo Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/chivo-mono-latin-wght-normal.woff2) format("woff2-variations");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font: 400 17px / 1.6 var(--font-body);
  font-stretch: 100%;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}
::selection {
  background: var(--red);
  color: var(--on-red);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
code,
pre,
.mono {
  font-family: var(--font-mono);
}
code {
  font-weight: 500;
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
strong {
  font-weight: 650;
}
.muted {
  color: var(--muted);
}
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The theme decides which logo shows. */
.logo-light {
  display: none;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-dark {
    display: none;
  }
  :root:not([data-theme="dark"]) .logo-light {
    display: block;
  }
}
:root[data-theme="light"] .logo-dark {
  display: none;
}
:root[data-theme="light"] .logo-light {
  display: block;
}

.label,
.kicker {
  font: 600 12px / 1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: var(--display-stretch);
  font-weight: var(--display-weight);
  letter-spacing: -0.02em;
  line-height: 1;
  text-wrap: balance;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: block;
  line-height: 0;
}
.brand img {
  height: 19px;
  width: auto;
}
.bar nav {
  margin-left: auto;
}
.bar nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bar nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.bar nav a:hover,
.bar nav a[aria-current] {
  color: var(--text);
  background: var(--surface-2);
}
.theme {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font: 600 13px / 1 var(--font-mono);
  color: var(--muted);
}
.theme:hover {
  color: var(--text);
  background: var(--surface-2);
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--invert);
  color: var(--on-invert);
  border-radius: var(--radius-s);
  font-weight: 700;
}
.skip:focus {
  top: 10px;
}

/* Buttons: the primary action stands apart, and is the one red thing. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition:
    background var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.btn:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--on-red);
}
.btn-primary:hover {
  background: var(--red);
  filter: brightness(1.08);
}
.btn:active {
  transform: translateX(2px);
}

/* Landing */
.landing main > section {
  padding-block: clamp(56px, 9vw, 112px);
}
.landing main > section + section {
  border-top: 1px solid var(--line);
}
.hero {
  padding-top: clamp(48px, 8vw, 104px) !important;
}
.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.hero h1 {
  font-size: clamp(52px, 11vw, 132px);
  margin: 18px 0 24px;
}
.hero .sub {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.4;
  max-width: 34ch;
  margin-bottom: 32px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}
.hero .install {
  margin-top: 10px;
}
/* The prompt people paste into Claude Code (DOC-7): one long line, so it wraps instead of scrolling. */
.install-note {
  margin: 28px 0 0;
  font: 500 14px / 1.4 var(--font-body);
  color: var(--muted);
}
.install-note + .code {
  margin-top: 10px;
}
.prompt pre,
.prompt pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.release-line {
  margin-top: 16px;
  font: 500 13px / 1.4 var(--font-mono);
  color: var(--muted);
}

/* The command, in a block you can copy */
pre {
  margin: 0 0 1.25em;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 14.5px;
  line-height: 1.6;
  tab-size: 2;
}
pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
}
.code {
  position: relative;
}
.code .copy {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  font: 600 12px / 1 var(--font-mono);
  color: var(--muted);
}
.code .copy:hover {
  color: var(--text);
}
.code pre {
  padding-right: 84px;
  margin-bottom: 0;
}
.doc .code {
  margin-bottom: 1.25em;
}

/* The example board: made-up tasks */
.board {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.board ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.task {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.task:last-child {
  border-bottom: 0;
}
.wid {
  font: 600 12.5px / 1 var(--font-mono);
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 5px 7px;
  border-radius: var(--radius-xs);
  background: var(--surface-3);
  color: var(--text);
}
.wid.red {
  background: var(--red);
  color: var(--on-red);
}
.task-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}
.task-meta {
  grid-column: 2;
  font: 500 12.5px / 1.4 var(--font-mono);
  color: var(--muted);
}
.state {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font: 700 11px / 1.4 var(--font-mono);
  letter-spacing: 0.04em;
}
.state.ok {
  color: var(--success);
  background: var(--success-bg);
}
.state.wait {
  color: var(--warn);
  background: var(--warn-bg);
}
.state.go {
  color: var(--accent);
  background: var(--tint);
}
figure {
  margin: 0;
}
figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}
.section-title {
  font-size: clamp(28px, 4.2vw, 44px);
  margin: 12px 0 16px;
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 12px 0 16px;
}
.section-head p {
  font-size: 19px;
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.card p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}
.card .code {
  margin-top: 16px;
}
.card pre {
  font-size: 13px;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.steps li {
  counter-increment: step;
  padding-top: 18px;
  border-top: 2px solid var(--line-strong);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  font: 700 13px / 1 var(--font-mono);
  color: var(--muted);
}
.steps h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.steps p {
  color: var(--muted);
  margin: 0;
}
.two {
  display: grid;
  gap: 40px;
}
/* A column never grows past the page for a long line inside it: its code scrolls instead. */
.two > * {
  min-width: 0;
}
@media (min-width: 900px) {
  .two {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.checks li {
  padding-left: 28px;
  position: relative;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--success);
  border-bottom: 3px solid var(--success);
  transform: rotate(-45deg) translateY(-30%);
}
.closing {
  text-align: left;
}
.closing h2 {
  font-size: clamp(40px, 7vw, 84px);
}

/* Docs */
.docs {
  display: grid;
  gap: 24px 48px;
  padding-block: 32px 80px;
}
@media (min-width: 900px) {
  .docs {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
@media (min-width: 1280px) {
  .docs:has(.toc) {
    grid-template-columns: 240px minmax(0, 1fr) 220px;
  }
}
.docs-nav {
  font-size: 15px;
}
@media (min-width: 900px) {
  .docs-nav {
    position: sticky;
    top: calc(var(--topbar-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--topbar-h) - 48px);
    overflow-y: auto;
  }
  .docs-menu > summary {
    display: none;
  }
}
.docs-menu > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-weight: 700;
  cursor: pointer;
  background: var(--surface);
}
.docs-menu[open] > summary {
  margin-bottom: 16px;
}
.side-group {
  margin-bottom: 22px;
}
.side-group .label {
  margin-bottom: 8px;
  padding-left: 10px;
}
.side-group ul,
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-group a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-s);
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
}
.side-group a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.side-group a[aria-current] {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--red);
}
.doc {
  min-width: 0;
  max-width: 780px;
  outline: none;
}
.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin: 10px 0 14px;
}
.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 36px;
}
.doc h2 {
  font-size: 28px;
  margin: 52px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  position: relative;
}
.doc h3 {
  font-size: 20px;
  margin: 32px 0 10px;
  position: relative;
}
.doc .anchor {
  position: absolute;
  left: -22px;
  color: var(--faint);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  opacity: 0;
}
.doc h2:hover .anchor,
.doc h3:hover .anchor,
.doc .anchor:focus-visible {
  opacity: 1;
  color: var(--accent);
}
.doc ul,
.doc ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}
.doc li {
  margin-bottom: 0.45em;
}
.doc li::marker {
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td {
  border-bottom: 0;
}
thead th {
  background: var(--bg-2);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
td:first-child {
  min-width: 9ch;
}
.note {
  margin: 0 0 1.5em;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--faint);
  border-radius: var(--radius-s);
}
.note p:last-child {
  margin-bottom: 0;
}
.toc {
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
  align-self: start;
  font-size: 14px;
  display: none;
}
@media (min-width: 1280px) {
  .toc {
    display: block;
  }
}
.toc .label {
  margin-bottom: 10px;
}
.toc a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pager a {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  min-width: 0;
}
.pager a:hover {
  background: var(--surface-2);
}
.pager-next {
  text-align: right;
  margin-left: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 48px;
  margin-top: 0;
}
.foot-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 32px;
}
.foot-grid ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.foot-grid a {
  color: var(--text);
  text-decoration: none;
}
.foot-grid a:hover {
  text-decoration: underline;
}
.foot-grid .muted {
  margin-top: 14px;
  font-weight: 600;
}
.fine {
  font-size: 14px;
  color: var(--muted);
  max-width: 80ch;
  margin: 0;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .bar {
    gap: 8px;
  }
  .bar nav a {
    padding: 8px;
    font-size: 14px;
  }
  .bar nav li:nth-child(2) {
    display: none;
  }
  .brand img {
    height: 16px;
  }
  .doc .anchor {
    display: none;
  }
  .code pre {
    padding-right: 18px;
    padding-top: 44px;
  }
}

/* Reduced motion: everything is an instant change. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.closing-note {
  font-size: 19px;
  max-width: 60ch;
  margin: 20px 0 28px;
}
