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

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --text: #2d2d2d;
  --text-light: #5a5a6e;
  --text-muted: #8e8ea0;
  --accent: #2d6a4f;
  --accent-light: #e8f5e9;
  --border: #e8e8ee;
  --card-bg: #ffffff;
  --hero-bg: #1a1a2e;
  --hero-text: #ffffff;
  --hero-muted: #a8b2d1;
  --nav-bg: #1a1a2e;
  --nav-text: #c4c4d4;
  --nav-active: #64ffda;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body {
  font-family: "Avenir Next", "Avenir", "Work Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.section, .talk-content {
  flex: 1;
}

.footer {
  margin-top: auto;
}

/* ========== Navigation ========== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  }

.nav-brand {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--text);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ========== Hero ========== */

.hero {
  background: var(--hero-bg);
  padding: 10rem 3rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  min-height: 70vh;
}

.hero-landing {
  min-height: 100vh;
  padding: 0 8rem;
  flex-direction: row;
  text-align: left;
  gap: 5rem;
  background: #fff;
}

.hero-landing .hero-photo {
  width: 420px;
  height: 420px;
  border: none;
  box-shadow: none;
  object-fit: cover;
  object-position: center 100%;
  transform: scale(1);
}

.hero-landing .hero-text {
  max-width: 380px;
}

.hero-landing .hero-text h1 {
  color: var(--text);
  font-family: "Work Sans", sans-serif;
  font-size: 4.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-landing .hero-text .hero-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-landing .hero-text p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-landing .hero-links {
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
}

section.hero-landing .hero-links a {
  color: var(--text);
  border: 1px solid var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  width: 110px;
  height: 110px;
  min-width: 110px;
  min-height: 110px;
  max-width: 110px;
  max-height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

section.hero-landing .hero-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

section.hero-landing .hero-links a:nth-child(1) {
  background: #6bbde6;
}

section.hero-landing .hero-links a:nth-child(2) {
  background: #5db8b0;
}

section.hero-landing .hero-links a:nth-child(3) {
  background: #d4ad4a;
}

section.hero-landing .hero-links a:nth-child(4) {
  background: #c46e52;
}

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

.page-header {
  background: #fff;
  padding: 7rem 3rem 0;
  text-align: center;
  }

.page-header h1 {
  color: var(--text);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.hero-text {
  max-width: 520px;
}

.hero-text h1 {
  color: var(--hero-text);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--hero-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-text .hero-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.hero-text .hero-links a {
  color: var(--nav-active);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.hero-text .hero-links a:hover {
  background: rgba(100, 255, 218, 0.08);
  border-color: rgba(100, 255, 218, 0.6);
}

/* ========== Sections ========== */

.section {
  padding: 5rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
}

.section-alt .section {
  /* nested to keep max-width inside full-width bg */
}

.section-full {
  padding: 5rem 3rem;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ========== About / Tags ========== */

.about-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  color: var(--text-light);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.about-text + .tags {
  justify-content: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.15s;
}

.tag:hover {
  background: #c8e6c9;
  transform: translateY(-1px);
}

/* ========== Talk Cards ========== */

.talk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
}

.talk-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}

.talk-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.talk-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.talk-card .talk-card-venues {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.talk-card .venue-badge {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.talk-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.talk-card .talk-card-link {
  margin-top: 1.25rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ========== Blog Posts (empty state) ========== */

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* ========== Talk Detail Pages ========== */

.talk-hero {
  background: #fff;
  padding: 8rem 3rem 3rem;
  text-align: center;
  }

.talk-hero h1 {
  color: var(--text);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 750px;
  margin: 0 auto 1.25rem;
  line-height: 1.2;
}

.talk-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.talk-meta span {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.talk-description {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Talk content area */
.talk-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Story */
.story {
  margin-bottom: 3rem;
}

.story h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-light);
}

.story p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

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

/* Story divider */
.story-divider {
  border: none;
  height: 4rem;
  position: relative;
}

.story-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.25;
}

/* Slides */
.slides-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.slides-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slides-gallery img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.slides-gallery img:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.footer {
  background: #fff;
  color: var(--text-muted);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.9rem;
  }

.footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

/* ========== Links (content area) ========== */

.about-text a,
.story a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.about-text a:hover,
.story a:hover {
  text-decoration: underline;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .hero-landing {
    padding: 0 4rem;
    gap: 3rem;
  }

  .hero-landing .hero-photo {
    width: 320px;
    height: 320px;
  }

  .hero-landing .hero-text h1 {
    font-size: 3.5rem;
  }

  .nav {
    padding: 0 2rem;
  }

}

/* Mobile */
@media (max-width: 768px) {
  body {
    font-weight: 400;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 7rem 2rem 3rem;
    gap: 2rem;
    min-height: auto;
  }

  .hero-landing {
    padding: 3rem 2rem;
    flex-direction: column;
    gap: 2rem;
  }

  .hero-landing .hero-photo {
    width: 220px;
    height: 220px;
  }

  .hero-landing .hero-text {
    text-align: center;
    max-width: 100%;
  }

  .hero-landing .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-landing .hero-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  section.hero-landing .hero-links a {
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
    max-width: 90px;
    max-height: 90px;
    font-size: 0.85rem;
  }

  .hero-photo {
    width: 200px;
    height: 200px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text .hero-links {
    justify-content: center;
  }

  .page-header {
    padding: 6rem 1.5rem 0;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .talk-cards {
    grid-template-columns: 1fr;
  }

  .talk-hero {
    padding: 6rem 1.5rem 2.5rem;
  }

  .talk-hero h1 {
    font-size: 1.6rem;
  }

  .talk-content {
    padding: 2.5rem 1.5rem;
  }

  .talk-meta {
    flex-direction: column;
    align-items: center;
  }

  .story h2,
  .slides-section h2 {
    font-size: 1.3rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-landing {
    padding: 2rem 1.25rem;
  }

  .hero-landing .hero-photo {
    width: 180px;
    height: 180px;
  }

  .hero-landing .hero-text h1 {
    font-size: 2rem;
  }

  .hero-landing .hero-text .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-landing .hero-text p {
    font-size: 0.88rem;
  }

  section.hero-landing .hero-links a {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    font-size: 0.8rem;
  }

  .nav {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .talk-hero {
    padding: 5.5rem 1rem 2rem;
  }

  .talk-hero h1 {
    font-size: 1.35rem;
  }

  .talk-description {
    font-size: 0.95rem;
  }

  .talk-content {
    padding: 2rem 1rem;
  }

  .talk-card {
    padding: 1.5rem;
  }

  .page-header {
    padding: 5.5rem 1rem 0;
  }

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

  .footer {
    padding: 2rem 1rem;
    font-size: 0.85rem;
  }
}
