/* =============================================
   Sarah Wongsupakphan — Resume Profile
   Palette: off-white page, deep plum accents,
   warm stone sidebar, gold award highlight
   ============================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --plum-900: #1e1433;
    --plum-700: #3d2b6e;
    --plum-500: #6b4fa0;
    --plum-200: #cfc1f0;
    --plum-50: #f3effc;

    --gold-600: #a0762a;
    --gold-100: #fdf3dc;

    --stone-100: #f6f4f0;
    --stone-200: #ece9e3;
    --stone-400: #b5b0a5;
    --stone-600: #7a7569;

    --text-primary: #1e1433;
    --text-secondary: #5e5a6e;
    --text-muted: #9893a5;

    --border: rgba(110, 100, 140, 0.14);
    --border-strong: rgba(110, 100, 140, 0.28);

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/*body {
    font-family: var(--font-body);
    background: var(--stone-100);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 3rem 1.5rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
} */

/* ---- Page card ---- */
.page {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 0.5px solid var(--border-strong);
    overflow: hidden;
}

/* ---- Header ---- */
.r-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 2.5rem 2.5rem 2rem;
    border-bottom: 0.5px solid var(--border);
    background: linear-gradient(135deg, var(--plum-50) 0%, #fff 60%);
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--plum-700);
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.header-info h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--plum-900);
    margin-bottom: 2px;
}

.aka {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

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

.badge {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--plum-50);
    color: var(--plum-700);
    border: 0.5px solid var(--plum-200);
}

/* ---- Body grid ---- */
.r-body {
    display: grid;
    grid-template-columns: 220px 1fr;
}

/* ---- Sidebar ---- */
.r-sidebar {
    padding: 2rem 1.5rem;
    background: var(--stone-100);
    border-right: 0.5px solid var(--border);
}

.sb-block {
    margin-bottom: 2rem;
}

.sb-label {
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.sb-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.sb-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.sb-stat {
    font-family: var(--font-display);
    font-size: 40px;
    color: var(--plum-700);
    line-height: 1;
    margin-bottom: 2px;
}

.sb-stat-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ---- Main ---- */
.r-main {
    padding: 2rem 2.5rem;
}

.section-label {
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--border);
}

/* ---- Timeline ---- */
.timeline {
    display: flex;
    flex-direction: column;
}

.t-item {
    display: grid;
    grid-template-columns: 52px 18px 1fr;
    gap: 0 12px;
    margin-bottom: 0;
}

.t-left {
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.t-year {
    font-size: 11px;
    font-weight: 500;
    color: var(--plum-500);
    white-space: nowrap;
    text-align: right;
    width: 100%;
}

.t-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.t-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--plum-500);
    border: 2px solid #fff;
    outline: 1.5px solid var(--plum-500);
    flex-shrink: 0;
    margin-top: 3px;
    position: relative;
    z-index: 1;
}

.t-dot--award {
    background: var(--gold-600);
    outline-color: var(--gold-600);
}

.t-line {
    width: 1px;
    background: var(--border-strong);
    flex: 1;
    margin-top: 4px;
    margin-bottom: 0;
    min-height: 32px;
}

.t-content {
    padding-bottom: 2rem;
}

.t-item:last-child .t-content {
    padding-bottom: 0;
}

.t-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.t-content p {
    font-size: 12.5px;
    /* color: var(--text-secondary); */
    line-height: 1.7;
}

/* Award row accent */
.t-item--award .t-content h3 {
    color: var(--gold-600);
}

.award-icon {
    width: 15px;
    height: 15px;
    color: var(--gold-600);
    flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 620px) {
    body {
        padding: 1rem;
    }

    .page {
        border-radius: var(--radius-lg);
    }

    .r-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75rem 1.5rem 1.5rem;
    }

    .r-body {
        grid-template-columns: 1fr;
    }

    .r-sidebar {
        border-right: none;
        border-bottom: 0.5px solid var(--border);
        padding: 1.5rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 1.5rem;
    }

    .r-main {
        padding: 1.5rem;
    }

    .t-item {
        grid-template-columns: 44px 16px 1fr;
        gap: 0 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ---- Photo Showcase ---- */
.photo-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 2rem 0;
}

.photo-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: var(--stone-200);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .photo-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .photo-showcase {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}