/* ============================================================
   Housecarl Arbiter — arbiter.css
   Brand tokens and layout primitives for arbiter.housecarl.cloud.
   Ported from the UDR Standard design kit (colors_and_type.css).
   "1940s iron meets 2030." Libre Baskerville + JetBrains Mono,
   paper surface, hairline rules, Helios accent palette.
   ============================================================ */

/* ---------- FONT IMPORTS ------------------------------------------- */
/* Loaded via <link> in base.html for performance; declared here as well
   so the stylesheet is self-documenting. Fonts: Libre Baskerville
   (serif/display), Montserrat (UI/sans), JetBrains Mono (data/mono). */

/* ---------- BRAND TOKENS ------------------------------------------- */
:root {
  /* Neutrals: iron + paper */
  --arb-ink:        #1A1A1A;
  --arb-iron-900:   #2A2A2A;
  --arb-iron-700:   #3A3A3A;
  --arb-iron-300:   #8A8A8A;
  --arb-iron-100:   #D8D8D8;
  --arb-off-white:  #F5F5F5;
  --arb-paper:      #FAFAF7;
  --arb-paper-tint: #F0EFEA;

  /* Helios accents */
  --arb-solar:      #E0AE3A;   /* primary CTA / brand gold */
  --arb-solar-deep: #C8961E;   /* accent text / headings on paper */
  --arb-summer:     #FF8C00;   /* amber: warnings / contradictions */
  --arb-teal:       #0E8C7A;   /* everyday accent: labels / nav / scores */
  --arb-teal-bright:#1FC9B0;   /* accent on dark surfaces */
  --arb-copper:     #D86B27;   /* secondary warm accent */
  --arb-copper-deep:#B85615;
  --arb-gold:       #D4AF37;   /* muted gold: seals / authority rules */
  --arb-deep-blue:  #2C3E50;   /* italic slogan / secondary text */

  /* Type families */
  --arb-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --arb-sans:  'Montserrat', system-ui, -apple-system, sans-serif;
  --arb-mono:  'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Spacing (8pt grid) */
  --arb-s1:  4px;
  --arb-s2:  8px;
  --arb-s3:  12px;
  --arb-s4:  16px;
  --arb-s5:  24px;
  --arb-s6:  32px;
  --arb-s7:  48px;
  --arb-s8:  64px;
  --arb-s9:  96px;

  /* Layout */
  --arb-container: 1180px;

  /* Motion */
  --arb-ease:     cubic-bezier(.2,.0,.2,1);
  --arb-dur-fast: 120ms;
  --arb-dur:      200ms;
}

/* ---------- RESET & BASE ------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Paper surface */
body.arb-paper {
  background: var(--arb-paper);
  color: var(--arb-ink);
  font-family: var(--arb-sans);
}

a { color: inherit; }

/* ---------- UTILITY WRAP ------------------------------------------- */
.arb-wrap {
  max-width: var(--arb-container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- COLOPHON UTILITY BAR ----------------------------------- */
.arb-util-bar {
  background: var(--arb-iron-900);
  color: #CFCCC4;
  font-family: var(--arb-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid #000;
  padding: 5px 0;
}
.arb-util-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- SITE NAV ------------------------------------------------ */
.arb-nav {
  background: var(--arb-paper);
  border-bottom: 3px double var(--arb-iron-900);
  position: sticky;
  top: 0;
  z-index: 20;
}
.arb-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Wordmark: nabla + house / product */
.arb-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--arb-ink);
  flex-shrink: 0;
}
.arb-wordmark__nabla {
  font-family: var(--arb-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--arb-iron-900);
}
.arb-wordmark__house {
  font-family: var(--arb-serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--arb-ink);
}
.arb-wordmark__sep {
  font-family: var(--arb-mono);
  font-size: 14px;
  color: var(--arb-iron-300);
  margin: 0 2px;
}
.arb-wordmark__product {
  font-family: var(--arb-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--arb-solar-deep);
}

/* Nav links */
.arb-nav__links {
  display: flex;
  gap: 22px;
  flex: 1;
  margin-left: 24px;
}
.arb-nav__links a {
  font-family: var(--arb-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arb-iron-700);
  text-decoration: none;
  transition: color var(--arb-dur-fast) var(--arb-ease);
}
.arb-nav__links a:hover { color: var(--arb-ink); }

/* Nav end cluster: status + CTA */
.arb-nav__end {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.arb-nav__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--arb-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1F8A3B;
}
.arb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1F8A3B;
  display: inline-block;
}
.arb-cta {
  font-family: var(--arb-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--arb-solar);
  color: var(--arb-ink);
  border: none;
  padding: 10px 16px;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--arb-dur-fast) var(--arb-ease);
  display: inline-flex;
  align-items: center;
}
.arb-cta:hover { background: #FFD633; color: var(--arb-ink); }

/* ---------- FOOTER -------------------------------------------------- */
.arb-footer {
  background: var(--arb-iron-900);
  color: #D8D8D8;
  border-top: 3px solid var(--arb-solar);
  margin-top: 0;
}
.arb-footer__grid {
  padding-top: 44px;
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.arb-footer__brand p {
  font-family: var(--arb-serif);
  font-size: 14px;
  line-height: 1.6;
  color: #BBB;
  max-width: 32ch;
  margin: 0;
}
.arb-footer__wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.arb-footer__nabla {
  font-family: var(--arb-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--arb-teal-bright);
}
.arb-footer__name {
  font-family: var(--arb-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--arb-off-white);
}
.arb-footer h5 {
  font-family: var(--arb-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arb-solar);
  margin: 0 0 14px;
  font-weight: 700;
}
.arb-footer a {
  color: #BBB;
  text-decoration: none;
  display: block;
  font-family: var(--arb-mono);
  font-size: 12.5px;
  margin-bottom: 9px;
  transition: color var(--arb-dur-fast) var(--arb-ease);
}
.arb-footer a:hover { color: var(--arb-copper); }

.arb-footer__colophon {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--arb-mono);
  font-size: 10px;
  color: #888;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Legal links in the colophon: inline, not the block links of the grid */
.arb-footer__legal {
  display: flex;
  align-items: center;
  gap: 10px;
}
.arb-footer__legal a {
  display: inline;
  margin: 0;
  font-family: var(--arb-mono);
  font-size: 10px;
  color: #888;
  text-decoration: none;
  transition: color var(--arb-dur-fast) var(--arb-ease);
}
.arb-footer__legal a:hover { color: var(--arb-copper); }

/* ---------- MOBILE -------------------------------------------------- */
@media (max-width: 860px) {
  .arb-nav__links { display: none; }
  .arb-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .arb-footer__grid { grid-template-columns: 1fr; }
  .arb-footer__colophon { flex-direction: column; gap: 6px; text-align: center; }
}
