/* About shares the articles' quiet, centered reading layout. */
.profile-page .container {
  max-width: 930px;
  margin-inline: auto;
  padding-top: 160px;
}
.about-profile {
  --reading-muted: color-mix(in srgb, var(--foreground) 70%, var(--background));
  --reading-line: color-mix(in srgb, var(--foreground) 15%, var(--background));
  max-width: 760px;
  margin-inline: auto;
  padding-bottom: 48px;
  line-height: 1.85;
}
:root[data-theme="light"] .about-profile {
  --accent: #bd2c34;
  --link-hover: #98222a;
}
.about-profile *, .about-profile *::before, .about-profile *::after { word-break: normal; }
.about-profile a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.about-profile a:hover, .about-profile h1:hover, .about-profile h2:hover { text-shadow: none; }
.profile-intro { max-width: 66ch; }
.profile-intro p { margin: 0 0 20px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 0.8rem; }
.profile-links a { text-decoration: none; }
.profile-links a:hover { text-decoration: underline; }
.profile-section { margin-top: 48px; }
.profile-section h2 {
  color: var(--foreground);
  margin: 0 0 24px;
  font-size: 1.3rem;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.about-profile ul { padding: 0; margin: 0; list-style: none; }
.about-profile li { padding: 0; margin: 0; }
.about-profile li::before { content: none; }
.profile-domains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 30px; font-size: 0.9rem; }
.profile-domains li { padding-left: 16px; position: relative; }
.profile-domains li::before { content: "/"; position: absolute; left: 0; color: var(--reading-muted); }
.profile-project { border-top: 1px solid var(--reading-line); }
.profile-project:last-child { border-bottom: 1px solid var(--reading-line); }
.profile-project summary { display: flex; align-items: baseline; gap: 20px; justify-content: space-between; padding: 22px 0; cursor: pointer; list-style: none; }
.profile-project summary::-webkit-details-marker { display: none; }
.profile-project-heading { display: grid; gap: 8px; min-width: 0; }
.profile-project-title { font-size: 1rem; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.profile-project-date { color: var(--reading-muted); font-size: 0.8rem; }
.profile-project-toggle { color: var(--reading-muted); flex-shrink: 0; }
.profile-project-toggle::before { content: "+"; }
.profile-project[open] .profile-project-toggle::before { content: "−"; }
.profile-project summary:hover .profile-project-title { color: var(--accent); }
.profile-project summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.profile-project-description { max-width: 66ch; padding-bottom: 24px; font-size: 0.95rem; line-height: 1.9; overflow-wrap: anywhere; }
.profile-project-description p { margin: 0 0 1em; }
.profile-project-description > :last-child { margin-bottom: 0; }
.profile-credentials { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.about-profile .profile-award {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 180px;
  padding: 28px 22px;
  border: 1px solid var(--reading-line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--foreground) 2%, var(--background));
  text-align: center;
}
.profile-trophy { color: var(--accent); flex-shrink: 0; }
.profile-award-title { font-size: 0.95rem; line-height: 1.6; font-weight: 600; }
.profile-award--placeholder { max-width: 240px; width: 100%; }
.profile-award--placeholder .profile-award-title { color: var(--reading-muted); font-weight: 400; }
@media (max-width: 900px) {
  .profile-page .container { padding: 40px 24px !important; }
}
@media (max-width: 520px) {
  .profile-page .container { padding: 32px 20px !important; }
  .about-profile .reading-title { font-size: 1.85rem; }
  .profile-domains { grid-template-columns: 1fr; gap: 8px; }
  .profile-section { margin-top: 36px; }
  .profile-project summary { gap: 14px; }
}
