/* ==========================================================================
   PROJECTS HUB — Editorial Catalog
   Classic, professional single-column index of work.
   Palette + double-border index-card motif preserved from original.
   ========================================================================== */

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
.hero {
  text-align: center;
  max-width: 880px;
  margin: 28px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .eyebrow {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: #5c5f3f;
  margin-bottom: 16px;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  color: #212918;
  margin-bottom: 12px;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.title-rule {
  width: 92px;
  height: 3px;
  background-color: #212918;
  margin: 0 auto 6px;
}

.title-rule-thin {
  width: 92px;
  height: 1px;
  background-color: rgba(43, 51, 31, 0.3);
  margin: 0 auto 32px;
}

.note-card {
  background-color: #efe8d3;
  color: #212918;
  border: 1px solid #ddd3ae;
  border-radius: 4px;
  padding: 32px 38px;
  position: relative;
  box-shadow: 0 14px 30px rgba(43, 51, 31, 0.18);

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.note-card::before {
  content: "";
  position: absolute;
  top: 9px; left: 9px; right: 9px; bottom: 9px;
  border: 1px solid rgba(43, 51, 31, 0.15);
  border-radius: 2px;
  pointer-events: none;
}

.architecture-note {
  font-size: 1.03rem;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
  color: #2d3620;
}

/* ==========================================================================
   Projects List
   ========================================================================== */
.projects-section {
  width: 100%;
  max-width: 920px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  margin: 0 0 72px 0;
}

.projects-content {
  max-width: 880px;
  width: 100%;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* ----------------------------------------------------------------
   Project card — numeral column + body
   ---------------------------------------------------------------- */
.project-card {
  background-color: #efe8d3;
  border: 1px solid #ddd3ae;
  border-radius: 4px;
  padding: 28px 34px 26px;
  position: relative;
  box-shadow: 0 10px 24px rgba(43, 51, 37, 0.16);

  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 26px;
  align-items: start;

  transition: transform 0.2s ease, box-shadow 0.2s ease;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 9px; left: 9px; right: 9px; bottom: 9px;
  border: 1px solid rgba(43, 51, 31, 0.12);
  border-radius: 2px;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(43, 51, 37, 0.24);
}

.project-number {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -1px;
  color: #8f9664;
  padding-top: 4px;
}

.project-body {
  min-width: 0;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.project-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.3px;
  color: #1e2319;
  margin: 0;
}

/* Status — archival ink stamp */
.status-badge {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: transparent;
  transform: rotate(-3deg);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.9;
}

.status-live { color: #8a3b2b; background: rgba(138, 59, 43, 0.05); }
.status-beta { color: #8a6a2b; background: rgba(138, 106, 43, 0.05); }
.status-upcoming { color: #5c5f3f; background: rgba(92, 95, 63, 0.05); }

.card-rule {
  height: 1px;
  background-color: rgba(43, 51, 31, 0.22);
  margin: 16px 0 18px;
}

/* Metadata row — label + tech stack */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  margin-bottom: 16px;
}

.meta-label {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #5c5f3f;
}

.meta-tech {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #2d3620;
  opacity: 0.85;
}

.project-desc {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #2d3620;
  margin: 0 0 24px 0;

  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.card-action {
  display: flex;
  justify-content: flex-end;
}

.record-link {
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #212918;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0 0 3px 0;
  border-bottom: 1px solid rgba(33, 41, 24, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.record-link .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.record-link:hover {
  color: #8a3b2b;
  border-bottom-color: currentColor;
}

.record-link:hover .arrow {
  transform: translateX(4px);
}

.disabled-link {
  opacity: 0.42;
  cursor: not-allowed;
  border-bottom-style: dashed;
}

.disabled-link:hover {
  color: #212918;
  border-bottom-color: rgba(33, 41, 24, 0.55);
}

.disabled-link:hover .arrow {
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .card-top {
    flex-direction: row;
    align-items: center;
  }

  .status-badge {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .hero {
    margin: 16px 15px 40px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .note-card {
    padding: 24px 22px;
  }
  
  .card-top {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .status-badge {
    font-size: 0.58rem;
    padding: 3px 8px;
  }

  .project-card {
    grid-template-columns: 1fr;
    row-gap: 4px;
    padding: 22px 22px 22px;
  }

  .project-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .project-number {
    font-size: 1.3rem;
    line-height: 1.3;
    letter-spacing: 0;
    padding-top: 0;
    flex-shrink: 0;
  }

  .project-body {
    flex: 1;
    min-width: 0;
  }

  .project-title {
    font-size: 1.3rem;
  }
}
