/* static/chrome.css — AlignCube shared chrome: header nav, footer, buttons, base.
   Requires tokens.css to be loaded FIRST (uses its custom properties).
   Spec: proposals/aligncube-design-spec-emerald-modern-2026-06-25.md */

/* ── Base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  min-height: 40px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(4, 120, 87, 0.15);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-0.5px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover { background: var(--border-row); border-color: var(--text-3); color: var(--text-1); }

/* ── Shared footer ── */
.global-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 40px 48px;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .logo-group { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-1); }
.footer-brand .logo-text { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.footer-brand .desc { font-size: 13px; color: var(--text-2); max-width: 240px; }
.footer-brand .copyright { font-size: 11px; color: var(--text-3); margin-top: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--text-2); text-decoration: none; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text-1); }

/* ── Mobile (footer) ── */
@media (max-width: 768px) {
  .global-footer { padding: 48px 22px 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
