/* SPDX-License-Identifier: MIT */
/* Copyright (C) 2026 Abhishek Sengar */

.about {
  padding-top: clamp(40px, 7vw, 80px);
}

.about-hero {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.about-hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.about-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.about-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 920px) {
  .about-layout {
    grid-template-columns: 320px 1fr;
    gap: 56px;
  }
  .about-profile {
    position: sticky;
    top: 112px;
  }
}

.about-profile {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.author-photo {
  display: grid;
  position: relative;
  overflow: hidden;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 30%;
  background: conic-gradient(from 200deg, var(--kinetix), var(--chroma), var(--intrinsic), var(--specimen), var(--kinetix));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 0 rgba(13, 15, 26, 0.18), 0 18px 30px -12px rgba(13, 15, 26, 0.4);
  color: #ffffff;
  font: 800 30px/1 var(--display-font);
  transform: rotate(-4deg);
}

.author-photo::before {
  content: attr(data-initials);
}

.author-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@supports (corner-shape: squircle) {
  .author-photo { border-radius: 50%; corner-shape: squircle; }
}

.author-name {
  font-size: 26px;
  font-weight: 800;
}

.author-role {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.author-links {
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.author-links a,
.author-links .author-email {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font: 600 15px/1.2 var(--body-font);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.author-links a:hover,
.author-links .author-email:hover {
  background: var(--page);
}

.author-links svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: var(--muted);
}

.author-email-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono-font);
  font-size: 14px;
}

.about-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.about-article {
  max-width: 760px;
}

.about-article h2 {
  margin: 48px 0 16px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
}

.about-article h2:first-child {
  margin-top: 0;
}

.about-article p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.about-article p a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.about-tools {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-tools li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  color: var(--muted);
}

.about-tools a {
  color: var(--tool-color);
  font-weight: 700;
  text-decoration: none;
}

.about-tools a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-sublist {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.about-sublist a {
  color: var(--ink);
  font-weight: 600;
}

.about-article p.about-more {
  margin-top: 16px;
}
