.history-editorial {
  --ink: #082c23;
  --paper: #f3f0e6;
  --lime: #d4f34f;
  --muted: #496257;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
}
.history-editorial :is(h1,h2,h3,p,figure) { margin: 0; }
.history-editorial :is(h1,h2,h3) { font-family: "Arial Black", "Archivo Black", Arial, sans-serif; }
.history-editorial a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.history-editorial [id] { scroll-margin-top: 7rem; }
.history-container { width: min(1280px, 91%); margin-inline: auto; }
.history-editorial .history-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #092d23;
  color: #f8f6ec;
}
.history-hero-inner {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  grid-template-rows: auto auto 1fr auto;
  min-height: 690px;
  padding-block: clamp(38px, 6vw, 90px) 34px;
  isolation: isolate;
}
.history-hero-copy { grid-area: 1 / 1 / 4 / 7; position: relative; z-index: 2; align-self: start; }
.history-editorial .history-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.history-hero .history-label { color: var(--lime); }
.history-editorial h1 {
  font-size: clamp(70px, 12.6vw, 200px);
  font-weight: 950;
  letter-spacing: -.085em;
  line-height: .82;
  margin: 18px 0 27px;
  white-space: nowrap;
}
.history-editorial .history-route {
  font-size: clamp(30px, 4.3vw, 66px);
  letter-spacing: -.055em;
  line-height: .99;
  font-weight: 850;
  margin-bottom: 26px;
}
.history-editorial .history-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  min-height: 46px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 800;
  text-decoration: none;
}
.history-button:hover { filter: brightness(1.1); }
.history-hero-year {
  grid-area: 1 / 5 / 4 / 13;
  justify-self: end;
  align-self: start;
  z-index: -1;
  margin-top: -.18em;
  font: 950 clamp(160px, 30vw, 480px)/.8 "Arial Black", Arial, sans-serif;
  letter-spacing: -.11em;
  color: transparent;
  -webkit-text-stroke: 1px #98b5a0;
  opacity: .56;
  pointer-events: none;
}
.history-editorial .history-hero-photo {
  grid-area: 2 / 1 / 5 / 13;
  justify-self: center;
  width: min(100%, 850px);
  align-self: end;
  position: relative;
  margin-top: clamp(260px, 25vw, 365px);
  animation: history-enter .65s ease-out both;
}
.history-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.78;
  object-fit: cover;
  background: #214637;
  border: 2px solid var(--lime);
  box-sizing: border-box;
}
.history-editorial .history-hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: #dce8db;
  padding-top: 9px;
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.history-date {
  grid-area: 5 / 1 / 6 / 13;
  justify-self: center;
  margin-top: 18px;
  align-self: end;
  display: grid;
  gap: 3px;
  border-left: 2px solid var(--lime);
  padding-left: 14px;
  color: #f8f6ec;
}
.history-date time { font-size: clamp(19px, 2.5vw, 36px); font-weight: 900; letter-spacing: -.04em; }
.history-date span { color: #dce8db; font-size: .8rem; }
.history-index { background: var(--lime); }
.history-index .history-container { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.history-index a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 3px 10px;
  padding: 14px 16px;
  border-inline-start: 1px solid #082c2340;
  font-weight: 850;
  text-decoration: none;
  min-height: 48px;
}
.history-index a:last-child { border-inline-end: 1px solid #082c2340; }
.history-index a:hover { background: #e3fa87; }
.history-index a span { font-size: .75rem; font-weight: 700; }
.history-editorial .history-chapter,
.history-editorial .history-archive { padding: clamp(48px, 8vw, 115px) 0; }
.history-editorial .history-dark { background: var(--ink); color: var(--paper); }
.history-era { display: grid; justify-items: start; gap: 12px; border-top: 1px solid currentColor; padding-top: 16px; }
.history-era span { font-weight: 800; font-size: .77rem; letter-spacing: .14em; text-transform: uppercase; }
.history-era b {
  font-family: "Arial Black", "Archivo Black", Arial, sans-serif;
  font-size: clamp(104px, 24vw, 310px);
  font-weight: 950;
  letter-spacing: -.10em;
  line-height: .85;
  padding-right: .08em;
}
.history-dark .history-era b { color: var(--lime); }
.history-story { padding-block: clamp(26px, 5vw, 72px); min-width: 0; }
.history-story + .history-story { border-top: 1px solid #68807570; }
.history-story:last-child { padding-bottom: 0; }
.history-story-copy { max-width: 670px; min-width: 0; }
.history-opening .history-story-copy { margin-left: auto; }
.history-editorial .history-story h2 {
  color: inherit;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
  margin-bottom: 17px;
}
.history-editorial .history-story :is(p,blockquote) {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.62;
  margin: 0 0 14px;
  max-width: 65ch;
}
.history-story-copy a:not(.history-button) {
  display: inline-block;
  font-size: .95rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.history-story-copy a:hover { text-decoration-thickness: 3px; }
.history-dark .history-story-copy :is(.history-label,a) { color: var(--lime); }
.history-editorial .history-story blockquote {
  border-left: 3px solid currentColor;
  padding-inline-start: 14px;
  margin-top: 22px;
}
.history-story cite { display: block; font-size: .8rem; margin-top: 8px; }
.history-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(20px, 5vw, 76px);
}
.history-split.history-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
.history-flip .history-story-copy { grid-column: 2; grid-row: 1; }
.history-flip > :nth-child(2) { grid-column: 1; grid-row: 1; }
.history-split .history-gallery { display: block; margin: 0; }
.history-gallery { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: clamp(15px, 3vw, 36px); margin-top: 28px; align-items: center; }
.history-gallery .hv-photo { grid-column: span 5; }
.history-gallery .hv-photo:nth-child(4n+1), .history-gallery .hv-photo:nth-child(4n+4) { grid-column: span 7; }
.history-two .history-picture:first-child { grid-column: span 7; }
.history-two .history-picture:last-child { grid-column: span 5; }
.history-editorial :is(.history-picture,.hv-photo,.hv-uruguay-video) { min-width: 0; }
.history-story > .history-picture { margin-top: 28px; max-width: 850px; }
.history-split > .history-picture { margin-top: 0; }
.history-editorial :is(.history-picture,.hv-photo) img,
.history-editorial video { width: 100%; height: auto; display: block; }
.history-editorial video { aspect-ratio: 16 / 9; background: #020a07; }
.history-editorial .history-story figcaption {
  font-size: .78rem;
  padding: 8px 0;
  border-bottom: 1px solid #68807580;
}
.history-editorial .history-story .h-milestones {
  display: grid;
  gap: 16px;
  margin-block: 16px 22px;
}
.history-editorial .h-milestones article { border-top: 1px solid #68807580; padding-top: 10px; }
.history-editorial .h-milestones h3 { font-size: clamp(20px, 2.1vw, 29px); margin-bottom: 5px; }
.history-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 7%; margin-top: 42px; }
.history-notes .history-story { border-top: 1px solid #68807570; padding-block: 24px; }
.history-editorial .history-notes h2 { font-size: clamp(25px, 3.2vw, 45px); }
.history-editorial .history-archive { background: #e0e7cc; }
.history-editorial .history-archive .history-story { padding: 0; }
.history-editorial .history-reveal { animation: history-enter .62s cubic-bezier(.2,.7,.3,1) both; }
@keyframes history-enter { from { opacity: .4; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (min-width: 850px) {
  .history-gallery:not(.history-two) .hv-photo:nth-child(4n+2) { margin-top: 9%; }
  .history-gallery:not(.history-two) .hv-photo:nth-child(4n+3) { margin-bottom: 9%; }
}
@media (max-width: 760px) {
  .history-hero-inner { display: block; min-height: 0; padding-block: 36px 24px; position: relative; }
  .history-editorial h1 { font-size: clamp(52px, 16vw, 120px); margin-block: 15px 16px; }
  .history-editorial .history-route { font-size: clamp(30px, 8vw, 57px); margin-bottom: 18px; }
  .history-hero-year { position: absolute; top: 64px; right: 0; margin: 0; font-size: clamp(100px, 28vw, 195px); }
  .history-editorial .history-hero-photo { margin: 29px auto 18px; }
  .history-date { padding-left: 9px; }
  .history-index .history-container { grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .history-index a { padding: 8px 4.5vw; border-bottom: 1px solid #082c2340; }
  .history-split, .history-split.history-flip { display: grid; grid-template-columns: 1fr; }
  .history-flip > :is(.history-story-copy,:nth-child(2)) { grid-column: auto; grid-row: auto; }
  .history-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .history-gallery .hv-photo:nth-child(n), .history-two .history-picture:nth-child(n) { grid-column: auto; }
  .history-gallery .hv-photo:nth-child(4n+1), .history-gallery .hv-photo:nth-child(4n+4) { grid-column: span 2; }
  .history-split .history-gallery { display: grid; }
  .history-notes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .history-editorial *, .history-editorial *::before { animation: none !important; scroll-behavior: auto !important; }
}
.history-date {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 12px;
}
.history-date img { width: 31px; height: auto; grid-row: span 2; }
.history-date span { grid-column: 2; }
@media (max-width: 760px) {
  body.history-page header .head { display: flex; align-items: center; justify-content: space-between; }
  body.history-page header .head .menu { display: inline-flex; align-items: center; min-height: 44px; }
  body.history-page header .head #navigation:not(.open) { display: none; }
  body.history-page header .head #navigation.open { display: flex; }
}
