/* ==========================================================
   Projects page (projects.html)
   A vertical timeline of projects, grouped into stages.
   Shared header, tokens and utilities live in base.css.
   ========================================================== */

body {
  background-color: #e8e1cf;
  background-image: none;
}

/* ---------- Page ---------- */
.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

.intro {
  text-align: center;
  margin-bottom: 32px;
}

.intro h1 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.intro p {
  color: var(--color-ink-soft);
  margin-bottom: 16px;
}

.legend {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.load-message {
  text-align: center;
  font-style: italic;
  color: var(--color-ink-soft);
  margin-bottom: 24px;
}

/* ---------- Status stamps (text + color, never color alone) ---------- */
.status {
  display: inline-block;
  padding: 3px 10px;
  border: 2px solid currentColor;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.status.done {
  color: #166534;
}
.status.progress {
  color: #92400e;
}
.status.planned {
  color: #4b5563;
  border-style: dashed;
}

/* ==========================================================
   TIMELINE
   ========================================================== */
.timeline {
  list-style: none;
  position: relative;
  padding: 0 0 0 40px; /* room on the left for the line */
}

/* the vertical line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 3px;
  background-color: #b9a77c;
}

/* Stage headings along the line */
.stage-label {
  position: relative;
  margin: 32px 0 16px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--color-rule);
}

.stage-label:first-child {
  margin-top: 0;
}

/* square marker for each stage */
.stage-label::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 2px;
  width: 18px;
  height: 18px;
  background-color: var(--color-rule);
  border-radius: 3px;
}

/* ---------- Project card ---------- */
.project {
  position: relative;
  background-color: var(--color-manila);
  border: 1px solid #d6c595;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* dot on the line */
.project::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #e8e1cf; /* same as the page, so the line looks cut */
}

.project.done::before {
  background-color: #166534;
}
.project.progress::before {
  background-color: #d97706;
}
.project.planned::before {
  background-color: #e8e1cf;
  border-color: #6b7280;
}

/* planned projects look like blank cards waiting to be filled */
.project.planned {
  background-color: #faf6ea;
  border-style: dashed;
  box-shadow: none;
}

/* the client goal stands out */
.project.goal {
  border: 2px solid var(--color-red);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.project-no {
  font-weight: 700;
  color: var(--color-red);
}

.project h2 {
  font-size: 20px;
  margin-bottom: 2px;
}

.date {
  font-size: 13px;
  color: var(--color-ink-faded);
  margin-bottom: 10px;
}

.about {
  line-height: 1.6;
  margin-bottom: 12px;
}

.tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  border: 1px solid var(--color-rule);
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.links {
  margin-top: 14px;
  font-weight: 700;
}

/* ---------- SQL panel ---------- */
.under-hood {
  margin-top: 40px;
  background-color: #1f1d18;
  color: #e8e1cf;
  border-radius: 8px;
  padding: 24px;
}

.under-hood h2 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--color-amber);
}

.under-hood p {
  margin-bottom: 12px;
}

.under-hood pre {
  overflow-x: auto; /* long lines scroll instead of breaking the layout */
  background-color: #2b2924;
  border-radius: 6px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #a7f3d0;
}

/* ---------- Wider screens ---------- */
@media (min-width: 700px) {
  .intro h1 {
    font-size: 44px;
  }

  .project {
    padding: 24px 28px;
  }
}
