/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= THEME VARIABLES ================= */
:root {
  --bg: #ffffff;
  --text: #333333;
  --muted: #666666;
  --link: #0077cc;
  --header: #fafafa;
  --footer: #f2f2f2;
  --border: #e0e0e0;
}

body.dark {
  --bg: #121212;
  --text: #e6e6e6;
  --muted: #aaaaaa;
  --link: #8ecdf8;
  --header: #1e1e1e;
  --footer: #1a1a1a;
  --border: #2a2a2a;
}

/* ================= BASE ================= */
body {
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:hover {
  opacity: 0.8;
}

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--header);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

/* Make header layout work */
.header {
  display: flex;
  align-items: center;
}

/* Nav takes full width */
.nav {
  flex: 1;
  position: relative;
}

/* Center menu items */
.nav ul {
  display: flex;
  justify-content: center;   /* ✅ centers menu */
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Push dark mode toggle to right */
.nav ul .dark-toggle {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}


.nav a {
  color: var(--text);
  text-decoration: none;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--link);
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* ================= DARK MODE SWITCH ================= */
.dark-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch {
  position: relative;
  width: 40px;
  height: 20px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: 0.3s;
}

input:checked + .slider {
  background: #4a90e2;
}

input:checked + .slider::before {
  transform: translateX(20px);
}

/* ================= LAYOUT ================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 40px;
  display: flex;
  gap: 60px;
  margin-left: 50px;
}

/* ================= SIDEBAR ================= */
.sidebar {
  min-width: 260px;
  text-align: left;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border);
  /*box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);*/
  margin-bottom: 15px;
  display: block;
  margin: 0 auto;
}

.pronoun {
  color: var(--muted);
  margin-bottom: 15px;
}

.info {
  list-style: none;
}

.info li {
  margin: 8px 0;
  color: var(--muted);
}

/* ================= CONTENT ================= */
.content {
  flex: 1;
}

.content h1 {
  font-size: 30px;
  margin-bottom: 20px;
}

.content p {
  margin-bottom: 16px;
}

/* ================= FOOTER ================= */
.footer {
  margin-top: 60px;
  padding: 25px;
  text-align: center;
  background: var(--footer);
  border-top: 1px solid var(--border);
  font-size: 14px;
}

/* ================= MOBILE ================= */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    margin-top: 20px;
  }

  .container {
    flex-direction: column;
    padding: 30px 20px;
  }

  .sidebar {
    order: -1;
  }
}



.research-list {
  list-style: disc;
  margin-left: 20px;
  margin-top: 20px;
}

.research-list li {
  margin-bottom: 25px;
}

.research-list .highlight {
  color: red;
  font-weight: bold;
}


.content h2 {
  margin-top: 40px;
  font-size: 22px;
}
.content ol {
  margin-left: 20px;
  margin-bottom: 30px;
}



/* Sticky sidebar ONLY on reading page */
.reading-page .sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

/* Cancel sticky on mobile for reading page */
@media (max-width: 768px) {
  .reading-page .sidebar {
    position: static;
    top: auto;
  }
}



.blog-post {
  margin-bottom: 40px;
}

.blog-post h2 a {
  color: var(--link);
  text-decoration: underline;
}

.blog-post p {
  margin: 6px 0;
}


/* Sticky sidebar ONLY on reading page */
.blog-page .sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

/* Cancel sticky on mobile for reading page */
@media (max-width: 768px) {
  .blog-page .sidebar {
    position: static;
    top: auto;
  }
}



.content code {
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 90%;
}
body.dark .content code {
  background: #2a2a2a;
}



/* Sticky sidebar ONLY on reading page */
.lessons-page .sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

/* Cancel sticky on mobile for reading page */
@media (max-width: 768px) {
  .lessons-page .sidebar {
    position: static;
    top: auto;
  }
}

/* Sticky sidebar ONLY on reading page */
.portfolio-page .sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

/* Cancel sticky on mobile for reading page */
@media (max-width: 768px) {
  .portfolio-page .sidebar {
    position: static;
    top: auto;
  }
}


/* Sticky sidebar ONLY on reading page */
.index-page .sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

/* Cancel sticky on mobile for reading page */
@media (max-width: 768px) {
  .index-page .sidebar {
    position: static;
    top: auto;
  }
}



/* Sticky sidebar ONLY on reading page */
.research-page .sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

/* Cancel sticky on mobile for reading page */
@media (max-width: 768px) {
  .research-page .sidebar {
    position: static;
    top: auto;
  }
}



/* ================= PAINTINGS GALLERY ================= */

.paintings {
  margin-top: 50px;
}

.paintings h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

/* Grid */
.painting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/* Painting Item */
.painting-item {
  text-align: center;
  cursor: pointer;
}

.painting-thumb {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.painting-thumb:hover {
  transform: scale(1.05);
}

.painting-text h3 {
  margin: 10px 0 4px;
  font-size: 18px;
  color: var(--text);
  font-weight: bold;
}

.painting-text p {
  font-size: 14px;
  color: var(--muted);
}

/* Modal Overlay */
.painting-modal {
  position: fixed;
  display: none;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Modal Content */
.painting-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Close Button */
.painting-modal .close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}




















/* ============ PAINTING CARDS LAYOUT ============ */
.paintings-cards {
  margin-top: 40px;
}

.paintings-cards h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.paintings-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Individual Painting Card */
.paint-card {
  display: flex;
  width: calc(50% - 12px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: var(--bg);
}

/* Left text block */
.paint-card .card-text {
  flex: 1;
  padding: 16px 20px;
}

/* Right image block */
.paint-card .card-img {
  width: 160px;
  height: 100%;
  object-fit: cover;
  border-radius: 0;        /* remove corner rounding */
  margin: 0;               /* remove margin */
  padding: 0;              /* remove padding */
}

.paint-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.paint-card .card-text h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--text);
}

.paint-card .card-text p {
  font-size: 14px;
  color: var(--muted);
}


/* RESPONSIVE */
@media (max-width: 780px) {
  .paint-card {
    width: 100%;
    flex-direction: column;
    text-align: center;
  }
  .paint-card .card-img {
    margin-top: 12px;
    width: 100%;
    height: auto;
  }
}




body.index-page {
  background-color: #f7f7f7;
}