/* ==========================================================================
   limjiayong.softlead.net: personal additions
   styles.css is an unmodified copy of softlead.net's design system. Keep it
   that way so the two sites can be synced; put anything personal-site-only here.
   ========================================================================== */

/* ---------- Brand: monogram instead of the SLS logo ---------- */
.brand__mono {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--hl);
    color: var(--hl-ink);
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.04em;
}

/* ---------- Hero ---------- */
.me-hero .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.me-hero .hero__title { font-size: clamp(2.5rem, 5.2vw, 4.6rem); }
.me-hero .bio__photo { justify-self: end; width: 100%; max-width: 400px; }
@media (max-width: 920px) {
    .me-hero .hero__grid { grid-template-columns: 1fr; }
    .me-hero .bio__photo { justify-self: start; max-width: 340px; }
}

/* ---------- Experience timeline ---------- */
.xp { display: grid; border-top: 1px solid var(--line); }
.xp__item {
    display: grid;
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
    gap: 12px clamp(24px, 4vw, 56px);
    padding-block: clamp(26px, 3.5vw, 40px);
    border-bottom: 1px solid var(--line);
}
.xp__when { display: grid; gap: 10px; align-content: start; justify-items: start; }
.xp__when .mono { color: var(--text-3); }
.xp__body { display: grid; gap: 14px; }
.xp__role { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.xp__org { color: var(--text-2); }
.xp__body ul { display: grid; gap: 8px; color: var(--text-2); }
.xp__body li { position: relative; padding-left: 18px; }
.xp__body li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--hl); }
.xp__body li strong { color: var(--text); font-weight: 500; }
.xp__teams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xp__team { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 4px; }
.xp__team b { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: -0.02em; }
.xp__team span { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.xp__tags { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 760px) {
    .xp__item { grid-template-columns: 1fr; }
    .xp__when { grid-auto-flow: column; justify-content: start; align-items: center; }
}
@media (max-width: 520px) { .xp__teams { grid-template-columns: 1fr; } }

/* ---------- Three-up cards ---------- */
.perks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proj__desc { color: var(--text-2); }
.proj__impact { display: flex; gap: 10px; align-items: baseline; padding-top: 16px; border-top: 1px dashed var(--line-strong); color: var(--text); }
.proj__impact .mono { color: var(--hl); flex: none; }
@media (max-width: 860px) { .perks--3 { grid-template-columns: 1fr; } }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.skill { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 16px; align-content: start; }
.skill h3 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.skill div { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 920px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .skills { grid-template-columns: 1fr; } }

/* ---------- Education ---------- */
.edu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.edu__item { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 8px; align-content: start; }
.edu__item h3 { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.edu__item p { color: var(--text-2); }
.edu__award { color: var(--hl) !important; font-size: 0.95rem; }
@media (max-width: 860px) { .edu { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.reach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.reach .channels { max-width: 30rem; width: 100%; justify-self: end; }
@media (max-width: 860px) { .reach { grid-template-columns: 1fr; } .reach .channels { justify-self: start; } }
