/* Chronicle: the story so far, in year chapters (chronicle mode). */

/* Personal chronology: generous year chapters and image-led stories. */
.chronicle-mode {
  background: var(--midnight);
}
.chronicle-mode main {
  color: #f2e9dd;
  padding-top: 48px;
  max-width: 1600px;
}
.chronicle-mode footer {
  color: var(--sand);
  border-color: var(--line-dark);
}
.chronicle-mode footer span,
.chronicle-mode footer button {
  color: #bec0cb;
}
.chronicle-mode dialog {
  color: var(--ink);
}
.chronicle-opening h1 {
  font-size: clamp(58px, 5.8vw, 90px);
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 25px 0 20px;
  color: #f4eadd;
}
.chronicle-opening h1 em {
  font-weight: 400;
  color: #d1ad82;
}
.chronicle-opening > p {
  font: 24px var(--serif);
  line-height: 1.45;
  color: #c3bdc1;
  margin: 0;
}
.chronicle-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
}
.chronicle-toolbar > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chronicle-filter {
  font-size: 9px;
  padding: 9px 12px;
  border: 1px solid #4b4b53;
  color: #c7c1c4;
  border-radius: 2px;
}
.chronicle-filter.active {
  background: #d5b58d;
  border-color: #d5b58d;
  color: #231e20;
}
.chronicle-order {
  font-size: 10px;
  color: #d5bc9c;
  white-space: nowrap;
  padding: 11px 0;
}
.chronicle-year-nav {
  display: flex;
  align-items: center;
  gap: 23px;
  border-bottom: 1px solid #47434a;
  border-top: 1px solid #47434a;
  padding: 17px 0;
  margin: 30px 0 0;
  flex-wrap: wrap;
}
.chronicle-year-nav > span {
  font-size: 7px;
  letter-spacing: 2px;
  color: #c2a27d;
}
.chronicle-year-nav > button {
  font: 23px var(--serif);
  color: #e2cfb5;
  padding: 2px 0;
}
.chronicle-year-nav > a {
  margin-left: auto;
  color: #d2b28c;
  font-size: 9px;
}
.chronicle-body {
  padding-top: 35px;
}
.chronicle-year {
  scroll-margin-top: 25px;
  margin-bottom: 68px;
}
.chronicle-year-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 23px;
  padding: 0 0 10px;
  border-bottom: 1px solid #3d3d46;
}
.chapter-number {
  font-size: 7px;
  letter-spacing: 2.4px;
  color: #c6a078;
}
.chronicle-year-heading h2 {
  font: 115px var(--serif);
  line-height: 1;
  margin: 9px 0 0;
  letter-spacing: -3px;
  color: #ead8bd;
}
.chronicle-year-heading > div:last-child {
  text-align: right;
  padding-bottom: 7px;
  max-width: 45%;
}
.chapter-count {
  font: 28px var(--serif);
  color: #ead7bc;
}
.chronicle-year-heading p {
  font-size: 9px;
  color: #c5bec1;
  line-height: 1.9;
  margin: 8px 0 0;
}
.chronicle-story-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 230px;
  gap: 18px;
  grid-auto-flow: dense;
}
.chronicle-story {
  grid-column: span 5;
  position: relative;
  padding: 0;
  text-align: left;
  background: #202837;
  overflow: hidden;
  border: 1px solid #8d745345;
  min-width: 0;
}
.chronicle-story.chapter-lead {
  grid-column: span 7;
  grid-row: span 2;
}
.chronicle-story-grid.count-2 {
  grid-auto-rows: 460px;
}
.count-2 .chronicle-story.chapter-lead {
  grid-row: span 1;
}
.chronicle-story-grid.count-1 {
  grid-auto-rows: 470px;
}
.count-1 .chronicle-story.chapter-lead {
  grid-column: span 12;
  grid-row: span 1;
}
.chronicle-photo {
  position: absolute;
  inset: 0;
}
.chronicle-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #101724f2 0%, #10172480 37%, #10172400 75%);
}
.chronicle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition:
    transform 1s,
    filter 1s;
}
.chronicle-story:hover img {
  transform: scale(1.045);
  filter: saturate(1);
}
.chronicle-category {
  position: absolute;
  left: 23px;
  top: 20px;
  background: #101724b8;
  border: 1px solid #dbc4a150;
  color: #f1d8b6;
  padding: 7px 10px;
  font-size: 7px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  z-index: 2;
}
.chronicle-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid #dbc4a170;
  color: #f4dfc3;
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
}
.chronicle-story-copy {
  position: absolute;
  bottom: 22px;
  left: 24px;
  right: 24px;
  z-index: 2;
}
.chronicle-story-copy h3 {
  font: 29px var(--serif);
  line-height: 1.1;
  color: #f8eddf;
  margin: 0 0 9px;
  overflow-wrap: anywhere;
}
.chapter-lead .chronicle-story-copy h3 {
  font-size: 43px;
}
.chronicle-story-copy > p {
  font-size: 10px;
  line-height: 1.8;
  color: #e0d6cf;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 490px;
}
.chapter-lead .chronicle-story-copy > p {
  font: 19px var(--serif);
  line-height: 1.55;
  -webkit-line-clamp: 3;
  margin-top: 15px;
  max-width: 510px;
}
.chronicle-story-copy > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 8px;
  color: #dfc6a4;
  line-height: 1.7;
  margin-top: 15px;
  border-top: 1px solid #c8b39340;
  padding-top: 12px;
}
.chronicle-story-copy > div > span:last-child {
  white-space: nowrap;
}
.chronicle-end {
  text-align: center;
  border-top: 1px solid #534535;
  padding: 47px 0 40px;
}
.chronicle-end > span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #c4a075;
}
.chronicle-end h2 {
  font: 46px var(--serif);
  color: #efe1ce;
  margin: 18px 0 25px;
}
.chronicle-end .button {
  color: #e7cbaa;
  border-color: #8d775b;
  background: transparent;
}
.chronicle-disclosure {
  font-size: 9px;
  line-height: 1.9;
  color: #b8b1bb;
  text-align: center;
  max-width: 740px;
  margin: 15px auto 0;
}
@media (max-width: 1100px) {
  .chronicle-story-copy > div {
    display: block;
  }
  .chronicle-story-copy > div > span:last-child {
    display: none;
  }
  .chronicle-year-heading h2 {
    font-size: 95px;
  }
}
@media (max-width: 900px) {
  .chronicle-story-grid {
    grid-auto-rows: 240px;
    gap: 14px;
  }
  .chapter-lead .chronicle-story-copy h3 {
    font-size: 33px;
  }
  .chapter-lead .chronicle-story-copy > p {
    font-size: 17px;
  }
  .chronicle-story-copy {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }
  .chronicle-story-copy h3 {
    font-size: 25px;
  }
  .chronicle-category {
    left: 17px;
    top: 17px;
    font-size: 6px;
  }
  .chronicle-arrow {
    right: 14px;
    top: 14px;
  }
  .chronicle-year-nav {
    gap: 18px;
  }
  .chronicle-opening h1 {
    font-size: 65px;
  }
}
@media (max-width: 640px) {
  .chronicle-mode main {
    padding: 32px 20px 20px;
  }
  .chronicle-opening h1 {
    font-size: 54px;
    line-height: 1.06;
    letter-spacing: -1px;
  }
  .chronicle-opening > p {
    font-size: 22px;
  }
  .chronicle-toolbar {
    display: block;
    margin-top: 26px;
  }
  .chronicle-toolbar > div {
    gap: 7px;
  }
  .chronicle-filter {
    font-size: 8px;
    padding: 10px 11px;
  }
  .chronicle-order {
    margin-top: 12px;
  }
  .chronicle-year-nav {
    gap: 16px;
    margin-top: 15px;
    padding: 14px 0;
  }
  .chronicle-year-nav > span {
    width: 100%;
    font-size: 6px;
  }
  .chronicle-year-nav > button {
    font-size: 22px;
  }
  .chronicle-year-nav > a {
    font-size: 8px;
    margin-left: auto;
  }
  .chronicle-body {
    padding-top: 30px;
  }
  .chronicle-year-heading {
    gap: 15px;
    margin-bottom: 18px;
  }
  .chronicle-year-heading h2 {
    font-size: 82px;
    letter-spacing: -2px;
  }
  .chapter-count {
    font-size: 23px;
  }
  .chapter-number {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .chronicle-year-heading p {
    font-size: 8px;
  }
  .chronicle-year {
    margin-bottom: 42px;
  }
  .chronicle-story-grid,
  .chronicle-story-grid.count-2,
  .chronicle-story-grid.count-1 {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 17px;
  }
  .chronicle-story,
  .chronicle-story.chapter-lead,
  .count-2 .chronicle-story.chapter-lead,
  .count-1 .chronicle-story.chapter-lead {
    grid-column: 1;
    grid-row: auto;
    height: 330px;
  }
  .chronicle-story.chapter-lead {
    height: 430px;
  }
  .chronicle-story-copy,
  .chapter-lead .chronicle-story-copy {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }
  .chronicle-story-copy h3 {
    font-size: 33px;
  }
  .chapter-lead .chronicle-story-copy h3 {
    font-size: 39px;
  }
  .chronicle-story-copy > p {
    font: 17px var(--serif);
    -webkit-line-clamp: 3;
    line-height: 1.55;
  }
  .chapter-lead .chronicle-story-copy > p {
    font-size: 19px;
  }
  .chronicle-story-copy > div {
    font-size: 8px;
    margin-top: 15px;
  }
  .chronicle-category {
    left: 20px;
    top: 20px;
    font-size: 7px;
  }
  .chronicle-arrow {
    right: 20px;
    top: 20px;
  }
  .chronicle-end h2 {
    font-size: 39px;
  }
}
/* Year chapters remain complete as the sample collection grows. */
.chronicle-story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: 420px;
}
.chronicle-story-grid > .chronicle-story:nth-child(n) {
  grid-column: span 1;
  grid-row: auto;
  height: 100%;
}
.chronicle-story-grid.odd-count > .chronicle-story:first-child {
  grid-column: span 2;
}
.chronicle-story-grid.count-1,
.chronicle-story-grid.count-2 {
  grid-auto-rows: 460px;
}
@media (max-width: 900px) {
  .chronicle-story-grid {
    grid-auto-rows: 370px;
  }
  .chronicle-story-copy > p {
    font-size: 12px;
  }
}
@media (max-width: 640px) {
  .chronicle-story-grid,
  .chronicle-story-grid.count-1,
  .chronicle-story-grid.count-2 {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 380px;
  }
  .chronicle-story-grid.odd-count > .chronicle-story:first-child {
    grid-column: span 1;
  }
  .chronicle-story-grid > .chronicle-story:nth-child(n) {
    height: 100%;
  }
  .chronicle-story-copy > p {
    font-size: 17px;
  }
}

/* Chronicle: the filters, order toggle and pieces are links rather than the
   prototype's buttons. Like a button, the toggle keeps its margin on phones. */
a.chronicle-order {
  display: inline-block;
}
