/* ========================================
   Homepage — Luka-inspired academic layout
   Warm, minimal sidebar + content homepage
   ======================================== */

.page--home {
  --luka-bg: #faf9f7;
  --luka-text: #3d3929;
  --luka-accent: #9a4e30;
  --luka-secondary: #6b6558;
  --luka-border: rgba(194, 113, 79, 0.2);
  --luka-shadow: rgba(194, 113, 79, 0.15);
  --luka-card: #ffffff;
  --surface: var(--luka-bg);
  --surface-card: var(--luka-card);
  --primary: var(--luka-accent);
  --ink: var(--luka-text);
  --ink-secondary: var(--luka-text);
  --ink-tertiary: var(--luka-secondary);
  --outline: var(--luka-border);
  --shadow-ambient: 0 6px 24px var(--luka-shadow);

  background: var(--luka-bg);
  color: var(--luka-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

html[data-theme="dark"] .page--home,
html[data-theme="dark"] .page--home .site-header {
  --luka-bg: #1a1917;
  --luka-text: #d1cec7;
  --luka-accent: #e28a67;
  --luka-secondary: #9b9488;
  --luka-border: rgba(226, 138, 103, 0.2);
  --luka-shadow: rgba(0, 0, 0, 0.3);
  --luka-card: #22211e;
}

.page--home::before {
  display: none;
}

.page--home section,
.page--home .luka-section,
.page--home .profile-card,
.page--home .project-card,
.page--home .card,
.page--home .certificate-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  overflow: visible;
  transform: none;
}

.page--home .project-card:hover {
  transform: none;
  box-shadow: none;
}

.page--home a {
  color: var(--luka-accent);
  text-decoration: none;
}

.page--home a:hover {
  filter: brightness(1.12);
}

.page--home a:focus-visible,
.page--home button:focus-visible {
  outline: 2px solid var(--luka-accent);
  outline-offset: 3px;
}

.page--home h1,
.page--home h2,
.page--home h3,
.page--home strong {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--luka-text);
  padding-bottom: 0;
}

.page--home h2::after,
.page--home h3::after {
  display: none;
}

.page--home p,
.page--home li {
  color: var(--luka-text);
  max-width: none;
}

.page--home .site-header {
  height: 60px;
  background: var(--luka-bg);
  border-bottom: 1px solid var(--luka-border);
  box-shadow: none;
  backdrop-filter: none;
}

.page--home .site-header[data-scrolled="true"] {
  background: var(--luka-bg);
  border-bottom: 1px solid var(--luka-border);
  box-shadow: none;
  backdrop-filter: none;
}

.page--home .header-inner {
  height: 60px;
  max-width: 1120px;
  padding: 0 40px;
  gap: 1rem;
}

.page--home .site-logo {
  color: var(--luka-text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.page--home .site-logo:hover {
  color: var(--luka-accent);
}

.page--home .main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
}

.page--home .main-nav a {
  color: var(--luka-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.page--home .main-nav a:hover,
.page--home .main-nav a:focus {
  color: var(--luka-accent);
  background: transparent;
}

.page--home .main-nav a::after {
  display: none;
}

.page--home .nav-toggle span {
  background: var(--luka-text);
}

.page--home .theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--luka-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.page--home .theme-toggle:hover {
  background: var(--luka-border);
  color: var(--luka-accent);
}

.page--home .luka-wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  min-height: 100vh;
}

.page--home .luka-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: fixed;
  top: 60px;
  left: calc(50% - 560px);
  height: calc(100vh - 60px);
  overflow-y: auto;
  text-align: center;
  padding-top: 60px;
  z-index: 10;
}

.page--home .profile-card {
  width: 100%;
  padding: 0 20px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  position: static;
  text-align: center;
}

.page--home .image.avatar {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 28px;
}

.page--home .image.avatar img {
  display: block;
  width: 220px;
  height: 220px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 24px var(--luka-shadow);
}

.page--home .site-name {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page--home .site-role,
.page--home .site-meta {
  margin: 0 0 8px;
  color: var(--luka-secondary);
  font-size: 14px;
}

.page--home .site-email {
  margin: 0 0 10px;
  font-size: 13px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  word-break: break-all;
}

.page--home .social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}

.page--home .social-icons a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #8b7355;
  box-shadow: 0 2px 8px rgba(61, 57, 41, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

html[data-theme="dark"] .page--home .social-icons a {
  background: #22211e;
  color: #d1cec7;
}

.page--home .social-icons a:hover {
  background: var(--luka-accent);
  color: #fff;
  transform: translateY(-2px);
  filter: none;
}

.page--home .social-icons svg {
  width: 18px;
  height: 18px;
  display: block;
}

.page--home .visitor-card {
  margin: 40px auto 0;
  width: 240px;
  padding: 18px 16px 14px;
  border: 1px dashed var(--luka-border);
  border-radius: 14px;
  color: var(--luka-secondary);
  text-align: left;
}

.page--home .visitor-card-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--luka-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page--home .world-map {
  width: 100%;
  height: auto;
  display: block;
}

.page--home .world-map path {
  fill: #ddd6c8;
  stroke: var(--luka-bg);
  stroke-width: 0.35;
}

.page--home .world-map .is-lit,
.page--home .world-map .is-lit path {
  fill: var(--luka-accent);
}

html[data-theme="dark"] .page--home .world-map path {
  fill: #3f3c36;
}

html[data-theme="dark"] .page--home .world-map .is-lit,
html[data-theme="dark"] .page--home .world-map .is-lit path {
  fill: var(--luka-accent);
}

.page--home .luka-content {
  flex: 1;
  min-width: 0;
  margin-left: 320px;
  padding: 120px 40px 48px 60px;
}

.page--home .luka-section {
  margin-bottom: 44px;
}

.page--home .section-title {
  display: inline-block;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--luka-accent);
  color: var(--luka-accent);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.page--home .section-body p {
  margin: 0 0 14px;
}

.page--home .project-card {
  font-size: 15px;
  line-height: 1.7;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.page--home .project-meta {
  display: inline;
  color: var(--luka-secondary);
  font-size: 13px;
}

.page--home .publications ol.bibliography {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page--home .publications ol.bibliography li {
  margin-bottom: 14px;
  padding: 15px 0 15px 16px;
  border-left: 3px solid var(--luka-accent);
  color: var(--luka-text);
}

.page--home .pub-content .title {
  margin-bottom: 4px;
  color: var(--luka-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.page--home .pub-content .author,
.page--home .pub-content .pub-note {
  margin-bottom: 4px;
  color: var(--luka-secondary);
  font-size: 14px;
}

.page--home .pub-content .periodical {
  margin-bottom: 6px;
  color: var(--luka-accent);
  font-size: 14px;
}

.page--home .experience-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.page--home .experience-content {
  flex: 1;
}

.page--home .experience-content p {
  margin: 0 0 2px;
}

.page--home .exp-title {
  font-size: 15px;
}

.page--home .exp-detail {
  font-size: 14px;
  color: var(--luka-secondary);
}

.page--home .exp-period {
  font-size: 13px;
  color: var(--luka-accent);
  font-weight: 500;
}

.page--home .edu-metrics {
  margin-top: 8px;
  color: var(--luka-secondary);
  font-size: 14px;
}

.page--home .timeline-item {
  position: relative;
  margin-left: 20px;
  padding-left: 8px;
  padding-bottom: 8px;
}

.page--home .timeline-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--luka-accent), rgba(194, 113, 79, 0.12));
}

.page--home .timeline-item:last-child::before {
  bottom: 40%;
}

.page--home .timeline-item::after {
  content: "";
  position: absolute;
  left: -25px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--luka-accent);
  border: 2px solid var(--luka-bg);
}

.page--home .leadership-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 0;
  object-fit: cover;
}

.page--home .awards-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page--home .award-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}

.page--home .award-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.5;
}

.page--home .award-text {
  margin: 0;
  color: var(--luka-text);
  font-size: 14px;
  line-height: 1.6;
}

.page--home .certificate-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.page--home .certificate-card {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.page--home .certificate-card--featured {
  grid-column: 1 / -1;
}

.page--home .certificate-card img {
  width: 100%;
  border-radius: 0;
  border: none;
  object-fit: contain;
  background: transparent;
}

.page--home .certificate-card figcaption {
  margin-top: 6px;
  color: var(--luka-secondary);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.page--home .site-footer--home {
  width: 100%;
  flex-basis: 100%;
  margin-top: 0;
  padding: 24px 24px 40px 380px;
  background: transparent;
  color: var(--luka-secondary);
  text-align: center;
}

.page--home .site-footer--home p {
  margin: 0;
  color: var(--luka-secondary);
  font-size: 13px;
}

.page--home .site-footer--home p + p {
  margin-top: 0.35rem;
}

.page--home .site-footer--home a {
  color: var(--luka-accent);
}

@media (max-width: 1120px) {
  .page--home .header-inner {
    padding: 0 20px;
  }

  .page--home .luka-wrapper {
    flex-direction: column;
    padding: 0 20px;
  }

  .page--home .luka-sidebar {
    position: static;
    left: auto;
    width: 100%;
    height: auto;
    padding-top: 88px;
    overflow: visible;
  }

  .page--home .luka-content {
    margin-left: 0;
    padding: 32px 0 24px;
  }

  .page--home .site-footer--home {
    padding: 8px 0 40px;
  }
}

@media (max-width: 767px) {
  .page--home .nav-toggle {
    margin-left: auto;
  }

  .page--home .site-nav,
  .page--home .main-nav {
    right: 1rem;
    background: var(--luka-card);
    border: 1px solid var(--luka-border);
    border-radius: 0.75rem;
    box-shadow: 0 12px 28px var(--luka-shadow);
  }

  .page--home .image.avatar img {
    width: 148px;
    height: 148px;
  }

  .page--home .visitor-card {
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .page--home .site-name {
    font-size: 24px;
  }

  .page--home .luka-section {
    margin-bottom: 32px;
  }

  .page--home .section-title {
    font-size: 18px;
  }

  .page--home .certificate-wall {
    grid-template-columns: 1fr;
  }

  .page--home .leadership-thumb {
    width: 44px;
    height: 44px;
  }
}
