/* =========================================================
   aronlindberg.com — Styles
   ========================================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&family=Inter:wght@400;500&family=IBM+Plex+Mono:wght@400&display=swap');

/* --- Design Tokens --- */
:root {
  --bg:          #FAFAF8;
  --surface:     #F2F1EE;
  --text:        #1A1A1A;
  --muted:       #6B6860;
  --accent:      #2B4B8A;
  --accent-dark: #1E3566;
  --border:      #E2E0DC;

  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --mono:  'IBM Plex Mono', monospace;

  --max-width: 780px;
  --nav-h:     64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* --- Layout helpers --- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

section {
  padding-block: 6rem;
}

section.surface {
  background: var(--surface);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 2rem;
}

/* --- Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250,250,248,0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

header.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.nav-name:hover { color: var(--accent); text-decoration: none; }

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover,
nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* --- Hero --- */
#hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: 8rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 0.5rem;
  /* Placeholder color until image is added */
  background: var(--surface);
}

.hero-name {
  font-family: var(--serif);
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent);
  max-width: 44ch;
}

.hero-hot-takes {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 52ch;
}

.hot-take {
  font-size: 0.9rem;
  color: var(--text-muted, #666);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin: 0;
  font-style: italic;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.hero-ctas a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
.hero-ctas a:hover { color: var(--accent-dark); text-decoration: none; }

.cta-sep {
  color: var(--border);
  font-size: 1.25rem;
  line-height: 1;
}

/* --- About --- */
.about-bio {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 68ch;
}

.affiliations {
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 2;
}

.affiliations li {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.affil-role {
  font-weight: 500;
  color: var(--text);
}

/* --- Research --- */
.research-intro {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 3rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.research-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-index {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* --- Publications --- */
.pub-list {
  list-style: none;
}

.pub {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-block: 0.25rem;
}

.pub-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  gap: 0.5em;
  align-items: center;
}

.pub-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.35;
}

.pub-title a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.pub-title a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.pub-authors {
  font-size: 0.875rem;
  color: var(--muted);
}

.pub-authors strong {
  font-weight: 600;
  color: var(--text);
}

.scholar-link {
  margin-top: 2.5rem;
}

.pub-links {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.arrow-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  transition: gap 0.15s;
}
.arrow-link:hover { gap: 0.5em; text-decoration: none; color: var(--accent-dark); }

/* --- Speaking --- */
.speaking-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.speaking-intro {
  max-width: 56ch;
  margin-bottom: 2rem;
}

.speaking-topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.speaking-topics li {
  display: flex;
  gap: 0.75em;
  font-size: 0.9375rem;
}

.topic-dash {
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.speaking-note {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
}

.cta-card {
  background: var(--accent);
  border-radius: 8px;
  padding: 2rem;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.cta-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: white;
}

.cta-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.btn-inverse {
  display: inline-block;
  background: white;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6em 1.25em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
  width: fit-content;
}
.btn-inverse:hover { background: var(--surface); text-decoration: none; color: var(--accent); }

/* --- Media --- */
.media-intro {
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 3rem;
}

.media-list {
  list-style: none;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  margin-bottom: 2rem;
}

/* Remove the opacity class once you have real media items */
.media-list.live {
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}

.media-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-block: 0.25rem;
}

.media-outlet {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.media-desc {
  font-size: 1rem;
  color: var(--text);
}

.media-date {
  font-size: 0.875rem;
  color: var(--muted);
}

.media-inquiry {
  font-size: 0.875rem;
  color: var(--muted);
}

/* --- Podcast --- */
.podcast-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.podcast-art {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg);
}

.podcast-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.podcast-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.2em 0.7em;
  border-radius: 100px;
  border: 1px solid var(--accent);
  color: var(--accent);
  opacity: 0.7;
}

.badge-soon {
  background: var(--accent);
  color: var(--bg);
  opacity: 1;
}

.podcast-coming-note {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.podcast-desc {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.podcast-form {
  margin-bottom: 2rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  max-width: 400px;
}

.email-input {
  flex: 1;
  padding: 0.6em 0.875em;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s;
}
.email-input:focus {
  outline: none;
  border-color: var(--accent);
}
.email-input::placeholder { color: var(--muted); }

.btn-outline {
  display: inline-block;
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6em 1.25em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--accent); color: white; }

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.5rem;
}

.podcast-platforms {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.35;
}

.platforms-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.platform-list {
  display: flex;
  gap: 0.5em;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --- Contact --- */
#contact .container {
  max-width: var(--max-width);
}

.contact-intro {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
  margin-bottom: 3rem;
}
.contact-email:hover { border-bottom-color: var(--accent); text-decoration: none; }

.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 3rem;
}

.contact-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.contact-links a:hover { color: var(--accent); text-decoration: none; }

.link-sep {
  color: var(--border);
}

.contact-affil {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
}

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

.footer-name {
  font-family: var(--serif);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

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

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
  .research-grid {
    grid-template-columns: 1fr;
  }

  .speaking-layout {
    grid-template-columns: 1fr;
  }

  .cta-card {
    position: static;
  }

  .podcast-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  section { padding-block: 4rem; }

  #hero { min-height: auto; padding-block: 5rem; }

  .hero-name { font-size: 2.5rem; }
  .hero-tagline { font-size: 1.1rem; }

  nav { display: none; }
  nav.open { display: flex; }

  .nav-toggle { display: flex; }

  /* Mobile nav dropdown */
  nav.mobile {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 2rem 1rem;
    gap: 0;
  }

  nav.mobile.open { display: flex; }

  nav.mobile a {
    padding-block: 0.875rem;
    border-top: 1px solid var(--border);
    border-bottom: none;
    font-size: 1rem;
    width: 100%;
  }

  nav.mobile a:first-child { border-top: none; }

  .form-row { flex-direction: column; }

  .podcast-art { width: 140px; height: 140px; }
}
