/* ------------------------------------------------------------------
   Brand + product layer.
   Base tokens live in _astro/global.css; this file only adds what this
   project needs on top of them.
   ------------------------------------------------------------------ */

/* --- Legibility on the accent surface -----------------------------
   The accent is a light green surface, so secondary text tints that
   would read fine on a dark accent drop below readable here.
   Same white, same hierarchy — just less transparency on accent.      */
:root {
  --color-inverted-body: rgba(var(--color-accent-foreground-rgb), 0.96);
  --color-inverted-muted: rgba(var(--color-accent-foreground-rgb), 0.93);
  --color-inverted-soft: rgba(var(--color-accent-foreground-rgb), 0.88);
  --color-inverted-faint: rgba(var(--color-accent-foreground-rgb), 0.78);
  --color-inverted-line: rgba(var(--color-accent-foreground-rgb), 0.42);
  --color-inverted-hairline: rgba(var(--color-accent-foreground-rgb), 0.24);
}

/* --- Wordmark -----------------------------------------------------
   Placeholder text wordmark. When the real name arrives, change the
   three "[ name ]" strings in each HTML file and nothing else.        */
.site-header__brand {
  line-height: 1;
}

.site-header__wordmark {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: var(--site-header-wordmark-height);
  color: currentColor;
  white-space: nowrap;
}

.about__brand {
  font-variant-ligatures: none;
}

/* --- Pending links ------------------------------------------------
   Clickable, styled, but intentionally inert until the real URLs are
   supplied. pending-links.js swallows the navigation.                 */
[data-pending-link] {
  cursor: pointer;
}

/* --- Access panel (inside the accent overlay) --------------------- */
.access {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

.access__cta {
  align-self: flex-start;
}

.access__list {
  margin-top: clamp(0.25rem, 1vw, 0.75rem);
}

.access__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-inverted-hairline);
}

.access__row {
  border-bottom: 1px solid var(--color-inverted-hairline);
}

.access__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  color: var(--color-inverted-foreground);
  text-decoration: none;
  transition:
    opacity var(--transition-duration) var(--ease-out),
    padding-inline-start var(--transition-duration) var(--ease-out);
}

.access__link:hover,
.access__link:focus-visible {
  padding-inline-start: 0.5rem;
}

.access__name {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 500;
}

.access__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-inverted-faint);
}

.access__contract {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.access__contract-label {
  text-transform: uppercase;
  color: var(--color-inverted-faint);
}

.access__contract-value {
  color: var(--color-inverted-foreground);
  word-break: break-all;
}

.access__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--color-inverted-faint);
}

/* --- Document pages (docs / token) -------------------------------- */
.legal-section__figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  background: var(--color-hairline);
  border: 1px solid var(--color-hairline);
}

.legal-section__figure {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1.125rem;
  background: var(--color-background);
}

.legal-section__figure-value {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-foreground);
  font-variant-numeric: tabular-nums;
}

.legal-section__figure-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.legal-table-wrap {
  margin: 1.5rem 0 0;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.legal-table th,
.legal-table td {
  padding: 0.625rem 1rem 0.625rem 0;
  text-align: left;
  border-bottom: 1px solid var(--color-hairline);
}

.legal-table th {
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.legal-table td {
  color: var(--color-body);
}

.legal-table td:first-child {
  color: var(--color-foreground);
}

.legal-split {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.legal-split__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.75rem 1rem;
}

.legal-split__name {
  font-weight: 500;
  color: var(--color-foreground);
}

.legal-split__note {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.legal-split__value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-foreground);
}

.legal-split__bar {
  grid-column: 1 / -1;
  height: 2px;
  background: var(--color-hairline);
  position: relative;
  overflow: hidden;
}

.legal-split__bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--legal-split-share, 0%);
  background: var(--color-accent);
}

.legal-section__text code,
.legal-section__list code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: rgba(var(--color-foreground-rgb), 0.06);
  border-radius: 2px;
}
