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

body {
  background-color: #e8e4d9;
  font-family: monospace;
  color: #333;
  padding: 2rem 0;
}

/* ─── Outer container: centres the column ────────── */
/*
  FLEXBOX CONCEPT:
  - justify-content: center  → horizontal centering
  - align-items: flex-start  → don't stretch children vertically
*/
.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

/* ─── Centre column: stacks all cards vertically ─── */
/*
  FLEXBOX CONCEPT:
  - flex-direction: column   → children stack top-to-bottom
  - gap                      → space between each card
*/
.centre-div {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 620px;
}

/* ─── Shared card style ──────────────────────────── */
.card {
  background-color: #f5f2eb;
  border: 1px solid #b0a898;
  padding: 1.25rem 1.5rem;
}

/* ─── 1. Header card ─────────────────────────────── */
.header-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-name {
  font-family: Georgia, serif;
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.handwriting-video {
  width: 280px;
  display: block;
  margin-top: -10%;
  margin-bottom: -6%;
  margin-left: -12%;
}

.video-crop-box {
  width: 280px;
  overflow: hidden;
  background-color: #f5f2eb;
}

.handle {
  font-size: 0.85rem;
  color: #888;
}

/* ─── 2. Nav bar ─────────────────────────────────── */
/*
  FLEXBOX CONCEPT:
  - flex-direction: row (default) → items side by side
  - justify-content: space-between → pushes icon to the right
*/
.nav-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background-color: #f5f2eb;
  border: 1px solid #b0a898;
  padding: 0.6rem 1rem;
}

.nav-bar a {
  color: #555;
  text-decoration: none;
  font-size: 0.85rem;
}

.nav-bar a:hover {
  color: #1a1a1a;
}

.nav-icon {
  margin-left: auto; /* pushes the icon to the far right */
  color: #888;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ─── 3. Bio card ────────────────────────────────── */
/*
  FLEXBOX CONCEPT:
  - flex-direction: row          → text and avatar side by side
  - flex: 1 on bio-text          → text takes all remaining space
  - align-items: center          → vertically centre the avatar
*/
.bio-card {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
}

.bio-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
}

.avatar {
  width: 85px;
  height: 85px;
  flex-shrink: 0; /* never compress the avatar */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}

.avatar svg {
  width: 36px;
  height: 36px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── 4. Currently card ──────────────────────────── */
.currently-card {
  display: flex;
  flex-direction: column;
}

/* ─── 5. Pinned card ─────────────────────────────── */
.pinned-card {
  display: flex;
  flex-direction: column;
}

/* ─── Shared: section labels ─────────────────────── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #999;
  padding-bottom: 0.6rem;
}

/* ─── Shared: divider lines ──────────────────────── */
.divider {
  height: 1px;
  background-color: #d0ccc2;
}

/* ─── Currently rows ─────────────────────────────── */
/*
  FLEXBOX CONCEPT:
  - row layout: label left, content right
*/
.currently-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 2rem;
  padding: 0.75rem 0;
}

.row-label {
  width: 90px;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #888;
}

.row-content {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.9rem;
}

.tag {
  font-size: 0.8rem;
  color: #999;
}

/* ─── Pinned rows ────────────────────────────────── */
.pinned-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
}

.project-name {
  font-style: italic;
  color: #6b7fa8;
  text-decoration: none;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.project-name:hover {
  text-decoration: underline;
}

.project-desc {
  font-size: 0.85rem;
  color: #555;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
}

.page.active {
  display: flex;
  animation: pageIn 0.22s ease forwards;
}

.nav-bar a.active-link {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Blogs Page Styles ──────────────────────────── */
.blog-header {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
}

.blog-subtitle {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.4rem 0;
}

.blog-tags a {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border: 1px solid #b0a898;
  border-radius: 50px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #666;
  background-color: #f5f2eb;
  text-decoration: none;
  transition: all 0.15s ease;
}

.blog-tags a:hover {
  border-color: #6b7fa8;
  color: #1a1a1a;
}

.blog-tags a.active-tag {
  border-color: #6b7fa8;
  color: #6b7fa8;
  background-color: #eae5d9;
}

.blog-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-post-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  padding: 1rem 0;
}

.post-meta {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.post-date {
  font-size: 0.85rem;
  color: #888;
}

.post-read-time {
  font-size: 0.75rem;
  color: #aaa;
}

.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.post-title {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #6b7fa8;
  text-decoration: none;
  font-weight: 500;
  width: fit-content;
}

.post-title:hover {
  text-decoration: underline;
}

.post-description {
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.post-tags span {
  font-family: monospace;
  font-size: 0.72rem;
  color: #888;
  background-color: #eae5d9;
  border: 1px solid #d0ccc2;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ─── Blog Post Detail Page Styles ───────────────── */
.post-detail-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2rem;
}

.post-detail-meta {
  font-family: monospace;
  font-size: 0.85rem;
  color: #888;
}

.post-detail-title {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1.25;
  color: #1a1a1a;
  font-weight: 400;
}

.post-detail-tags {
  display: flex;
  gap: 0.5rem;
}

.post-detail-tags span {
  font-family: monospace;
  font-size: 0.85rem;
  color: #666;
  background-color: #f5f2eb;
  border: 1px solid #b0a898;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.post-detail-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.post-detail-body p {
  font-family: monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.post-detail-subheading {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  color: #1a1a1a;
  margin-top: 1rem;
}

.post-detail-body blockquote {
  border-left: 2px solid #6b7fa8;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
}

.photos-list-title {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
}

/* ─── cool_photos: grid-template-areas collage ───────

   "a a b"   A spans two columns, B is tall on the right
   "c d b"   C and D share the left, B continues
   "e f g"   three across the bottom
─────────────────────────────────────────────────────── */
.photo-collage {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 180px 180px 180px;
  grid-template-areas:
    "a a b"
    "d c b"
    "d e g";
  gap: 4px;
}

/* Each cell: clip the image to the named area */
.photo-cell {
  margin: 0;
  overflow: hidden;
  background-color: #d0ccc2; /* visible placeholder while photos load */
}

.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.photo-cell:hover img {
  transform: scale(1.04);
}

.book-list-title {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.book-list-columns {
  display: flex;
  flex-direction: row;
  gap: 3rem;
}

.book-list-columns > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Style for column subheadings (READ, WISHLIST) */
.book-list-columns h3.book-list-title {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.book-scroll-box {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 0.75rem;
}

/* Custom scrollbar styling for the book scroll container */
.book-scroll-box::-webkit-scrollbar {
  width: 4px;
}

.book-scroll-box::-webkit-scrollbar-track {
  background: transparent;
}

.book-scroll-box::-webkit-scrollbar-thumb {
  background: #d0ccc2;
  border-radius: 4px;
}

.book-scroll-box::-webkit-scrollbar-thumb:hover {
  background: #b0a898;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.8rem 0;
}

.book-card span:nth-child(1) {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #1a1a1a;
  margin-bottom: 0.1rem;
}

.book-card span:nth-child(2) {
  font-family: monospace;
  font-size: 0.85rem;
  color: #555;
  display: inline;
}

.book-card span:nth-child(3) {
  font-family: monospace;
  font-size: 0.85rem;
  color: #888;
  display: inline;
}

/* Dynamic dot separator between author and year in CSS */
.book-card span:nth-child(2)::after {
  content: " · ";
  color: #b0a898;
}

/* ─── Music List Page Styles ─────────────────────── */
.music-list-title {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.music-section-label {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.playlists-list {
  display: flex;
  flex-direction: column;
}

.playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.playlist-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.playlist-name {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #1a1a1a;
  text-decoration: none;
  width: fit-content;
}

.playlist-name:hover {
  text-decoration: underline;
}

.playlist-desc {
  font-family: monospace;
  font-size: 0.85rem;
  color: #666;
}

.playlist-tracks {
  font-family: monospace;
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}

/* #long-project-name{
  display: flex;
  flex-wrap: wrap;
} */

.social-link {
  text-decoration: none;
  color: #888;
}

.social-link:hover {
  color: #1a1a1a;
}

.photo-section-label {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

#poem {
  font-size: 1.2rem;
  font-family: "Noto Sans Devanagari", sans-serif;
}
