@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

:root {
    --bg-sidebar: #f5f5f5;
    --bg-main: #ffffff;
    --text-primary: #111111;
    --text-secondary: #888888;
    --text-tertiary: #b0b0b0;
    --border-color: #e0e0e0;
    --grid-gap: 16px;
    --sidebar-width: 260px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: var(--text-primary);
    background-color: var(--bg-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
aside {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-right: 1px solid var(--bg-sidebar);
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-header {
    margin-bottom: 32px;
}

.site-name {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
}

.nav-section {
    margin-bottom: 32px;
    flex-grow: 1;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

ul {
    list-style: none;
}

li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    transition: color 0.1s ease;
}

li a {
    color: inherit;
    text-decoration: none;
    display: block;
}

li:hover {
    color: var(--text-primary);
}

li.active {
    color: var(--text-primary);
}

.aside-footer {
    margin-top: auto;
    padding-top: 24px;
}

.footer-text {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Main */
main {
    flex: 1;
    padding: var(--grid-gap);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: var(--grid-gap);
}

@media (max-width: 1400px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.item {
    position: relative;
    background-color: var(--bg-sidebar);
    overflow: hidden;
    cursor: crosshair;
    display: block;
    text-decoration: none;
    color: inherit;
}

.item.tall { grid-row: span 2; }
.item.wide { grid-column: span 2; }
.item.large { grid-column: span 2; grid-row: span 2; }

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Text Block */
.item.text-block {
    background-color: #f9f9f9;
    padding: 24px;
    display: flex;
    flex-direction: column;
    cursor: default;
}

.text-block-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.text-block-content {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
}

.text-block-content p {
    margin-bottom: 12px;
}

/* Overlay */
.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.item:hover .item-overlay {
    opacity: 1;
}

.item:hover img {
    transform: scale(1.02);
}

.meta-top {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-family: monospace;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.meta-bottom {
    font-size: 14px;
    font-weight: 500;
}

.meta-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 400;
    line-height: 1.5;
}

/* Badge */
.badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.4);
    color: white;
    padding: 4px 6px;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    border-radius: 2px;
    backdrop-filter: blur(4px);
    z-index: 2;
    pointer-events: none;
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Present Page */
.present-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 32px);
}

.present-hero {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.present-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.present-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.present-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}

.present-title {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
}

.present-summary {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.present-detail {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-tertiary);
}

.cta-button {
    display: inline-block;
    align-self: flex-start;
    margin-top: 8px;
    padding: 10px 24px;
    background: var(--text-primary);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: #333;
}

/* Past Page */
.past-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.past-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: var(--bg-main);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.past-row:hover {
    background: var(--bg-sidebar);
}

.past-image {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 2px;
}

.past-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.past-info {
    flex: 1;
}

.past-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.past-desc {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.past-arrow {
    font-size: 16px;
    color: var(--text-tertiary);
    transition: color 0.15s ease;
    flex-shrink: 0;
}

/* Press Articles */
.press-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px 14px 40px;
    background: #fafafa;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.press-row:hover {
    background: var(--bg-sidebar);
}

.press-icon {
    flex-shrink: 0;
    color: var(--text-tertiary);
}

.press-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.press-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.press-meta {
    font-size: 11px;
    color: var(--text-tertiary);
}

.past-row:hover .past-arrow {
    color: var(--text-primary);
}

/* Bio Page */
.bio-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 48px;
}

.bio-content a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bio-content a:hover {
    color: #000;
}

.bio-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.logo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 16px;
    background: var(--bg-sidebar);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.logo-card:hover {
    background: #eee;
}

.logo-card img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: filter 0.2s ease;
}

.logo-card:hover img {
    filter: grayscale(0);
}

.logo-card span {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

/* Mobile nav bar */
.mobile-nav {
    display: none;
}

/* Touch: show overlay permanently on items since hover doesn't work */
@media (hover: none) {
    .item-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 40%, transparent 100%);
        justify-content: flex-end;
    }
    .meta-top {
        display: none;
    }
}

/* Tablet */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    aside {
        width: 100%;
        height: auto;
        position: relative;
        padding: 16px 16px 0;
        border-right: none;
        border-bottom: none;
        background-color: var(--bg-main);
    }
    .nav-section {
        display: none;
    }
    .aside-footer {
        display: none;
    }
    .sidebar-header {
        margin-bottom: 0;
    }
    .mobile-nav {
        display: flex;
        gap: 0;
        padding: 0 16px;
        background: var(--bg-main);
        border-bottom: 1px solid var(--border-color);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-nav a {
        flex-shrink: 0;
        padding: 12px 16px;
        font-size: 12px;
        font-weight: 500;
        color: var(--text-secondary);
        text-decoration: none;
        border-bottom: 2px solid transparent;
        transition: color 0.15s ease, border-color 0.15s ease;
    }
    .mobile-nav a.active {
        color: var(--text-primary);
        border-bottom-color: var(--text-primary);
    }
    main {
        padding: 16px;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .item.tall, .item.wide, .item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    .item.text-block {
        padding: 16px;
    }
    .text-block-header {
        margin-bottom: 10px;
    }
    .present-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
        padding-top: 8px;
    }
    .present-hero {
        aspect-ratio: 16 / 10;
    }
    .present-title {
        font-size: 28px;
    }
    .past-image {
        width: 80px;
        min-width: 80px;
    }
    .press-row {
        padding: 12px 16px 12px 24px;
    }
    .logo-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .logo-card {
        padding: 20px 8px;
    }
    .logo-card img {
        height: 40px;
    }
}

/* Small phone */
@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    .present-title {
        font-size: 24px;
    }
    .past-row {
        padding: 16px;
        gap: 16px;
    }
    .past-image {
        width: 64px;
        min-width: 64px;
    }
    .past-name {
        font-size: 13px;
    }
    .past-desc {
        font-size: 11px;
    }
    .logo-row {
        grid-template-columns: 1fr;
    }
    .bio-content {
        font-size: 13px;
        margin-bottom: 32px;
    }
    .page-header {
        margin-bottom: 20px;
    }
    .cta-button {
        width: 100%;
        text-align: center;
    }
}
