/* ═══ ARSI Base Styles ═══ */

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

/* Variables */
:root {
  /* Primary */
  --ink: #1a1a1a;
  --bg: #E8E6E1;
  --surface: #faf9f7;
  --text: #4a4a4a;
  --meta: #6b6b6b;
  --rule: #c8c6c0;
  --rule-light: #d8d6d0;
  --white-t: rgba(255,255,255,0.45);

  /* Spectrum */
  --crit: #5E9ABF;
  --lean-crit: #8B78B8;
  --neutral: #A0A098;
  --lean-gov: #D0944A;
  --gov: #C06060;

  /* Feedback */
  --success: #5E9ABF;
  --error: #C06060;
  --warning: #D0944A;

  /* Gradient */
  --gradient: linear-gradient(90deg, var(--crit), var(--lean-crit), var(--neutral), var(--lean-gov), var(--gov));

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-geo: 'Noto Sans Georgian', 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Button active state */
button:active, .btn:active, .cta:active, .nav-sub:active {
  transform: scale(0.97);
}

/* ── Nav ── */
.nav {
  background: var(--ink);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--surface);
  letter-spacing: 3px;
  text-decoration: none;
}
.nav-right { display: flex; gap: 24px; align-items: center; }
.nav-link {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease-out;
  padding: 4px 0;
}
.nav-link:hover { color: var(--surface); }
.nav-sub {
  background: var(--surface);
  color: var(--ink);
  padding: 7px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease-out;
}
.nav-sub:hover { background: var(--bg); }
.nav-gradient, .gradient-line, .gradient-bar { height: 3px; background: var(--gradient); }

/* ── Content Nav (methodology, archive, privacy, terms) ── */
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a, .nav-links span {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s ease-out;
}
.nav-links a:hover { color: rgba(255,255,255,0.85); }
.nav-links a.active { color: var(--surface); }

/* ── Minimal Header (transactional pages) ── */
.page-header {
  background: var(--ink);
  padding: 16px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.page-header-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--surface);
  letter-spacing: 3px;
  text-decoration: none;
}
.lang-toggle {
  position: absolute;
  right: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.lang-toggle a, .lang-toggle span {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
}
.lang-toggle a:hover { color: var(--surface); }
.lang-toggle .lang-sep { color: rgba(255,255,255,0.3); }
.lang-toggle .lang-active { color: var(--surface); }

/* ── Gradient Bar ── */
.gradient-bar { height: 3px; background: var(--gradient); }

/* ── Footer ── */
.footer {
  background: var(--ink);
  padding: 20px 32px 32px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}
.footer-link {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s ease-out;
}
.footer-link:hover { color: rgba(255,255,255,0.8); }
.footer-text {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.footer-spectrum {
  width: 200px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient);
  margin: 0 auto;
}

/* ── Consent Text ── */
.consent-text { font-size: 12px; color: var(--text); text-align: center; }
.consent-text a { color: var(--meta); text-decoration: underline; }
.consent-text a:hover { color: var(--text); }

/* ── Subscribe Form ── */
.subscribe-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto 10px; }
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  background: var(--white-t);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease-out;
}
.subscribe-form input[type="email"]:focus { border-color: var(--ink); }
.subscribe-form input[type="email"]::placeholder { color: var(--meta); }
.subscribe-form button {
  padding: 14px 28px;
  background: var(--ink);
  color: var(--surface);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease-out;
}
.subscribe-form button:hover { background: var(--text); }
.subscribe-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.subscribe-message { text-align: center; font-size: 14px; margin-top: 8px; min-height: 22px; }
.subscribe-message.success { color: var(--crit); }
.subscribe-message.error { color: var(--gov); }

/* ── Transactional Card (thank-you, invite, unsubscribe) ── */
.tx-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 48px 40px;
  max-width: 520px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(26,26,26,0.06);
}
.tx-card h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}
.tx-card .subtitle {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
}
.tx-card .cta {
  display: inline-block;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.15s ease-out;
}
.tx-card .cta:hover { background: var(--text); }
.tx-card .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.tx-card .icon-circle svg { width: 32px; height: 32px; }
.tx-card .icon-success { background: var(--crit); }
.tx-card .icon-error { background: var(--error); }
.hidden { display: none; }

/* ── Content Pages (methodology, privacy, terms) ── */
.content-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.content-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s ease-out;
}
.content-nav a:hover { color: var(--surface); }
.content-nav .lang-sep { color: rgba(255,255,255,0.3); }

/* ── Utilities ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav { padding: 12px 16px; }
  .nav-right { gap: 16px; }
  .nav-link { font-size: 12px; padding: 8px 4px; min-height: 44px; display: inline-flex; align-items: center; }
  .nav-sub { padding: 10px 18px; }
  .nav-links { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .page-header { padding: 14px 16px; }
  .lang-toggle { right: 16px; }
  .tx-card { padding: 32px 24px; }
  .tx-card h1 { font-size: 26px; }
  .subscribe-form { flex-direction: column; }
  .footer { padding: 16px 20px 24px; }
}
