/* projects.css
   Minimal projects list: titles only, details revealed on hover (pointer devices)
   or on click/tap (pins the row open). Base theme + variables live in style.css. */

.projects-container {
    max-width: 720px;
}

.proj-hint {
    font-size: 0.8rem;
    color: #8a7565;
    margin-bottom: 1.25rem;
}

.dark .proj-hint { color: #9c8676; }

.proj-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* row: just the title */
.proj-title {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
    margin: 0;
    background: none;
    border: 0;
    font: inherit;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.proj-title:focus-visible {
    outline: 1px solid var(--link-color);
    outline-offset: 4px;
}

.proj-name {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.15s ease;
}

/* collapsible body: animates grid rows 0fr -> 1fr */
.proj-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.proj-inner {
    min-height: 0;
    overflow: hidden;
}

.proj-inner p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #6b5749;
    margin: 0 0 0.55rem;
    max-width: 60ch;
}

.proj-inner > p:first-child { margin-top: 0.25rem; }
.proj-inner > p:last-child  { margin-bottom: 0.9rem; }

.dark .proj-inner p { color: #b6a595; }

.proj-inner p b { color: var(--text-color); font-weight: 600; }

.proj-tags {
    font-size: 0.74rem !important;
    color: #9c8676 !important;
}

.dark .proj-tags { color: #7f6c5e !important; }

.proj-links {
    font-size: 0.82rem !important;
}

/* open states: pinned via click, keyboard focus, or hover on pointer devices */
.proj.is-open .proj-body,
.proj:focus-within .proj-body {
    grid-template-rows: 1fr;
}

.proj.is-open .proj-name,
.proj:focus-within .proj-name {
    color: var(--link-color);
}

@media (hover: hover) and (pointer: fine) {
    .proj:hover .proj-body { grid-template-rows: 1fr; }
    .proj:hover .proj-name { color: var(--link-color); }
}

@media (prefers-reduced-motion: reduce) {
    .proj-body { transition: none; }
}
