:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #8fcbd4;
  color: #161616;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: #8fcbd4;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  inset: 8px auto auto 8px;
  translate: 0 -160%;
  border: 1px solid #111;
  background: #fff;
  padding: 8px 12px;
}

.skip-link:focus {
  translate: 0;
}

.site-rail {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  display: flex;
  width: 184px;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid rgb(255 255 255 / 28%);
  background: rgb(12 12 12 / 90%);
  color: #fff;
  padding: 28px 20px;
}

.site-mark {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: -.055em;
  text-decoration: none;
}

.site-rail p {
  margin: 0;
  color: rgb(255 255 255 / 58%);
  font-size: 10px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.site-rail nav {
  display: grid;
  gap: 1px;
  margin-top: auto;
}

.site-rail nav a {
  border-top: 1px solid rgb(255 255 255 / 20%);
  padding: 10px 0;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-rail nav a:hover,
.site-rail nav a:focus-visible {
  color: #9ce8f2;
}

main,
footer {
  margin-left: 184px;
}

.archive-hero {
  display: grid;
  min-height: 48vh;
  align-content: end;
  gap: 8px;
  padding: clamp(28px, 7vw, 88px);
  background-color: #a9dce5;
  background-image: linear-gradient(90deg, rgb(169 220 229 / 20%), rgb(255 255 255 / 5%)), url("./media/2011/06/fruits.png");
  background-position: center, center;
  background-size: cover, cover;
}

.archive-hero::before {
  content: "";
  width: 62px;
  border-top: 1px solid currentColor;
}

.archive-hero p {
  width: min(58ch, 100%);
  margin: 0;
  font-size: clamp(13px, 1.6vw, 19px);
  line-height: 1.45;
}

.archive-hero .archive-kicker {
  font-size: 10px;
  letter-spacing: .17em;
}

.archive-hero h1 {
  margin: 0;
  font-size: clamp(58px, 12vw, 156px);
  font-weight: 300;
  line-height: .82;
  letter-spacing: -.07em;
}

.archive-index,
.archive-notes {
  padding: clamp(24px, 4vw, 58px);
}

.archive-index {
  border-top: 1px solid rgb(0 0 0 / 24%);
  background: rgb(255 255 255 / 82%);
}

.archive-index__heading {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.archive-index__heading p,
.archive-notes > p,
.archive-detail header p {
  margin: 0 0 4px;
  color: #5d5d5d;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.archive-index h2,
.archive-notes > h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -.04em;
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.archive-filters button {
  min-height: 34px;
  border: 1px solid #222;
  background: transparent;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.archive-filters button[aria-pressed="true"],
.archive-filters button:hover,
.archive-filters button:focus-visible {
  background: #161616;
  color: #fff;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.archive-card {
  display: grid;
  min-width: 0;
  border: 1px solid rgb(0 0 0 / 32%);
  background: rgb(255 255 255 / 70%);
  text-decoration: none;
}

.archive-card:hover,
.archive-card:focus-visible {
  outline: 2px solid #161616;
  outline-offset: 2px;
}

.archive-card__media {
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid rgb(0 0 0 / 20%);
  background: #d7f0f3;
}

.archive-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-card__empty {
  color: rgb(0 0 0 / 28%);
  font-size: 42px;
}

.archive-card__copy {
  display: grid;
  min-height: 112px;
  align-content: start;
  gap: 6px;
  padding: 13px;
}

.archive-card__copy small,
.archive-card__copy > span {
  color: #626262;
  font-size: 9px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.archive-card__copy strong {
  font-size: clamp(16px, 2vw, 23px);
  font-weight: 400;
  line-height: 1.05;
}

.archive-card[hidden] {
  display: none;
}

.archive-notes {
  background: #f3f1e9;
}

.archive-notes > h2 {
  margin-bottom: 28px;
}

.archive-detail {
  scroll-margin-top: 20px;
  border-top: 1px solid #8d8d8d;
  padding: 24px 0 34px;
}

.archive-detail header {
  margin-bottom: 16px;
}

.archive-detail h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 300;
  letter-spacing: -.035em;
}

.archive-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.archive-gallery a {
  display: grid;
  min-width: 0;
  min-height: 140px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #bebcb5;
  background: #fff;
}

.archive-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
}

.archive-detail__omission {
  max-width: 60ch;
  color: #5f5f5f;
  line-height: 1.5;
}

.archive-detail__back {
  display: inline-block;
  margin-top: 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.restoration-note {
  border-top: 1px solid rgb(255 255 255 / 25%);
  background: #181818;
  color: #fff;
  padding: clamp(24px, 4vw, 58px);
}

.restoration-note p {
  max-width: 70ch;
  margin: 9px 0 0;
  color: rgb(255 255 255 / 68%);
  font-size: 13px;
  line-height: 1.5;
}

footer {
  background: #101010;
  color: rgb(255 255 255 / 52%);
  padding: 18px clamp(24px, 4vw, 58px);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

html[data-era="2015"] body {
  background: #25211f;
}

html[data-era="2015"] .site-rail {
  inset: 0 0 auto;
  width: auto;
  min-height: 64px;
  flex-direction: row;
  align-items: center;
  border-right: 0;
  border-bottom: 1px solid rgb(255 255 255 / 24%);
  padding: 12px clamp(18px, 3vw, 42px);
}

html[data-era="2015"] .site-rail p {
  margin-right: auto;
}

html[data-era="2015"] .site-rail nav {
  display: flex;
  gap: 18px;
  margin: 0;
}

html[data-era="2015"] .site-rail nav a {
  border: 0;
  padding: 8px 0;
}

html[data-era="2015"] main,
html[data-era="2015"] footer,
html[data-era="2015"] .restoration-note {
  margin-left: 0;
}

html[data-era="2015"] .archive-hero {
  min-height: 68vh;
  padding-top: 120px;
  background-color: #282422;
  background-image: linear-gradient(90deg, rgb(0 0 0 / 72%), rgb(0 0 0 / 10%)), url("./media/2011/06/wurld.png");
  background-position: center, center;
  background-size: cover, min(78vw, 980px) auto;
  background-repeat: no-repeat;
  color: #fff;
}

html[data-era="2015"] .archive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html[data-era="2015"] .archive-card__media {
  background: #eee;
}

@media (max-width: 880px) {
  .archive-grid,
  html[data-era="2015"] .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-rail,
  html[data-era="2015"] .site-rail {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border: 0;
    border-bottom: 1px solid rgb(255 255 255 / 24%);
    padding: 13px 16px;
  }

  .site-rail .site-mark {
    margin-right: auto;
    font-size: 28px;
  }

  .site-rail p {
    display: none;
  }

  .site-rail nav,
  html[data-era="2015"] .site-rail nav {
    display: flex;
    gap: 10px;
    width: 100%;
    margin: 0;
  }

  .site-rail nav a {
    border: 0;
    padding: 3px 0;
    font-size: 9px;
  }

  main,
  footer,
  .restoration-note {
    margin-left: 0;
  }

  .archive-hero,
  html[data-era="2015"] .archive-hero {
    min-height: 360px;
    padding: 28px 16px;
  }

  .archive-index,
  .archive-notes {
    padding: 24px 16px;
  }

  .archive-index__heading {
    align-items: start;
    flex-direction: column;
  }

  .archive-grid,
  html[data-era="2015"] .archive-grid,
  .archive-gallery {
    grid-template-columns: 1fr;
  }

  .archive-card__copy {
    min-height: 96px;
  }

  .archive-gallery a {
    min-height: 0;
  }

  .restoration-note {
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
