* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scrollbar-width: thin;
  scroll-behavior: smooth;
  scrollbar-color: var(--surface-2) transparent;
  /* Always reserve space for the vertical scrollbar so the page
     width doesn't shift between views with different content
     heights (e.g. a tall Feed vs an empty Bookmarks/About view).
     Without this, views that are short enough to avoid a scrollbar
     end up a few pixels wider than views that trigger one. */
  scrollbar-gutter: stable;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  transition:
    background 0.35s ease,
    color 0.35s ease;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  cursor: default;
  overflow-x: hidden;
}
::selection {
  background: var(--black);
  color: var(--white);
}
[data-theme="dark"] ::selection {
  background: var(--white);
  color: var(--black);
}

.mono {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}
.display {
  font-family: "Fraunces", serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ===== Page Loader ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  opacity: 1;
  visibility: visible;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  animation: pulse-logo 1.2s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Optional: dark theme adaptation */
[data-theme="dark"] .page-loader {
  background: #0a0a0a;
}
[data-theme="dark"] .loader-logo {
  color: #f2f2f2;
}

/* Print: hide loader */
@media print {
  .page-loader {
    display: none !important;
  }
}

/* ===== Top Nav ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
/*.topnav {
  position: relative; 
  width: 100%;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}*/
.topnav .wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family:
    JetBrains Mono,
    monospace;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 2px;
}
.brand .zero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.brand .aperture-mini {
  width: 22px;
  height: 22px;
  vertical-align: -4px;
}
.brand .aperture-mini path {
  fill: var(--text);
  transition: fill 0.3s;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}
.theme-toggle:hover {
  transform: rotate(50deg);
  border-color: var(--text-soft);
}
.nav-tabs {
  display: flex;
  gap: 4px;
  font-size: 0.85rem;
  border-bottom: none;
}
.nav-tabs button {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 13px;
  border-radius: 20px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.nav-tabs button:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-tabs button.active {
  color: var(--black-text);
}
@media (max-width: 620px) {
  .nav-tabs button {
    padding: 7px 9px;
    font-size: 0.78rem;
  }
}
@media (max-width: 420px) {
  .nav-tabs {
    gap: 2px;
  }
}

/* ===== Hamburger (mobile nav trigger) ===== */
.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== Mobile full-screen menu ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s linear 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s linear 0s;
}
.mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}
.mobile-menu-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mobile-menu-tabs button {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  padding: 10px 24px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.mobile-menu-tabs button:hover {
  color: var(--text);
  text-decoration: none;
}
.mobile-menu-tabs button.active {
  color: var(--text);
}
.mobile-theme-toggle {
  width: 48px;
  height: 48px;
  font-size: 17px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .nav-tabs {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  #themeToggle {
    display: none;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
}

/* ===== Layout ===== */
.layout {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}
@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ===== Profile Card ===== */
.profile {
  position: sticky;
  top: 78px;
  align-self: start;
}
@media (max-width: 860px) {
  .profile {
    position: static;
    margin-bottom: 24px;
  }
}
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .avatar {
  background: var(--white);
  color: var(--black);
}
.profile-name {
  font-family: Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 14px 0 2px;
}
.profile-handle {
  color: var(--text-soft);
  font-size: 0.92rem;
}
.profile-loc {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-bio {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 14px 0;
  color: var(--text);
}
.profile-bio .tag {
  color: var(--text-soft);
}
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.stats-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
}
.stat {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border-right: none;
}
.stat b {
  display: block;
  font-size: 1.15rem;
}
.stat span {
  font-size: 0.72rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.profile-social {
  display: flex;
  gap: 16px;
  font-size: 1.05rem;
  margin-top: 4px;
}
.profile-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.profile-social a:hover {
  background: var(--text);
  color: var(--bg);
}

/* ===== Feed ===== */
.feed-title {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-soft);
  margin: 4px 0 18px;
}
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 8px 8px 16px;
  margin: -8px 0 18px;
  font-size: 0.85rem;
}
.filter-bar#filterBar.view-hidden {
  display: none;
}
.filter-bar span {
  font-weight: 600;
  color: var(--text);
}
.filter-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-bar button:hover {
  background: var(--text);
  color: var(--bg);
}
.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
}
.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 0.95rem;
  font-weight: 600;
  flex-shrink: 0;
}
[data-theme="dark"] .post-avatar {
  background: var(--white);
  color: var(--black);
}
.post-head .who {
  font-size: 0.88rem;
  font-weight: 600;
}
.post-head .meta {
  font-size: 0.74rem;
  color: var(--text-soft);
}
.post-kind {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-media {
  position: relative;
  background: var(--black);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.post-media.video-media {
  aspect-ratio: 16/9;
}
.post-media img,
.post-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.post-media img.loaded,
.post-media video.loaded {
  opacity: 1;
}
.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
}
.play-badge i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  padding-left: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}
.duration-chip {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: "JetBrains Mono", monospace;
}
.carousel-dots {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: 0 12px;
  z-index: 3;
}
.carousel-dots span {
  height: 2px;
  flex: 1;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.carousel-dots span.active {
  background: #fff;
}
.carousel-count {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 20px;
  z-index: 3;
}

/* Draggable carousel (Instagram-style slide, no lightbox) */
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.carousel-track.dragging {
  transition: none;
  cursor: grabbing;
}
.carousel-track .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.carousel-track .slide img,
.carousel-track .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Circular loader shown until media has loaded */
.media-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: media-spin 0.8s linear infinite;
  z-index: 4;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.media-loader.hide {
  opacity: 0;
  pointer-events: none;
}
@keyframes media-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 4px;
}
.post-actions button {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  font-size: 1.15rem;
}
.post-actions button.liked i {
  color: var(--red);
}
.post-actions button.saved i {
  color: var(--text);
}
.post-actions .spacer {
  margin-left: auto;
}
.post-likes {
  padding: 6px 16px 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.post-caption {
  padding: 6px 16px 4px;
  font-size: 0.87rem;
  line-height: 1.55;
}
.post-caption b {
  margin-right: 5px;
}
.post-caption .hash {
  color: var(--text-soft);
}
.hash-tag {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.15s ease;
}
.hash-tag:hover,
.hash-tag:focus-visible {
  color: var(--text);
  text-decoration: underline;
}
.post-time {
  padding: 0 16px 16px;
  font-size: 0.68rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
}
.site-footer .brand {
  justify-content: center;
  margin-bottom: 10px;
}
.site-footer p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 4px 0;
}
@media (max-width: 420px) {
  .site-footer P{
    font-size: 0.85rem;
  }
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 14px 0;
  font-size: 1.1rem;
}
.footer-social a {
  color: var(--text-soft);
}
.footer-social a:hover {
  color: var(--text);
}
.back-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 900;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
[data-theme="dark"] .back-top {
  background: var(--white);
  color: var(--black);
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 772px) {
  .back-top {
    background: transparent;
    color: var(--black-text);
  }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 8, 9, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0s;
}
.lb-shell {
  width: min(920px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.94) translateY(10px);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.4s ease;
}
.lightbox.open .lb-shell {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.lb-close,
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lb-close {
  top: -56px;
  right: 0;
  transform: none;
  left: auto;
}
.lb-prev {
  left: -56px;
}
.lb-next {
  right: -56px;
}
@media (max-width: 900px) {
  .lb-prev {
    left: 6px;
  }
  .lb-next {
    right: 6px;
  }
  .lb-close {
    top: -46px;
    right: 6px;
  }
}
.lb-media {
  background: #000;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
}
.lb-media img,
.lb-media video {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.lb-media .yt-wrap {
  width: 100%;
  aspect-ratio: 16/9;
}
.lb-media .yt-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.lb-info {
  background: var(--surface, #141416);
  color: #f2f2f2;
  padding: 14px 18px;
}
[data-theme="light"] .lb-info {
  background: #141416;
}
.lb-info .who {
  font-weight: 600;
  font-size: 0.9rem;
}
.lb-info .cap {
  font-size: 0.85rem;
  margin-top: 6px;
  line-height: 1.55;
  opacity: 0.9;
}
/* ===== Share Modal ===== */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(8, 8, 9, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}
.share-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0s;
}
.share-shell {
  width: min(380px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.94) translateY(10px);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.35s ease;
}
.share-modal.open .share-shell {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.share-shell h3 {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  margin: 0 0 16px;
  color: var(--text);
}
.share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.share-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.7rem;
  color: var(--text);
  transition: all 0.2s ease;
}
.share-opt i {
  font-size: 1.15rem;
}
.share-opt:hover {
  background: var(--text);
  color: var(--bg);
}
.share-copy-row {
  display: flex;
  gap: 8px;
}
.share-copy-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-soft);
  font-size: 0.78rem;
  padding: 8px 10px;
  font-family: "JetBrains Mono", monospace;
}
.share-copy-row button {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.share-copied {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin: 10px 0 0;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.share-copied.show {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .post-media img,
  .post-media video {
    transition: none;
    animation: none;
  }
}

/* ===== Load More ===== */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 10px;
}
.load-more-btn {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 11px 26px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.load-more-btn:hover {
  background: var(--text);
  color: var(--bg);
}
.load-more-wrap.hide {
  display: none;
}

/* ===== View Switching ===== */
.view-hidden {
  display: none;
}
.empty-state {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 52px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-state.hide {
  display: none;
}

/* ===== About Section ===== */
.about-section {
  margin-top: 8px;
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-section h2 {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-soft);
  margin: 0 0 14px;
  font-weight: 500;
}
.about-section p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 12px;
  color: var(--text);
}
.about-section p:last-child {
  margin-bottom: 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 520px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.about-item {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.about-item b {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.about-item span {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ===== Print ===== */
@media print {
  .topnav,
  .mobile-menu,
  .hamburger,
  .filter-bar,
  .load-more-wrap,
  .back-top,
  .lightbox,
  .share-modal,
  .post-actions,
  .footer-social,
  .profile-social,
  .theme-toggle {
    display: none !important;
  }
  html,
  body {
    background: #fff;
    color: #000;
  }
  .layout {
    display: block;
    max-width: 100%;
    padding: 0;
  }
  .profile {
    position: static;
    border-bottom: 1px solid #ccc;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .post {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
  .post-media {
    aspect-ratio: auto;
    background: none;
  }
  .post-media img,
  .post-media video {
    opacity: 1 !important;
    position: static;
    max-height: 5in;
    object-fit: contain;
  }
  .carousel-track {
    display: block;
    transform: none !important;
  }
  .carousel-track .slide {
    width: 100%;
    height: auto;
    page-break-inside: avoid;
    margin-bottom: 8px;
  }
  .carousel-track .slide img,
  .carousel-track .slide video {
    height: auto;
    max-height: 4in;
    object-fit: contain;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
  }
  .site-footer {
    border-top: 1px solid #ccc;
  }
}
