/* =========================================================
   Home page (content_home)
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  height: 800px;
  padding: 200px 0 100px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.hero__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.hero__intro { display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  white-space: nowrap;
  padding-bottom: 8px;
}
.hero__desc,
.hero__status {
  width: 412px;
  max-width: 100%;
  font-size: 16px;
  text-align: center;
  padding-bottom: 16px;
}

/* ---------- Sections ---------- */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding-bottom: 64px;
}
.section__title {
  width: 100%;
  font-size: 36px;
  font-weight: 400;
}
.row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Project card ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 616px;
  min-width: 450px;
  max-width: 800px;
  padding: 18px 16px 24px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}
.card:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.card__image {
  position: relative;
  width: 100%;
  height: 363px;
  min-height: 350px;
  max-height: 500px;
  background: var(--palm);
  border: 4px solid var(--bg);
  border-radius: 8px;
}
.card__stamp {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 72px;
  height: 72px;
  object-fit: cover;
  pointer-events: none;
}
.card__body { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.card__text { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.card__title { font-size: 24px; font-weight: 500; }
.card__desc { font-size: 16px; }

.tags { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.tag {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 240px;
  padding: 2px 8px 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Large card (card_project_large) */
.card--large {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 18.24px 16px;
}
.card--large .card__image {
  height: 525px;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1311px) {
  .row .card:not(.card--large) { width: calc((100% - 48px) / 2); min-width: 0; }
}
@media (max-width: 900px) {
  .row { flex-direction: column; gap: 36px; }
  .row .card:not(.card--large) { width: 100%; }
  .card--large .card__image { height: 363px; }
  .hero { height: auto; min-height: 560px; padding: 140px 0 64px; }
  .hero__title { white-space: normal; text-align: center; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 40px; }
  .section__title { font-size: 30px; }
  .card__image, .card--large .card__image { height: 240px; min-height: 0; }
}
