/* Jointelis — dark editorial chrome */

:root {
  --az-bg: #060508;
  --az-bg-elevated: #0f0e12;
  --az-bg-warm: #121018;
  --az-surface: #16151c;
  --az-surface-2: #1c1b24;
  --az-line: rgba(255, 255, 255, 0.06);
  --az-line-strong: rgba(255, 255, 255, 0.12);
  --az-text: #f4f4f5;
  --az-muted: #a8a29e;
  --az-accent: #ff5c33;
  --az-accent-hover: #ff7849;
  --az-accent-soft: rgba(255, 92, 51, 0.15);
  --az-accent-glow: rgba(255, 92, 51, 0.35);
  --az-link: #67e8f9;
  --az-amber: #ff5c33;
  --az-amber-dim: #ea580c;
  --az-cyan: #67e8f9;
  --az-paper: #1a181f;
  --az-ink: #fafaf9;
  --az-max: 1180px;
  --az-font-sans: "Source Sans 3", system-ui, sans-serif;
  --az-font-display: "Syne", system-ui, sans-serif;
  --az-radius: 4px;
  --az-radius-lg: 20px;
  --az-radius-sm: 8px;
  --az-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
  --az-shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.55);
}

*,
*::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.65;
  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(6, 5, 8, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--az-line);
}

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

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

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

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

.az-top-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--az-muted);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

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

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

.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-bg-elevated);
  border: 1px solid var(--az-line-strong);
  border-radius: var(--az-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--az-shadow-lg);
}

.az-drawer-panel a {
  text-decoration: none;
  color: var(--az-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.65rem 0.75rem;
  border-radius: var(--az-radius-sm);
}

.az-drawer-panel a:hover {
  background: var(--az-accent-soft);
  color: var(--az-text);
}

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

  .az-drawer {
    display: block;
  }
}

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

.az-foot {
  background: linear-gradient(180deg, #0a090d 0%, #060508 100%);
  border-top: 1px solid var(--az-line);
  padding: 3.5rem 0 2rem;
  color: #d6d3d1;
}

.az-foot-disclaimer {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #78716c;
  text-align: center;
  max-width: 46rem;
  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: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: #fafaf9;
}

.az-foot-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #78716c;
  margin: 0 0 0.5rem;
}

.az-foot-meta {
  font-size: 0.85rem;
  color: #a8a29e;
  line-height: 1.55;
  margin: 0 0 0.35rem;
}

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

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

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

.az-foot-links a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8a29e;
  text-decoration: none;
}

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

.az-foot-copy {
  text-align: center;
  font-size: 0.75rem;
  color: #57534e;
  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;
  }
}
