/* Modern Editorial Design System */
:root {
  /* Refined Palette */
  --bg: #fdfcfb;        /* Warm off-white */
  --surface: #ffffff;    /* Pure white for cards */
  --text-main: #2d3748; /* Softer dark gray, not black */
  --text-muted: #718096;
  --accent: #319795;    /* Teal/Sage accent - professional but distinct */
  --accent-dark: #285e61;
  --border: #e2e8f0;
  
  /* Typography */
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  
  /* Spacing */
  --container-width: 64rem;
  --radius: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #1a202c;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.5rem;
}

.text-muted {
  color: var(--text-muted);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* Navigation */
.site-header {
  background: var(--bg); /* Transparent/blends with bg */
  padding: 2rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  max-width: var(--container-width);
}

.hero-text {
  max-width: 42rem;
}

.hero-photo img {
  width: 280px;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.nickname {
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--text-main);
  color: white;
}

.btn-primary:hover {
  background-color: #000;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background-color: var(--surface);
}

.links {
  display: flex;
  gap: 1rem;
}

/* Cards & Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.card h3 {
  margin-top: 0;
}

/* Highlights List (Custom bullets) */
.highlights {
  list-style: none;
  padding: 0;
}

.highlights li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.highlights li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Timeline (Experience Page) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 50rem;
}

.timeline-item {
  border-left: 2px solid var(--border);
  padding-left: 2rem;
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px; /* Center on line */
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-item:last-child {
  border-left-color: transparent;
}

.meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: block;
}

/* Contact Form */
.contact-form {
  max-width: 40rem;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* About Page */
.about-intro {
  padding-bottom: 2rem;
}

.about-intro-split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 56rem;
}

.about-photo img {
  width: 240px;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.lead {
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--text-main);
  font-weight: 400;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.about-card h3 {
  color: var(--accent);
  margin-top: 0;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 48rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-icon {
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.value-item h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.value-item p {
  margin: 0;
}

.about-personal {
  max-width: 48rem;
}

/* Option A: Functional / Grouped */
.expertise-group {
  margin-bottom: 3rem;
}

.expertise-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.expertise-header h2 {
  margin: 0;
  display: inline;
}

.expertise-icon {
  color: var(--accent);
  font-size: 1.25rem;
}

.expertise-roles {
  display: grid;
  gap: 1.25rem;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  transition: border-color 0.2s;
}

.role-card:hover {
  border-color: var(--accent);
}

.role-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.role-top h3 {
  margin: 0;
  flex: 1 1 auto;
}

.role-org {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.role-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.role-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.role-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Option B: Logo Grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.logo-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.logo-tile.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(49, 151, 149, 0.05), rgba(49, 151, 149, 0.12));
}

.logo-placeholder {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.logo-label {
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.2;
}

.logo-years {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-panels {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 14rem;
}

.detail-panel {
  display: none;
}

.detail-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.detail-panel ul {
  list-style: none;
  padding: 0;
}

.detail-panel li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.detail-panel li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Option C: Magazine / Split */
.magazine-entry {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.magazine-entry:last-child {
  border-bottom: none;
}

.magazine-sidebar {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.magazine-sidebar h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.magazine-sidebar .meta {
  margin-bottom: 0.25rem;
  text-transform: none;
  letter-spacing: 0;
}

.magazine-content h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.magazine-content p {
  margin-bottom: 1.25rem;
}

/* Text link */
.text-link {
  color: var(--accent);
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-nav { gap: 1rem; overflow-x: auto; width: 100%; padding-bottom: 5px; }
  .grid { grid-template-columns: 1fr; }
  .timeline-item { padding-left: 1rem; border-left: none; }
  .timeline-item::before { display: none; }
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 200px; margin: 0 auto; }
  .hero .tagline { max-width: 100%; }
  .hero .links { justify-content: center; }
  .about-intro-split { grid-template-columns: 1fr; }
  .about-photo { text-align: center; }
  .about-photo img { width: 180px; margin: 0 auto; }
  .magazine-entry { grid-template-columns: 1fr; gap: 1rem; }
  .magazine-sidebar { position: static; }
  .role-top { flex-direction: column; }
  .logo-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

/* Dark mode (follows OS/browser preference) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1a1d24;
    --text-main: #e2e4e9;
    --text-muted: #9098a9;
    --accent: #4fd1c5;
    --accent-dark: #81e6d9;
    --border: #2d3140;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  }

  h1, h2, h3, h4 { color: #f0f1f4; }
  .nickname { color: var(--text-muted); }

  .brand { color: var(--text-main); }

  .btn-primary { background-color: #e2e4e9; color: #111318; }
  .btn-primary:hover { background-color: #fff; }
  .btn-secondary { border-color: var(--border); color: var(--text-main); }
  .btn-secondary:hover { border-color: var(--text-muted); background-color: var(--surface); }

  .contact-form input,
  .contact-form select,
  .contact-form textarea { background: var(--bg); color: var(--text-main); }
  .contact-form input:focus,
  .contact-form select:focus,
  .contact-form textarea:focus { background: var(--surface); border-color: var(--accent); }

  .logo-placeholder { background: var(--accent); color: #111318; }
  .logo-tile.active { background: rgba(79, 209, 197, 0.08); }

  .about-card h3 { color: var(--accent); }
  .magazine-sidebar h3 { color: var(--accent); }
}
