.about-page {
  --ink: #faf1ed;
  --muted: #e1d3db;
  --about-line: rgb(245 200 187 / 27%);
  --about-accent: #ffd0b1;
  --about-surface: linear-gradient(145deg, rgb(38 34 52 / 90%), rgb(61 36 39 / 84%));
  --about-highlight: rgb(226 135 114 / 20%);
  min-height: 100svh;
  isolation: isolate;
  background: #272631;
}
.about-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: url("/assets/about-background.jpg") center / cover no-repeat;
  pointer-events: none;
}
.about-embers-left { right: 72%; mask-image: linear-gradient(to right, #000 74%, transparent); }
.about-embers-right { left: 72%; mask-image: linear-gradient(to left, #000 74%, transparent); }
.about-snow {
  z-index: 1;
  inset-inline: 28%;
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.about-snow span {
  top: 0;
  bottom: auto;
  width: calc(var(--size) * .75);
  height: calc(var(--size) * .75);
  background: #f5f1fa;
  box-shadow: 0 0 4px #e2d9ff7a;
  animation-name: about-snowfall;
  animation-duration: calc(var(--duration) * 1.8);
  animation-delay: calc(var(--delay) * 1.8);
}
@keyframes about-snowfall {
  0% { opacity: 0; transform: translateY(-3vh); }
  16% { opacity: .48; }
  48% { transform: translate(calc(var(--drift) * -.2), 47vh); }
  82% { opacity: .28; }
  100% { opacity: 0; transform: translate(calc(var(--drift) * .35), 103vh); }
}
.about-header { position: relative; z-index: 2; background: transparent; backdrop-filter: none; }
.about-header .header-row {
  --reader-glass: linear-gradient(105deg, rgb(38 34 52 / 80%), rgb(61 36 39 / 72%));
}
.about-header .brand small { color: var(--muted); }
.about-header .nav-item { color: var(--ink); }
.about-header .brand-mark { background: #352a3d; color: var(--about-accent); }
.about-header .brand-mark { border-color: var(--about-line); }
.about-header .nav-item.current, .about-header a.nav-item:hover {
  border-color: var(--about-line);
  background: var(--about-highlight);
  color: var(--about-accent);
}
.about-shell { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: clamp(30px, 6vw, 76px) 0 72px; }
.about-card {
  overflow: hidden;
  border: 1px solid var(--about-line);
  border-radius: 12px;
  background: var(--about-surface);
  box-shadow: 0 22px 62px #1b152e58;
}
.about-cover { height: clamp(155px, 26vw, 244px); }
.about-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.about-content { position: relative; padding: 80px clamp(22px, 5vw, 55px) clamp(32px, 5vw, 54px); }
.about-avatar {
  position: absolute;
  top: 0;
  left: clamp(22px, 4vw, 40px);
  width: 104px;
  height: 104px;
  transform: translateY(-50%);
  object-fit: cover;
  border: 4px solid #403546;
  border-radius: 50%;
  box-shadow: 0 8px 22px #1425323b;
}
.about-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--about-line);
  overflow-wrap: anywhere;
}
.about-overline { color: var(--about-accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.about-heading h1 { margin-top: 6px; font: 750 clamp(34px, 5vw, 48px)/1.15 var(--serif); }
#about-tagline { margin-top: 6px; color: var(--muted); font: 650 16px/1.5 var(--serif); }
.about-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--about-line); border-radius: 12px; }
.about-tabs button, .activity-more, .activity-filter button {
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--about-accent);
  cursor: pointer;
}
.about-tabs button[aria-selected="true"] { background: var(--about-highlight); color: var(--ink); }
.about-tabs button:hover:not([aria-selected="true"]), .activity-more:hover, .activity-filter button:hover { background: var(--about-highlight); }
#about-status, .about-panel { margin-top: 28px; }
.about-notes { display: flex; align-items: center; gap: 8px; }
.about-notes .icon { width: 17px; height: 17px; }
#about-intro { margin-top: 26px; color: var(--ink); font: 17px/1.85 var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; }
.about-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--about-line);
}
.about-meta h3 { margin-bottom: 10px; font-size: 14px; }
.about-meta p { color: var(--muted); font-size: 13px; }
.about-meta ul { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 0; list-style: none; }
#about-skills li { padding: 3px 10px; border: 1px solid var(--about-line); border-radius: 999px; background: var(--about-highlight); font-size: 12px; }
#about-contacts a { color: var(--about-accent); font-weight: 650; overflow-wrap: anywhere; }

.about-calendar { padding: clamp(14px, 3vw, 25px); border: 1px solid var(--about-line); border-radius: 15px; background: #1b172844; }
.about-calendar header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.about-calendar h2 { font: 700 18px/1.4 var(--serif); }
#year-events { color: var(--muted); font-size: 11px; white-space: nowrap; }
.calendar-scroll { overflow-x: auto; margin-top: 12px; padding: 5px 3px 8px; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(var(--weeks), minmax(7px, 1fr));
  gap: 3px;
  min-width: 560px;
}
.calendar-month { grid-row: 1; width: max-content; padding-bottom: 4px; color: var(--muted); font-size: 10px; }
.calendar-cell, .calendar-legend i { aspect-ratio: 1; padding: 0; border: 0; border-radius: 2px; background: #ffffff20; }
button.calendar-cell { cursor: pointer; }
.calendar-cell[aria-pressed="true"] { outline: 2px solid var(--about-accent); outline-offset: 1px; }
.about-calendar [data-level="1"] { background: #96616f; }
.about-calendar [data-level="2"] { background: #c47e7c; }
.about-calendar [data-level="3"] { background: #e99c83; }
.about-calendar [data-level="4"] { background: #ffcb9f; }
.calendar-legend { display: flex; align-items: center; justify-content: end; gap: 5px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.calendar-legend i { width: 11px; }
.activity-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; color: var(--muted); }
.about-feed { display: grid; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.activity-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid var(--about-line);
  border-radius: 12px;
  background: #1b172844;
}
.activity-card:hover { border-color: var(--about-accent); background: var(--about-highlight); }
.activity-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--about-line); border-radius: 50%; color: var(--about-accent); }
.activity-copy :is(small, strong, .activity-summary) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy strong { font: 700 16px/1.55 var(--serif); }
.activity-copy small, .activity-summary, .activity-card time { color: var(--muted); font-size: 12px; }
.activity-card time { white-space: nowrap; }
.activity-empty, .activity-more { margin-top: 16px; }
.activity-more { display: block; margin-inline: auto; border: 1px solid var(--about-line); }
@media (max-width: 540px) {
  .about-shell { width: calc(100% - 24px); }
  .about-content { padding-top: 58px; }
  .about-avatar { width: 78px; height: 78px; }
  .about-meta { grid-template-columns: 1fr; }
  .activity-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; padding-inline: 10px; }
  .activity-card time { grid-column: 2; grid-row: 2; }
  .activity-card > :last-child { grid-column: 3; grid-row: 1; }
}
