/* ============================================
   Alvaro Votan — Personal Site
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* --- Reset --- */

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

/* --- Tokens — Light (default) --- */

:root {
  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --top-toggle-offset: max(1rem, env(safe-area-inset-top));
  --mobile-nav-offset: max(1rem, env(safe-area-inset-bottom));
--mobile-nav-height: 6.5rem;
  --mobile-footer-height: 7.75rem;

  --bg:         #D9D9D9;
  --bg-hover:   #cccccc;
  --text-900:   #000000;
  --text-800:   #111111;
  --text-500:   #666666;
  --text-300:   #999999;
  --border:     #c4c4c4;
  --cv-btn-bg:  #D3D3D3;
  --cv-btn-hover:#D5D2D2;
  --img-reveal-mask: rgba(217, 217, 217, 0.94);
  --img-reveal-grid-line: rgba(0, 0, 0, 0.16);
}

/* --- Tokens — Dark --- */

[data-theme="dark"] {
  --bg:         #131211;
  --bg-hover:   #1c1b19;
  --text-900:   #f0ece6;
  --text-800:   #ccc6bd;
  --text-500:   #7a7570;
  --text-300:   #48443f;
  --border:     #2c2926;
  --cv-btn-bg:  #1A1918;
  --cv-btn-hover:#22201E;
  --img-reveal-mask: rgba(19, 18, 17, 0.92);
  --img-reveal-grid-line: rgba(240, 236, 230, 0.14);
}

/* --- Now Playing widget --- */

.now-playing {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
}

.now-playing.is-visible {
  display: flex;
}

.now-playing svg {
  width: 0.72rem;
  height: 0.72rem;
  stroke: currentColor;
  stroke-width: 2.5;
  color: #40C47C;
  flex-shrink: 0;
}

.now-playing-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.now-playing-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
}

.now-playing-arrow {
  display: none;
  align-items: center;
  color: var(--text-500);
  flex-shrink: 0;
}

.now-playing-arrow svg {
  width: 0.85em;
  height: 0.85em;
  stroke: currentColor;
  stroke-width: 2;
  color: inherit;
}

.now-playing-link:hover .now-playing-arrow {
  display: inline-flex;
}

.now-playing-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-500);
  line-height: 1;
}

.now-playing-track {
  font-size: 0.72rem;
  color: var(--text-800);
  line-height: 1.3;
  max-width: 16rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Now Playing album tooltip --- */

.now-playing.has-album {
  position: relative;
  cursor: default;
}

.now-playing-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.6rem);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.now-playing-tooltip img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.now-playing.has-album:hover .now-playing-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .now-playing-track {
    max-width: 11rem;
  }
}

/* --- Image reveal grid overlay --- */

.white-grid-overlay,
.black-grid-overlay {
  position: fixed;
  pointer-events: none;
  z-index: 900;
  opacity: 0;
  transition: opacity 0.1s ease-out;
}

.white-grid-overlay {
  background-color: #f5f5f5;
}

.black-grid-overlay {
  background-color: #1F1F20;
}

/* --- Base --- */

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-serif);
  color: var(--text-800);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.75;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* --- Layout --- */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 5rem 1.5rem 1.5rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 42rem;
}

/* --- Avatar row (avatar + now playing) --- */

.avatar-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 1.4rem 0.35rem;
}

.hero-avatar {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.hero-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.hero-avatar-dark {
  opacity: 0;
  pointer-events: none;
}

[data-theme="dark"] .hero-avatar-light {
  opacity: 0;
}

[data-theme="dark"] .hero-avatar-dark {
  opacity: 1;
}

@media (min-width: 768px) {
  .site {
    flex-direction: row;
    padding: 5.5rem 6rem 4rem;
    gap: 0;
    align-items: flex-start;
    min-height: 100vh;
    max-width: 72rem;
    margin: 0 auto;
    justify-content: center;
  }

  .sidebar {
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    width: 9rem;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 4rem;
    margin-bottom: 0;
    min-height: 8rem;
    gap: 2rem;
  }

  .content {
    border-left: 1px solid var(--border);
    padding-left: 4rem;
    margin-left: 4rem;
    transition: border-color 0.25s ease;
  }

  .site-footer {
    display: none;
  }
}

/* --- Navigation --- */

nav {
  position: static;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  width: 100%;
}

.nav-list li {
  flex: 1 1 0;
}

.nav-list a {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  color: var(--text-500);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  text-align: center;
  padding: 0.35rem 0.25rem;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-list a:hover {
  color: var(--text-800);
}

.nav-list a.active {
  color: var(--text-900);
  font-weight: 500;
}

/* --- Sidebar bottom cluster --- */

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  width: 100%;
  position: static;
  padding: 0;
  border-top: 0;
  background: none;
  margin-top: auto;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  width: 100%;
}

.sidebar-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-500);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.sidebar-links a:hover {
  color: var(--text-900);
}

.sidebar-links .sidebar-cv-button {
  margin-top: 0.35rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--cv-btn-bg);
  border-radius: 999px;
  color: var(--text-800);
  background-color: var(--cv-btn-bg);
  letter-spacing: 0.01em;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.sidebar-links .sidebar-cv-button:hover {
  color: var(--text-900);
  border-color: var(--cv-btn-hover);
  background-color: var(--cv-btn-hover);
  transform: translateY(-1px);
}

/* --- Dark mode toggle --- */

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-500);
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  align-self: flex-end;
  vertical-align: middle;
}

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

/* --- Desktop sidebar --- */

@media (min-width: 768px) {
  .sidebar nav {
    display: block;
    position: static;
    padding: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    width: auto;
  }

  .nav-list li {
    flex: initial;
  }

  .nav-list a {
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    text-align: right;
    padding: 0;
  }
}

/* --- Mobile bottom nav bar --- */

@media (max-width: 767px) {
  .site {
    padding: 5.6rem 1.25rem calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    touch-action: manipulation;
  }

  .avatar-row {
    margin: 0 0 1.15rem;
  }

  /* Collapse sidebar wrapper so it takes no space, but children can still be fixed */
  .sidebar {
    display: block;
    width: 0;
    height: 0;
    overflow: visible;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
  }

  /* Fixed bottom navigation bar */
  .sidebar nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1.2rem max(0.85rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background-color: var(--bg);
    z-index: 1200;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    touch-action: manipulation;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    width: 100%;
    overflow: visible;
  }

  .nav-list li {
    min-width: 0;
    flex: initial;
  }

  .nav-list a {
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    padding: 0.25rem 0;
    white-space: nowrap;
    text-align: center;
    text-transform: none;
  }

  /* Hide sidebar-bottom entirely on mobile */
  .sidebar .sidebar-bottom {
    display: none !important;
  }

  .sidebar > .theme-toggle {
    display: none !important;
  }

  /* Dedicated top navbar for mobile theme toggle */
  .mobile-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1250;
    height: calc(env(safe-area-inset-top) + 4.2rem);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 1.25rem 0.85rem;
    background-color: var(--bg);
    transition: background-color 0.25s ease, border-color 0.25s ease;
  }


  .mobile-top-nav .theme-toggle {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: auto !important;
    align-self: center;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1rem;
    color: var(--text-500);
  }

  .site-footer {
    display: none;
  }

  .maymay-hint {
    margin-bottom: 0.45rem;
  }

  .about-mobile-links {
    margin-top: 0;
  }

  .about-mobile-controls {
    display: none;
    margin-top: 0.4rem;
  }

  .about-inline-theme-toggle {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    z-index: auto;
  }
}

/* --- Typography --- */

h1 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-900);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 1.75rem;
}

.title-row {
  display: block;
}

p {
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
  margin-bottom: 1rem;
  color: var(--text-800);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text-800);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-300);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--text-900);
  text-decoration-color: var(--text-900);
}

/* --- About --- */

.about-section {
  margin-bottom: 0;
}

.about-section p {
  line-height: 1.85;
}

.about-mobile-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 0.9rem;
}

.about-mobile-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-500);
  text-decoration: none;
}

.about-mobile-controls {
  display: none;
}

@media (min-width: 768px) {
  .about-mobile-links {
    display: none;
  }
}

.about-see-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-500);
  font-style: italic;
  margin-top: 0.25rem;
  margin-bottom: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: color 0.2s ease;
}

.about-see-more:hover {
  color: var(--text-800);
}

.about-see-more--inline {
  margin-top: 0.5rem;
}

.about-toggle-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.about-toggle-icon svg {
  width: 0.75rem;
  height: 0.75rem;
  stroke-width: 2.5;
}

.about-see-more[aria-expanded="true"] .about-toggle-icon {
  transform: rotate(180deg);
}

.about-expanded,
.about-now {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.about-expanded.is-open,
.about-now.is-open {
  max-height: 2000px;
  opacity: 1;
  overflow: visible;
}

.about-expanded {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-expanded p {
  line-height: 1.85;
  color: var(--text-800);
  margin-bottom: 0.75rem;
}

.about-now {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-now-section {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.about-now-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-300);
}

.about-now-section p {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text-800);
  margin: 0;
}

.about-name-trigger {
  position: relative;
  display: inline;
}

.about-name-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--bg-hover);
  border-radius: 4px;
  padding: 0 0.3rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.about-name-badge svg {
  width: 0.75rem;
  height: 0.75rem;
  stroke-width: 2;
  color: var(--text-500);
  flex-shrink: 0;
}

.about-name-badge:hover {
  background: var(--border);
}

.about-name-photo {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.about-name-photo img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.about-name-trigger:hover .about-name-photo,
.about-name-trigger.is-tapped .about-name-photo {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.maymay-hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #6C6B6B;
  font-style: italic;
}

.clients {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-500);
  line-height: 1.7;
  margin-top: 1.25rem;
  text-align: left;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.hero-status-badge {
  display: none;
}

@media (max-width: 767px) {
  .title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }

  .title-row h1 {
    margin-bottom: 0;
  }

  .hero-status-badge {
    display: inline-flex;
    flex-shrink: 0;
  }

  .about-section > p:first-child {
    font-size: 0.96rem;
    line-height: 1.75;
  }
}

@media (min-width: 768px) {
  .sidebar-bottom .status-badge {
    display: inline-flex;
  }

  .hero-status-badge {
    display: none;
  }
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #4ade80;
  flex-shrink: 0;
}

/* --- Article List (thoughts-style with leader line) --- */

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

.article-list li {
  transition: border-color 0.25s ease;
}

.article-list a {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 0.75rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, color 0.2s ease;
}

.article-list a:hover {
  background-color: var(--bg-hover);
}

.article-list a:hover .article-title {
  color: var(--text-900);
}

.article-list a:hover .article-date {
  color: var(--text-800);
}

.article-hover-arrow {
  display: none;
  align-items: center;
  margin-left: 0.35em;
  color: var(--text-500);
}

.article-hover-arrow svg {
  width: 0.85em;
  height: 0.85em;
  stroke: currentColor;
  stroke-width: 2;
}

.article-list a:hover .article-hover-arrow {
  display: inline-flex;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--text-800);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.article-leader {
  flex: 1;
  min-width: 1rem;
  height: 0;
  border-bottom: 1px solid var(--border);
  margin: 0 0.6rem;
  position: relative;
  top: -0.35em;
  transition: border-color 0.25s ease;
}

.article-date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-500);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

@media (max-width: 767px) {
  .article-list .article-date {
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  .article-list .article-date::before {
    content: attr(data-mobile);
    color: var(--text-500);
    font-size: 0.8rem;
  }

  .artigos-content .article-list .article-title {
    font-size: 0.84rem;
  }
}

/* --- Project List --- */

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

.project-item {
  padding: 1.1rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 4px;
  transition: background-color 0.15s ease, border-color 0.25s ease;
}

.project-item:hover {
  background-color: var(--bg-hover);
}

.project-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.project-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-800);
}

.project-link,
.project-link * {
  text-decoration: none;
  color: inherit;
}

.project-link {
  display: block;
}

.project-link:hover .project-name {
  color: var(--text-900);
}

.project-badge {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  color: var(--text-500);
  border: 1px solid var(--border);
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.25s ease;
}

.project-desc {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-500);
  text-align: left;
  line-height: 1.65;
}

/* --- Article detail --- */

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-500);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s ease;
}

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

.article-back svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.article-meta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-500);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-body {
  margin-top: 2rem;
}

.article-body p {
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-900);
  margin-top: 2.5rem;
  margin-bottom: 0.4rem;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-900);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  text-transform: none;
  letter-spacing: -0.01em;
}

.article-body em {
  font-style: italic;
  color: var(--text-800);
}

.article-body blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-800);
  font-style: italic;
  transition: border-color 0.25s ease;
}

.article-body ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.article-body ul li {
  padding: 0.35rem 0;
  padding-left: 1rem;
  position: relative;
  color: var(--text-800);
  line-height: 1.7;
}

.article-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-300);
}

.article-body strong {
  font-weight: 500;
  color: var(--text-900);
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figure img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.article-body figcaption {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-500);
  line-height: 1.5;
  font-style: italic;
}

.article-body .video-embed {
  margin: 2rem 0;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.article-body .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* --- Project images --- */

.project-images {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-images img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.project-images img:hover {
  border-color: var(--text-300);
}

/* --- Album entries (blog music posts) --- */

.album-entry {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.album-entry h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-900);
  margin-bottom: 0.6rem;
  margin-top: 0;
}

.album-entry p {
  font-size: 0.9rem;
  color: var(--text-500);
  margin-bottom: 1rem;
  text-align: left;
}

.album-embeds {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.album-embeds iframe {
  width: 100%;
  height: 80px;
  border: none;
  border-radius: 6px;
  display: block;
}

.album-section-title {
  font-size: 0.7rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-300);
  margin-top: 3.5rem;
  margin-bottom: 0;
}

/* --- Arrow links --- */

.link-arrow {
  font-style: normal;
  margin-left: 0.2em;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

.link-arrow svg {
  width: 0.85em;
  height: 0.85em;
  stroke: currentColor;
  stroke-width: 2;
}

a:hover .link-arrow {
  transform: translate(2px, -2px);
}

/* --- Theme toggle icon --- */

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
}

/* --- Footer --- */

.site-footer {
  margin-top: 4rem;
  padding-top: 1.75rem;
  transition: border-color 0.25s ease;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-900);
}

/* --- Email copy tooltip --- */

.email-copy {
  position: relative;
  cursor: pointer;
}

.email-copy-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-900);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.email-copy:hover .email-copy-tip,
.email-copy:focus .email-copy-tip {
  opacity: 1;
}

/* --- Fade-in --- */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.content > * {
  animation: fadeIn 0.35s ease-out;
}

/* Duplicate mobile nav rules removed - consolidated above */
