body {
  font-family: "Inter", sans-serif;
  background-color: #020617;
}

h1,
h2,
h3,
.font-headline {
  font-family: "Manrope", sans-serif;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.sidebar-panel,
.main-canvas {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.nav-link {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.nav-link--expanded {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  color: rgb(148 163 184);
  font-weight: 600;
}

.nav-link--expanded:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link--expanded.is-active {
  color: #0f172a;
  font-weight: 700;
}

.nav-link--collapsed {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 1.25rem 0;
  color: rgb(148 163 184);
}

.nav-link--collapsed:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link--collapsed.is-active {
  color: #0f172a;
}

.sidebar-seam {
  position: absolute;
  right: -1px;
  top: 0;
  background: #f7f9fb;
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
  pointer-events: none;
  z-index: 1;
  transform: translateY(0);
  will-change: transform, height;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    height 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 160ms ease;
}

.sidebar-seam::before,
.sidebar-seam::after {
  content: "";
  position: absolute;
  right: 0;
  width: 32px;
  height: 32px;
  background: transparent;
}

.sidebar-seam::before {
  top: -32px;
  border-bottom-right-radius: 2rem;
}

.sidebar-seam::after {
  bottom: -32px;
  border-top-right-radius: 2rem;
}

.sidebar-seam--expanded {
  width: 100%;
  height: 56px;
}

.sidebar-seam--expanded::before {
  box-shadow: 10px 10px 0 10px #f7f9fb;
}

.sidebar-seam--expanded::after {
  box-shadow: 10px -10px 0 10px #f7f9fb;
}

.sidebar-seam--collapsed {
  width: 100%;
  height: 64px;
}

.sidebar-seam--collapsed::before {
  box-shadow: 16px 16px 0 16px #f7f9fb;
}

.sidebar-seam--collapsed::after {
  box-shadow: 16px -16px 0 16px #f7f9fb;
}

.sidebar-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(148 163 184);
  transition: color 0.25s ease, transform 0.25s ease;
}

.sidebar-toggle-button:hover {
  color: #ffffff;
  transform: translateX(-2px);
}

.sidebar-toggle-button--expanded {
  align-self: flex-start;
}

.sidebar-toggle-button--collapsed {
  width: 100%;
}

body[data-sidebar="expanded"] .sidebar-panel--collapsed {
  display: none;
}

body[data-sidebar="collapsed"] .sidebar-panel--expanded {
  display: none;
}

.page-panel {
  display: none;
}

.page-panel.is-active {
  display: block;
  animation: panel-fade 220ms ease;
}

@keyframes panel-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-eyebrow {
  margin: 0 0 0.9rem;
  color: #4a4bd7;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
}

.section-title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.section-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  max-width: 24rem;
}

.section-meta span,
.placeholder-pill,
.placeholder-kicker,
.placeholder-tabs span {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.section-meta span {
  min-height: 2rem;
  padding: 0 1rem;
  color: #4f5f76;
  background: #ffffff;
  box-shadow: 20px 0 40px rgba(42, 52, 57, 0.02);
}

.placeholder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.placeholder-tabs span {
  min-height: 2.25rem;
  padding: 0 1rem;
  color: #5b6675;
  background: rgba(255, 255, 255, 0.68);
}

.placeholder-tabs .is-active {
  color: #ffffff;
  background: #4a4bd7;
}

.placeholder-grid {
  display: grid;
  gap: 2rem;
}

.placeholder-grid--about,
.placeholder-grid--musings,
.placeholder-grid--education,
.placeholder-grid--projects {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.placeholder-grid--books {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.placeholder-card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 20px 0 40px rgba(42, 52, 57, 0.02);
  min-height: 15rem;
  backdrop-filter: blur(10px);
}

.placeholder-card--media {
  grid-column: span 5;
  min-height: 28rem;
}

.placeholder-card--feature {
  grid-column: span 8;
  min-height: 20rem;
  background: linear-gradient(135deg, rgba(74, 75, 215, 0.08), rgba(255, 255, 255, 0.96));
}

.placeholder-card--book-callout {
  grid-column: span 7;
}

.placeholder-card--span-2 {
  grid-column: span 8;
}

.placeholder-grid--about .placeholder-card:nth-child(2),
.placeholder-grid--about .placeholder-card:nth-child(3),
.placeholder-grid--about .placeholder-card:nth-child(4),
.placeholder-grid--musings .placeholder-card:nth-child(2),
.placeholder-grid--books .placeholder-card:nth-child(2),
.placeholder-grid--education .placeholder-card:nth-child(2),
.placeholder-grid--education .placeholder-card:nth-child(3),
.placeholder-grid--projects .placeholder-card:nth-child(2),
.placeholder-grid--projects .placeholder-card:nth-child(3) {
  grid-column: span 4;
}

.placeholder-pill {
  min-height: 1.9rem;
  padding: 0 0.9rem;
  background: rgba(112, 115, 255, 0.14);
  color: #4a4bd7;
}

.placeholder-title {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.placeholder-title--compact {
  font-size: 1.55rem;
}

.placeholder-copy {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #5e6976;
}

.placeholder-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.placeholder-kicker {
  color: #7b8697;
}

.placeholder-photo {
  display: flex;
  align-items: end;
  justify-content: start;
  width: 100%;
  height: 100%;
  min-height: 24rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.4)),
    linear-gradient(135deg, #c9d6ff, #f4f7fb);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.placeholder-line {
  height: 0.85rem;
  width: 78%;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(74, 75, 215, 0.16), rgba(217, 228, 234, 0.8));
}

.placeholder-line--long {
  width: 100%;
}

.placeholder-line--short {
  width: 56%;
}

.timeline-preview,
.placeholder-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.timeline-preview__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-preview__item span {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  margin-top: 0.3rem;
  background: #4a4bd7;
  box-shadow: 0 0 0 6px rgba(74, 75, 215, 0.12);
}

.timeline-preview__item strong,
.placeholder-feed__item strong,
.education-browser strong,
.project-kanban strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.timeline-preview__item p,
.placeholder-feed__item p {
  margin: 0.35rem 0 0;
  color: #5e6976;
  line-height: 1.6;
}

.view-toggle-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.view-toggle-preview span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.95rem;
  border-radius: 9999px;
  background: #eef2f7;
  color: #697486;
  font-size: 0.82rem;
  font-weight: 600;
}

.view-toggle-preview .is-active {
  background: #4a4bd7;
  color: #ffffff;
}

.placeholder-feed__item {
  padding: 1.25rem 1.35rem;
  border-radius: 1.4rem;
  background: rgba(240, 244, 247, 0.9);
}

.book-preview {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  align-items: center;
}

.book-preview__cover {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 16rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #142033, #0d1321 70%, #243449);
  color: #f7f9fb;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.shelf-preview {
  display: flex;
  align-items: end;
  gap: 0.85rem;
  margin-top: 1.4rem;
  min-height: 10rem;
}

.shelf-preview span {
  display: inline-block;
  width: 3.9rem;
  border-radius: 0.85rem 0.85rem 0.45rem 0.45rem;
  background: linear-gradient(180deg, #415a77, #0d1321);
}

.shelf-preview span:nth-child(1) { height: 8rem; }
.shelf-preview span:nth-child(2) { height: 9.5rem; }
.shelf-preview span:nth-child(3) { height: 8.75rem; }
.shelf-preview span:nth-child(4) { height: 10rem; }
.shelf-preview span:nth-child(5) { height: 7.75rem; }

.education-browser,
.project-kanban {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.education-browser {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-kanban {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.education-browser div,
.project-kanban div {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.2rem;
  border-radius: 1.4rem;
  background: rgba(240, 244, 247, 0.9);
}

.education-browser span,
.project-kanban span {
  color: #5e6976;
  line-height: 1.5;
}

@media (max-width: 1280px) {
  .section-hero {
    flex-direction: column;
  }

  .section-meta {
    justify-content: flex-start;
  }

  .placeholder-card--media,
  .placeholder-card--feature,
  .placeholder-card--book-callout,
  .placeholder-card--span-2,
  .placeholder-grid--about .placeholder-card:nth-child(2),
  .placeholder-grid--about .placeholder-card:nth-child(3),
  .placeholder-grid--about .placeholder-card:nth-child(4),
  .placeholder-grid--musings .placeholder-card:nth-child(2),
  .placeholder-grid--books .placeholder-card:nth-child(2),
  .placeholder-grid--education .placeholder-card:nth-child(2),
  .placeholder-grid--education .placeholder-card:nth-child(3),
  .placeholder-grid--projects .placeholder-card:nth-child(2),
  .placeholder-grid--projects .placeholder-card:nth-child(3) {
    grid-column: span 12;
  }
}

@media (max-width: 1024px) {
  .site-shell {
    display: block;
  }

  .sidebar-panel--expanded,
  .sidebar-panel--collapsed {
    display: none !important;
  }

  .main-canvas {
    border-radius: 2rem 2rem 0 0;
    padding: 1.5rem;
    margin-left: 0;
  }

  .header-stack,
  .section-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .education-browser,
  .project-kanban {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-canvas {
    padding: 1.25rem;
  }

  .workshop-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .fab-button {
    width: 3.75rem;
    height: 3.75rem;
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .book-preview {
    grid-template-columns: 1fr;
  }
}
