/* Font Face */
@font-face {
    font-family: 'iA Writer Duo';
    src: url('fonts/iAWriterDuoS-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mona Sans';
    src: url('fonts/Mona-Sans-Bold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'iA Writer Duo', 'IBM Plex Mono', monospace;
    line-height: 1.5;
    color: #1c1c1c;
    background-color: #fff;
}

/* Links */
a {
    color: #1c1c1c;
    text-decoration: underline;
}

a:hover {
    opacity: 0.7;
}


/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Main Layout - Two Columns */
.main-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 80px;
}

/* Logo Column */
.logo-column {
    position: sticky;
    top: 60px;
    align-self: start;
}

.logo {
    display: flex;
    flex-direction: column;
    font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.15;
}

.logo-line {
    display: block;
}

.logo .arrow {
    font-weight: 400;
}

.logo-image {
    max-width: 180px;
    height: auto;
}

.tagline {
    margin-top: 20px;
    font-size: 0.875rem;
    color: #1c1c1c;
}

/* Content Column */
.content-column {
    max-width: 700px;
}

/* Sections */
section {
    margin-bottom: 60px;
}

section h2 {
    font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

section h2 .arrow {
    height: 1.6em;
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Intro Section */
.intro-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #1c1c1c;
}

/* Featured Projects Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.featured-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.featured-card:hover {
    opacity: 0.8;
}

.featured-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

.featured-card h3 {
    font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.featured-card p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #1c1c1c;
    margin-bottom: 8px;
}

.featured-card .meta,
.meta {
    font-size: 0.8rem;
    color: #949494;
}

/* Clients Grid */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 45px;
    align-items: center;
}

.clients-grid img {
    height: 90px;
    width: auto;
    opacity: 1;
}

/* Other Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.projects-list a {
    display: block;
    text-decoration: none;
    color: inherit;
    font-size: 0.875rem;
    line-height: 1.6;
}

.projects-list a .project-title {
    text-decoration: underline;
    color: #1c1c1c;
}

.projects-list a:hover .project-title {
    opacity: 0.7;
}

.projects-list a .meta {
    color: #949494;
    text-decoration: none;
}

/* Team Section */
.team-grid {
    display: flex;
    gap: 40px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.team-member a {
    font-size: 0.875rem;
}

/* Tech and Contact Sections */
.tech-section p,
.contact-section p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.contact-section .cta {
    font-style: italic;
}

/* Site Footer */
.site-footer {
    background-color: #1c1c1c;
    color: #fff;
    padding: 20px 40px;
    font-size: 0.875rem;
}

/* ================================
   Project Detail Page Styles
   ================================ */

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    text-decoration: none;
    color: #1c1c1c;
    font-size: 0.875rem;
}

.back-link:hover {
    opacity: 0.7;
}

.project-detail {
    max-width: 700px;
}

.project-header {
    margin-bottom: 40px;
}

.project-header .meta {
    font-size: 0.875rem;
    color: #949494;
    margin-bottom: 10px;
}

.project-header h1 {
    font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.project-image {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.project-description {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #1c1c1c;
    font-size: 0.75rem;
    background: #fff;
}

.collaborators {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.external-link {
    display: inline-block;
    font-size: 0.875rem;
    margin-top: 20px;
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .logo-column {
        position: static;
    }

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

    .team-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        padding: 40px 20px;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1.25rem;
    }

    section h2 {
        font-size: 1.1rem;
    }

    .clients-grid {
        gap: 15px 25px;
    }

    .clients-grid img {
        height: 64px;
    }
}
