/* About page styles */

/* ── Carousel at top with nav clearance ─────── */
.about-carousel {
  padding-top: 150px;
  margin-top: 0;
  animation: main-slide-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-carousel .work-card {
  width: calc(16vw - 9px);
  aspect-ratio: 3 / 4;
}

.about-carousel .carousel-track {
  animation-duration: 100s;
}

.work-card {
  margin-right: 2px;
}

/* ── Main content override ───────────────────── */
.about-wrap {
  padding-top: 100px;
  gap: 0;
}

/* ── About section ───────────────────────────── */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 700px;
}

/* ── Title + Bio ─────────────────────────────── */
.about-text-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.17;
  color: var(--text);
}

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

.bio-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bio-collapse.is-open {
  grid-template-rows: 1fr;
}

.bio-collapse>p {
  min-height: 0;
}

.about-bio {
  font-family: var(--font-slab);
  font-size: clamp(0.95rem, 1.2vw, 1rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-soft);
}

.bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-slab);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0;
  transition: color 0.2s ease;
}

.bio-toggle:hover {
  color: var(--text);
}

.bio-toggle-arrow {
  width: 16px;
  height: 10px;
  filter: invert(1) opacity(0.6);
  transform: rotate(90deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

[data-theme="light"] .bio-toggle-arrow {
  filter: invert(0) opacity(0.6);
}

.bio-toggle:hover .bio-toggle-arrow {
  filter: invert(1) opacity(0.9);
}

[data-theme="light"] .bio-toggle:hover .bio-toggle-arrow {
  filter: invert(0) opacity(0.9);
}

.bio-toggle[aria-expanded="true"] .bio-toggle-arrow {
  transform: rotate(-90deg);
}

/* ── Experience ──────────────────────────────── */
.about-experience {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exp-label {
  font-family: var(--font-slab);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
}

.exp-item:last-child {
  padding-bottom: 0;
}

.exp-role {
  font-family: var(--font-slab);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

.exp-company {
  font-family: var(--font-slab);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .about-carousel {
    padding-top: 0px;
  }

  .about-wrap {
    padding-top: 80px;
  }

  .about-section {
    max-width: 100%;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .about-carousel {
    padding-top: 80px;
  }

  .about-wrap {
    padding-top: 60px;
  }

  .about-section {
    gap: 32px;
  }

  .about-heading {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
}
/* ── GitHub contributions ────────────────────── */
.about-github {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-github[hidden] {
  display: none;
}

.gh-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.gh-count {
  font-family: var(--font-slab);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Narrow screens can't fit 53 weeks, so the calendar scrolls inside itself
   rather than pushing the page sideways. */
.gh-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  margin: 0 -2px;
  padding: 0 2px;
}

.gh-scroll::-webkit-scrollbar {
  display: none;
}

.gh-cal {
  --gh-cell: 10px;
  --gh-gap: 3px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min-content;
}

.gh-months,
.gh-grid {
  display: grid;
  grid-template-columns: repeat(var(--gh-weeks, 53), var(--gh-cell));
  gap: var(--gh-gap);
}

.gh-grid {
  grid-template-rows: repeat(7, var(--gh-cell));
  grid-auto-flow: column;
}

.gh-month {
  font-family: var(--font-slab);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
  white-space: nowrap;
}

/* Monochrome to match the rest of the site: level is weight, not hue. */
.gh-day {
  width: var(--gh-cell);
  height: var(--gh-cell);
  border-radius: 2px;
  background: rgba(245, 245, 245, 0.07);
}

.gh-day[data-level="1"] { background: rgba(245, 245, 245, 0.25); }
.gh-day[data-level="2"] { background: rgba(245, 245, 245, 0.45); }
.gh-day[data-level="3"] { background: rgba(245, 245, 245, 0.7); }
.gh-day[data-level="4"] { background: rgba(245, 245, 245, 0.95); }

.gh-day:not(.gh-day--pad) {
  cursor: pointer;
  transition: outline-color 0.12s ease;
  outline: 1px solid transparent;
  outline-offset: 0;
}

.gh-day:not(.gh-day--pad):hover,
.gh-day:not(.gh-day--pad):focus-visible {
  outline-color: rgba(245, 245, 245, 0.6);
}

[data-theme="light"] .gh-day:not(.gh-day--pad):hover,
[data-theme="light"] .gh-day:not(.gh-day--pad):focus-visible {
  outline-color: rgba(26, 26, 26, 0.6);
}

.gh-day--pad {
  background: none;
}

/* Hover tooltip — appended to <body> by github-graph.js so the scroller
   can't clip it. --gh-tip-arrow is the arrow's x offset within the box. */
.gh-tip {
  position: fixed;
  z-index: 1000;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-slab);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.gh-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gh-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--gh-tip-arrow, 50%);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
}

.gh-tip.is-below {
  transform: translateY(-2px);
}

.gh-tip.is-below.is-visible {
  transform: translateY(0);
}

.gh-tip.is-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--text);
}

[data-theme="light"] .gh-day { background: rgba(26, 26, 26, 0.08); }
[data-theme="light"] .gh-day[data-level="1"] { background: rgba(26, 26, 26, 0.25); }
[data-theme="light"] .gh-day[data-level="2"] { background: rgba(26, 26, 26, 0.45); }
[data-theme="light"] .gh-day[data-level="3"] { background: rgba(26, 26, 26, 0.7); }
[data-theme="light"] .gh-day[data-level="4"] { background: rgba(26, 26, 26, 0.95); }
[data-theme="light"] .gh-day--pad { background: none; }

.gh-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.gh-link {
  font-family: var(--font-slab);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.gh-link:hover {
  color: var(--text);
}

.gh-legend {
  --gh-cell: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-slab);
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1;
}

.gh-legend span:first-child {
  margin-right: 2px;
}

.gh-legend span:last-child {
  margin-left: 2px;
}

@media (max-width: 600px) {
  .gh-cal {
    --gh-cell: 10px;
    --gh-gap: 2.5px;
  }

  .gh-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
