/* Consolidated site styles (migrated from partials/head/css.html and tags/list.html) */

:root{
    --mono-font: "Berkeley Mono", "JetBrains Mono", "Fira Code",
        San Francisco Mono, Monaco, "Consolas", "Lucida Console", "DejaVu Sans Mono",
        "Bitstream Vera Sans Mono", monospace;
    --sans-font: -apple-system, BlinkMacSystemFont, "avenir next", avenir,
        helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial,
        sans-serif
}

a.front-page-title{
    display:block;
    font-weight:900;
    padding-bottom:5px;
    text-decoration:none
}

a.front-page-title:hover{
    text-decoration:underline
}

body{
    color:#111;
    margin:0 auto;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
    line-height:1.6;
    font-size:1rem;
    font-family:var(--sans-font)
}

.only-print{
    display:none
}

.body img{
    width:100%;
    height:auto;
    max-width:640px
}

a{
    color:#000;
    text-decoration-skip-ink:auto
}

a:visited{
    color:#333
}

ul{
    margin:1rem 0
}

ul ul{
    margin:0
}

br{
    line-height:1em
}

h1, h2{
    margin-top:0;
    margin-bottom:.75rem;
    line-height:1.3;
    font-weight:600;
    font-size:1.2rem;
    letter-spacing:.009em
}

.limiter{
    max-width:640px;
    padding-left:20px;
    padding-right:20px;
    margin-left:auto;
    margin-right:auto
}

.pad2y{
    padding-top:20px;
    padding-bottom:20px
}

.writing{
    display:grid;
    grid-column-gap:5px;
    grid-row-gap:5px;
    grid-template-columns:1fr min-content
}

.writing a{
    font-weight:500;
    letter-spacing:-.015em
}

.writing>div{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}

.writing time{
    padding-right:.25em;
    color:#333;
    font-variant-numeric:tabular-nums;
    letter-spacing:-.012em;
    white-space:pre
}

.body li{
    list-style-type:"-  "
}

@media screen and (max-width:640px){
    .limiter{
        width:auto
    }
    .writing{
        grid-template-columns:1fr;
        grid-row-gap:0
    }
    .writing div{
        white-space:normal
    }
    .writing time{
        padding-bottom:20px
    }
}

@media screen and (min-width:640px){
    .nu a{
        text-decoration:none
    }
    .nu a:hover{
        text-decoration:underline
    }
}

@media screen and (max-width:1024px){
    .header-wrap{
        border-bottom:1px solid #000;
        padding-bottom:20px
    }
}

@media screen and (min-width:1025px){
    .header{
        position:absolute;
        top:42px;
        right:50%;
        margin-right:340px!important;
        letter-spacing:-.009em
    }
}

@media print{
    .no-print{
        display:none
    }
    .only-print{
        display:block
    }
    body{
        margin:0
    }
    .limiter{
        max-width:100%!important;
        margin:0!important;
        padding:0!important
    }
}

.external-link::after {
    content: "↗";
    font-size: 0.8em;
    margin-left: 0.2em;
    opacity: 0.7;
}

.company {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tech-stack {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: var(--mono-font);
}

.project-links {
    margin-top: 0.5rem;
}

.project-link {
    display: inline-block;
    margin-right: 1rem;
    padding: 0.25rem 0.5rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.85rem;
    color: #333;
}

.project-link:hover {
    background-color: #e5e5e5;
    text-decoration: none;
}

/* Navigation highlighting */
.nav-active {
    font-weight: 600;
    color: #000;
}

/* Timeline styles */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 0;
    padding: 0.5rem 0;
    border-bottom: 0.5px dashed #ddd;
}

.timeline-item:last-child {
    border-bottom: none;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.title-row h4 {
    margin: 0;
    flex: 1;
}

.timeline-item h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-item h4 a {
    text-decoration: none;
    color: inherit;
}

.timeline-item h4 a:hover {
    text-decoration: underline;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.event-meta span {
    display: inline-block;
    padding: 0;
}

.event-meta .organization {
    font-weight: 500;
    color: #333;
}

/* Event detail page styling */
.event-detail {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-single {
    position: relative;
    margin: 2rem 0;
    padding: 0;
    border-left: 1px dashed #ddd;
    padding-left: 1rem;
}

.event-single h1 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.event-details span {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.event-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #eee;
}

.event-link {
    display: inline-block;
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #333;
    transition: background-color 0.2s;
}

.event-link:hover {
    background: #e5e5e5;
    text-decoration: none;
}

.event-content {
    margin-top: 1.5rem;
    line-height: 1.6;
}

.event-content p {
    margin-bottom: 1rem;
}

@media screen and (max-width: 640px) {
    .event-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .event-single {
        padding-left: 0.75rem;
        margin: 1rem 0;
    }
    
    .event-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Project Grid Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-item {
    display: flex;
    flex-direction: column;
}

.project {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.project:hover {
    opacity: 0.8;
}

.project img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    line-height: 1.2;
}

.project-desc {
    display: block;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
}

.project-tags {
    display: block;
    color: #888;
    font-size: 0.75rem;
    line-height: 1.2;
    font-style: italic;
}

@media screen and (max-width: 640px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project {
        padding: 1rem;
    }
    
    .project img {
        height: 150px;
    }
}

/* Project Detail Page Styles */
.project-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.project-description {
    font-size: 1.1rem;
    color: #666;
    margin: 1rem 0 2rem 0;
    line-height: 1.6;
}

.project-image {
    margin: 2rem 0;
    text-align: center;
}

.project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-links {
    margin: 2rem 0;
    text-align: center;
}

.project-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.project-link:hover {
    background-color: #333;
}

.project-content {
    margin-top: 2rem;
    line-height: 1.6;
}

.project-content p {
    margin-bottom: 1rem;
}

/* Front Page Images - Auto-fit masonry style */
.front-page-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.front-page-images > div {
    border-radius: 4px;
    height: fit-content;
}

.front-page-images img {
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.3s ease;
    display: block;
    filter: grayscale(100%);
}

.front-page-images img:hover {
    filter: grayscale(0%);
}

@media screen and (max-width: 640px) {
    .front-page-images {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.25rem;
    }
}

/* Photo Detail Page Styles */
.photo-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.photo-meta {
    margin: 1rem 0 2rem 0;
    color: #666;
    font-size: 0.9rem;
}

.photo-meta time {
    display: block;
    margin-bottom: 0.5rem;
}

.copyright {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

.photo-image {
    margin: 2rem 0;
    text-align: center;
}

.photo-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-specs-container {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.photo-specs {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.spec-label {
    color: #666;
}

.photo-specs strong {
    color: #000;
}

.photo-content {
    margin-top: 2rem;
    line-height: 1.6;
}

.photo-content p {
    margin-bottom: 1rem;
}

/* Photo detail pages - show original color */
.photo-detail img {
    filter: none;
}

/* Year sections for events */
.year-section {
    margin-bottom: 3rem;
}

.year-header {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

/* Event Tags Styling */
.tag-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-link {
    font-size: 0.75rem;
    color: #666;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    transition: all 0.2s ease;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.tag-link:hover {
    color: #666;
    text-decoration: underline;
    text-decoration-style: dashed;
    background: rgba(0, 0, 0, 0.05);
}

/* Event Type Indicator */
.event-type-indicator {
    margin: 0.5rem 0 1rem 0;
}

.event-type-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid;
    transition: all 0.2s ease;
}

.event-type-badge.training {
    background: #f5f5f5;
    color: #333;
    border-color: #666;
}

.event-type-badge.talk {
    background: #f0f0f0;
    color: #333;
    border-color: #666;
}

.event-type-badge.workshop {
    background: #f8f8f8;
    color: #333;
    border-color: #666;
}

.event-type-badge.conference {
    background: #f2f2f2;
    color: #333;
    border-color: #666;
}

.event-type-badge.panel {
    background: #f7f7f7;
    color: #333;
    border-color: #666;
}

.event-type-badge.default {
    background: #f5f5f5;
    color: #666;
    border-color: #999;
}

/* Tag pages (from tags/list.html) */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 1rem;
}

.tag-button {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 0.3rem 0.6rem;
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.tag-button:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.tag-count {
    color: #666;
    font-size: 0.7rem;
    margin-left: 0.2rem;
}

.no-tags {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.tag-content {
    margin-top: 2rem;
}

.tag-section {
    margin-bottom: 2rem;
}

.tag-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.organization, .company, .location, .audience, .duration, .description {
    color: #666;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.links {
    margin-left: 0.5rem;
}

.links a {
    color: #007bff;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

.no-content {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.blog-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.blog-note a {
    color: #333;
    text-decoration: none;
}

.blog-note a:hover {
    text-decoration: underline;
}

.event-types-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.event-types-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}
