/* Arthrozen — shared chrome (header, footer, tokens, reset) */

:root {
  --az-bg: #09090b;
  --az-surface: #121214;
  --az-surface-2: #1a1a1e;
  --az-line: rgba(255, 255, 255, 0.09);
  --az-line-strong: rgba(255, 255, 255, 0.18);
  --az-text: #fafafa;
  --az-muted: #a1a1aa;
  --az-amber: #f59e0b;
  --az-amber-dim: #d97706;
  --az-cyan: #22d3ee;
  --az-paper: #f4f4f5;
  --az-ink: #18181b;
  --az-max: 1180px;
  --az-font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --az-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --az-radius: 0;
  --az-radius-sm: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.az-body {
  margin: 0;
  font-family: var(--az-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--az-text);
  background: var(--az-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.az-shell {
  width: 100%;
  max-width: var(--az-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Top bar ----- */

.az-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--az-line);
}

.az-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.az-mark {
  font-family: var(--az-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--az-text);
}

.az-mark:hover {
  color: var(--az-amber);
}

.az-top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.25rem;
}

.az-top-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--az-muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.az-top-nav a:hover {
  color: var(--az-text);
  border-bottom-color: var(--az-amber);
}

/* Mobile drawer */
.az-drawer {
  display: none;
  position: relative;
}

.az-drawer-btn {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem;
  margin: 0;
  border: 1px solid var(--az-line-strong);
  background: var(--az-surface);
  color: var(--az-text);
}

.az-drawer-btn::-webkit-details-marker {
  display: none;
}

.az-drawer-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--az-text);
  box-shadow: 0 7px 0 var(--az-text), 0 14px 0 var(--az-text);
}

.az-drawer-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  padding: 0.75rem;
  background: var(--az-surface-2);
  border: 1px solid var(--az-line-strong);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.az-drawer-panel a {
  text-decoration: none;
  color: var(--az-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 0.75rem;
}

.az-drawer-panel a:hover {
  background: rgba(245, 158, 11, 0.12);
  color: var(--az-text);
}

@media (max-width: 768px) {
  .az-top-nav {
    display: none;
  }

  .az-drawer {
    display: block;
  }
}

/* ----- Footer ----- */

.az-foot {
  background: var(--az-surface);
  border-top: 1px solid var(--az-line);
  padding: 3rem 0 2rem;
}

.az-foot-disclaimer {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--az-muted);
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}

.az-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--az-line);
}

.az-foot-brand {
  font-family: var(--az-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.az-foot-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--az-muted);
  margin: 0 0 0.5rem;
}

.az-foot-meta {
  font-size: 0.85rem;
  color: var(--az-muted);
  line-height: 1.5;
  margin: 0 0 0.35rem;
}

.az-foot-meta a {
  color: var(--az-cyan);
  text-decoration: none;
}

.az-foot-meta a:hover {
  text-decoration: underline;
}

.az-foot-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.az-foot-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--az-muted);
  text-decoration: none;
}

.az-foot-links a:hover {
  color: var(--az-amber);
}

.az-foot-copy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--az-muted);
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--az-line);
}

@media (max-width: 768px) {
  .az-foot-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .az-foot-links {
    align-items: center;
  }
}
