h1, h2, h3, h4, h5, h6 {
  color: var(--text);
}

h1 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

p, li, dd, dt, blockquote, td, th { 
  color: var(--text);
  line-height: 1.7;
}

p {
  margin-bottom: 0.8rem;
}

ul, ol {
  margin-bottom: 0.8rem;
}

strong {
  color: var(--text);
}

.tree {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  width: 192px;
  height: 192px;
  border-radius: 50%;
  border: 2px solid var(--text);
  margin-bottom: 1rem;
  object-fit: cover;
}

.profile h1 {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.profile p {
  font-size: 0.9rem;
  color: var(--muted);
}

a {
  color: var(--text);
}

a:hover {
  text-decoration: none;
}

.links {
  list-style: none;
  min-width: 192px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  background-color: var(--card-bg);
  border-color: var(--card-border);
  border-style: solid;
  border-width: 1px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.links a:hover,
.links a:focus-visible {
  background-color: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  color: var(--accent);
  text-decoration: none;
}

.links .icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  color: var(--text);
}

.content {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.content ul {
  padding: 0.5rem 1.5rem;
}


.back {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.back a {
  color: var(--muted);
  display: inline-block;
}

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

footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.6;
  transition: opacity 0.2s;
}

footer:hover { opacity: 1; }

footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.5rem;
}

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

.section {
    padding: 2rem 1.5rem;
}

.section-inner {
    max-width: 640px;
    margin: 0 auto;
}

.section-divider {
  width: 60%;
  max-width: 400px;
  height: 1px;
  margin: 1rem auto;
  background: linear-gradient(
    to right,
    transparent,
    var(--divider-color) 50%,
    transparent
  );
}

.carousel {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    display: flex;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      black 5%,
      black 95%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      black 5%,
      black 95%,
      transparent 100%
    );
}

.carousel-track {
    display: flex;
    align-items: center;
}

.carousel-slide {
    flex: 0 0 90%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 80%;
        margin-right: 1rem;
    }
}

.calousel-slide a {
  display: block;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 100;
  padding: 2rem;
}

.lightbox:target {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadown: 0 0 40px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.bio {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  margin: 1rem auto;
  padding: 0 1rem;
  line-height: 1.6;
}
