/* ============================================
   ASHISH RAO - Personal Website
   Tech Specs Aesthetic + Clean Layout
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-bg: #f5f3ef;
  --color-bg-alt: #eae8e4;
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-text-light: #888888;
  --color-border: #1a1a1a;
  --color-border-light: #cccccc;
  --color-accent: #1a1a1a;
  --color-link: #1a1a1a;
  --color-link-hover: #555555;
  --color-card-bg: #ffffff;

  /* Growth stage colors */
  --color-seedling: #7cb342;
  --color-budding: #43a047;
  --color-evergreen: #2e7d32;

  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  --max-width: 900px;
  --border-width: 1px;

  /* Fluid typography scale (320px -> 1200px viewport) */
  --fluid-min-width: 320;
  --fluid-max-width: 1200;
  --fluid-bp: calc((100vw - 320px) / (1200 - 320));

  --font-size-xs: calc(12px + 2 * var(--fluid-bp));
  --font-size-sm: calc(13px + 2 * var(--fluid-bp));
  --font-size-base: calc(15px + 3 * var(--fluid-bp));
  --font-size-md: calc(18px + 6 * var(--fluid-bp));
  --font-size-lg: calc(24px + 10 * var(--fluid-bp));
  --font-size-xl: calc(32px + 16 * var(--fluid-bp));
  --font-size-2xl: calc(40px + 24 * var(--fluid-bp));

  /* Layered shadows for depth */
  --shadow-sm:
    0.2px 0.2px 0.5px rgba(0, 0, 0, 0.02),
    0.5px 0.5px 1.4px rgba(0, 0, 0, 0.028),
    1px 1px 2.5px rgba(0, 0, 0, 0.035);

  --shadow-md:
    0.2px 0.2px 0.8px rgba(40, 10, 0, 0.012),
    0.5px 0.5px 2px rgba(40, 10, 0, 0.018),
    1px 1px 4px rgba(40, 10, 0, 0.025),
    2px 2px 8px rgba(40, 10, 0, 0.032),
    4px 4px 16px rgba(40, 10, 0, 0.04);

  --shadow-lg:
    0.2px 0.2px 0.8px rgba(40, 10, 0, 0.014),
    0.8px 0.8px 3.8px rgba(40, 10, 0, 0.025),
    2.5px 2.5px 12.5px rgba(40, 10, 0, 0.036),
    6px 6px 30px rgba(40, 10, 0, 0.05);
}

/* ---------- Dark Mode ---------- */
.dark-mode {
  --color-bg: #121212;
  --color-bg-alt: #1a1a1a;
  --color-text: #e5e5e5;
  --color-text-muted: #a0a0a0;
  --color-text-light: #707070;
  --color-border: #e8b89d;
  --color-border-light: #2a2a2a;
  --color-accent: #e8b89d;
  --color-link: #e8b89d;
  --color-link-hover: #f0c9b0;
  --color-card-bg: #1e1e1e;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Texture Overlay ---------- */
.texture-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.dark-mode .texture-overlay {
  opacity: 0.015;
}

/* Dark mode accent overrides */
.dark-mode .site-logo {
  color: #e8b89d;
}

.dark-mode .nav-link.active {
  color: #e8b89d;
}

/* ---------- Base ---------- */
html {
  font-size: 15px;
}

body {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: var(--color-link-hover);
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding-top: var(--space-xl);
}

/* ---------- Site Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(212, 163, 115, 0.3);
}

.dark-mode .site-header {
  border-bottom-color: rgba(232, 184, 157, 0.2);
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.site-logo:hover {
  color: var(--color-text-muted);
}

.site-nav {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--color-border-light);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--color-border);
}

.theme-icon::before {
  content: 'LT';
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text);
}

.dark-mode .theme-icon::before {
  content: 'DK';
}

/* ---------- Hamburger Menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  margin-left: auto;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- Profile Section ---------- */
.profile {
  margin-bottom: var(--space-2xl);
}

.bio {
  margin-bottom: var(--space-lg);
}

.bio p {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.bio strong,
.bio a {
  font-weight: 600;
}

/* ---------- Social Links ---------- */
.social-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.15s ease;
}

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

.social-link svg {
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section {
  margin-bottom: var(--space-xl);
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.section-line {
  height: 2px;
  background: linear-gradient(90deg, #d4a373 0%, transparent 100%);
  margin-bottom: var(--space-lg);
  border: none;
}

.dark-mode .section-line {
  background: linear-gradient(90deg, #e8b89d 0%, transparent 100%);
}

/* ---------- Articles List (Clean) ---------- */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.article-item {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(212, 163, 115, 0.15);
}

.article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dark-mode .article-item {
  border-bottom-color: rgba(232, 184, 157, 0.1);
}

.article-link {
  display: block;
  margin-bottom: var(--space-xs);
}

.article-title {
  font-weight: 500;
  color: var(--color-text);
  font-size: 1rem;
}

.article-link:hover .article-title {
  color: #d4a373;
}

.dark-mode .article-link:hover .article-title {
  color: #e8b89d;
}

.article-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

/* ---------- Status List ---------- */
.status-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.status-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: 0.9rem;
}

.status-label {
  color: var(--color-text);
  font-weight: 500;
  flex-shrink: 0;
}

.status-dots {
  flex: 1;
  border-bottom: 1px dotted var(--color-border-light);
  min-width: 20px;
  margin-bottom: 4px;
}

.status-value {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* ---------- Links List ---------- */
.links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--color-border-light);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: padding-left 0.15s ease;
}

.link-item:last-child {
  border-bottom: none;
}

.link-item:hover {
  padding-left: var(--space-sm);
}

.link-arrow {
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.main-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
}

.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #d4a373 50%, transparent 100%);
  margin-bottom: var(--space-md);
}

.dark-mode .footer-line {
  background: linear-gradient(90deg, transparent 0%, #e8b89d 50%, transparent 100%);
}

.footer-text {
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

/* ---------- Page Header ---------- */
.page-header {
  margin-bottom: var(--space-xl);
}

.page-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.page-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------- Back Link ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

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

/* ---------- Blog Post ---------- */
.blog-post {
  max-width: 640px;
}

.post-header {
  margin-bottom: var(--space-xl);
}

.post-header .post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.post-header .post-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.post-excerpt-large {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.post-content {
  font-size: 0.95rem;
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.post-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.post-content p {
  margin-bottom: var(--space-md);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.post-content li {
  margin-bottom: var(--space-xs);
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
}

.post-content pre {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border-light);
  padding: var(--space-md);
  overflow-x: auto;
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--color-text-muted);
}

.post-content strong {
  font-weight: 600;
}

.post-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--color-border);
}

/* ---------- About Page ---------- */
.about-content {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 640px;
}

.about-content p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

.about-content .lead {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.about-section {
  margin-bottom: var(--space-xl);
}

.about-section h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-xs) var(--space-sm);
  display: inline-block;
  margin-bottom: var(--space-md);
}

.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.interest-item {
  font-size: 0.8rem;
  padding: var(--space-xs) var(--space-sm);
  border: 1px dashed var(--color-border-light);
  color: var(--color-text-muted);
}

.connect-list {
  list-style: none;
}

.connect-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--color-border-light);
  font-size: 0.9rem;
}

.connect-list li:last-child {
  border-bottom: none;
}

/* ---------- CV Page ---------- */
.cv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.download-btn {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.download-btn:hover {
  opacity: 0.8;
  color: var(--color-bg);
}

.cv-content {
  max-width: 640px;
}

.cv-section {
  margin-bottom: var(--space-xl);
}

.cv-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-xs) var(--space-sm);
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.cv-item {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px dashed var(--color-border-light);
}

.cv-item:last-child {
  border-bottom: none;
}

.cv-item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.cv-role {
  font-size: 1rem;
  font-weight: 600;
}

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

.cv-period {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-left: auto;
}

.cv-description {
  list-style: none;
  padding-left: 0;
}

.cv-description li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cv-description li::before {
  content: ".";
  position: absolute;
  left: 0;
  color: var(--color-text);
  font-weight: bold;
}

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

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.skill-category h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.skill-category p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.cv-note {
  padding: var(--space-md);
  border: 1px dashed var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* ============================================
   SHELF PAGE STYLES
   ============================================ */

/* ---------- Shelf Tabs ---------- */
.shelf-tabs {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(212, 163, 115, 0.2);
}

.dark-mode .shelf-tabs {
  border-bottom-color: rgba(232, 184, 157, 0.15);
}

.shelf-tab {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.shelf-tab:hover {
  color: var(--color-text);
}

.shelf-tab.active {
  color: #d4a373;
  border-bottom-color: #d4a373;
}

.dark-mode .shelf-tab.active {
  color: #e8b89d;
  border-bottom-color: #e8b89d;
}

/* ---------- Tab Content ---------- */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ---------- Shelf Controls ---------- */
.shelf-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.search-input {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: var(--space-sm) var(--space-md);
  border: 1px dashed var(--color-border-light);
  background: var(--color-bg);
  color: var(--color-text);
  width: 200px;
  transition: border-color 0.15s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-border);
}

.search-input::placeholder {
  color: var(--color-text-light);
}

.filter-buttons {
  display: flex;
  gap: var(--space-xs);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: var(--space-xs) var(--space-sm);
  background: none;
  border: 1px dashed var(--color-border-light);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: var(--color-text);
  border-color: var(--color-border);
}

.filter-btn.active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.item-count {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-left: auto;
}

/* ---------- Year Labels ---------- */
.year-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-xs) var(--space-sm);
  display: inline-block;
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
}

.year-label:first-of-type {
  margin-top: 0;
}

/* ---------- Item Grid ---------- */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* ---------- Item Card ---------- */
.item-card {
  aspect-ratio: 2/3;
  background: var(--color-bg-alt);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.item-card:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.item-card.has-image .item-title-fallback {
  display: none;
}

.item-title-fallback {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-sm);
  line-height: 1.3;
  word-break: break-word;
}

/* ---------- Item Badge ---------- */
.item-badge {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 10;
}

.item-badge.star {
  background: #d4a373;
  color: white;
}

.item-badge.heart {
  background: rgba(212, 163, 115, 0.2);
  color: #d4a373;
}

.dark-mode .item-badge.star {
  background: #e8b89d;
  color: #1a1a1a;
}

.dark-mode .item-badge.heart {
  background: rgba(232, 184, 157, 0.2);
  color: #e8b89d;
}

/* ---------- Essays List ---------- */
.essays-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.essay-item {
  padding-bottom: var(--space-lg);
  border-bottom: 1px dashed var(--color-border-light);
}

.essay-item:last-child {
  border-bottom: none;
}

.essay-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.essay-title a {
  font-weight: 500;
  font-size: 0.95rem;
}

.essay-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
}

.essay-badge.star {
  background: var(--color-text);
  color: var(--color-bg);
}

.essay-meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.essay-review {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: var(--space-lg);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: var(--space-lg);
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: var(--space-xs);
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-cover {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: var(--space-md);
  background: var(--color-bg-alt);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.modal-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.modal-review {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

.modal-review.no-review {
  color: var(--color-text-light);
  font-style: italic;
}

/* ============================================
   HERO PAGE STYLES V2 - Warm & Asymmetric
   ============================================ */

.hero-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-xl);
  background: linear-gradient(135deg, #fdf6f0 0%, #f5ebe0 50%, #fae8e0 100%);
}

.dark-mode .hero-page {
  background: linear-gradient(135deg, #1a1a1a 0%, #1f1f1f 50%, #1a1818 100%);
}

.hero-container-v2 {
  position: relative;
  width: 100%;
  max-width: 1000px;
}

.hero-theme-toggle {
  position: absolute;
  top: 0;
  right: 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  min-height: 60vh;
}

.hero-left {
  padding-right: var(--space-xl);
}

.hero-name-brush {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: #d4a373;
  font-style: italic;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}

.dark-mode .hero-tagline {
  color: #e8b89d;
}

.hero-bio-v2 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.hero-separator {
  color: #d4a373;
  font-weight: 300;
}

.dark-mode .hero-separator {
  color: #e8b89d;
}

.hero-right {
  display: flex;
  justify-content: flex-start;
  position: relative;
}

.hero-media-v2 {
  width: 280px;
  aspect-ratio: 1/1;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .hero-media-v2 {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(180, 140, 100, 0.2);
}

.dark-mode .hero-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.hero-nav-v2 {
  display: flex;
  gap: var(--space-lg);
}

.hero-nav-v2 a {
  font-size: 0.9rem;
  color: var(--color-text);
  transition: color 0.15s ease;
  position: relative;
}

.hero-nav-v2 a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4a373;
  transition: width 0.2s ease;
}

.hero-nav-v2 a:hover::after {
  width: 100%;
}

.dark-mode .hero-nav-v2 a::after {
  background: #e8b89d;
}

.hero-social-v2 {
  display: flex;
  gap: var(--space-md);
}

.hero-social-v2 a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.hero-social-v2 a:hover {
  color: #d4a373;
}

.dark-mode .hero-social-v2 a:hover {
  color: #e8b89d;
}

/* ============================================
   HEALTH PAGE STYLES
   ============================================ */

.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.health-card {
  background: var(--color-card-bg);
  border: 1px dashed var(--color-border-light);
  padding: var(--space-lg);
}

.health-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.health-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.health-card-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
}

.health-card-unit {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-left: var(--space-xs);
}

.health-card-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: var(--space-sm);
}

.health-card-trend {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 2px;
}

.health-card-trend.up {
  background: rgba(95, 143, 147, 0.15);
  color: #5F8F93;
}

.health-card-trend.down {
  background: rgba(200, 100, 100, 0.15);
  color: #c86464;
}

.health-card-trend.neutral {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.health-section {
  margin-bottom: var(--space-xl);
}

.health-metric-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.health-metric-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--color-border-light);
}

.health-metric-item:last-child {
  border-bottom: none;
}

.health-metric-name {
  font-size: 0.9rem;
  color: var(--color-text);
  flex-shrink: 0;
}

.health-metric-dots {
  flex: 1;
  border-bottom: 1px dotted var(--color-border-light);
  min-width: 20px;
  margin-bottom: 4px;
}

.health-metric-value {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.health-note {
  padding: var(--space-md);
  border: 1px dashed var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xl);
}

/* ============================================
   MUSIC SECTION STYLES
   ============================================ */

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-md);
}

.music-card {
  background: var(--color-card-bg);
  border: 1px dashed var(--color-border-light);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.music-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border);
}

.music-card-cover {
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  overflow: hidden;
}

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

.music-card-info {
  padding: var(--space-sm);
}

.music-card-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.music-card-artist {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-note {
  padding: var(--space-md);
  border: 1px dashed var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
}

.music-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   TIMELINE STYLES
   ============================================ */

.timeline {
  position: relative;
  padding-left: var(--space-xl);
  margin-top: var(--space-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #d4a373 0%, transparent 100%);
}

.dark-mode .timeline::before {
  background: linear-gradient(180deg, #e8b89d 0%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

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

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-xl) + 2px);
  top: 4px;
  width: 12px;
  height: 12px;
  background: #d4a373;
  border-radius: 50%;
}

.timeline-intern .timeline-marker {
  background: var(--color-bg);
  border: 2px solid #d4a373;
}

.dark-mode .timeline-marker {
  background: #e8b89d;
}

.dark-mode .timeline-intern .timeline-marker {
  background: var(--color-bg);
  border-color: #e8b89d;
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.timeline-content {
  padding: var(--space-sm) 0;
}

.timeline-company {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.timeline-role {
  font-size: 0.8rem;
  color: #d4a373;
  padding: 2px 10px;
  background: rgba(212, 163, 115, 0.1);
  border-radius: 12px;
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.dark-mode .timeline-role {
  color: #e8b89d;
  background: rgba(232, 184, 157, 0.1);
}

.timeline-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
}


/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .container {
    padding: var(--space-md);
  }

  .hamburger {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .site-header {
    position: relative;
  }

  .theme-toggle {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--color-bg);
    flex-direction: column;
    gap: var(--space-lg);
    padding: 80px var(--space-xl) var(--space-xl);
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 1px solid var(--color-border-light);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .site-nav.active {
    right: 0;
  }

  .nav-link {
    font-size: 1rem;
    padding: var(--space-sm) 0;
  }

  .item-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--space-sm);
  }

  .shelf-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-input {
    width: 100%;
  }

  .item-count {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .hero-left {
    padding-right: 0;
    order: 2;
  }

  .hero-right {
    order: 1;
    justify-content: center;
  }

  .hero-media-v2 {
    width: 250px;
    transform: rotate(0deg);
  }

  .hero-name-brush {
    font-size: 2.5rem;
  }

  .hero-bio-v2 {
    justify-content: center;
  }

  .hero-bottom {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-nav-v2,
  .hero-social-v2 {
    justify-content: center;
  }

  .health-grid {
    grid-template-columns: 1fr;
  }

  .music-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .social-links {
    gap: var(--space-md);
  }

  .shelf-tabs {
    flex-wrap: wrap;
  }

  .filter-buttons {
    flex-wrap: wrap;
  }

  .cv-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-period {
    margin-left: 0;
  }

  .cv-item-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-media-v2 {
    width: 200px;
  }

  .hero-name-brush {
    font-size: 2rem;
  }

  .hero-nav-v2,
  .hero-social-v2 {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .music-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .garden-grid {
    grid-template-columns: 1fr;
  }

  .growth-legend {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   DIGITAL GARDEN STYLES
   ============================================ */

/* ---------- Garden Page Layout ---------- */
.garden-page {
  padding-bottom: var(--space-2xl);
}

.garden-header {
  margin-bottom: var(--space-xl);
}

.garden-header h1 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
}

.garden-intro {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  max-width: 65ch;
  margin-bottom: var(--space-lg);
}

/* ---------- Growth Stage Legend ---------- */
.growth-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border-light);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ---------- Growth Stage Icons ---------- */
.growth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 14px;
}

.growth-icon.seedling::before {
  content: '\1F331';
}

.growth-icon.budding::before {
  content: '\1F33F';
}

.growth-icon.evergreen::before {
  content: '\1F332';
}

/* ---------- Garden Grid ---------- */
.garden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* ---------- Garden Card ---------- */
.garden-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.25s cubic-bezier(0.2, 1, 0.8, 1),
              box-shadow 0.25s cubic-bezier(0.2, 1, 0.8, 1),
              border-color 0.25s ease;
  will-change: transform, box-shadow;
}

.garden-card:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.garden-card:hover .garden-card-title {
  color: var(--color-accent);
}

.garden-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.garden-card-title {
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--space-xs);
  transition: color 0.2s ease;
}

.garden-card-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  flex-grow: 1;
}

.garden-card-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  margin-top: auto;
}

/* ---------- Topic Tags ---------- */
.garden-topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.topic-tag {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border-light);
  color: var(--color-text-muted);
  text-transform: lowercase;
}

/* ============================================
   ENHANCED LINK ANIMATIONS
   ============================================ */

/* ---------- Animated Underline Links ---------- */
.styled-link {
  position: relative;
  text-decoration: none;
  color: var(--color-link);
  transition: color 0.2s ease;
}

.styled-link::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.8, 1);
}

.styled-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

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

/* ---------- Enhanced Article Cards ---------- */
.article-item {
  transition: transform 0.25s cubic-bezier(0.2, 1, 0.8, 1),
              box-shadow 0.25s cubic-bezier(0.2, 1, 0.8, 1);
}

.article-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-item:hover .article-title {
  color: var(--color-accent);
}

/* ---------- Enhanced Shelf Cards ---------- */
.item-card {
  transition: transform 0.25s cubic-bezier(0.2, 1, 0.8, 1),
              box-shadow 0.25s cubic-bezier(0.2, 1, 0.8, 1);
}

.item-card:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   GARDEN NOTE PAGE STYLES
   ============================================ */

.garden-note {
  max-width: 720px;
}

.garden-note-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px dashed var(--color-border-light);
}

.garden-note-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.growth-label {
  text-transform: capitalize;
  font-weight: 500;
}

.meta-separator {
  color: var(--color-text-light);
}

.garden-note-topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.garden-note-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--color-border-light);
}

/* ============================================
   PROSE TYPOGRAPHY (for long-form content)
   ============================================ */

.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}

/* Headings */
.prose h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.prose h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.5rem;
}

/* Lists */
.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Code */
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
}

.prose pre {
  background: var(--color-bg-alt);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  border-radius: 4px;
}

.prose pre code {
  background: none;
  padding: 0;
}

/* Blockquotes */
.prose blockquote {
  border-left: 3px solid var(--color-border);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--color-text-muted);
}

/* Horizontal rules */
.prose hr {
  border: none;
  border-top: 1px dashed var(--color-border-light);
  margin: 2.5rem 0;
}

/* Links */
.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Strong */
.prose strong {
  font-weight: 600;
}

/* Tables - scrollable wrapper */
.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  white-space: nowrap;
}

.prose thead {
  background: var(--color-bg-alt);
}

.prose th,
.prose td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-light);
  text-align: left;
}

.prose th {
  font-weight: 600;
}

.prose tbody tr:hover {
  background: var(--color-bg-alt);
}
