/* projectStyle.css — the specifics of the long-form project page.
   The shared shell (background, topbar, bands, buttons, reveal) lives in style.css,
   which projects.html also loads. Nothing here uses a fixed pixel width: a fixed
   width plus padding is what made this page wider than a phone. */

.page-head {
    padding: clamp(34px, 6vw, 70px) 0 0;
}

.page-head h1 {
    font-size: clamp(26px, 4.6vw, 42px);
    color: #fff;
    letter-spacing: -0.01em;
}

.page-head p {
    margin-top: 8px;
    color: #a9a9c0;
    max-width: 62ch;
}

/* project directory as a chip row */
.directory {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.directory a {
    display: inline-block;
    padding: 8px 13px;
    font-size: 14px;
    text-decoration: none;
    color: #cfd6e6;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #33334f;
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.directory a:hover {
    background: rgba(47, 127, 196, 0.25);
    border-color: #4a5f80;
    color: #eaf4ff;
    transform: translateY(-2px);
}

/* one project card */
.project {
    margin-top: 26px;
    padding: 24px clamp(16px, 3vw, 28px);
    background: rgba(35, 35, 58, 0.88);
    border: 1px solid #33334f;
    border-radius: 14px;
    color: #dfe1ec;
    scroll-margin-top: 84px;
}

.project h3 {
    color: #8fd0ff;
    font-size: clamp(19px, 2.6vw, 25px);
    line-height: 1.25;
    margin-bottom: 12px;
}

/* his "What was used / Source Code" lines were bare <li> tags: make them chips */
.project > li {
    display: inline-block;
    list-style: none;
    margin: 4px 8px 8px 0;
    padding: 6px 11px;
    font-size: 14px;
    color: #b9bdd0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #3a3a5c;
    border-radius: 8px;
    word-break: break-word;
    max-width: 100%;
}

.project > li a { font-size: 14px; word-break: break-all; }

/* the write-up */
.case {
    margin-top: 12px;
    padding: 18px clamp(12px, 2.4vw, 20px);
    background: rgba(16, 16, 30, 0.6);
    border: 1px solid #2f2f4d;
    border-radius: 12px;
}

.case p {
    padding: 0 0 14px;
    font-size: 16px;
    line-height: 1.7;
    color: #dfe1ec;
}

.case p:last-child { padding-bottom: 0; }

.case strong { color: #8fd0ff; }

/* button row under each write-up */
.button {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button {
    padding: 9px 15px;
    font: inherit;
    font-size: 14px;
    color: #eaf4ff;
    background: rgba(47, 127, 196, 0.22);
    border: 1px solid #3f5f85;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

button:hover { background: rgba(47, 127, 196, 0.42); transform: translateY(-1px); }

/* media: one item visible at a time */
.project-images {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.project-images .video {
    width: 100%;
    max-width: 760px;
}

.project-images img,
.project-images video,
.project-images iframe {
    display: block;
    width: 100%;
    max-width: 760px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid #3a3a5c;
    border-radius: 12px;
    background: #0d0d1a;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.project-images iframe { border: 0; }

.buttons {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.buttons button:disabled {
    background: #2f7fc4;
    border-color: #2f7fc4;
    color: #fff;
    cursor: default;
    transform: none;
}

.page-foot {
    padding: clamp(40px, 7vw, 80px) 0 60px;
    text-align: center;
    color: #8f8fa8;
}

.page-foot a { font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
    .directory a:hover, button:hover { transform: none; }
}
