/*
 * Lynent brand sheet (/brand). Builds on /assets/tokens.css and /assets/site.css (header, footer, sections).
 * Monochrome only; the status swatches document the status colours and are the one place they appear outside badges and notices.
 */

.brand-intro { padding: var(--s-8) 0 var(--s-6); border-bottom: 1px solid var(--rule); }
.brand-intro .label { margin-bottom: var(--s-4); }
.brand-intro h1 { margin-bottom: var(--s-4); }

.brand-section { padding: var(--s-8) 0; }
.brand-head { max-width: 56ch; margin-bottom: var(--s-6); }
.brand-head p { margin-bottom: 0; }
.brand-note { margin: var(--s-5) 0 0; max-width: var(--w-measure); }

.brand-split { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .brand-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); } }

/* ------------------------------------------------------------------ logo tiles */
.brand-tiles { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .brand-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brand-tile { margin: 0; border: 1px solid var(--rule); border-radius: var(--r-panel); overflow: hidden; }
.brand-stage {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: var(--s-6);
  background: var(--bg);
  color: var(--ink);
}
.brand-tile figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.brand-tile figcaption a { font-size: var(--fs-xs); }
.brand-lockup { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.brand-mark-lg { display: block; width: 96px; height: 96px; fill: currentColor; }

/* ------------------------------------------------------------------ construction */
.brand-specs { margin: var(--s-5) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.brand-specs > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.brand-specs dt { font-size: var(--fs-sm); color: var(--ink-2); }
.brand-specs dd { margin: 0; font-size: var(--fs-sm); text-align: right; }

.brand-grid {
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  justify-self: center;
  background: var(--bg);
  border: 1px solid var(--rule);
  overflow: visible;
}
.brand-grid .grid-lines { fill: none; stroke: var(--rule); stroke-width: 0.06; }
.brand-grid .grid-mark { fill: var(--ink); }
.brand-grid .grid-ledger { fill: none; stroke: var(--ink-3); stroke-width: 0.06; stroke-dasharray: 0.3 0.3; }
.motion-ok [data-reveal='fade'] .brand-grid .grid-ledger { stroke-dashoffset: 24; transition: stroke-dashoffset var(--dur-4) var(--ease) var(--dur-3); }
.motion-ok [data-reveal='fade'].is-revealed .brand-grid .grid-ledger { stroke-dashoffset: 0; }

/* ------------------------------------------------------------------ clear space + sizes */
.brand-space-demo { display: grid; gap: var(--s-5); }
.brand-clear {
  display: grid;
  place-items: center;
  padding: var(--s-6);
  border: 1px solid var(--rule);
  border-radius: var(--r-panel);
}
/* The dashed box is the clear-space boundary: half the mark height (0.375em of a 0.75em glyph) around the lockup. */
.brand-clear .brand-lockup { padding: 0.375em; outline: 1px dashed var(--ink-3); outline-offset: 0; }
.brand-sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s-6);
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--rule);
  border-radius: var(--r-panel);
}
.brand-sizes > span { display: grid; justify-items: start; gap: var(--s-2); }
.brand-sizes svg { display: block; fill: var(--ink); }
.brand-size-16 { width: 16px; height: 16px; }
.brand-size-24 { width: 24px; height: 24px; }
.brand-size-32 { width: 32px; height: 32px; }
.brand-size-48 { width: 48px; height: 48px; }

/* ------------------------------------------------------------------ do / don't */
.brand-usage { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .brand-usage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); } }
.brand-usage-label { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); color: var(--ink); }
.brand-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-strong); }
.brand-list li { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: var(--fs-sm); }
.brand-list code { font-size: 0.92em; }
.brand-donts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-5); }
.brand-donts figure { margin: 0; display: grid; gap: var(--s-2); justify-items: center; padding: var(--s-4) var(--s-2) var(--s-3); background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r-panel); position: relative; }
.brand-donts figure::after {
  /* diagonal strike: the universal "not this" */
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 38%;
  height: 1px;
  background: var(--ink);
  transform: rotate(-35deg);
}
.brand-donts figcaption { font-size: var(--fs-xs); color: var(--ink-2); text-align: center; }
.brand-dont { display: block; width: 40px; height: 40px; fill: var(--ink); overflow: visible; }
.brand-dont-stretch { transform: scaleX(1.5); }
.brand-dont-rotate { transform: rotate(-12deg); }
.brand-dont-outline { fill: none; stroke: var(--ink); stroke-width: 1; }

/* ------------------------------------------------------------------ colour */
.brand-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .brand-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .brand-swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.brand-swatches + .brand-swatches { margin-top: var(--s-5); }
.brand-swatches li { display: grid; gap: 2px; font-size: var(--fs-sm); }
.brand-swatches .swatch { display: block; height: 72px; margin-bottom: var(--s-2); border: 1px solid var(--rule); border-radius: var(--r-panel); }
.swatch-name { font-weight: 500; }
.swatch-ink { background: #0A0A0A; }
.swatch-paper { background: #FFFFFF; }
.swatch-ink-2 { background: #525252; }
.swatch-ink-3 { background: #8A8A8A; }
.swatch-rule { background: #E5E5E5; }
.swatch-tint { background: #F5F5F5; }
.swatch-ok { background: #1E7A46; }
.swatch-warn { background: #A15C00; }
.swatch-bad { background: #B42318; }

/* ------------------------------------------------------------------ type */
.brand-type { border-top: 1px solid var(--rule-strong); }
.brand-type-row { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .brand-type-row { grid-template-columns: 240px minmax(0, 1fr); align-items: baseline; gap: var(--s-6); } }
.brand-type-row .label { margin: 0; }
.brand-type-sample { margin: 0; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.brand-type-600 { font-weight: 600; letter-spacing: var(--tracking-tight); }
.brand-type-400 { font-weight: 400; }
.brand-type-mono { font-weight: 500; }
