﻿/* =========================================================
   HISTORY â€“ FINAL EDITORIAL LAYOUT
========================================================= */

.history {
  display: grid;
  grid-template-columns: minmax(205px, 450px) 1fr;
  gap: 0;
  align-items: start;
}

/* ---------------------------------------------------------
   TITLE
--------------------------------------------------------- */

.history-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 120px, 155px);
  line-height: 0.87;
  font-weight: 300;
  color: var(--primary);
  text-transform: uppercase;
  padding-right: 40px;
  margin-top: 5px;
  margin-left: 20px;
}

/* ---------------------------------------------------------
   CONTENT WRAPPER
--------------------------------------------------------- */

.history-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 0;
}

/* ---------------------------------------------------------
   ROWS
--------------------------------------------------------- */

.history-row {
  display: grid;
  gap: 25px;
}

.history-row--top {
  grid-template-columns: repeat(3, 350px);
  justify-content: end;
}

.history-row--bottom {
  grid-template-columns: 400px repeat(3, 350px);
  justify-content: end;
}

/* ---------------------------------------------------------
   CARD
--------------------------------------------------------- */

.history-card {
  border: 1px solid #cc3333;
  border-radius: 18px;
  padding: 30px 28px 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  position: relative;
}

.history-arrow {
  position: absolute;
  right: 20px;
  bottom: 25px;
  width: 23px;
  height: 23px;
  object-fit: cover;
  pointer-events: none;
}

/* ---------------------------------------------------------
   NUMBER
--------------------------------------------------------- */

.history-number {
  font-family: var(--font-display);
  font-size: clamp(50px, 10vw, 115px);
  font-weight: 300;
  color: var(--primary);
  line-height: 1;
}

/* ---------------------------------------------------------
   LABEL
--------------------------------------------------------- */

.history-label {
  font-size: 24px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.35;
  font-family: var(--font-display);
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1200px) {
  .history {
    grid-template-columns: 1fr;
  }

  .history-content {
    margin-top: 0;
  }

  .history-row--top,
  .history-row--bottom {
    grid-template-columns: repeat(2, 1fr);
  }
  .history-title {
    font-size: clamp(72px, 72px, 155px);
  }
}

@media (max-width: 600px) {
  .history-row--top,
  .history-row--bottom {
    grid-template-columns: 1fr;
  }
}
