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

:root {
  --text: #222;
  --text-light: #555;
  --link: #0085bd;
  --link-hover: #60a5dd;
  --bg: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  font-family: 'proxima-nova', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6em;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
  display: block;
}

/* ── Sidebar ── */
#headerWrapper {
  position: fixed;
  top: 50px;
  left: 70px;
  width: 163px;
  z-index: 100;
}

#logo {
  margin-bottom: 1em;
}

#logo h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  font-family: 'proxima-nova', 'Inter', Helvetica, Arial, sans-serif;
  letter-spacing: .01em;
  line-height: 1.2em;
  white-space: nowrap;
}

#logo h1 a {
  color: #000;
  text-decoration: none;
}

#logo h1 a:hover {
  color: #000;
  text-decoration: none;
}

.main-nav {
  margin-bottom: 20px;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  font-family: 'proxima-nova', 'Inter', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6em;
  letter-spacing: 0;
  color: #1f1f1f;
  text-decoration: none;
  display: block;
  padding: .2em 0;
}

.main-nav a:hover {
  color: #000;
  text-decoration: none;
}

.social-icons {
  margin-top: 20px;
  display: flex;
  gap: 8px;
}

.social-icons a {
  color: #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ccc;
  transition: border-color 0.2s;
}

.social-icons a:hover {
  border-color: #888;
}

.mobile-nav-toggle {
  display: none;
}

/* ── Page Wrapper ── */
#pageWrapper {
  margin-left: 303px;
  padding: 50px 50px 50px 0;
  max-width: 900px;
}

/* ── Bio Row: 5/7 grid ── */
.bio-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.bio-photo {
  width: 41.6667%;
  flex-shrink: 0;
}

.bio-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.bio-photo-caption {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text);
}

.bio-photo-caption a {
  color: var(--link);
}

.bio-text {
  width: 58.3333%;
}

.bio-text p {
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.bio-text ul {
  margin: 0 0 12px 24px;
}

.bio-text li {
  margin-bottom: 6px;
}

/* ── Section headings ── */
.section-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 16px;
  line-height: 1.3;
}

/* ── Unified entry component ── */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entry {
  line-height: 1.6;
}

.entry-header {
  display: flex;
  align-items: baseline;
}

.entry-title {
  font-weight: 700;
}

.entry-subtitle {
  white-space: nowrap;
}

.entry-dots {
  flex: 1;
  border-bottom: 1px dotted #ccc;
  margin: 0 8px;
  position: relative;
  top: -3px;
  min-width: 20px;
}

.entry-date {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
}

.entry-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
  line-height: 1.6;
}

/* ── Embeds ── */
.embed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.embed-item {
  min-width: 0;
}

@media (max-width: 860px) {
  .embed-row {
    grid-template-columns: 1fr;
  }
}

/* ── Gallery ── */
.gallery-intro {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery-grid img:hover {
  opacity: 0.85;
}

/* ── Footer ── */
footer {
  margin-top: 40px;
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-light);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  #headerWrapper {
    position: fixed;
    top: 0;
    left: -240px;
    width: 220px;
    height: 100vh;
    background: var(--bg);
    border-right: 1px solid #e0e0e0;
    padding: 32px 24px;
    transition: left 0.3s ease;
    z-index: 200;
  }

  #headerWrapper.open {
    left: 0;
  }

  .mobile-nav-toggle {
    display: block;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 150;
    background: var(--bg);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--text);
  }

  #pageWrapper {
    margin-left: 0;
    padding: 60px 20px 20px;
  }

  .bio-row {
    flex-direction: column;
  }

  .bio-photo {
    width: 200px;
    margin: 0 auto;
  }

  .bio-text {
    width: 100%;
  }

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

  .entry-header {
    flex-wrap: wrap;
  }

  .entry-dots {
    display: none;
  }

  .entry-date {
    width: 100%;
  }
}
