/* ==========================================================================
   Andrew Egenes — Personal Landing Page Stylesheet
   Matches site/private-cloud/styles.css tokens and dark/light theme sync
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --bg-elevated: #111827;
  --bg-card: #141c2b;
  --bg-hover: rgba(148, 163, 184, 0.08);
  --border: #1f2937;
  --border-strong: #334155;
  --text: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --heading: #f8fafc;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-sm: 6px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: rgba(15, 23, 42, 0.05);
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --heading: #0f172a;
  --accent: #0284c7;
  --accent-soft: rgba(2, 132, 199, 0.1);
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.12);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.site-name:hover {
  text-decoration: none;
  color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--heading);
  text-decoration: none;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--heading);
}

/* ==========================================================================
   Main Editorial Column
   ========================================================================== */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.hero {
  margin-bottom: 44px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.hero-subtitle {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero p {
  margin: 0 0 16px;
}

.hero p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Featured Guide Callout Card
   ========================================================================== */

.featured-card {
  display: block;
  margin: 0 0 52px;
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.featured-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent-soft) 35%, var(--bg-card));
}

.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.featured-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--heading);
}

.featured-card p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.featured-card:hover .featured-cta svg {
  transform: translateX(3px);
}

.featured-cta svg {
  transition: transform 0.15s ease;
}

/* ==========================================================================
   Timeline Section
   ========================================================================== */

.section-block {
  margin-bottom: 52px;
}

.section-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-org {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
}

.timeline-dates {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

.timeline-role {
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.timeline-item p:last-child {
  margin: 0;
  font-size: 15px;
}

.education-row {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-muted);
}

.education-row strong {
  color: var(--heading);
}

/* ==========================================================================
   Footer / Elsewhere
   ========================================================================== */

.site-footer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.connect-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.connect-link:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--heading);
  background: var(--bg-hover);
}

.connect-link svg {
  color: var(--accent);
}

.footer-note {
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .container {
    padding: 36px 16px 64px;
  }

  .featured-card {
    padding: 20px;
  }
}
