/* ===========================================
   Micro.blog Theme
   Cloned from Sophie Davis Portfolio
   Font: General Sans
   =========================================== */

:root {
  /* Colors - warm, not corporate */
  --bg: #F6F6F7;
  --bg-nav: rgba(255, 255, 255, 0.95);
  --text: #403E43;
  --text-muted: #8E9196;
  --accent: #4a9f7e;
  --accent-light: #e8f5ef;
  --border: #e5e5e5;

  /* Typography */
  --font-sans: 'General Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Sizing */
  --max-width: 680px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  padding-top: calc(60px + var(--space-lg));
}

/* ===========================================
   Typography
   =========================================== */

strong, b {
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.3;
}

h1 {
  font-size: 36px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

/* Italic emphasis */
em {
  font-style: italic;
  font-weight: 400;
}

/* ===========================================
   Links - Animated Underline
   =========================================== */

a {
  color: var(--text);
  font-weight: inherit;
  text-decoration: none;
  position: relative;
  display: inline;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===========================================
   Layout
   =========================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md);
}

/* ===========================================
   Site Header - Centered Navigation
   =========================================== */

.site-header {
  display: flex;
  justify-content: center;
  position: fixed;
  top: var(--space-md);
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}

.site-nav {
  display: inline-flex;
  gap: var(--space-xs);
  background: var(--bg-nav);
  padding: 6px;
  border-radius: 50px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  pointer-events: auto;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  transition: all 0.2s ease;
}

.nav-link::after {
  display: none;
}

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

.nav-link.active {
  background: var(--bg);
  color: var(--text);
}

.nav-dot {
  width: 8px;
  height: 8px;
  background: #e85a4f;
  border-radius: 50%;
}

/* ===========================================
   Posts
   =========================================== */

.posts {
  display: flex;
  flex-direction: column;
}

.post {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.post:first-child {
  padding-top: 0;
}

.post:last-child {
  border-bottom: none;
}

.post-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
}

/* ===========================================
   Post Content
   =========================================== */

.post-content {
  font-size: 17px;
  line-height: 27px;
  color: var(--text);
}

.post-content p {
  margin-bottom: 1em;
}

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

/* Links in content */
.post-content a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  display: inline;
}

.post-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.post-content a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Lists - custom dash bullets */
.post-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 var(--space-md) 0;
}

.post-content ol {
  margin: var(--space-sm) 0;
  padding-left: 1.5rem;
}

.post-content li {
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 8px;
  line-height: 26px;
  font-size: 17px;
}

.post-content ul li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.post-content li:last-child {
  margin-bottom: 0;
}

/* Images */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: var(--space-sm) 0;
  display: block;
}

/* Blockquotes */
.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: var(--space-sm);
  margin: var(--space-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Code */
.post-content code {
  background: var(--bg-nav);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-content pre {
  background: #1e1e1e;
  color: #fff;
  padding: var(--space-sm);
  border-radius: 8px;
  overflow-x: auto;
  margin: var(--space-sm) 0;
}

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

/* ===========================================
   Post Meta
   =========================================== */

.post-meta {
  margin-top: var(--space-sm);
}

.post-date {
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-date::after {
  display: none;
}

.post-date:hover {
  color: var(--text);
}

/* ===========================================
   Single Post
   =========================================== */

.post.single {
  padding: 0;
  border-bottom: none;
}

.post.single .post-title {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.post.single .post-meta {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* ===========================================
   Pagination
   =========================================== */

.pagination {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) 0;
  margin-top: var(--space-sm);
}

.pagination a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pagination a::after {
  display: none;
}

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

.pagination .prev::before {
  content: '\2190 ';
}

.pagination .next::after {
  content: ' \2192';
}

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

.site-footer {
  padding: var(--space-lg) 0;
}

.site-footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.site-footer p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

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

@media (max-width: 768px) {
  body {
    font-size: 1rem;
    padding-top: calc(56px + var(--space-md));
  }

  main {
    padding: var(--space-md) 20px;
  }

  .site-header {
    top: var(--space-sm);
  }

  .site-nav {
    gap: 3px;
    padding: 6px;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
  }

  .post-content {
    font-size: 16px;
    line-height: 26px;
  }

  .post-content li {
    font-size: 16px;
    line-height: 26px;
  }

  .post.single .post-title {
    font-size: 28px;
  }

  .site-footer .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: calc(50px + var(--space-sm));
  }

  main {
    padding: var(--space-sm) 20px;
  }

  .site-header {
    top: var(--space-xs);
  }

  .site-nav {
    gap: 3px;
    padding: 6px 20px;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .post.single .post-title {
    font-size: 24px;
  }

  .post-content li {
    margin-bottom: 10px;
  }
}

/* ===========================================
   Media Page
   =========================================== */

.media-page {
  max-width: var(--max-width);
  margin: 0 auto;
}

.media-intro {
  font-size: 17px;
  line-height: 27px;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

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

.media-section h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.media-section h2 em {
  font-style: italic;
  font-weight: 400;
}

/* Bookmarks List */
.bookmark-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: var(--space-md);
}

.bookmark-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.bookmark-date {
  font-family: var(--font-sans);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 90px;
}

.bookmark-emoji {
  flex-shrink: 0;
}

.bookmark-item a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
}

.bookmark-item a:hover {
  color: var(--accent);
}

.bookmark-item a::after {
  display: none;
}

/* Media Grid (Reading & Listening) */
.media-grid {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  margin-top: var(--space-md);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.media-grid::-webkit-scrollbar {
  height: 6px;
}

.media-grid::-webkit-scrollbar-track {
  background: transparent;
}

.media-grid::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.media-card {
  flex: 0 0 160px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease;
}

.media-card:hover {
  transform: translateY(-4px);
}

.media-card::after {
  display: none;
}

.media-cover {
  width: 160px;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.media-info {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-sm);
  max-width: 160px;
}

.media-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-artist {
  font-family: var(--font-sans);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bookmarks from plugin - style the default ul output */
.bookmark-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bookmark-list ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.bookmark-list ul li a {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

/* Loading state */
.loading {
  color: var(--text-muted);
  font-style: italic;
  font-size: 15px;
}

.media-card.loading .media-cover {
  background: linear-gradient(135deg, var(--border) 0%, #ddd 100%);
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

/* Empty state */
.media-section:empty,
.media-grid:empty {
  display: none;
}

.empty-state {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
}

/* Media Page Responsive */
@media (max-width: 768px) {
  .media-card {
    flex: 0 0 130px;
  }

  .media-cover {
    width: 130px;
    height: 130px;
  }

  .media-info {
    max-width: 130px;
  }

  .bookmark-item {
    font-size: 14px;
  }

  .bookmark-item a {
    font-size: 14px;
    line-height: 1.4;
  }

  .bookmark-date {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .media-grid {
    gap: var(--space-sm);
  }

  .media-card {
    flex: 0 0 110px;
  }

  .media-cover {
    width: 110px;
    height: 110px;
  }

  .media-info {
    max-width: 110px;
  }
}

/* ===========================================
   About Page
   =========================================== */

/* Vertical centering - matches portfolio body.page-home */
body:has(.about-page) {
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:has(.about-page) main {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 860px;
  padding-top: 140px;
  padding-bottom: 80px;
}

.about-page {
  width: 100%;
}

.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.about-image {
  flex-shrink: 0;
}

.about-photo,
.about-page img {
  width: 220px !important;
  height: 300px !important;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.about-content {
  max-width: 420px;
}

.about-content > *:first-child {
  margin-top: 0;
}

.about-content h1 {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.about-content p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 27px;
  color: var(--text);
  margin-bottom: 14px;
}

.about-content p:last-of-type {
  margin-bottom: 0;
}

.about-content strong,
.about-content b {
  font-weight: 500;
}

/* Regular inline links - static underline */
.about-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: inherit;
}

.about-content a::after {
  display: none;
}

.about-content a:hover {
  color: var(--text-muted);
}

/* Company links (bold text inside <a>) - animated underline on hover */
.about-content a:has(strong),
.about-content a:has(b) {
  font-weight: 500;
  text-decoration: none;
  position: relative;
  display: inline;
}

.about-content a:has(strong):hover,
.about-content a:has(b):hover {
  color: var(--text);
}

.about-content a:has(strong)::after,
.about-content a:has(b)::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.about-content a:has(strong):hover::after,
.about-content a:has(b):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Bio social links */
.about-links {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  font-size: 16px;
}

.about-links a {
  color: var(--text-muted);
  font-weight: 400;
  text-decoration: none;
  position: relative;
}

.about-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-muted);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.about-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hide post-date that micro.blog appends inside about-content */
.about-content .post-date {
  display: none;
}

/* About Page Responsive */
@media (max-width: 768px) {
  body:has(.about-page) main {
    padding: 0 28px;
    padding-top: 120px;
    padding-bottom: 60px;
    align-items: flex-start;
  }

  .about-layout {
    flex-direction: column;
    gap: var(--space-md);
  }

  .about-image {
    display: none;
  }

  .about-content {
    max-width: 100%;
  }

  .about-content h1 {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .about-content p {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .about-content h1 {
    font-size: 24px;
  }

  .about-content p {
    line-height: 28px;
  }

  .about-links {
    margin-top: 20px;
  }
}

/* ===========================================
   Contact Page
   =========================================== */

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

.contact-heading {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.contact-heading em {
  font-style: italic;
  font-weight: 400;
}

.contact-intro {
  font-size: 17px;
  line-height: 27px;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* Terminal Style Form */
.terminal {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 680px;
  width: 100%;
}

.terminal-header {
  background: #323232;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
  color: #888;
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

.terminal-body {
  padding: var(--space-md);
}

.terminal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-size: 1.05rem;
}

.terminal-prompt {
  color: var(--accent);
  font-weight: 600;
}

.terminal-line label {
  color: #888;
  white-space: nowrap;
}

.terminal-line input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  outline: none;
  padding: 4px 0;
}

.terminal-line input::placeholder,
.terminal-line textarea::placeholder {
  color: #555;
}

.terminal-line input:focus,
.terminal-line textarea:focus {
  color: #fff;
}

.terminal-line textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  outline: none;
  resize: none;
  line-height: 1.5;
  padding: 4px 0;
}

.terminal-line-textarea {
  align-items: flex-start;
}

.terminal-success {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-size: 15px;
  padding: var(--space-sm) 0;
}

.terminal-submit {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.terminal-submit:hover {
  background: var(--accent);
  color: #1e1e1e;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
  .contact-heading {
    font-size: 28px;
  }

  .terminal-body {
    padding: var(--space-sm);
  }

  .terminal-line {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .terminal-line {
    font-size: 0.85rem;
    gap: 6px;
  }

  .terminal-submit {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* ===========================================
   Now Page
   =========================================== */

.now-page {
  max-width: var(--max-width);
  margin: 0 auto;
}

.now-intro {
  font-size: 17px;
  line-height: 27px;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.now-intro a {
  font-weight: 500;
}

.now-post a,
.now-page a,
.now-content a {
  font-weight: 500;
}

.now-date {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.now-content {
  margin-top: var(--space-sm);
}

.now-post {
  margin-bottom: 0;
}

.now-post h2,
.now-section h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
}

.now-post h2:first-child,
.now-content h2:first-child,
.now-post:first-child h2:first-child {
  margin-top: 0;
}

/* Style p tags before ul as section headers (when not using h2) */
.now-post p + ul {
  margin-top: 0;
}

.now-page .now-post ul + p,
.now-page .now-post > p:first-child {
  font-family: var(--font-sans) !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  margin-bottom: var(--space-sm);
}

.now-page .now-post ul + p {
  margin-top: var(--space-lg);
}

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

.now-section ul,
.now-post ul,
.now-page ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.now-section li,
.now-post li,
.now-page li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

.now-section li::before,
.now-post li::before,
.now-page li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.now-section li:last-child,
.now-post li:last-child,
.now-page li:last-child {
  margin-bottom: 0;
}

/* Now Page Responsive */
@media (max-width: 768px) {
  .now-date {
    font-size: 28px;
  }

  .now-intro {
    font-size: 16px;
    line-height: 26px;
  }

  .now-section li,
  .now-post li,
  .now-page li {
    font-size: 16px;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .now-date {
    font-size: 24px;
  }
}

/* ===========================================
   Thoughts Page
   =========================================== */

.thoughts-page {
  max-width: var(--max-width);
  margin: 0 auto;
}

.thoughts-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-md);
}

.thoughts-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
}

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

.thoughts-item::after {
  display: none;
}

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

.thoughts-date {
  font-family: var(--font-sans);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 90px;
}

.thoughts-title {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Photos Grid */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.photo-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  transition: opacity 0.2s ease;
}

.photo-item::after {
  display: none;
}

.photo-item:hover {
  opacity: 0.85;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Thoughts Responsive */
@media (max-width: 768px) {
  .thoughts-item {
    font-size: 16px;
  }

  .thoughts-title {
    font-size: 16px;
    line-height: 1.4;
  }

  .thoughts-date {
    font-size: 12px;
  }

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

@media (max-width: 480px) {
  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
  }
}

/* ===========================================
   Lab Page
   =========================================== */

.lab-intro {
  font-size: 17px;
  line-height: 27px;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

/* Building cards - index */
.building-list {
  display: flex;
  flex-direction: column;
}

.building-card {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.building-card::after {
  display: none;
}

.building-card:first-child {
  padding-top: 0;
}

.building-card:last-child {
  border-bottom: none;
}

.building-card:hover {
  opacity: 0.6;
}

.building-thumb {
  width: 140px;
  height: 100px;
  border-radius: 8px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.building-info {
  flex: 1;
  min-width: 0;
}

.building-info h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.building-date {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===========================================
   Building Detail Page
   =========================================== */

.building-detail {
  max-width: var(--max-width);
}

.back-link {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: var(--space-md);
  transition: color 0.2s ease;
}

.back-link::after {
  display: none;
}

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

.detail-header {
  margin-bottom: var(--space-md);
}

.detail-header h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.detail-date {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.detail-hero {
  margin-bottom: var(--space-md);
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-content {
  font-size: 17px;
  line-height: 27px;
  color: var(--text);
}

.detail-content p {
  margin-bottom: 14px;
}

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

.detail-content a {
  color: var(--text);
  font-weight: 500;
}

/* Lab responsive */
@media (max-width: 768px) {
  .building-card {
    gap: 16px;
  }

  .building-thumb {
    width: 100px;
    height: 72px;
  }

  .building-info h3 {
    font-size: 1rem;
  }

  .detail-header h1 {
    font-size: 28px;
  }
}

/* ===========================================
   Media Feed (Links + Music mixed)
   =========================================== */

.media-feed {
  margin-top: var(--space-md);
}

.feed-date-header {
  padding: var(--space-sm) 0 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feed-date-header em {
  font-style: italic;
  font-weight: 400;
}

.feed-date-header:first-child {
  padding-top: 0;
}

.feed-entry {
  padding: 4px 0 4px 1.25rem;
  position: relative;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}

.feed-entry::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.feed-entry a {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
}

.feed-entry a::after {
  display: none;
}

.feed-entry a:hover {
  color: var(--accent);
}

.feed-source {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Feed Pagination */
.feed-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  margin-top: var(--space-sm);
}

.feed-pagination a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.feed-pagination a::after {
  display: none;
}

.feed-pagination a:hover {
  color: var(--text);
}

.feed-page-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feed-prev {
  margin-right: auto;
}

.feed-next {
  margin-left: auto;
}

/* Hide post tags */
.post-tags {
  display: none;
}

/* ===========================================
   sophie.fm - Bop Spotter-style Music Page
   =========================================== */

@font-face {
  font-family: 'Rombyte';
  src: url('/music/rombyte.ttf') format('truetype');
}
@font-face {
  font-family: 'Ari';
  src: url('/music/ari.ttf') format('truetype');
}

/* Hide site chrome when sophie.fm is active */
body:has(.sophie-fm) {
  padding-top: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  margin: 0 !important;
}
body:has(.sophie-fm) .site-header,
body:has(.sophie-fm) .site-footer {
  display: none !important;
}
body:has(.sophie-fm) main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Sophie.fm text styles */
.sophie-fm h1, .sophie-fm h2, .sophie-fm h3, .sophie-fm h4,
.sophie-fm p, .sophie-fm a, .sophie-fm th, .sophie-fm td {
  text-shadow: 1px 1px .5px rgba(0,0,0,.5);
  opacity: 0.7;
}
.sophie-fm h1, .sophie-fm h2, .sophie-fm h3, .sophie-fm h4 {
  padding: 0;
  margin: 0;
}

/* Main layout */
.sophie-fm {
  background-image: url('/music/gridnew.png');
  background-size: 60px 60px;
  background-color: #7f9c68;
  display: flex;
  width: 100vw;
  box-sizing: border-box;
  height: 100vh;
}

/* Left panel */
.sfm-left {
  width: 50%;
  max-width: 400px;
  padding: 2rem;
  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}
.sfm-left::-webkit-scrollbar { display: none; }

.sfm-title {
  font-family: Rombyte, monospace;
  font-size: 27px;
  transform: translate(-3px, 10px);
  margin-top: 10px;
  color: #000;
  opacity: 1;
}

.sfm-desc {
  font-family: Ari, monospace;
  font-size: 24px;
  font-weight: 400;
  margin-top: 40px;
  color: #000;
  opacity: 0.7;
}

.sfm-kick {
  font-family: Ari, monospace;
  font-size: 24px;
  font-weight: 400;
  margin-top: 16px;
  color: #000;
  opacity: 0.7;
}

.sfm-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.sfm-back {
  font-family: Ari, monospace;
  font-size: 16px;
  color: #000;
  text-decoration: none;
}
.sfm-back:hover { color: #000; }
.sfm-back::after { display: none; }

.sfm-info-btn {
  width: 40px;
  height: 40px;
  opacity: 0.7;
  filter: drop-shadow(1px 1px 0.5px rgba(0, 0, 0, 0.5));
  cursor: pointer;
  flex-shrink: 0;
}

/* Right panel */
.sfm-right {
  flex: 1;
  gap: 30px;
  padding: 40px 40px 0 40px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Player */
.sfm-player {
  display: flex;
  min-height: 280px;
  background-color: black;
  color: #7f9c68;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-image: url('/music/grid-inverted.png');
  background-size: 60px 60px;
  position: relative;
  cursor: pointer;
}

.sfm-cover-art {
  flex: 1;
  max-width: 300px;
  position: relative;
  cursor: pointer;
  background-color: #7f9c68;
  display: flex;
  align-items: center;
}

.sfm-cover-art img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  display: block;
  position: relative;
  filter: drop-shadow(1px 1px 0.5px rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.sfm-grid-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('/music/grid-inverted.png');
  background-size: 41px;
  mix-blend-mode: difference;
  background-color: black;
  z-index: 7;
  pointer-events: none;
}

.sfm-play-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}
/* Play overlay disabled - no icon on hover */

.sfm-play-overlay img {
  width: 48px; height: 48px;
  filter: invert(77%) sepia(8%) saturate(1558%) hue-rotate(50deg) brightness(75%) contrast(79%);
}

.sfm-song-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sfm-song-info h2 {
  font-family: 'Rombyte', monospace;
  font-size: 24px;
  margin-bottom: 6px;
}

.sfm-artist {
  font-family: 'Ari', monospace;
  font-size: 18px;
  color: #7f9c68;
  opacity: 0.5;
  margin: 0;
}

.sfm-time-ago {
  font-family: 'Ari', monospace;
  font-size: 16px;
  color: #7f9c68;
  opacity: 0.4;
  margin: 8px 0 0 0;
}

.sfm-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  z-index: 5618;
}

.sfm-links a {
  display: flex;
  align-items: center;
  background-color: rgba(127, 156, 104, 0.2);
  padding: 8px 12px;
  text-decoration: none;
  color: #7f9c68;
  transition: background-color 0.3s ease;
  font-family: Ari, monospace;
}
.sfm-links a::after { display: none; }
.sfm-links a:hover { background-color: rgba(127, 156, 104, 0.3); }

.sfm-link-text { display: flex; flex-direction: column; }
.sfm-link-label {
  font-family: Rombyte, monospace;
  font-size: 10px;
  opacity: 0.7;
}
.sfm-link-service {
  font-family: Ari, monospace;
  font-size: 20px;
  opacity: 0.7;
}

/* Tracklist */
.sfm-tracklist-wrap {
  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sfm-tracklist-wrap::-webkit-scrollbar { display: none; }

.sfm-tracklist {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Ari', monospace;
}

.sfm-tracklist th, .sfm-tracklist td {
  padding: 10px;
  text-align: left;
  border-bottom: 3px solid rgba(40,40,40,0.7);
  font-size: 20px;
}

.sfm-tracklist tbody tr:not(.sfm-date-header) {
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.sfm-tracklist tbody tr:not(.sfm-date-header):hover {
  background-color: rgba(127, 156, 104, 0.1);
}

.sfm-date-header td {
  font-family: 'Rombyte', monospace;
  font-size: 16px !important;
  padding: 20px 10px 10px;
  border-bottom: none;
  color: #000;
  background-color: rgba(127, 156, 104, 0.2);
}

.sfm-track-time {
  font-family: 'Ari', monospace;
  font-size: 14px;
  color: #000;
  opacity: 0.4;
  white-space: nowrap;
  vertical-align: top;
  padding-top: 14px !important;
  width: 80px;
}

.sfm-track-song {
  font-family: 'Ari', monospace;
  font-size: 22px;
  color: #000;
  display: block;
}

.sfm-track-artist {
  font-family: 'Ari', monospace;
  font-size: 17px;
  color: #000;
  opacity: 0.45;
  display: block;
  margin-top: 3px;
}

/* Modal */
.sfm-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.sfm-modal-content {
  background-color: #7f9c68;
  background-image: url('/music/gridnew.png');
  background-size: 60px 60px;
  margin: 12% auto;
  padding: 30px;
  width: 400px;
  max-width: 90%;
  font-family: 'Ari', monospace;
  font-size: 20px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.sfm-modal-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.sfm-modal-content a { color: #000; }

/* Mini player bar */
.sfm-mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  height: 44px;
  z-index: 9998;
  display: none;
  flex-direction: column;
}

.sfm-mini-player.visible {
  display: flex;
}

.sfm-mini-progress {
  height: 3px;
  background: #7f9c68;
  width: 0%;
  transition: width 0.3s linear;
}

.sfm-mini-inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.sfm-mini-play {
  background: none;
  border: none;
  color: #7f9c68;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  text-align: center;
}

.sfm-mini-title {
  flex: 1;
  font-family: 'Ari', monospace;
  font-size: 13px;
  color: #7f9c68;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: none;
}

.sfm-mini-time {
  font-family: 'Ari', monospace;
  font-size: 12px;
  color: #7f9c68;
  opacity: 0.4;
  text-shadow: none;
}

.sfm-close-modal {
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 6px;
  right: 14px;
}
.sfm-close-modal:hover { color: #000; }

/* ===========================================
   Media Feed + sophie.fm Responsive
   =========================================== */

@media (max-width: 768px) {
  .feed-item {
    font-size: 14px;
    gap: var(--space-sm);
  }

  .feed-date {
    font-size: 0.75rem;
    width: 80px;
  }
}

@media (max-width: 480px) {
  .feed-date {
    width: 70px;
    font-size: 0.7rem;
  }
}

/* sophie.fm mobile */
@media (max-width: 1100px) {
  .sophie-fm {
    flex-direction: column;
    height: auto !important;
    min-height: 100vh;
    background-size: 45px !important;
  }
  .sfm-left {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 1.5rem !important;
  }
  .sfm-right {
    padding: 0 !important;
    height: auto !important;
    flex: none !important;
  }
  .sfm-player {
    min-height: auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }
  .sfm-cover-art { flex: 0 0 120px !important; max-width: 120px !important; }
  .sfm-song-info h2 { font-size: 15px !important; margin-bottom: 0 !important; }
  .sfm-artist { font-size: 14px !important; }
  .sfm-time-ago { font-size: 12px !important; }
  .sfm-desc { font-size: 19px !important; }
  .sfm-title { font-size: 25px !important; }
  .sfm-tracklist-wrap {
    overflow: visible !important;
    height: auto !important;
  }
  .sfm-tracklist td { font-size: 17px !important; }
  .sfm-track-song { font-size: 18px !important; }
  .sfm-track-artist { font-size: 14px !important; }
  .sfm-track-time {
    font-size: 12px !important;
    width: 65px !important;
    padding-top: 12px !important;
  }
  .sfm-tracklist tr td:first-child { min-width: 60px; }
  .sfm-link-label { display: none !important; }
  .sfm-link-service { font-size: 11px !important; }
  .sfm-links a { padding: 4px 8px !important; }
  .sfm-links { gap: 6px !important; margin-top: 8px !important; }
  .sfm-date-header td {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .sfm-left { padding: 1.25rem !important; }
  .sfm-cover-art { flex: 0 0 90px !important; max-width: 90px !important; }
  .sfm-song-info { padding: 12px !important; }
  .sfm-song-info h2 { font-size: 13px !important; }
  .sfm-track-song { font-size: 16px !important; }
  .sfm-track-artist { font-size: 12px !important; }
  .sfm-track-time { font-size: 11px !important; width: 55px !important; }
}
