/* Side projects page. Same palette and glass cards as the landing page card (index.html). */
:root {
  --accent: #64b5f6;
  --accent-deep: #1e88e5;
  --warm: #ffa726;
  --text: #e6ebf5;
  --muted: #9aa6bd;
  --faint: #7d8aa3;
  --card: rgba(10, 14, 39, 0.62);
  --border: rgba(140, 180, 255, 0.18);
}

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #05070f;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Same artwork as the landing page, fixed and darker so the cards stay readable */
.backdrop {
  position: fixed;
  inset: 0;
  background: url('closed.jpg') center / cover no-repeat;
  background-image: image-set(url('closed.webp') type('image/webp'), url('closed.jpg') type('image/jpeg'));
  z-index: 0;
}

.vignette {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(5, 7, 15, 0.45) 0%, rgba(5, 7, 15, 0.85) 80%),
    linear-gradient(180deg, rgba(5, 7, 15, 0.35) 0%, rgba(5, 7, 15, 0.75) 100%);
  z-index: 1;
}

main {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 16px 56px;
}

a { color: var(--accent); text-underline-offset: 3px; }

.back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.95rem;
  text-decoration: none;
}

.back:hover, .back:focus-visible { text-decoration: underline; }

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #90caf9, var(--accent), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-note {
  color: var(--muted);
  margin-bottom: 28px;
}

.projects {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr));
  gap: 24px;
}

.projects li {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.projects li.featured { grid-column: 1 / -1; }

.project-head {
  font-weight: 700;
  font-size: 1.1rem;
}

.project-head a { text-decoration: none; }
.project-head a:hover, .project-head a:focus-visible { text-decoration: underline; }

.project-tag {
  margin-left: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--warm);
}

.projects p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.97rem;
}

.project-shot {
  order: -1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  margin-bottom: 16px;
  background: rgba(5, 7, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.85rem;
}
