/* ════════════════════════════════════════════════════════
   ARDEN LABS — BASE STYLES
   ════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--void);
  color: var(--text-100);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--depth-1); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-dim); }

/* ── Selection ── */
::selection { background: rgba(0,212,232,0.25); color: var(--text-100); }

/* ── Focus ── */
:focus-visible {
  outline: 1.5px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Links ── */
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }

/* ── Images ── */
img { display: block; max-width: 100%; height: auto; }

/* ── Inputs ── */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* ── Noise overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ── Grid atmosphere ── */
.grid-atmosphere {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,232,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,232,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

/* ── Page wrapper ── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

/* ── Section spacing ── */
.section { padding: var(--space-4xl) 0; }
.section-sm { padding: var(--space-3xl) 0; }

/* ── Typography scale ── */
.label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
}

.label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

h1, .h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-100);
}

h2, .h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-100);
}

h3, .h3 {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-100);
}

h4, .h4 {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-200);
}

p.lead {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-300);
  font-weight: 300;
}

/* ── Utility ── */
.mono { font-family: var(--font-mono); }
.teal { color: var(--teal); }
.green { color: var(--green); }
.amber { color: var(--amber); }
.red { color: var(--red); }
.muted { color: var(--text-300); }
.dim { color: var(--text-400); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.divider {
  border: none;
  border-top: 1px solid var(--border-dim);
  margin: var(--space-xl) 0;
}

/* ── Status dots ── */
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.active { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.pending { background: var(--amber); }
.status-dot.inactive { background: var(--text-400); }
.status-dot.error { background: var(--red); }

/* ── Tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
}

.tag-teal { background: rgba(0,212,232,0.07); color: var(--teal); border-color: rgba(0,212,232,0.2); }
.tag-green { background: rgba(0,230,118,0.07); color: var(--green); border-color: rgba(0,230,118,0.2); }
.tag-amber { background: rgba(255,171,0,0.07); color: var(--amber); border-color: rgba(255,171,0,0.2); }
.tag-red { background: rgba(255,61,87,0.07); color: var(--red); border-color: rgba(255,61,87,0.2); }
.tag-muted { background: rgba(255,255,255,0.04); color: var(--text-300); border-color: var(--border-dim); }

/* ══════════════════════════════════════════════════════
   TYPOGRAPHY REFINEMENTS
══════════════════════════════════════════════════════ */

/* Fluid paragraph spacing */
p + p { margin-top: 0.9em; }

/* Tighter mono blocks */
.mono-block {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: var(--text-300);
}

/* Eyebrow label variant — no left line */
.label-bare {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Numeric display class (large metrics) */
.metric-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text-100);
}

/* Caption / annotation text */
.caption {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-500);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* Better link inside prose */
.prose-link {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,212,232,0.3);
  transition: border-color var(--t-fast);
}
.prose-link:hover { border-color: var(--teal); }

/* ── Improved policy content ── */
.policy-content h2 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-100);
  margin: var(--space-2xl) 0 var(--space-md);
  letter-spacing: -0.01em;
}

.policy-content h2:first-child { margin-top: 0; }

.policy-content p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-300);
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.policy-content ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.policy-content li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-300);
  line-height: 1.8;
  margin-bottom: 5px;
  padding-left: 4px;
}

/* ── Smooth skeleton shimmer ── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.skeleton {
  background: linear-gradient(90deg,
    var(--depth-3) 25%,
    var(--depth-4) 50%,
    var(--depth-3) 75%
  );
  background-size: 1200px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: var(--r-md);
}
