:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #242424;
  --bg-code: #2d2d2d;

  --text-primary: #e8e8e8;
  --text-secondary: #b8b8b8;
  --text-muted: #888888;

  --orange-primary: #ff8c42;
  --orange-hover: #ffa366;
  --orange-light: #2d2520;

  --border-color: #3a3a3a;
  --border-accent: #ff8c42;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

header {
  background: var(--bg-secondary);
  border-bottom: 3px solid var(--border-accent);
  padding: 2.5rem 0 1.5rem;
}

.header-content {
  /* no special positioning needed */
}

header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

header h1 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

header h1 a:hover {
  color: var(--orange-primary);
}

header .tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================
   Main Content
   ============================================ */

main {
  flex: 1;
  padding: 3rem 0;
}

article {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0;
}

.article-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 2px solid var(--border-accent);
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.3;
}

.article-decoration {
  /* removed for minimal aesthetic */
  display: none;
}

.article-content {
  padding: 2.5rem;
  font-size: 1rem;
}

/* Typography */

article h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--border-accent);
}

article h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

article p {
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

article ul,
article ol {
  margin-left: 0;
  padding-left: 2rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

article li {
  margin-bottom: 1rem;
  line-height: 1.7;
}

article ul li::marker {
  color: var(--orange-primary);
}

article ol li::marker {
  color: var(--orange-primary);
  font-weight: 600;
}

/* Links */

article a {
  color: var(--orange-primary);
  text-decoration: underline;
  text-decoration-color: rgba(236, 107, 15, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

article a:hover {
  color: var(--orange-hover);
  text-decoration-color: var(--orange-hover);
}

/* Code Styling */

article code {
  background-color: var(--bg-code);
  color: var(--orange-primary);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  border: 1px solid var(--border-color);
}

article pre {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 3px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

article pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  color: var(--text-primary);
  font-size: 0.9em;
  line-height: 1.5;
}

/* Blockquotes */

article blockquote {
  border-left: 3px solid var(--orange-primary);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--orange-light);
  color: var(--text-secondary);
  font-style: italic;
}

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

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand h3 {
  color: var(--orange-primary);
  font-size: 1rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-info {
  text-align: right;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

/* ============================================
   Main Content Prose Styles (index page)
   ============================================ */

main .container h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

main .container h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--border-accent);
}

main .container h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

main .container p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

main .container ul {
  margin-left: 0;
  padding-left: 2rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

main .container ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

main .container ul li::marker {
  color: var(--orange-primary);
}

main .container a {
  color: var(--orange-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 140, 66, 0.3);
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

main .container a:hover {
  color: var(--orange-hover);
}

/* ============================================
   Meeting Cards
   ============================================ */

.meeting-card {
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--orange-primary);
  background: var(--bg-secondary);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.meeting-card--past {
  border-left-color: var(--text-muted);
  opacity: 0.85;
}

.meeting-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.meeting-date {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.meeting-time {
  font-size: 0.9rem;
  color: var(--orange-primary);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.meeting-location {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.talk {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-color);
}

.talk:first-child {
  border-top: none;
  padding-top: 0;
}

.talk-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.talk-speakers {
  font-size: 0.9rem;
  color: var(--orange-primary);
  margin-bottom: 0.5rem;
}

.talk-abstract {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

main .container .talk-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orange-primary);
  text-decoration: none;
  border: 1px solid var(--orange-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  transition: all 0.2s ease;
  margin-top: 0.25rem;
}

main .container .talk-link:hover {
  background: var(--orange-primary);
  color: var(--bg-primary);
  text-decoration: none;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  header {
    padding: 2rem 0 1.25rem;
  }

  header h1 {
    font-size: 1.75rem;
  }

  header .tagline {
    font-size: 1rem;
  }

  main {
    padding: 2rem 0;
  }

  .article-header {
    padding: 1.5rem 1.5rem 1.25rem;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .article-content {
    padding: 1.5rem;
    font-size: 1rem;
  }

  article h2 {
    font-size: 1.35rem;
  }

  article h3 {
    font-size: 1.15rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .article-content {
    padding: 1.25rem 1rem;
  }
}

/* ============================================
   Talk Page
   ============================================ */

.talk-back {
  margin-bottom: 1.5rem;
}

.talk-back a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.talk-back a:hover {
  color: var(--orange-primary);
}


.talk-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.talk-meta-speakers {
  color: var(--orange-primary);
  font-weight: 500;
}

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

.talk-meta-date {
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

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

.talk-abstract-full {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.talk-abstract-full p {
  margin-bottom: 1rem;
}
