.history-page {
  --history-rule: #cfc4b3;
  --history-dim: #575246;
  background: var(--cream);
  color: var(--ink);
}
.history-page figure { margin: 0; }
.history-page h1, .history-page h2, .history-page h3, .history-page h4 {
  font-family: inherit;
  font-weight: 580;
  line-height: 1.05;
  letter-spacing: -.048em;
}
.history-page :is(h2, section[id], li[id]) { scroll-margin-top: 12px; }
.history-page .history-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 650 .76rem/1.4 Urbanist, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.history-label::before { content: ""; width: 29px; height: 1px; background: currentColor; }
.history-page .history-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  font-weight: 680;
  line-height: 1.3;
  text-decoration: none;
}
.history-page .history-button {
  width: fit-content;
  border-radius: 30px;
  padding: 14px 20px;
  background: var(--champagne);
  color: var(--ink);
}
.history-button span { font-size: 1.2rem; }
.history-page .history-button:hover { background: #fff5e6; }
.history-page .history-button svg { width: 18px; height: 18px; flex: none; }
.history-hero {
  background: radial-gradient(ellipse at 68% 20%, #342b20, transparent 57%), #181918;
  color: var(--cream);
  overflow: hidden;
}
.history-cover {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 100px);
  padding-block: clamp(54px, 7vw, 110px);
}
.history-cover-copy { min-width: 0; }
.history-cover-dates { padding-left: 12px; border-left: 1px solid #83745f; font-variant-numeric: tabular-nums; letter-spacing: .045em; }
.history-cover .history-label, .history-today .history-label { color: var(--champagne); }
.history-cover h1 {
  max-width: 16ch;
  margin: 24px 0;
  color: var(--cream);
  font-size: clamp(2.65rem, 5vw, 5.3rem);
  line-height: .97;
}
.history-cover h1 em { display: block; font-style: normal; color: var(--champagne); text-wrap: balance; }
.history-premiere { max-width: 47ch; margin-bottom: 12px; color: var(--champagne); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.4; }
.history-cover .history-lead {
  max-width: 48ch;
  margin-bottom: 26px;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.55;
  color: #e6e0d7;
}
.history-cover-image { position: relative; isolation: isolate; }
.history-cover-image::before {
  content: "";
  position: absolute;
  inset: -11px 12px 43px -11px;
  z-index: -1;
  border: 1px solid #897658;
  border-radius: 4px clamp(42px, 6vw, 98px) 4px 4px;
}
.history-cover-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.16;
  object-fit: cover;
  object-position: 50% 34%;
  border-radius: 3px clamp(40px, 6vw, 96px) 3px 3px;
}
.history-cover-image figcaption {
  margin-top: 12px;
  color: #dfceaf;
  font-size: .84rem;
  letter-spacing: .015em;
}
.history-origin {
  display: grid;
  grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
  gap: clamp(38px, 8vw, 130px);
  align-items: center;
  padding-block: clamp(60px, 8vw, 122px);
}
.history-imprint {
  position: relative;
  padding: clamp(23px, 4vw, 54px) clamp(20px, 3.6vw, 56px);
  border-block: 1px solid var(--history-rule);
  background: linear-gradient(110deg, #ece4d5, transparent);
}
.history-imprint::before {
  content: ""; position: absolute; inset: 13px auto 13px 7px;
  width: 2px; background: #ae9670;
}
.history-imprint p { line-height: .95; }
.history-imprint p span { display: block; color: var(--history-dim); font-size: .9rem; font-weight: 650; }
.history-imprint b { display: block; margin-top: 9px; font-size: clamp(3.3rem, 7.5vw, 7.1rem); font-weight: 500; letter-spacing: -.075em; }
.history-story h2, .history-timeline h2, .history-today h2 { font-size: clamp(2.15rem, 4vw, 4.05rem); }
.history-story > p { margin-top: 15px; max-width: 62ch; color: var(--history-dim); font-size: 1.08rem; }
.history-timeline { padding: clamp(50px, 7vw, 110px) 0; background: #f0ebe2; }
.history-timeline h2 { max-width: 16ch; }
.history-jumps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px 0 clamp(30px, 4vw, 64px);
  border-block: 1px solid var(--history-rule);
}
.history-jumps a {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 18px 32px 18px 16px;
  border-inline-start: 1px solid var(--history-rule);
  line-height: 1.25;
  color: #514839;
}
.history-jumps a:first-child { border-inline-start: 0; }
.history-jumps a:hover, .history-jumps a:focus-visible { background: #e6dece; }
.history-index-date { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 650; letter-spacing: -.045em; color: var(--ink); }
.history-index-arrow { position: absolute; top: 18px; right: 12px; color: #715a36; }
.history-era {
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(0,1.55fr);
  gap: clamp(32px, 6vw, 100px);
  padding-block: clamp(36px, 5vw, 78px);
  border-top: 1px solid #a69b88;
}
.history-era:last-child { padding-bottom: 0; }
.history-era-lead { position: sticky; top: 120px; align-self: start; }
.history-era-lead .history-label { color: #6c5533; }
.history-era-lead h3 { margin: 16px 0 0; max-width: 13ch; font-size: clamp(1.9rem, 3.1vw, 3.25rem); }
.history-events { margin: 0; padding: 0; list-style: none; }
.history-events > li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(55px, .24fr) minmax(0,1fr);
  gap: clamp(12px, 2.4vw, 36px);
  padding-left: 27px;
  padding-bottom: clamp(32px, 4vw, 60px);
  border-left: 1px solid #bba98b;
}
.history-events > li:last-child { border-color: transparent; padding-bottom: 0; }
.history-events > li::before {
  position: absolute;
  content: "";
  width: 9px; height: 9px;
  left: -5px; top: .64em;
  background: #786344;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #f0ebe2;
}
.history-events > li > time {
  padding-top: 1px;
  color: #6c5533;
  font-size: clamp(1.1rem, 1.7vw, 1.6rem);
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.history-event-copy h4 { margin: 0 0 9px; font-size: clamp(1.35rem, 2.1vw, 2rem); font-weight: 650; letter-spacing: -.035em; }
.history-event-copy > p { line-height: 1.62; color: var(--history-dim); font-size: 1.06rem; }
.history-era-photo { padding-top: 24px; max-width: 360px; }
.history-era-photo img {
  width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover;
  border-radius: 2px 34px 2px 2px;
}
.history-era-photo figcaption {
  display: flex; gap: 10px; align-items: center;
  margin-top: 9px; font-size: .82rem; color: var(--history-dim);
}
.history-era-photo figcaption::before { content: ""; width: 19px; height: 1px; background: #9c835a; }
.history-event-copy .history-interface { margin-top: 22px; }
.history-interface img {
  display: block; width: 100%; height: auto; padding: 5px;
  border: 1px solid #5d574e; border-radius: 12px; background: #232421;
  box-shadow: 0 8px 16px -12px #382817;
}
.history-interface figcaption { margin-top: 10px; color: var(--history-dim); font-size: .85rem; line-height: 1.45; }
.history-store-panel {
  padding: clamp(14px, 2vw, 24px); margin-top: 20px; border-radius: 15px;
  background: #1e2422; color: #f6ead9; text-align: center;
}
.history-store-panel .footer-app-stores { flex-direction: row; align-items: start; flex-wrap: wrap; gap: 8px; }
.history-store-panel > p { margin: 13px auto 0; max-width: 42ch; color: #ddd2c2; font-size: .85rem; line-height: 1.5; }
.history-today { background: #18201d; color: var(--cream); padding-block: clamp(52px, 7vw, 104px); }
.history-today-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.history-today-grid > img { width: 100%; height: auto; aspect-ratio: 1.3; object-fit: cover; border-radius: 3px 3px 3px 55px; }
.history-today h2 { margin: 18px 0; color: var(--cream); }
.history-today h2 + p { font-size: 1.08rem; color: #e4e1d9; margin-bottom: 22px; }
@media (max-width: 800px) {
  .history-cover { gap: 30px; }
  .history-cover h1 { font-size: clamp(2.25rem, 5vw, 3rem); }
  .history-origin { grid-template-columns: 1fr 1.5fr; gap: 30px; }
  .history-era { grid-template-columns: minmax(0,.64fr) minmax(0,1.45fr); gap: 24px; }
}
@media (max-width: 640px) {
  .history-cover, .history-origin, .history-era, .history-today-grid { grid-template-columns: 1fr; }
  .history-cover { padding-block: 39px 30px; gap: 36px; }
  .history-cover h1 { max-width: 18ch; font-size: clamp(2.05rem, 8.5vw, 3.3rem); margin-block: 14px; }
  .history-cover .history-lead { margin-bottom: 18px; }
  .history-page .history-cover-image { margin-left: 8px; }
  .history-cover-image img { aspect-ratio: 1.35; }
  .history-origin { gap: 26px; padding-block: 42px; }
  .history-era-lead { position: static; }
  .history-era-lead h3 { max-width: 23ch; margin-top: 9px; }
  .history-jumps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .history-jumps a { padding: 13px 23px 13px 10px; font-size: .89rem; }
  .history-jumps a:nth-child(odd) { border-inline-start: 0; }
  .history-jumps a:nth-child(n+3) { border-top: 1px solid var(--history-rule); }
  .history-index-arrow { right: 7px; top: 13px; }
  .history-era-photo { max-width: 100%; padding-top: 15px; }
  .history-era-photo img { aspect-ratio: 2.2; }
  .history-store-panel .footer-app-stores { align-items: center; }

  .history-events { margin-left: 5px; }
  .history-events > li { grid-template-columns: 1fr; gap: 6px; padding-left: 22px; }
  .history-events > li > time { font-size: 1rem; }
  .history-events > li::before { top: .4em; }
  .history-today-grid > img { aspect-ratio: 1.65; }
}
@media print {
  .history-page * { color: black !important; }
  .history-hero, .history-today, .history-timeline, .history-store-panel { background: white; }
  .history-page .history-button, .history-jumps { display: none; }
  .history-era-lead { position: static; }
  .history-events > li { break-inside: avoid; }
}
