/* ==========================================================================
   ABOUT & CONTACT (about.html)
   ========================================================================== */

/* ---------- Intro: photo + text ---------- */

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
    padding-top: var(--section-space);
}

/* The frame looks like a sprite editor: a checkerboard behind the picture */
.about-photo {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    border: 3px solid var(--edge);
    clip-path: var(--notch);
    background: conic-gradient(var(--surface-2) 25%, var(--surface) 0 50%, var(--surface-2) 0 75%, var(--surface) 0) 0 0 / 32px 32px;
}

/* A real photo fills the frame... */
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ...the mascot stand-in is shown smaller and centered */
.about-photo img.is-mascot {
    width: 65%;
    height: auto;
    object-fit: contain;
}

.about-text .page-title {
    margin-bottom: 20px;
}

.about-text .page-title span {
    color: var(--brand-light);
}

.about-lead {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.about-text .section-lead {
    margin-bottom: 32px;
}

/* ---------- Tools ---------- */

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tool-list li {
    padding: 4px 10px 3px;
    background: var(--bg);
    box-shadow: inset 0 0 0 2px var(--edge);
    clip-path: var(--notch-sm);
    font-family: var(--font-label);
    font-size: 0.8rem;
}

/* ---------- Education & experience (timeline) ----------
   Period on the left, a dotted pixel line with a node per entry, the card on the right.
   The color depends on the type: education, work (experience) or personal (on my own). */

.timeline {
    --period: 170px;
    --rail: 48px;
    position: relative;
    display: grid;
    gap: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: calc(var(--period) + var(--rail) / 2 - 1.5px);
    width: 3px;
    background: repeating-linear-gradient(180deg, var(--edge) 0 6px, transparent 6px 12px);
}

.timeline-item {
    --accent: var(--brand-light);
    position: relative;
    display: grid;
    grid-template-columns: var(--period) 1fr;
    column-gap: var(--rail);
    align-items: start;
}

.timeline-item[data-kind="work"] { --accent: var(--area-web); }
.timeline-item[data-kind="personal"] { --accent: var(--area-3d); }

/* The node on the line */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(var(--period) + var(--rail) / 2 - 7.5px);
    width: 15px;
    height: 15px;
    background: var(--accent);
    clip-path: var(--steps-sm);
}

.timeline-period {
    grid-column: 1;
    padding-top: 19px;
    color: var(--text-muted);
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: right;
}

.timeline-card {
    grid-column: 2;
    padding: 20px 22px 22px;
    background: var(--surface);
    border: 3px solid var(--edge);
    border-left-color: color-mix(in srgb, var(--accent) 70%, var(--edge));
    clip-path: var(--notch);
}

.timeline-kind {
    display: inline-block;
    margin-bottom: 10px;
}

.timeline-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.15;
}

.timeline-place {
    margin-top: 2px;
    color: var(--accent);
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 500;
}

.timeline-text {
    margin-top: 10px;
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .timeline {
        --period: 0px;
        --rail: 0px;
        gap: 16px;
        padding-left: 30px;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-item::before {
        top: 3px;
        left: -31px;
    }

    .timeline-period,
    .timeline-card {
        grid-column: 1;
    }

    .timeline-period {
        padding: 0 0 8px;
        text-align: left;
    }
}

/* ---------- YouTube channels ---------- */

.channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
}

.channel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px;
    background: var(--surface);
    border: 3px solid var(--edge);
    clip-path: var(--notch);
    transition: translate .18s steps(3), border-color .18s steps(3);
}

a.channel:hover {
    translate: 0 -6px;
    border-color: var(--area-video);
}

.channel i {
    margin-bottom: 8px;
    color: var(--area-video);
    font-size: 2rem;
}

.channel-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.channel-subs {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1.1;
}

.channel-label {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.contact-card {
    padding: clamp(24px, 4vw, 36px);
    background: var(--surface);
    border: 3px solid var(--edge);
    clip-path: var(--notch);
}

.contact-card h3 {
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
}

.discord-card > i {
    margin-bottom: 12px;
    color: #5865F2;
    font-size: 2.5rem;
}

.discord-card p {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.discord-btn {
    background: #5865F2;
}

/* Email: the address itself is big and clickable; "Copy" for people without a mail app */
.email-card > i {
    margin-bottom: 12px;
    color: var(--brand-light);
    font-size: 2.5rem;
}

.email-card p {
    color: var(--text-muted);
}

.email-address {
    display: inline-block;
    margin: 6px 0 24px;
    color: var(--text);
    font-family: var(--font-label);
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    font-weight: 500;
    word-break: break-all;
    transition: color .15s steps(2);
}

.email-address:hover {
    color: var(--brand-light);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .about-intro,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-photo {
        width: 100%;
        max-width: 320px;
    }
}
