/* Inwy brand — source of truth for colours, type and the logo lockup.
   Edit here, then run `python brand/tools/sync.py` to copy it into each project.
   Fonts: Instrument Sans (wdth 75–100, wght 400–700) + Instrument Serif (roman + italic).
   Both share cap height 720 and x-height 510 per 1000 em, so they sit at the same size. */

:root {
  /* core */
  --inwy-ink: #141413;
  --inwy-paper: #faf9f5;
  --inwy-navy: #06143f;          /* heritage colour of the original logo; icon tiles */
  --inwy-moon: #ffd983;
  /* one colour per product — used for the product word and accents */
  --inwy-research: #2a6fc9;
  --inwy-selene: #6a55c9;
  --inwy-trend: #2f8a4c;
  --inwy-capital: #b9861a;
  --inwy-labs: #d4572f;
  /* type */
  --inwy-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --inwy-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --inwy-ink: #f4f3ee; --inwy-paper: #141413;
    --inwy-research: #6aa8f0; --inwy-selene: #a998f0; --inwy-trend: #6cc98a; --inwy-capital: #f2c14e; --inwy-labs: #f08a62;
  }
}
:root[data-theme="dark"] {
  --inwy-ink: #f4f3ee; --inwy-paper: #141413;
  --inwy-research: #6aa8f0; --inwy-selene: #a998f0; --inwy-trend: #6cc98a; --inwy-capital: #f2c14e; --inwy-labs: #f08a62;
}

/* ---------- the lockup ----------
   <a class="inwy inwy--research" href="/">
     <img class="inwy__moon" src="moon.svg" alt=""><span class="inwy__name">Inwy</span><em class="inwy__product">Research</em>
   </a>
   Size it with font-size (or --inwy-size). Everything else is in em. */
.inwy {
  display: inline-flex; align-items: baseline; white-space: nowrap;
  font-size: var(--inwy-size, 1.5rem); line-height: 1;
  color: inherit; text-decoration: none;
}
/* moon = cap height × 1.08 (a circle needs overshoot to look as tall as the I), centred on the caps */
.inwy__moon {
  flex: none; align-self: baseline; display: block;
  width: .78em; height: .78em;
  transform: translateY(.03em);
  margin-right: .2em;
}
.inwy__name {
  font-family: var(--inwy-sans); font-weight: 700; font-style: normal;
  font-stretch: 85%; font-variation-settings: "wdth" 85;
  letter-spacing: -.02em;
}
.inwy__product {
  font-family: var(--inwy-serif); font-style: italic; font-weight: 400;
  margin-left: .16em; letter-spacing: -.01em;
  color: var(--inwy-product, currentColor);
}
.inwy--research { --inwy-product: var(--inwy-research); }
.inwy--selene   { --inwy-product: var(--inwy-selene); }
.inwy--trend    { --inwy-product: var(--inwy-trend); }
.inwy--capital  { --inwy-product: var(--inwy-capital); }
.inwy--labs     { --inwy-product: var(--inwy-labs); }
