/* About me (about.html). Figma pYerAoMQJ0vxt2FurFNnXc node 6655:3478 ("about").
   Loaded after css/style.css, which supplies the header, motto/robot,
   contact block and footer. At 1440 the column starts at x 318 and the copy
   is 772 wide; vertical gaps are the Figma px. */

@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

.about {
  /* Geist and Plus Jakarta Sans have no Chinese glyphs: Chinese falls through to the system's CJK face. */
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --muted: #515151;
  width: min(804px, 100% - 2 * var(--gutter));
  margin: 84px 0 0 max(var(--gutter), 50% - 402px);
  font-family: "Geist", var(--cjk);
}

/* ---------- Back link (same look as .post-back / .work-back) ---------- */
.about-back {
  display: inline-block;
  font-family: "Plus Jakarta Sans", var(--cjk);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: pre;
  transition: color var(--hover-dur) var(--hover-ease);
}
.about-back:hover { color: var(--accent); }

/* ---------- Intro ---------- */
.about-head { margin-top: 80px; }
.about-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
}
.about-role {
  margin-top: 9px;
  font-family: "Plus Jakarta Sans", var(--cjk);
  font-size: 13px;
  line-height: 17px;
}

/* ---------- Facts: companies / projects / tools ---------- */
.about-facts { margin-top: 83px; }
.about-fact + .about-fact { margin-top: 47px; }
.about-fact dt {
  font-size: 14px;
  line-height: 18px; /* fixed: the CJK fallback face would otherwise grow the line */
  color: var(--muted);
}
.about-fact dd {
  margin-top: 13px;
  font-family: "Plus Jakarta Sans", var(--cjk);
  font-size: 15px;
  font-weight: 500;
  line-height: 19px;
}

.about-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px; /* lands the icons at Figma y 637 */
  list-style: none;
  padding: 0;
}
.about-tools li {
  position: relative;
  width: 32px;
  height: 32px;
}
/* Tiles 02–05 are white rounded cards; 01 and 06 are self-contained SVGs
   whose canvas includes their own drop shadow, so they overhang the 32px slot. */
.tool--card {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9.6px;
  background: #fff;
  box-shadow: 0 0.8px 6.4px rgba(0, 0, 0, 0.1);
}
.tool--card img { display: block; }
.tool--bleed img {
  position: absolute;
  display: block;
  max-width: none;
}
.tool--01 img { left: -6.4px; top: -5.6px; }   /* 44.8 × 44.8 */
.tool--06 img { left: -6px; top: -5.2px; }     /* 44 × 44 */
.tool--04 { place-items: start; }
.tool--04 img { margin: 4px 0 0 4px; }       /* Figma sits it at 4,4, not centred */

/* ---------- Body copy ---------- */
.about-body { margin-top: 84px; }
.about-body section + section { margin-top: 48px; }
.about-body h2 {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}
.about-body p {
  max-width: 772px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
}
.about-body h2 + p { margin-top: 24px; }

@media (max-width: 767px) {
  .about { margin-top: 48px; }
  .about-head { margin-top: 48px; }
  .about-facts, .about-body { margin-top: 56px; }
}
