:root {
    --bg: #fdfaf3;
    --text: #111;
    --body: #222;
    --link: #0000ee;
    --link-visited: #551a8b;
    --rule: #e5e0d5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--body);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
        Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 42rem;
    margin: 0 auto;
    padding: 48px 28px 72px;
}

.header {
    margin-bottom: 40px;
}

h1,
h2 {
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
        Arial, sans-serif;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    margin: 0 0 10px;
    font-size: 1.65rem;
    line-height: 1.2;
}

h2 {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none;
}

.links {
    margin: 0 0 22px;
    font-size: 15px;
}

.links a {
    margin-right: 14px;
}

.intro,
section p {
    margin: 0 0 14px;
    color: var(--body);
    font-size: 15px;
    line-height: 1.6;
}

.intro-list {
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--body);
    font-size: 15px;
    line-height: 1.6;
}

.intro-list li {
    margin-bottom: 10px;
}

strong {
    color: var(--text);
    font-weight: 600;
}

section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--rule);
}

a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:visited {
    color: var(--link-visited);
}

a:hover {
    text-decoration-thickness: 1px;
}

code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.88em;
    color: var(--text);
}

.divider {
    color: #666;
    margin: 0 6px;
}

/* ---- Stickers ---- */
.sticker {
    display: block;
    float: right;
    width: 138px;
    height: 103px;
    object-fit: cover;
    border-radius: 3px;
    margin: 2px 0 16px 20px;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    z-index: 1;
}

.sticker:hover {
    box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.28);
    z-index: 5;
}

.sticker-left {
    float: left;
    margin: 2px 20px 16px 0;
}

.sticker-tall {
    width: 96px;
    height: 136px;
}

.sticker-round {
    border-radius: 50%;
    width: 86px;
    height: 86px;
}

/* clearfix so sections grow around floated stickers */
.header::after,
section::after {
    content: '';
    display: table;
    clear: both;
}

/* ---- About-Me Video Modal ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.84);
    z-index: 500;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    position: relative;
    width: min(92vw, 760px);
    background: #000;
    border-radius: 5px;
    overflow: hidden;
}

.modal-box iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.modal-close {
    position: absolute;
    top: -34px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
    letter-spacing: 0;
}

.modal-close:hover {
    color: #fff;
}

/* ---- Video gallery pages ---- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 4px;
    display: block;
    background: #000;
}

.video-card p {
    font-size: 13px;
    color: #555;
    margin: 6px 0 0;
}

/* ---- LinkedIn embed ---- */
.linkedin-embed {
    margin: 12px 0 4px;
    max-width: 100%;
    overflow: hidden;
}

.linkedin-embed iframe {
    max-width: 100%;
    border-radius: 4px;
    display: block;
}

/* ---- Back link (sub-pages) ---- */
.back-link {
    display: inline-block;
    margin-bottom: 28px;
    font-size: 14px;
    text-decoration: none;
    color: #555;
}

.back-link:hover {
    color: var(--link);
    text-decoration: underline;
}

/* ---- Proof links (barty page) ---- */
.proof-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.proof-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 15px;
}

.proof-list li:last-child {
    border-bottom: none;
}

.proof-list .proof-label {
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 520px) {
    .page {
        padding: 32px 18px 56px;
    }

    .links a {
        display: inline-block;
        margin-right: 12px;
        margin-bottom: 6px;
    }

    .sticker {
        width: 90px;
        height: 68px;
    }

    .sticker-tall {
        width: 68px;
        height: 96px;
    }

    .sticker-round {
        width: 64px;
        height: 64px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .modal-box {
        width: 96vw;
    }
}
