/**
 * About Page Styles
 *
 * Neo-brutalist about page with framed profile image.
 * Requires: body.page class on <body> element for flex layout.
 */

/* Prevent FOUC for new components */
gp-site-header:not(:defined),
gp-site-footer:not(:defined) {
  display: none;
}

.about-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-md);
}

.about-content {
  width: 100%;
  max-width: var(--max-width-prose);
  margin: 0 auto;
}

/* Hero section with image and intro */
.about-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  align-items: start;
}

/* Profile image frame */
.profile-frame {
  position: relative;
  width: 200px;
  height: 200px;
}

.profile-image {
  width: 100%;
  height: 100%;
  border: var(--border-thin) solid var(--color-border);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-secondary);
}

.image-placeholder svg {
  width: 60%;
  height: 60%;
  color: var(--color-text-muted);
}

/* Corner frame accents */
.frame-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--color-accent);
  border-style: solid;
  border-width: 0;
}

.frame-corner--tl {
  top: -8px;
  left: -8px;
  border-top-width: var(--border-thin);
  border-left-width: var(--border-thin);
}

.frame-corner--tr {
  top: -8px;
  right: -8px;
  border-top-width: var(--border-thin);
  border-right-width: var(--border-thin);
}

.frame-corner--bl {
  bottom: -8px;
  left: -8px;
  border-bottom-width: var(--border-thin);
  border-left-width: var(--border-thin);
}

.frame-corner--br {
  bottom: -8px;
  right: -8px;
  border-bottom-width: var(--border-thin);
  border-right-width: var(--border-thin);
}

/* Intro text */
.about-intro {
  padding-top: var(--space-md);
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 0;
}

/* Sections */
.about-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  border: var(--border-thin) solid var(--color-border);
}

.about-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.about-section p {
  line-height: 1.7;
  margin-bottom: 0;
}

/* LinkedIn link */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: var(--border-thin) solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.linkedin-link:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  text-decoration: none;
}

.linkedin-link svg {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .profile-frame {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .about-intro {
    text-align: center;
    padding-top: 0;
  }

  .page-title {
    font-size: 2rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  .about-section {
    padding: var(--space-md);
  }
}
