/* Owner-supplied Aurora marketing system plus functional sample and route surfaces.
 * Shared tokens and the mark are maintained in services/design-system (ADR 0085). No React runtime. */
@import "./tokens.css";
@import "./fonts.css";
@import "./mark.css";

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 35px;
}

body {
  margin: 0;
  font-family: var(--font-brand-sans);
  background: var(--background);
  color: var(--ink);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, textarea, select {
  font: inherit;
}

input, textarea, select {
  min-width: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2 {
  font-family: var(--font-brand-sans);
  font-weight: var(--weight-bold);
  letter-spacing: -.04em;
  text-wrap: balance;
}

h2 {
  font-size: var(--display-2);
  line-height: 1.07;
}

h3 {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
}

p {
  line-height: 1.65;
}

svg {
  flex-shrink: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.wrap {
  width: min(1240px,calc(100% - 104px));
  margin-inline: auto;
}

.eyebrow {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  display: block;
}

.small {
  font-size: var(--text-sm);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 50px;
  border-radius: var(--radius-pill);
  padding: 13px 23px;
  font-size: var(--text-base);
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform var(--dur-base),background var(--dur-base),box-shadow var(--dur-base);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button.dark {
  background: var(--ink);
  color: var(--on-primary);
}

.button.dark:hover {
  background: var(--primary-hover);
}

.button.light {
  background: var(--accent-action);
  color: var(--ink);
}

.button.outline {
  border-color: var(--line);
  background: transparent;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: var(--text-base);
  font-weight: 500;
  background: transparent;
  border: 0;
  padding: 0;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.icon-btn:hover {
  background: var(--soft);
}

.badge {
  font-size: var(--text-2xs);
  line-height: 1.4;
  letter-spacing: .045em;
  padding: 5px 9px;
  background: var(--soft);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  font-weight: 600;
}

.badge.paid {
  background: var(--success-surface);
  color: var(--success);
}

.badge.amber {
  background: var(--warning-surface);
  color: var(--warning);
}

/* The lockup (ADR 0237): the mark beside the drawn wordmark, sized by the mark (mark.css). */
.brand-lockup {
  --lockup: 46px;
}

/* The header says the product is in its alpha: a quiet pill beside the lockup. */
.brand-group {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.alpha-badge {
  padding: 3px 9px 2px;
  border: 1px solid var(--lime-line);
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: var(--text-base);
}

.nav-links a:hover {
  color: var(--green);
}

.nav-cta {
  min-height: 44px;
  padding: 10px 19px;
}

.menu-cta {
  display: none;
}

.menu-toggle {
  display: none;
}

.hero-actions {
  display: flex;
  gap: 23px;
  align-items: center;
  margin-top: 32px;
}

.hero-note {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 19px;
}

.preview-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.preview-card-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--ink-2);
}

.preview-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: var(--text-xs);
}

.preview-card-text b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-card-text small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: var(--text-2xs);
}

/* The amber dot: this document waits for the person. */
.preview-card-text small i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warning-accent);
}

.preview-card-button {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-2xs);
  font-weight: 500;
  white-space: nowrap;
}

/* Nothing on the homepage makes it scroll sideways. */
.marketing {
  overflow-x: clip;
}

.status-tag {
  font-size: 10px;
  background: var(--brand-soft);
  padding: 5px 7px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.status-tag.amber {
  background: var(--warning-surface);
  color: var(--warning);
}

.proposal-note {
  font-size: 12px !important;
  color: var(--muted);
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: var(--text-base);
}

th {
  font-weight: 500;
}

td, th {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

thead {
  background: var(--soft);
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: var(--text-body);
}

summary::-webkit-details-marker {
  display: none;
}

/* ── The footer, on every page: one row (the lockup, the links), then the copyright line and the
   NullSquare badge. It carries the lockup, so it stands on the light ground, like every place the mark is. ── */
.site-footer {
  padding: var(--space-6) 0 var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-xs);
}

.nullsquare-badge { display: inline-block; line-height: 0; vertical-align: middle; }
.nullsquare-badge img { display: block; width: 218px; height: 32px; max-width: none; }
.nullsquare-badge:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.reveal {
  transition: transform var(--dur-reveal) var(--ease-dawn),opacity var(--dur-reveal) var(--ease-dawn);
}

.reveal:not(.revealed) {
  transform: translateY(10px);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.studio-card {
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.studio-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.studio-card p {
  font-size: var(--text-base);
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.75;
}

.studio-card .eyebrow {
  font-size: var(--text-2xs);
  color: var(--muted);
  margin-bottom: 17px;
}

.trust-page {
  padding-top: 75px;
  padding-bottom: 90px;
}

.trust-page>h1 {
  font-size: var(--display-1);
  margin: 22px 0;
}

.trust-page>.intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 650px;
}

.trust-page .studio-grid {
  margin-top: 42px;
}

.trust-page .studio-card {
  padding: 33px;
}

/* Terms and Privacy (ADR 0092): one readable column, sections set apart by a hairline. */
.legal-page {
  display: grid;
  gap: 22px;
  max-width: 760px;
  padding-top: 75px;
  padding-bottom: 90px;
}

.legal-page>h1 {
  font-size: var(--display-1);
  margin: 0;
}

.legal-page>.intro {
  font-size: 18px;
  color: var(--muted);
}

.legal-page .legal-status {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.legal-page section {
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-page h2 {
  font-size: 22px;
  margin: 0;
}

.legal-page section p, .legal-page li {
  color: var(--ink-2);
  line-height: 1.7;
}

.legal-page ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

@media (max-width:1100px) {
  .wrap {
    width: calc(100% - 64px);
  }

  .nav-links {
    gap: 20px;
  }

  

  

  .hero-actions {
    gap: 15px;
    flex-wrap: wrap;
  }

  

  .hero-note {
    max-width: 330px;
  }

  
}

@media (max-width:860px) {
  .nav-links {
    gap: 16px;
    font-size: var(--text-xs);
  }

  .nav-cta {
    font-size: var(--text-xs);
    padding: 10px 15px;
  }

  .site-nav {
    gap: 20px;
    height: 86px;
  }

  .site-nav .brand-lockup {
    --lockup: 40px;
  }

  

  

  .hero-actions {
    flex-direction: column;
    align-items: start;
    gap: 19px;
  }

  

  

  

  

  

  

  

  
}

@media (max-width:640px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .site-nav {
    height: 79px;
    gap: 12px;
  }

  .site-nav .brand-lockup {
    --lockup: 36px;
  }

  .menu-toggle {
    display: flex;
    width: 37px;
    height: 37px;
    margin-left: 0;
  }

  .nav-cta {
    margin-left: auto;
    font-size: var(--text-2xs);
    gap: 8px;
    min-height: 37px;
    padding: 8px 13px;
  }

  .nav-cta svg {
    width: 14px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 69px;
    left: 0;
    right: 0;
    background: var(--background);
    border: 1px solid var(--line);
    padding: 25px;
    border-radius: var(--radius-lg);
    flex-direction: column;
    font-size: var(--text-body);
    box-shadow: var(--shadow);
  }

  

  

  

  

  

  .hero-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 19px;
  }

  .hero-actions .button {
    font-size: var(--text-xs);
    min-height: 45px;
    padding: 12px 16px;
    gap: 12px;
  }

  .hero-actions .text-link {
    font-size: var(--text-xs);
  }

  .hero-note {
    font-size: 10px;
    max-width: none;
    margin-top: 15px;
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  .status-tag {
    font-size: 9px;
  }

  .proposal-note {
    font-size: 11px !important;
    max-width: 320px !important;
  }

  

  

  

  

  

  

  

  

  

  

  .studio-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .studio-card {
    padding: 23px;
  }

  .studio-card p {
    font-size: var(--text-sm);
  }

  .trust-page {
    padding-top: 45px;
    padding-bottom: 55px;
  }

  .trust-page>h1 {
    font-size: 43px;
  }

  .trust-page>.intro {
    font-size: var(--text-body);
  }

  .trust-page .studio-card {
    padding: 25px;
  }
}

@media (max-width:360px) {
  .wrap {
    width: calc(100% - 32px);
  }

  

  

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button {
    font-size: var(--text-2xs);
  }

  .hero-actions .text-link {
    font-size: var(--text-2xs);
  }

  .status-tag {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion:reduce) {
  *, *:before, *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    transform: none !important;
  }
}

html[data-motion=off] *, html[data-motion=off] *:before, html[data-motion=off] *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  min-width: 320px;
}

button, a {
  touch-action: manipulation;
}

img {
  max-width: 100%;
}

button:disabled {
  cursor: default;
}

button, a, input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  overflow-wrap: anywhere;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

.site-nav .mobile-menu {
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.site-nav .mobile-menu svg {
  width: 20px;
}

.site-nav .mobile-menu[hidden] {
  display: none !important;
}

.site-nav {
  height: auto;
  min-height: 92px;
  flex-wrap: wrap;
  padding-block: 18px;
}

.nav-links {
  align-items: center;
}

.nav-links a {
  padding-block: 12px;
}

.hero-mark {
  width: 100%;
}

.reveal {
  transform: none !important;
}

.reveal.is-waiting {
  opacity: .25;
}

.proposal-note {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-block: 24px;
}

.button {
  min-height: 44px;
}

.button svg {
  flex-shrink: 0;
}

.index-number {
  color: var(--green);
}

@media (max-width:900px) {
  .site-nav {
    gap: 15px;
  }

  .site-nav .nav-links {
    gap: 20px;
    font-size: var(--text-xs);
  }
}

@media (max-width:640px) {
  .site-nav {
    min-height: 75px;
  }

  .site-nav .nav-links {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    order: 5;
  }

  .site-nav[data-navigation=ready] .nav-links {
    display: none;
  }

  .site-nav[data-navigation=ready] .nav-links.is-open {
    display: flex;
  }

  .site-nav .mobile-menu {
    display: inline-flex;
  }

  /* A phone's bar keeps the lockup, the badge and the menu; the menu ends with the one way in. */
  .site-nav>.nav-cta {
    display: none;
  }

  .site-nav .nav-links .menu-cta {
    display: inline-flex;
    justify-content: center;
  }

  .wrap {
    width: calc(100% - 36px);
  }
}

@media (min-width:641px) {
  .site-nav .mobile-menu {
    display: none;
  }
}

@media (prefers-reduced-motion:reduce) {
  .reveal.is-waiting {
    opacity: 1;
  }
}

html[data-motion=off] .reveal.is-waiting {
  opacity: 1;
}

/* ── The brand bible (/brand/, ADR 0086) ─────────────────────────────────────────────────────
   Drawn with the product's own tokens, marks and motion; brand.mjs fills in measured values. */
.inline-link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.brand-bible {
  padding-bottom: var(--space-8);
}

.brand-bible code {
  font-family: var(--font-brand-mono);
  font-size: .86em;
  color: var(--ink-2);
}

.bb-hero {
  padding-top: var(--space-8);
  text-align: center;
}

.bb-hero h1 {
  margin: var(--space-5) 0 var(--space-4);
  font-size: var(--display-1);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

.bb-hero .intro {
  max-width: 44ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: var(--leading-body);
}

.bb-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.bb-toc a {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-size: var(--text-sm);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.bb-toc a:hover {
  border-color: var(--lime-line);
  background: var(--brand-soft);
}

/* The hero's sunrise: the mark, large, on a horizon across the page, with lime light behind. */
.bb-sunrise {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  margin-top: var(--space-7);
  border-bottom: 1px solid var(--line-strong);
}

.bb-sunrise::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 0;
  width: min(900px, 100%);
  height: 260px;
  translate: -50% 0;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, rgb(var(--lime-rgb) / 90%), rgb(var(--lime-rgb) / 0) 72%);
}

.bb-hero-mark {
  width: 300px;
  height: 300px;
  margin-bottom: calc(-11 / 32 * 300px);
}

.bb-hero-mark :is(.mark-horizon, .mark-ledger) {
  display: none;
}

.bb-section {
  padding-top: var(--space-9);
}

.bb-head {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: var(--space-2) var(--space-5);
  max-width: 900px;
  margin-bottom: var(--space-6);
}

.bb-head .index-number {
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-caps);
}

.bb-head h2 {
  font-size: var(--display-2);
  line-height: var(--leading-display);
}

.bb-head p {
  grid-column: 2;
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: var(--leading-body);
}

.bb-section h3 {
  margin: var(--space-7) 0 var(--space-4);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
}

.bb-lede {
  max-width: 70ch;
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}

.bb-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
}

/* The mark on its construction grid. */
.bb-construction {
  margin: 0;
}

.bb-grid-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.bb-grid-art > * {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
}

.bb-guides {
  overflow: visible;
  pointer-events: none;
}

.bb-grid-lines {
  fill: none;
  stroke: var(--line);
  stroke-width: .06;
}

.bb-guide {
  fill: none;
  stroke: var(--focus);
  stroke-width: .08;
  stroke-dasharray: .4 .3;
  opacity: .7;
}

.bb-construction figcaption {
  max-width: 460px;
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
}

.bb-facts {
  display: grid;
  margin: 0 0 var(--space-5);
  border-top: 1px solid var(--line);
}

.bb-facts > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}

.bb-facts dt {
  font-weight: var(--weight-semibold);
}

.bb-facts dd {
  margin: 0;
  color: var(--muted);
}

/* Lockups, sizes, rules and things never to do. */
.bb-lockups, .bb-uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.bb-uses {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-tile {
  display: grid;
  align-content: space-between;
  gap: var(--space-5);
  min-height: 190px;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.bb-tile > small {
  color: var(--muted);
  font-size: var(--text-sm);
}

.bb-tile.is-dark {
  border-color: transparent;
  background: var(--dark);
  color: var(--on-dark);
}

.bb-tile.is-dark > small {
  color: var(--on-dark-muted);
}

.bb-lockup {
  --lockup: 54px;
}

.bb-sizes {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
}

.bb-sizes > span {
  display: grid;
  justify-items: center;
  gap: var(--space-1);
}

.bb-sizes .aunara-mark {
  width: var(--size);
  height: var(--size);
}

.bb-sizes small {
  color: var(--muted);
  font-size: var(--text-2xs);
}

.bb-rules {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}

.bb-donts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-donts li {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.bb-donts small {
  color: var(--danger);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.bb-dont {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
}

.bb-dont::after {
  content: "";
  position: absolute;
  inset: 44% -6%;
  height: 2px;
  border-radius: 2px;
  background: var(--danger);
  rotate: -18deg;
}

.bb-dont .aunara-mark {
  width: 72px;
  height: 72px;
}

.bb-dont.is-boxed .aunara-mark {
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  background: var(--selected);
}

.bb-dont.is-recoloured .aunara-mark {
  filter: hue-rotate(150deg) saturate(1.6);
}

.bb-dont.is-stretched .aunara-mark {
  scale: 1.5 .8;
  rotate: -12deg;
}

.bb-dont.is-outlined .aunara-mark {
  filter: drop-shadow(1px 0 0 var(--ink)) drop-shadow(-1px 0 0 var(--ink)) drop-shadow(0 1px 0 var(--ink)) drop-shadow(0 -1px 0 var(--ink)) drop-shadow(0 8px 6px rgb(var(--forest-rgb) / 40%));
}

/* Colour. */
.bb-proportion {
  display: flex;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.bb-proportion span {
  flex: var(--share) 1 0;
  background: var(--swatch);
}

.bb-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-swatch {
  display: grid;
  gap: 2px;
  padding: var(--space-2) var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  font-size: var(--text-sm);
}

.bb-chip {
  height: 72px;
  margin-bottom: var(--space-2);
  border: 1px solid rgb(var(--forest-rgb) / 8%);
  border-radius: var(--radius-sm);
  background: var(--swatch);
}

.bb-swatch > :not(.bb-chip) {
  padding-inline: var(--space-1);
}

.bb-swatch .bb-value {
  color: var(--muted);
  font-family: var(--font-brand-mono);
  font-size: var(--text-xs);
}

.bb-swatch small {
  color: var(--muted);
  font-size: var(--text-xs);
}

.bb-swatches.is-dark .bb-swatch {
  border-color: transparent;
  background: var(--dark);
  color: var(--on-dark);
}

.bb-swatches.is-dark :is(code, small, .bb-value) {
  color: var(--on-dark-muted);
}

.bb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.bb-table th {
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-align: left;
}

.bb-table td {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.bb-pair {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

.bb-ratio {
  color: var(--success);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.bb-ratio.is-below {
  color: var(--danger);
}

/* Type. */
.bb-specimen {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
  margin-bottom: var(--space-6);
}

.bb-display {
  font-size: var(--display-hero);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

.bb-specimen-notes {
  display: grid;
  gap: var(--space-3);
  color: var(--ink-2);
}

.bb-figures {
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-semibold);
}

.bb-mono {
  font-family: var(--font-brand-mono);
}

.bb-scale td:first-child {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: var(--tracking-heading);
}

/* Motion. */
.bb-motions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-motions li {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.bb-motions small {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
}

.bb-stage {
  display: grid;
  place-items: center;
  justify-self: stretch;
  height: 120px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-lg);
  background: var(--soft);
}

.bb-stage .aunara-mark {
  width: 96px;
  height: 96px;
}

.bb-dawn-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark) 45%, var(--dark-raised) 100%);
  color: var(--on-dark);
}

.bb-dawn-demo p {
  margin: var(--space-2) 0 var(--space-5);
  color: var(--on-dark-muted);
  line-height: var(--leading-body);
}

.bb-dawn-demo code {
  color: var(--on-dark-accent);
}

.bb-dawn-stage {
  aspect-ratio: 2;
  border-bottom: 1px solid rgb(var(--lime-rgb) / 60%);
}

.bb-dawn-stage .dawn-halo {
  opacity: .6;
}

.bb-timeline {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.bb-lane {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
}

.bb-track {
  position: relative;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.bb-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--start);
  width: var(--span);
  display: flex;
  align-items: center;
  padding-inline: var(--space-2);
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--light);
  color: var(--ink);
  font-size: var(--text-2xs);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bb-curves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-curves li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.bb-curves svg {
  width: 100%;
  max-height: 180px;
}

.bb-axis {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.bb-curve {
  fill: none;
  stroke: var(--moss-500);
  stroke-width: 3;
  stroke-linecap: round;
}

.bb-curves small {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Shape, space and depth. */
.bb-shapes, .bb-shadows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-shapes li, .bb-shadows li, .bb-spaces li {
  display: grid;
  gap: var(--space-1);
  font-size: var(--text-sm);
}

.bb-shapes small, .bb-shadows small, .bb-spaces small {
  color: var(--muted);
  font-size: var(--text-xs);
}

.bb-radius {
  height: 84px;
  margin-bottom: var(--space-2);
  border: 2px solid var(--light);
  background: var(--brand-soft);
}

.bb-spaces {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-spaces li {
  grid-template-columns: 120px 110px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
}

.bb-space {
  height: 14px;
  border-radius: 2px;
  background: var(--light);
}

.bb-shadow {
  height: 96px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

/* In use. */
.bb-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.bb-uses .preview-card {
  max-width: 420px;
  background: var(--paper);
}

.bb-voice td:first-child {
  color: var(--ink);
}

.bb-voice td:last-child {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--danger-line);
}

@media (max-width: 1000px) {
  .bb-motions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-donts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-lockups { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .bb-split, .bb-specimen, .bb-dawn-demo, .bb-uses, .bb-curves { grid-template-columns: minmax(0, 1fr); }
  .bb-head { grid-template-columns: minmax(0, 1fr); }
  .bb-head p { grid-column: 1; }
  .bb-hero-mark { width: 220px; height: 220px; margin-bottom: calc(-11 / 32 * 220px); }
  .bb-lane { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .bb-spaces li { grid-template-columns: 110px 28px minmax(0, 1fr); }
  .bb-spaces code { white-space: nowrap; }
  .bb-table { font-size: var(--text-xs); table-layout: fixed; }
  .bb-scale td:first-child { white-space: normal; overflow-wrap: anywhere; }
  .bb-scale th:nth-child(3), .bb-scale td:nth-child(3) { display: none; }
  .bb-contrast td:nth-child(2) code { display: none; }
}

@media (max-width: 480px) {
  .bb-motions, .bb-donts { grid-template-columns: minmax(0, 1fr); }
  .bb-scale th:nth-child(4), .bb-scale td:nth-child(4) { display: none; }
}

/* ── A day with Aunara: the sample window ────────────────────────────────────────────────────
   Each hour's scene plays in a small Aunara window and ends with the person's go-ahead. The
   scenes are fixed samples; the chapter text carries the meaning. home.css lays the section out. */

/* Out of view, a section's continuing motion rests (app.mjs marks it quiet). */
[data-quiet] :is(.aunara-mark *, .dawn *) {
  animation-play-state: paused;
}

/* Ready: a lime point of light. Not yet: an empty ring. */

/* One line runs through the steps, from each number to the next. */

/* Two plans, and the price is the figure. */

/* The mark's horizon and ledger lines, under the name. */

/* On a phone the petals' names sit as a row under the headline, and the day's stage stays pinned
   above the chapters as they pass. */

