/*
Theme Name:  AR Principles
Theme URI:   https://arprinciples.org
Author:      Destrier Communications
Author URI:  https://destriercomms.com
Description: Official theme for ARprinciples.org — The Analyst Relations Principles. A strategic charter for vendor-analyst engagement.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arprinciples
Tags:        one-page, custom-background, custom-logo, full-width-template
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ink:           #1a1a2e;
  --ink-light:     #4a4a6a;
  --ink-muted:     #8888aa;
  --gold:          #b8860b;
  --gold-light:    #d4a017;
  --cream:         #faf8f3;
  --white:         #ffffff;
  --border:        #e5e0d4;
  --border-light:  #f0ece3;
  --accent-bg:     #f5f2eb;
  --font-serif:    'EB Garamond', Georgia, serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width:     760px;
  --nav-height:    56px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-light); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,243,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.site-header .nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 24px;
}

.site-header .site-logo a {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* WordPress menu */
.site-header .main-navigation ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .main-navigation ul li a {
  font-size: 13px;
  color: var(--ink-light);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.site-header .main-navigation ul li a:hover,
.site-header .main-navigation ul li.current-menu-item a {
  color: var(--ink);
}

/* ============================================================
   HERO
   ============================================================ */
.site-hero {
  background: var(--ink);
  color: var(--white);
  padding: 80px 24px 72px;
  text-align: center;
}

.site-hero .hero-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 20px;
}

.site-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 500;
  line-height: 1.15;
  max-width: 740px;
  margin: 0 auto 20px;
  letter-spacing: -0.01em;
  color: var(--white);
}

.site-hero .hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto 32px;
  font-weight: 300;
  line-height: 1.6;
}

.site-hero .hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}
.site-hero .hero-meta span { color: rgba(255,255,255,0.8); font-weight: 500; }

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
.site-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 100px;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
  margin-bottom: 72px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.content-section.visible { opacity: 1; transform: none; }

.section-number {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.content-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.25;
}

.content-section p {
  color: var(--ink-light);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.content-section p:last-child { margin-bottom: 0; }

/* STATUS BAR */
.status-bar {
  background: rgba(184,134,11,0.08);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: 8px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 52px;
}

.status-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.status-bar p {
  font-size: 13px;
  color: var(--ink-light);
  margin: 0;
}
.status-bar strong { color: var(--ink); }

/* SECTION DIVIDER */
.section-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0 0 72px;
}

/* ============================================================
   TIMELINE (Purpose section)
   ============================================================ */
.timeline {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 28px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}
.timeline-item:last-child { border-bottom: none; }

.timeline-step {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.timeline-body strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.timeline-body span { font-size: 13px; color: var(--ink-muted); }

/* ============================================================
   AUDIENCE CARDS
   ============================================================ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.audience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
}
.audience-card.primary   { border-left: 3px solid var(--gold); }
.audience-card.secondary { border-left: 3px solid var(--border); }

.audience-card .role {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.audience-card .desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   GOVERNING PRINCIPLE CALLOUT
   ============================================================ */
.governing-callout {
  background: var(--ink);
  border-radius: 12px;
  padding: 40px 40px 36px;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}

.governing-callout::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: var(--font-serif);
  font-size: 140px;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
}

.governing-callout .quote-text {
  font-family: var(--font-serif);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
}

.governing-callout .quote-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  margin: 0;
}

/* ============================================================
   COLLECTIVE COMMITMENT
   ============================================================ */
.commitment-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.commitment-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.commit-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

.commit-body .label {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 3px;
  display: block;
}

.commit-body .text {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.6;
  margin: 0;
}

.legal-note {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ============================================================
   ARCHIVE SECTION
   ============================================================ */
.archive-section {
  background: var(--ink);
  color: var(--white);
  padding: 60px 24px;
}

.archive-section .archive-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.archive-section .section-number { color: var(--gold-light); }

.archive-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
}

.archive-section .archive-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
}

.archive-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.archive-table td {
  padding: 12px 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.archive-table tr:last-child td { border-bottom: none; }

.archive-table a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.archive-table a:hover { text-decoration: underline; }

.badge-current {
  display: inline-block;
  background: rgba(184,134,11,0.2);
  color: var(--gold-light);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 100px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: 8px;
  vertical-align: middle;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--accent-bg);
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

.site-footer a {
  color: var(--ink-light);
  text-decoration: none;
}
.site-footer a:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .site-header .main-navigation { display: none; }
  .governing-callout { padding: 28px 24px; }
  .audience-grid { grid-template-columns: 1fr; }
  .archive-table th:nth-child(3),
  .archive-table td:nth-child(3) { display: none; }
}

/* ============================================================
   WORDPRESS ADMIN BAR OFFSET
   ============================================================ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
