/* ---------------------------------------------------------------
   Reusable components — brand lockup, navigation, labels,
   links and buttons, and the three list forms the page needs.
   --------------------------------------------------------------- */

/* Brand lockup -------------------------------------------------- */
/* mark.svg ships with a light fill for dark ground, so it is drawn
   here as a mask and takes its colour from CSS instead. */

.mark {
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("/assets/img/mark.svg") center / contain no-repeat;
  mask: url("/assets/img/mark.svg") center / contain no-repeat;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand .mark {
  width: 22px;
  height: 22px;
}

.brand-word {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: var(--track-word);
  text-transform: uppercase;
  /* letter-spacing leaves a trailing gap; pull the box back in */
  margin-right: calc(var(--track-word) * -1);
}

/* Navigation ---------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.nav-link {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  padding-block: 6px;
  transition: color 0.25s var(--ease);
}
.nav-link:hover { color: var(--ink); }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.nav-link[aria-current="true"] { color: var(--ink); }
.nav-link[aria-current="true"]::after { opacity: 1; }

/* Phones: the same row, tightened — no menu to open. */
@media (max-width: 599px) {
  .head-row { padding-block: 10px; }
  .nav { gap: 14px; }
  .nav-link { font-size: 12px; }
  .nav-link .nav-long { display: none; }
}

/* Labels --------------------------------------------------------- */

.label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--faint);
}

.label-ink { color: var(--muted); }

/* Prose --------------------------------------------------------- */

.lede {
  max-width: 40ch;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.body-text {
  max-width: 62ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.body-text + .body-text { margin-top: 1.1em; }

.note {
  max-width: 62ch;
  font-family: var(--serif);
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.5;
  color: var(--muted);
}

/* Links and buttons -------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }

.link {
  display: inline-block;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.28s var(--ease), color 0.28s var(--ease);
}
.link:hover { border-bottom-color: var(--accent); color: var(--accent); }

.link-mono {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

/* Metadata list — key facts, one per line ---------------------- */

.meta-list { display: grid; }

.meta-list li {
  padding-block: 11px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.meta-list li:last-child { border-bottom: 1px solid var(--rule-soft); }

/* Capability grid — title with a one-line definition ----------- */

.cap-grid { display: grid; }

.cap-item {
  padding: 20px 0 22px;
  border-top: 1px solid var(--rule);
}

.cap-item .label { margin-bottom: 10px; }
.cap-item h3 { margin-bottom: 5px; font-family: var(--sans); font-weight: 600; }
.cap-item p { font-size: 15px; line-height: 1.5; color: var(--muted); }

@media (min-width: 720px) {
  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 5vw, 72px);
  }
}

/* Plain list — statements of fact, one per row ----------------- */

.plain-list { display: grid; }

.plain-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: baseline;
  padding-block: 14px;
  border-top: 1px solid var(--rule);
  font-size: clamp(16px, 1.5vw, 17.5px);
  color: var(--ink);
}
.plain-list li:last-child { border-bottom: 1px solid var(--rule); }

.plain-list li::before {
  content: "";
  width: 9px;
  height: 1px;
  margin-top: 0.72em;
  background: var(--ink);
}
