/* ==========================================================================
   muriithi.studios
   ========================================================================== */

/* Font Faces
   ========================================================================== */

@font-face {
    font-family: 'iA Writer Quattro';
    src: url('fonts/iAWriterQuattroS-Regular.woff2') format('woff2'),
         url('fonts/iAWriterQuattroS-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iA Writer Quattro';
    src: url('fonts/iAWriterQuattroS-Italic.woff2') format('woff2'),
         url('fonts/iAWriterQuattroS-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'iA Writer Quattro';
    src: url('fonts/iAWriterQuattroS-Bold.woff2') format('woff2'),
         url('fonts/iAWriterQuattroS-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iA Writer Quattro';
    src: url('fonts/iAWriterQuattroS-BoldItalic.woff2') format('woff2'),
         url('fonts/iAWriterQuattroS-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'iA Writer Mono';
    src: url('fonts/iAWriterMonoS-Regular.woff2') format('woff2'),
         url('fonts/iAWriterMonoS-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iA Writer Mono';
    src: url('fonts/iAWriterMonoS-Bold.woff2') format('woff2'),
         url('fonts/iAWriterMonoS-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Base Reset
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Design Tokens
   ========================================================================== */

:root {
    /* Colors - Restrained monochrome */
    --color-bg: #fafafa;
    --color-bg-panel: #f5f5f5;
    --color-text: #1a1a1a;
    --color-text-secondary: #666666;
    --color-border: #e0e0e0;
    --color-accent: #1a1a1a;

    /* Typography */
    --font-body: 'iA Writer Quattro', 'SF Mono', 'Monaco', monospace;
    --font-mono: 'iA Writer Mono', 'SF Mono', 'Monaco', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Layout */
    --panel-left-width: 33.333%;
    --panel-right-width: 66.666%;
}

/* Body
   ========================================================================== */

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container - Two Panel Layout
   ========================================================================== */

.container {
    display: flex;
    min-height: 100vh;
}

/* Left Panel
   ========================================================================== */

.panel-left {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--panel-left-width);
    height: 100vh;
    padding: var(--space-lg);
    background-color: var(--color-bg);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.site-header {
    margin-bottom: var(--space-lg);
}

.site-name {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Navigation
   ========================================================================== */

.navigation ul {
    list-style: none;
}

.navigation li {
    margin-bottom: var(--space-sm);
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

/* Panel Footer
   ========================================================================== */

.panel-footer {
    margin-top: auto;
}

.year {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Right Panel
   ========================================================================== */

.panel-right {
    margin-left: var(--panel-left-width);
    width: var(--panel-right-width);
    min-height: 100vh;
    padding: var(--space-lg);
    padding-bottom: var(--space-xl);
}

/* Sections
   ========================================================================== */

.section {
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.section-opening {
    padding-top: var(--space-md);
    margin-bottom: var(--space-xl);
}

.opening-statement {
    font-size: 1.25rem;
    line-height: 1.5;
    max-width: 540px;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.section-content {
    font-size: 1rem;
    line-height: 1.7;
}

.section-content p {
    margin-bottom: var(--space-sm);
}

/* Position List
   ========================================================================== */

.position-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.position-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.position-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
}

.position-value {
    font-size: 1rem;
}

/* Principles & Verticals Lists
   ========================================================================== */

.principles-list,
.verticals-list {
    list-style: none;
}

.principles-list li,
.verticals-list li {
    margin-bottom: var(--space-xs);
    padding-left: var(--space-sm);
    position: relative;
}

.principles-list li::before,
.verticals-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 4px;
    height: 1px;
    background-color: var(--color-text-secondary);
}

/* Carousel
   ========================================================================== */

.section-gallery {
    max-width: none;
}

.carousel {
    position: relative;
    overflow: hidden;
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
    padding: 0 var(--space-lg);
}

.carousel-track {
    display: flex;
    gap: var(--space-md);
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 70%;
    max-width: 500px;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Placeholder images for mockup */
.placeholder-image {
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.carousel-counter {
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
}

.carousel-separator {
    margin: 0 0.25em;
}

/* Contact
   ========================================================================== */

.contact-link {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: border-color 0.2s ease;
}

.contact-link:hover {
    border-color: var(--color-text);
}

/* Responsive - Mobile
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --panel-left-width: 100%;
        --panel-right-width: 100%;
    }

    .container {
        flex-direction: column;
    }

    .panel-left {
        position: relative;
        width: 100%;
        height: auto;
        padding: var(--space-md);
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .site-header {
        margin-bottom: var(--space-md);
    }

    .navigation {
        margin-bottom: var(--space-md);
    }

    .navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .navigation li {
        margin-bottom: 0;
    }

    .panel-footer {
        display: none;
    }

    .panel-right {
        margin-left: 0;
        width: 100%;
        padding: var(--space-md);
    }

    .section {
        margin-bottom: var(--space-lg);
    }

    .opening-statement {
        font-size: 1.125rem;
    }
}

/* Custom Cursors
   ========================================================================== */

/* Arrow cursor SVGs encoded as data URIs */
.cursor-arrow-right {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M8 6 L22 16 L8 26' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 16 16, pointer;
}

.cursor-arrow-left {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M24 6 L10 16 L24 26' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 16 16, pointer;
}

.cursor-arrow-down {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M6 10 L16 24 L26 10' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 16 16, pointer;
}

.cursor-arrow-up {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M6 22 L16 8 L26 22' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 16 16, pointer;
}

/* Utility Classes
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
