/* miris-project.net — Project Documentation Hub
   Palette:
     #f8f9fa Document White (background)
     #1a1a2e Studio Dark (text, headers)
     #6366f1 Project Indigo (accent)
     #e8eaed Module Border
     #6b7280 Caption Gray
     #10b981 Status Green
     #f3f4f6 Module Fill
   Fonts: Space Grotesk (display), Inter (body), JetBrains Mono (data)
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #1a1a2e;
    background: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mono {
    font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ----- Hero ----- */

.hero {
    background: #1a1a2e;
    color: white;
    padding: clamp(2rem, 5vh, 4rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: -1px -1px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-eyebrow {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: #e8eaed;
    margin-bottom: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.78;
}

.hero-eyebrow .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
    animation: pulse 2.4s ease-in-out infinite;
}

.hero-divider {
    color: #6366f1;
    font-weight: 500;
}

.hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0.4rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: #e8eaed;
    max-width: 640px;
    margin: 0 auto 1.6rem auto;
    line-height: 1.6;
    opacity: 0.85;
}

.hero-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    padding-top: 0.4rem;
}

.hero-meta .meta-text {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #a4a8b3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta .meta-text .mono {
    color: #e8eaed;
}

/* ----- Badges ----- */

.badge {
    display: inline-block;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    line-height: 1.6;
    letter-spacing: 0.01em;
    font-family: "Inter", sans-serif;
}

.badge-active {
    background: #10b981;
}

.badge-planned {
    background: #6366f1;
}

.badge-completed {
    background: #6b7280;
}

/* ----- Sticky Jump Nav ----- */

.jumpnav {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e8eaed;
    z-index: 50;
    padding: 8px 0;
    backdrop-filter: saturate(140%) blur(6px);
}

.jumpnav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    overflow-x: auto;
}

.jumpnav-link {
    display: inline-block;
    padding: 4px 12px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 4px;
    transition: color 180ms ease, background 180ms ease;
    white-space: nowrap;
}

.jumpnav-link:hover {
    color: #6366f1;
    background: #f3f4f6;
}

.jumpnav-link.is-active {
    color: #6366f1;
    background: #f3f4f6;
}

/* ----- Dashboard Grid ----- */

.dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 48px 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

/* ----- Module Block ----- */

.module {
    background: transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.module:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.module-header {
    background: #1a1a2e;
    color: white;
    padding: 10px 16px;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-icon {
    font-family: "Space Grotesk", sans-serif;
    color: #6366f1;
    font-size: 1.1rem;
    line-height: 1;
}

.module-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    letter-spacing: -0.005em;
    flex: 1;
}

.module-meta {
    color: #a4a8b3;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.module-body {
    background: #f3f4f6;
    border: 1px solid #e8eaed;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ----- Projects Module ----- */

.project-row {
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.project-name {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #1a1a2e;
}

.project-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.55;
}

.progress {
    width: 100%;
    height: 6px;
    background: #e8eaed;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 2px;
}

.progress-bar {
    height: 6px;
    background: #6366f1;
    border-radius: 3px;
    width: 0;
    transition: width 900ms cubic-bezier(0.22, 0.7, 0.2, 1);
}

.project-foot {
    color: #6b7280;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

/* ----- Team Module ----- */

.team-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-row {
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-initial {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: #1a1a2e;
    color: white;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.team-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.team-name {
    font-size: 0.9rem;
    color: #1a1a2e;
    font-weight: 500;
}

.team-role {
    color: #6b7280;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

/* ----- Timeline Module ----- */

.timeline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    padding-left: 6px;
}

.timeline-row {
    display: grid;
    grid-template-columns: 14px 1fr;
    align-items: start;
    gap: 12px;
    padding: 6px 0;
    position: relative;
}

.timeline-row::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 18px;
    bottom: -10px;
    width: 1px;
    background: #e8eaed;
}

.timeline-row:last-child::before {
    display: none;
}

.timeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e8eaed;
    border: 2px solid #f3f4f6;
    margin-top: 6px;
    box-shadow: 0 0 0 1px #e8eaed;
}

.timeline-row.current .timeline-dot {
    background: #10b981;
    box-shadow: 0 0 0 1px #10b981, 0 0 0 5px rgba(16, 185, 129, 0.18);
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline-date {
    color: #6b7280;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
}

.timeline-row.current .timeline-date {
    color: #10b981;
}

.timeline-event {
    font-size: 0.88rem;
    color: #1a1a2e;
    line-height: 1.5;
}

/* ----- Stack Module ----- */

.stack-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}

.stack-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #e8eaed;
    align-items: baseline;
}

.stack-row:last-child {
    border-bottom: none;
}

.stack-key {
    color: #6366f1;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
}

.stack-val {
    font-size: 0.88rem;
    color: #1a1a2e;
    line-height: 1.5;
}

/* ----- Releases Module ----- */

.release-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.release-row {
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.release-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.release-version {
    color: #1a1a2e;
    font-weight: 500;
    font-size: 0.9rem;
}

.release-date {
    color: #6b7280;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

.release-notes {
    font-size: 0.85rem;
    color: #1a1a2e;
    line-height: 1.55;
}

/* ----- Contact Module ----- */

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}

.contact-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #e8eaed;
    align-items: baseline;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-key {
    color: #6366f1;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
}

.contact-val {
    font-size: 0.88rem;
    color: #1a1a2e;
    line-height: 1.5;
}

.link {
    color: #1a1a2e;
    text-decoration: none;
    border-bottom: 1px solid #6366f1;
    transition: color 180ms ease, border-color 180ms ease;
    cursor: pointer;
}

.link:hover {
    color: #6366f1;
}

.contact-foot {
    color: #10b981;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    margin-top: 4px;
    min-height: 1em;
    transition: opacity 200ms ease;
    opacity: 0;
}

.contact-foot.is-visible {
    opacity: 1;
}

/* ----- Footer ----- */

.site-footer {
    border-top: 1px solid #e8eaed;
    background: white;
    padding: 24px 0 36px 0;
    margin-top: 16px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-line {
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.7;
}

.footer-line .mono {
    color: #1a1a2e;
}

.footer-meta {
    color: #6b7280;
    font-size: 0.78rem;
    margin-top: 4px;
}

/* ----- Animations ----- */

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08);
    }
}

/* ----- Responsive ----- */

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

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard {
        padding: 20px 16px 36px 16px;
    }

    .hero-inner {
        padding: 0 16px;
    }

    .jumpnav-inner {
        padding: 0 16px;
    }

    .footer-inner {
        padding: 0 16px;
    }

    .stack-row,
    .contact-row {
        grid-template-columns: 80px 1fr;
    }
}
