/* ==========================================================================
   Vitalii Bokhin — Project detail page stylesheet
   Shares the design tokens with home.css / header.css / footer.css
   (ink-navy surface, amber signal accent, teal secondary accent).
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Tokens (mirrors home.css — keep in sync if you update one)
   ------------------------------------------------------------------------- */
:root {
    --bg: #0b1220;
    --bg-raised: #101b2d;
    --bg-card: #0e1826;

    --ink: #edeef0;
    --ink-dim: #c7cbd6;
    --ink-muted: #8b93a7;
    --ink-faint: #5b6376;

    --amber: #f5a623;
    --amber-ink: #241804;
    --teal: #4fd1c5;

    --line: rgba(237, 238, 240, 0.09);
    --line-strong: rgba(237, 238, 240, 0.16);
    --line-amber: rgba(245, 166, 35, 0.35);

    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

    --container-w: 1080px;
    --radius: 10px;
    --radius-sm: 6px;
}

/* -------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2 {
    font-family: var(--font-display);
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--amber);
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: var(--amber);
    color: var(--amber-ink);
}

.btn-primary:hover {
    background: #ffb63d;
    transform: translateY(-1px);
}

.btn-arrow {
    transition: transform 0.15s ease;
}

/* -------------------------------------------------------------------------
   3. Project hero
   ------------------------------------------------------------------------- */
.project-hero {
    padding: 56px 0 0;
    border-bottom: 1px solid var(--line);
}

.back-link {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 32px;
    transition: color 0.15s ease;
}

.back-link:hover {
    color: var(--teal);
}

.project-hero h1 {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    max-width: 22ch;
}

.project-hero-subtitle {
    margin-top: 18px;
    font-size: 18px;
    color: var(--ink-dim);
    max-width: 62ch;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faint);
    text-transform: lowercase;
}

.meta-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.project-cover {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    background: var(--bg-raised);
}

.project-cover img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    opacity: 0.94;
}

@media (max-width: 640px) {
    .project-hero {
        padding-top: 40px;
    }

    .project-meta {
        gap: 20px;
        margin-top: 28px;
        padding-top: 20px;
    }

    .project-cover {
        margin-top: 32px;
    }
}

/* -------------------------------------------------------------------------
   4. Overview
   ------------------------------------------------------------------------- */
.project-overview {
    padding: 88px 0;
    border-bottom: 1px solid var(--line);
}

.overview-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 64px;
    align-items: start;
}

.overview-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.overview-body {
    font-size: 16px;
    color: var(--ink-dim);
    line-height: 1.8;
}

.overview-highlights {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.overview-highlights li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: var(--ink-dim);
    line-height: 1.6;
}

.overview-highlights li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-family: var(--font-mono);
    font-weight: 700;
}

.overview-sidebar {
    display: grid;
    gap: 24px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: sticky;
    top: 96px;
}

.sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--amber);
    text-transform: lowercase;
}

.sidebar-value {
    font-size: 14px;
    color: var(--ink-dim);
    line-height: 1.6;
}

.sidebar-link {
    justify-content: center;
    width: 100%;
}

@media (max-width: 860px) {
    .overview-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .overview-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .project-overview {
        padding: 56px 0;
    }
}

/* -------------------------------------------------------------------------
   5. Gallery
   ------------------------------------------------------------------------- */
.project-gallery {
    padding: 88px 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
}

.project-gallery h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    transition: border-color 0.15s ease;
}

.gallery-item:hover {
    border-color: var(--line-amber);
}

.gallery-item img {
    width: 100%;
    display: block;
}

.gallery-item figcaption {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--ink-muted);
    border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
    .project-gallery {
        padding: 56px 0;
    }

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

/* -------------------------------------------------------------------------
   6. Next project / CTA
   ------------------------------------------------------------------------- */
.project-next {
    padding: 72px 0;
}

.project-next-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-next-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.15s ease;
}

.project-next-link:hover {
    color: var(--amber);
}

.project-next-link:hover .btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .project-next {
        padding: 56px 0;
    }

    .project-next-link {
        font-size: 20px;
    }
}