/* About page - retro window style */

.aboutme {
  padding: 0;
}

.aboutme__container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 5vw, 4rem);
  min-height: 800px;
}

.about-window {
  background: #f5f5f5;
  border: 3px solid #000;
  border-radius: 8px;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

[data-theme="dark"] .about-window {
  background: #2a2a2a;
  border-color: #e0e0e0;
  box-shadow: 6px 6px 0px rgba(255, 255, 255, 0.15);
}

.about-main {
  max-width: 550px;
  position: absolute;
  left: 0;
  top: 0;
  cursor: move;
  touch-action: none;
  z-index: 5;
}

.about-main .about-window-header {
  cursor: move;
}

.about-window-header {
  padding: 0.75rem 1.5rem;
  background: #fff176;
  border-bottom: 3px solid #000;
}

[data-theme="dark"] .about-window-header {
  background: #1e3a5f;
  border-bottom-color: #e0e0e0;
}

/* Draggable photo window */
.about-photo-window {
  position: absolute;
  left: calc(550px - 40px);
  top: 40px;
  width: auto;
  cursor: move;
  touch-action: none;
  z-index: 10;
  border: 3px solid #000;
  overflow: hidden;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.25);
  transition: transform 0.1s ease;
}

.about-photo-window:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .about-photo-window {
  border-color: #e0e0e0;
  box-shadow: 6px 6px 0px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .about-photo-window:hover {
  box-shadow: 8px 8px 0px rgba(255, 255, 255, 0.15);
}

.about-window-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  font-family: monospace;
  letter-spacing: 0.02em;
  text-transform: none;
}

[data-theme="dark"] .about-window-title {
  color: #fff;
}

.about-window-content {
  padding: 2rem;
  background: #ffffff;
}

[data-theme="dark"] .about-window-content {
  background: #2a2a2a;
}

.about-photo {
  width: auto;
  height: auto;
  display: block;
  margin: 0;
  border: none;
  max-width: none;
}

/* Video styling */
video.about-photo {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.about-text {
  max-width: 60ch;
  margin: 0;
}

.about-lead {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--ink);
}

.about-body {
  color: var(--ink);
}

.about-body h2 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 2rem 0 1rem 0;
  color: var(--ink);
}

.about-body h3 {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--ink);
}

.about-body p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0.75rem 0;
  color: var(--ink);
}

.about-body ul,
.about-body ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.about-body li {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0.35rem 0;
}

.about-body strong {
  font-weight: 900;
}

.about-body a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.about-body a:hover {
  background: #fff176;
}

[data-theme="dark"] .about-body a:hover {
  background: #1e3a5f;
}

/* Responsive */
@media (max-width: 1024px) {
  .aboutme__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: auto;
  }

  .about-main {
    position: static;
    max-width: 100%;
    cursor: default;
    touch-action: auto;
  }

  .about-main .about-window-header {
    cursor: default;
  }

  .about-photo-window {
    position: static;
    margin: 0 auto;
    max-width: 400px;
    width: fit-content;
    cursor: default;
    touch-action: auto;
  }

  .about-photo {
    max-width: 400px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .aboutme__container {
    padding: 2rem 1rem;
  }

  .about-window-content {
    padding: 1.5rem;
  }

  .about-photo-window {
    max-width: 100%;
  }

  .about-window-title {
    font-size: 1rem;
  }

  .about-lead {
    font-size: 1.1rem;
  }

  .about-body h2 {
    font-size: 1.3rem;
  }

  .about-body h3 {
    font-size: 1.1rem;
  }

  .about-body p,
  .about-body li {
    font-size: 1rem;
  }
}
