/* Laurel & Hardy / Hal Roach studio index, 1920s–1930s.
   Cream paper, black ink, sepia rules, lobby-card rows. */

body:not(.flex) {
  margin: 0;
  color: #1c140e;
  background-color: #f3e6c8;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(255, 248, 232, 0.7), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(110, 75, 42, 0.07), transparent 34%),
    repeating-linear-gradient(
      0deg,
      rgba(70, 44, 20, 0.03) 0,
      rgba(70, 44, 20, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
  font-family: Georgia, "Times New Roman", Times, serif;
}

body.flex main:has(.archive-shell) {
  color: #1c140e;
  background-color: #f3e6c8;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(255, 248, 232, 0.65), transparent 46%),
    repeating-linear-gradient(
      0deg,
      rgba(70, 44, 20, 0.028) 0,
      rgba(70, 44, 20, 0.028) 1px,
      transparent 1px,
      transparent 4px
    );
}

body.flex:has(.archive-shell) footer {
  color: #1c140e;
  background: #e7d3ae;
  border-top: 3px double #b8956a;
}

body.flex:has(.archive-shell) footer a {
  color: #1c140e;
}

.archive-shell {
  color: #1c140e;
  color-scheme: light;
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.25rem 1.35rem 3.5rem;
  background: transparent;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

.archive-shell a {
  color: #1c140e;
}

.archive-shell a:hover {
  color: #8d7040;
}

.archive-shell a:focus-visible {
  outline: 2px solid #1c140e;
  outline-offset: 3px;
}

.archive-shell .archive-eyebrow {
  margin: 0 0 0.35rem;
  color: #8d7040;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.archive-shell .archive-eyebrow::before {
  content: "\2766\00a0";
  letter-spacing: 0;
}

.archive-shell .archive-title {
  margin: 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #1c140e; box-shadow: 0 3px 0 #f3e6c8, 0 4px 0 #b8956a;
  color: #1c140e;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: clamp(2.35rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.archive-shell .archive-lede {
  margin: 0.9rem 0 0;
  max-width: 38rem;
  color: #1c140e;
  font-size: 1.05rem;
  line-height: 1.65;
}

.archive-shell > nav.archive-section-nav:not(:has(span)) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 1.35rem 0 0;
  padding: 0.15rem 0;
  border-top: 1px solid #1c140e;
  border-bottom: 1px solid #1c140e;
  background: transparent;
}

.archive-shell > nav.archive-section-nav:not(:has(span)) a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  color: #1c140e;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.archive-shell > nav.archive-section-nav:not(:has(span)) a + a {
  border-left: 1px solid #b8956a;
}

.archive-shell > nav.archive-section-nav:not(:has(span)) a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.archive-shell > nav.archive-section-nav:not(:has(span)) a:hover {
  color: #8d7040;
  background: rgba(255, 248, 234, 0.45);
}

.archive-shell form.archive-section-nav {
  display: flex;
  margin: 0.35rem 0 0;
  padding: 0.85rem 0 0.2rem;
  border: 0;
  background: transparent;
}

.archive-shell form.archive-section-nav input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #1c140e;
  border-radius: 0;
  background: #fffaf0;
  color: #1c140e;
  font: 1.05rem/1.4 Georgia, "Times New Roman", serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.archive-shell form.archive-section-nav input:focus {
  outline: 2px solid #8d7040;
  outline-offset: 1px;
}

.archive-shell .archive-az {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.35rem 0 0.25rem;
}

.archive-shell .archive-az a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0 0.35rem;
  border: 1px solid #1c140e;
  background: #fffaf0;
  color: #1c140e;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 700;
  text-decoration: none;
}

.archive-shell .archive-az a:hover {
  background: #1c140e;
  color: #f6ecd4;
}

.archive-shell .archive-letter {
  margin-top: 1.85rem;
  scroll-margin-top: 1rem;
}

.archive-shell .archive-letter h2 {
  margin: 0 0 0.7rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #1c140e;
  color: #8d7040;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.archive-shell .archive-people {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-shell .archive-people li {
  border: 0;
}

.archive-shell .archive-people a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin: 0 0 0.55rem;
  padding: 0.75rem 0.9rem 0.8rem;
  border: 1px solid #b8956a;
  border-left: 7px solid #b8956a;
  background: #fffaf0;
  box-shadow: 3px 3px 0 rgba(60, 36, 16, 0.08);
  color: #1c140e;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.16rem;
  line-height: 1.3;
  text-decoration: none;
}

.archive-shell .archive-people a:hover {
  background: #f6ecd4;
  color: #1c140e;
}

.archive-shell .archive-people__kind {
  color: #8d7040;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-shell .archive-era {
  margin-top: 2.15rem;
}

.archive-shell .archive-era__title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.28rem;
  border-bottom: 3px double #b8956a;
  color: #1c140e;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.archive-shell .archive-era__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-shell .archive-era__row {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.12rem;
  align-items: center;
  margin: 0 0 0.65rem;
  padding: 0.7rem 0.85rem 0.75rem;
  border: 1px solid #b8956a;
  border-left: 7px solid #b8956a;
  background: #fffaf0;
  box-shadow: 3px 3px 0 rgba(60, 36, 16, 0.08);
}

.archive-shell .archive-era__year {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 2.6rem;
  padding: 0.2rem;
  border: 1px solid #b8956a;
  background: #f6ecd4;
  color: #1c140e;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.archive-shell .archive-era__name {
  color: #1c140e;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.archive-shell .archive-era__name:hover {
  color: #8d7040;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.archive-shell .archive-era__meta {
  grid-column: 2;
  color: #3a2c22;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.archive-shell nav.archive-section-nav:has(> span) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.1rem;
  margin: 2.25rem 0 0;
  padding: 1rem 0 0.15rem;
  border: 0;
  border-top: 3px double #b8956a;
  background: transparent;
}

.archive-shell nav.archive-section-nav:has(> span) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.2rem;
  color: #1c140e;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.archive-shell nav.archive-section-nav:has(> span) a:hover {
  color: #8d7040;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.archive-shell nav.archive-section-nav:has(> span) span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  min-height: 2.85rem;
  padding: 0.35rem 1rem;
  border: 2px solid #1c140e;
  background: #fffaf0;
  color: #1c140e;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  font-variant-numeric: lining-nums;
}

.archive-shell .archive-status {
  margin-top: 1.75rem;
  padding: 1.1rem 1rem;
  border: 1px solid #1c140e;
  background: #fffaf0;
  color: #1c140e;
}

@media (max-width: 640px) {
  .archive-shell {
    padding: 1.35rem 0.85rem 2.75rem;
  }

  .archive-shell .archive-title {
    font-size: 2.2rem;
  }

  .archive-shell .archive-lede {
    font-size: 1rem;
  }

  .archive-shell > nav.archive-section-nav:not(:has(span)) a {
    min-height: 2.75rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
  }

  .archive-shell .archive-era__row {
    grid-template-columns: 3.7rem minmax(0, 1fr);
    column-gap: 0.65rem;
    padding: 0.65rem 0.7rem 0.7rem;
  }

  .archive-shell .archive-era__name {
    font-size: 1.08rem;
  }

  .archive-shell .archive-era__meta,
  .archive-shell .archive-people a {
    font-size: 1.05rem;
  }

  .archive-shell .archive-era__meta {
    font-size: 0.88rem;
  }

  .archive-shell nav.archive-section-nav:has(> span) span {
    min-width: 0;
    width: 100%;
    font-size: 1.12rem;
  }

  .archive-shell nav.archive-section-nav:has(> span) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }

  .archive-shell nav.archive-section-nav:has(> span) span {
    grid-column: 1 / -1;
    order: -1;
  }
}
