/* The two chapters share the original book's paper, ink and seal. */
.memory-header {
  position: relative;
  z-index: 5;
  width: min(1240px, calc(100% - 80px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.memory-brand {
  color: var(--ink);
  font-size: 17px;
  text-decoration: none;
  letter-spacing: .08em;
  white-space: nowrap;
}
.memory-brand [lang="ko"] { font-family: var(--font-ko); }
.memory-brand [lang="ja"] { font-family: var(--font-ja); }
.memory-brand .memory-dot { color: var(--seal); padding: 0 .45em; }
.chapter-nav { display: flex; align-items: center; gap: 28px; }
.chapter-nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 16px 0;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-ja);
  font-size: 13px;
  white-space: nowrap;
}
.chapter-nav small { font: 10px/1.4 var(--font-num); letter-spacing: .08em; }
.chapter-nav a[aria-current="page"] { color: var(--seal); }
.chapter-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
}
.chapter-nav a:hover { color: var(--seal); }
.memory-header--archive { position: absolute; top: 0; left: 0; right: 0; border-bottom: 0; }
.anniversary-100 .opening { padding-top: max(calc(env(safe-area-inset-top) + 102px), 102px); }
.memory-header a:focus-visible { outline: 2px solid var(--seal); outline-offset: 5px; }
@media (max-width: 600px) {
  .memory-header { width: calc(100% - 40px); min-height: 76px; gap: 12px; }
  .memory-brand { font-size: 14px; }
  .chapter-nav { gap: 20px; }
  .chapter-nav a { gap: 6px; font-size: 12px; }
  .chapter-nav small { display: none; }
  .anniversary-100 .opening { padding-top: max(calc(env(safe-area-inset-top) + 86px), 86px); }
}
