body {
    margin: 0;
    padding: 0;
    background-color: white;
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

/* Layout */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}
.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

/* Header */
#dhead {
    margin-top: 20px;
}
#dpic {
    grid-column: span 6;
    text-align: right;
}
#ddesc {
    padding-top: 40px;
    padding-left: 20px;
    grid-column: span 6;
}
@media (max-width: 991px) {
    #dpic {
        grid-column: span 12;
        text-align: center;
    }
    #ddesc {
        grid-column: span 12;
        padding-top: 20px;
        text-align: center;
    }
}
h1 {
    font-size: 34px;
    font-weight: normal;
    padding: 0;
    margin: 0;
}
h2 {
    font-weight: normal;
    font-style: italic;
    color: #999;
    font-size: 18px;
    padding: 0;
    margin: 5px 0 10px 0;
}
@media (min-width: 992px) {
    h2 {
        max-width: 340px;
    }
}
#dpic img {
    width: 240px;
    height: 240px;
    border-radius: 120px;
    object-fit: cover;
    object-position: center top;
}

/* Social icons */
#dico {
    margin-top: 10px;
}
.iico {
    width: 40px;
    height: 40px;
}
#demail {
    margin-top: 10px;
    color: #555;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.7s;
}

/* HR divider */
hr {
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    padding: 0;
    margin: 20px 0px 20px 0px;
    border: 0;
}

/* Timeline */
.ico {
    grid-column: span 1;
    vertical-align: top;
    border-left: 2px solid #cfcfcf;
    position: relative;
}
.ico img {
    border-radius: 5px;
    width: 100%;
    max-width: 80px;
    margin-left: 10px;
    mix-blend-mode: multiply;
}
.entry-dot {
    position: absolute;
    top: 0px;
    left: -8px;
    width: 10px;
    height: 10px;
    border-radius: 7px;
    background-color: #cfcfcf;
    border: 2px solid white;
}
.timespan {
    grid-column: span 1;
    font-size: 14px;
    text-align: right;
    padding-right: 5px;
    color: #bbb;
}
.desc {
    grid-column: span 10;
    vertical-align: top;
    font-size: 17px;
    padding-left: 20px;
    padding-bottom: 20px;
}

/* Section title */
.ctitle {
    font-size: 36px;
    margin-bottom: 20px;
    margin-top: 40px;
}

/* Cards (podcasts + teaching) */
.card-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    padding-bottom: 20px;
}
.card {
    grid-column: span 3;
    vertical-align: top;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px;
    padding-bottom: 10px;
}
@media (max-width: 991px) {
    .card {
        grid-column: span 6;
    }
}
@media (max-width: 600px) {
    .card {
        grid-column: span 12;
    }
}
.card img {
    border-radius: 3px;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.cdesc {
    font-size: 14px;
    margin-top: 6px;
    padding: 0 4px;
    line-height: 1.4;
    color: #333;
}
.cdesc a {
    color: #333;
    text-decoration: none;
}
.cdesc a:hover {
    color: #0969da;
    text-decoration: underline;
}

/* Company / role inside timeline */
.company {
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 2px;
}
.company a {
    color: #333;
    text-decoration: none;
}
.company a:hover {
    color: #0969da;
}
.role {
    font-style: italic;
    font-size: 15px;
    color: #777;
    margin-bottom: 6px;
}
.desc p {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    margin-top: 4px;
}
.desc a {
    color: #0969da;
    text-decoration: none;
}
.desc a:hover {
    text-decoration: underline;
}

/* Bio */
#bio {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin: 20px 0 10px 0;
}
#bio p {
    margin-bottom: 12px;
}
#bio a {
    color: #0969da;
    text-decoration: none;
}
#bio a:hover {
    text-decoration: underline;
}

/* Teaching */
.teach-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.teach-item:last-child {
    border-bottom: none;
}
.teach-item h3 {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 4px;
}
.teach-item h3 a {
    color: #333;
    text-decoration: none;
}
.teach-item h3 a:hover {
    color: #0969da;
}
.teach-item p {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

/* Music */
.music-item h3 {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 4px;
}
.music-item h3 a {
    color: #333;
    text-decoration: none;
}
.music-item h3 a:hover {
    color: #0969da;
}
.music-item p {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 8px;
}
.spotify-link {
    font-size: 14px;
    font-weight: 600;
    color: #1db954;
    text-decoration: none;
}
.spotify-link:hover {
    text-decoration: underline;
}

/* Writing */
.writing-list {
    list-style: none;
    padding: 0;
}
.writing-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}
.writing-list li:last-child {
    border-bottom: none;
}
.writing-list a {
    color: #0969da;
    text-decoration: none;
    font-weight: 500;
}
.writing-list a:hover {
    text-decoration: underline;
}
.writing-meta {
    font-size: 13px;
    color: #aaa;
    margin-top: 2px;
}

/* Resume */
.resume-cta a {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #0969da;
    text-decoration: none;
    border: 1px solid #0969da;
    border-radius: 4px;
    padding: 6px 14px;
    margin-top: 6px;
}
.resume-cta a:hover {
    background: #0969da;
    color: white;
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #bbb;
    text-align: center;
    padding-bottom: 40px;
}

/* Photo collage / highlights */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-column-gap: 6px;
    grid-row-gap: 6px;
    padding-bottom: 20px;
}
.photo-item {
    grid-column: span 3;
    overflow: hidden;
    border-radius: 3px;
    background-color: #f5f5f5;
}
.photo-item a {
    display: block;
}
.photo-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.photo-item img:hover {
    opacity: 0.82;
}
@media (max-width: 991px) {
    .photo-item {
        grid-column: span 4;
    }
}
@media (max-width: 600px) {
    .photo-item {
        grid-column: span 6;
    }
}

/* Mobile timeline collapse */
@media (max-width: 600px) {
    .timespan {
        display: none;
    }
    .ico {
        display: none;
    }
    .desc {
        grid-column: span 12;
        padding-left: 0;
    }
}
