/*
 * N8ech brand: shared design tokens and the PCB-trace link decoration.
 *
 * Single source of truth for n8ech.com, the blog and the Shopify store.
 *   - html/index.html loads it from /assets/brand.css
 *   - the Hugo blog mounts html/assets into its assets (blog/hugo.toml)
 *   - shopify/assets/n8ech-brand.css is a byte-for-byte copy; CI fails if
 *     the two differ (scripts/check-brand-css.sh). After editing this file run:
 *       cp html/assets/brand.css shopify/assets/n8ech-brand.css
 *
 * Only custom properties and class selectors here, so it is safe to load into
 * any page (including Shopify themes) without restyling bare elements.
 */

:root {
  --gold:      #B8902A;
  --gold-l:    #D4B06A;
  --gold-d:    #7A5F1A;
  --black:     #0A0A0A;
  --charcoal:  #1C1C1C;
  --parchment: #F4EFE6;
  --grey:      #888888;
  --trace:     #846820; /* gold @ 0.7 over black, pre-blended (no alpha) */

  /* Gold dot grid; use with background-size: 20px 20px */
  --dot-grid: radial-gradient(circle, rgba(184,144,42,0.18) 1px, transparent 1px);
}

/* Link + PCB-trace decoration: stack the trace under the link.
   align-items:stretch makes the underline span the full text width. */
.deco-link {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
}
.deco-link:hover { text-decoration: none; }

/* Full-width underline band; up-turn rises toward the text mid-line */
.trace-deco {
  position: relative;
  display: block;
  height: 18px;
  /* pull the band up so the up-turn lands at the text mid-line */
  margin-top: -0.62em;
  color: var(--trace);
  pointer-events: none;
}
.trace-line {
  position: absolute;
  left: 4px;
  right: 0;
  top: 14.5px;
  border-top: 1px solid currentColor;
}
.trace-cap {
  position: absolute;
  top: 0;
}
.trace-cap-left  { left: 0; }
/* push the up-turn out past the text so its terminal clears the letters */
.trace-cap-right { right: -16px; }

/* Bordered call-to-action, as on the n8ech.com signup button */
.n8-button {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(184,144,42,0.5);
  color: var(--gold);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  padding: 0.45rem 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.n8-button:hover {
  background: rgba(184,144,42,0.1);
  border-color: var(--gold);
  color: var(--gold);
  text-decoration: none;
}
