/* Albireo project site (albireo.cygnusstrategy.com, see README.md).
   Hand-built like sites/sadr/: Cygnus stone, paper, ink, hairline rules, square corners.
   Light only, the same as cygnusstrategy.com (Sadr's site is light only too), so the page
   reads the same in a dark browser. The Copy prompt pill is the one rounded control. */

:root {
  --stone: #e9e7e2;
  --paper: #f6f5f2;
  --ink: #15191f;
  --slate: #5a6472;
  --rule: rgba(21, 25, 31, 0.14);
  --verdigris: #1f6f5c;
  --verdigris-deep: #175446;
  --night-text: #d9d6cf;
  --night-muted: #9aa3ae;
  --night-rule: rgba(233, 231, 226, 0.14);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
}
a { color: var(--verdigris-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--verdigris); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
[id] { scroll-margin-top: 16px; }
code { font-family: var(--mono); font-size: 0.86em; overflow-wrap: anywhere; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 2px;
  font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.pad { padding-block: clamp(56px, 8vw, 104px); }
.band { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.night { background: var(--ink); color: var(--night-text); }
.two { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.plain { list-style: none; margin: 0; padding: 0; }

.label {
  font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin: 0 0 14px;
}
.h2 {
  font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 18px;
}
.lede { font-size: 18px; color: var(--slate); margin: 0 0 16px; max-width: 34em; }
.lede:last-child { margin-bottom: 0; }
.note { color: var(--slate); font-size: 15px; margin: 14px 0 0; }
.tbc { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { display: block; width: auto; height: 32px; }
.wordmark { font-family: var(--display); font-variation-settings: "wdth" 118; font-weight: 800; letter-spacing: 0.08em; font-size: 17px; text-transform: uppercase; }
.nav-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; font-family: var(--display); font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--slate); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(48px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; }
h1 {
  font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 22px;
}
.standfirst { font-size: clamp(18px, 1.6vw, 21px); color: var(--slate); max-width: 30em; margin: 0 0 28px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none;
  border-radius: 2px; min-height: 48px; display: inline-flex; align-items: center;
}
.btn-solid { color: var(--paper); background: var(--ink); padding: 14px 22px; }
.btn-solid:hover { color: var(--paper); background: #000; }
.btn-line { color: var(--ink); padding: 13px 21px; border: 1px solid var(--ink); }
.btn-line:hover { color: var(--ink); background: var(--paper); }

/* The example card */
.card-live { margin: 0; min-width: 0; }
.card-live [data-band-card] { max-width: none; }
.card-live figcaption { font-family: var(--display); font-size: 13px; color: var(--slate); margin-top: 10px; }

/* Build with your AI agent */
.agent .h2 { color: var(--paper); }
.agent .lede { color: var(--night-text); }
.copy-pill {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  min-height: 56px; padding: 10px 22px 10px 12px; margin-top: 10px;
  background: var(--paper); color: var(--ink); border: 0; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 16px; cursor: pointer;
}
.copy-pill:hover { background: #fff; }
.copy-pill:focus-visible { outline-color: var(--paper); }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1;
  padding: 7px 10px; border-radius: 999px; background: var(--stone); color: var(--slate);
}
.copy-pill .state { white-space: nowrap; }
.guide-link { display: inline-block; margin-top: 22px; color: var(--night-text); font-family: var(--display); font-size: 15px; }
.guide-link:hover { color: var(--paper); }

/* Per-client setup tabs */
.setup { margin-top: 56px; }
.setup h3 { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--paper); margin: 0 0 16px; }
.tablist { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--night-rule); }
[role="tab"] {
  font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--night-muted);
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 12px 14px; min-height: 44px; cursor: pointer;
}
[role="tab"]:hover { color: var(--paper); }
[role="tab"][aria-selected="true"] { color: var(--paper); border-bottom-color: var(--paper); }
[role="tab"]:focus-visible { outline-color: var(--paper); outline-offset: -2px; }
.panel { padding-top: 22px; max-width: 820px; }
.panel[hidden] { display: none; }
.panel p { margin: 0 0 12px; font-size: 16px; color: var(--night-text); }
.panel p.small { font-size: 14px; color: var(--night-muted); }
.panel ol { margin: 0 0 12px; padding-left: 22px; font-size: 16px; }
.panel code { color: var(--paper); }
.snippet { position: relative; margin: 0 0 16px; }
.snippet pre {
  margin: 0; padding: 16px 18px; padding-right: 88px; background: #0d1015; color: var(--night-text);
  border: 1px solid var(--night-rule); border-radius: 2px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.65;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.snippet .file { font-family: var(--mono); font-size: 12px; color: var(--night-muted); margin: 0 0 6px; }
.copy {
  position: absolute; top: 8px; right: 8px; min-height: 36px; min-width: 64px; padding: 6px 12px;
  font-family: var(--display); font-size: 13px; font-weight: 600;
  background: var(--ink); color: var(--night-text); border: 1px solid var(--night-rule); border-radius: 2px; cursor: pointer;
}
.snippet .file + pre + .copy, .snippet:has(.file) .copy { top: 30px; }
.copy:hover { color: var(--paper); border-color: var(--night-muted); }

/* Ruled lists and tables */
.ruled { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin: 0; }
.ruled > div, .ruled > li { padding-block: 16px; border-bottom: 1px solid var(--rule); }
.ruled > div:last-child, .ruled > li:last-child { border-bottom: 0; }
.ruled dt, .ruled .title { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0 0 4px; }
.ruled dd, .ruled .line { margin: 0; color: var(--slate); font-size: 16px; line-height: 1.6; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
td code { font-size: 13px; }
td.unit { white-space: nowrap; color: var(--slate); }

/* Footer */
footer { color: var(--night-muted); border-top: 1px solid var(--night-rule); }
footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 14px; }
footer p { margin: 0; }
footer a { color: var(--night-text); }
footer a:hover { color: var(--paper); }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 900px) {
  .two, .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hide-narrow { display: none; }
}
@media (max-width: 560px) {
  [role="tab"] { padding: 10px 10px; font-size: 13px; }
  .copy-pill { padding-right: 18px; }
  th, td { font-size: 14px; }
}

/* Phone: the data table becomes a list, field name on its own line. */
@media (max-width: 560px) {
  .table-wrap thead { display: none; }
  .table-wrap tr { display: block; padding-block: 12px; border-bottom: 1px solid var(--rule); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { display: inline; border: 0; padding: 0; }
  .table-wrap td:first-child { display: block; margin-bottom: 2px; }
  .table-wrap td.unit::after { content: ", "; }
  .table-wrap td code { overflow-wrap: normal; word-break: normal; }
}

/* Phone: keep the pill on one row. */
@media (max-width: 480px) {
  .copy-pill { flex-wrap: nowrap; gap: 10px; padding: 8px 16px 8px 10px; font-size: 15px; }
  .chips { gap: 4px; flex-wrap: nowrap; }
  .chip { font-size: 11px; padding: 6px 6px; }
}
.copy-pill { max-width: 100%; }
.copy-pill .chips { min-width: 0; overflow: hidden; }
@media (max-width: 374px) { .chip:nth-child(4) { display: none; } }
